update from texinfo
[gnulib.git] / ChangeLog
1 2014-01-23  Eric Blake  <eblake@redhat.com>
2
3         pthread: work around winpthread header pollution on mingw
4         * lib/time.in.h: Move pthread workarounds...
5         * lib/pthread.in.h: ...here.
6         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
7         detect macro pollution on mingw.
8         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
9
10 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
11
12         qacl: check for fchmod
13         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
14         and qset-acl.c both use HAVE_FCHMOD.
15
16 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
17
18         fdopen-tests: port to Tru64
19         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
20         descriptor that is not open, as POSIX doesn't specify the
21         resulting behavior and the test does not work on Tru64.
22         Problem reported by Steven M. Schweda in:
23         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
24
25         stdalign: port to HP-UX compilers
26         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
27         if __HP_cc or __HP_aCC are nonzero.
28
29 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
30
31         strtoimax: port to platforms lacking 'long long'
32         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33         check whether strtoll is declared, which causes the C file to
34         wrongly report an error.  Problem reported by Steven M. Schweda in:
35         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
36         * lib/strtoimax.c (strtoull):
37         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
38         (strtoll): Declare only if HAVE_LONG_LONG_INT.
39
40 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
41
42         relocatable-perl: fix texi syntax
43         * doc/relocatable-maint.texi: Escape braces.
44
45 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
46
47         relocatable-perl: like relocatable-script, but for Perl scripts
48         * build-aux/relocatable.pl.in: Add.
49         * doc/relocatable-maint.texi: Add documentation.
50         * modules/relocatable-perl: Add.
51
52 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
53
54         tests: fix export bug in previous patch
55         Problem reported by Jim Meyering.
56         * tests/init.sh (re_shell): New var, which is exported instead of
57         re_shell_.
58
59         tests: simplify porting to Solaris 10 /bin/sh
60         Some test cases in 'grep' need a shell that groks '$(';
61         export re_shell_ for their benefit.  Problem reported for 'grep'
62         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
63         * tests/init.sh (re_shell_): Export if it's used.
64
65 2014-01-06  Eric Blake  <eblake@redhat.com>
66
67         md5, sha1, sha256, sha512: support older autoconf
68         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
69         for autoconf < 2.63b.
70
71         include_next: port to autoconf 2.63
72         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
73
74 2014-01-04  Jim Meyering  <meyering@fb.com>
75
76         maint: add a gnulib-local rule to keep non-ascii out of .texi files
77         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
78         so that "make sc_maint" will ding anyone who puts non-ascii
79         in any of gnulib's .texi files.
80
81 2014-01-03  Jim Meyering  <meyering@fb.com>
82
83         freadable, fwritable, fwriting: declare with the "pure" attribute
84         * lib/freadable.h (freadable): Declare with the "pure" attribute.
85         * lib/fwritable.h (fwritable): Likewise.
86         * lib/fwriting.h (fwriting): Likewise.
87         Suggested by Bruno Haible.
88
89         maint.mk: adapt openat.h-include-without-use test
90         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
91         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
92         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
93         With this change, running "make sc_maint" in gnulib's top-level
94         directory now passes for me.
95
96 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
97
98         doc: use ASCII in .texi files where UTF-8 isn't needed
99         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
100         * doc/posix-functions/setkey.texi, doc/regex.texi:
101         Use ASCII input, not UTF-8.
102
103 2014-01-02  Jim Meyering  <meyering@fb.com>
104
105         freading: declare with the "pure" attribute
106         * lib/freading.h (freading): Declare with the "pure" attribute.
107
108         manywarnings: remove -Wmudflap
109         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
110         it is no longer supported in gcc-4.9-to-be.
111
112 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
113
114         relocatable-script: remove unused code
115         Problem reported by Reuben Thomas in:
116         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
117         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
118
119 2014-01-01  Jim Meyering  <meyering@fb.com>
120
121         maint: fix public-submodule-commit to work with newer git
122         * top/maint.mk (public-submodule-commit): Remove excess quoting.
123         We were over-quoting the test arguments, and somewhere prior to
124         version 1.8.5.2.229, git stopped removing those excess quotes,
125         which made the test fail, since the unexpanded strings would
126         always differ; using GIT_TRACE=1 confirmed that the git merge-base
127         command wasn't even being run.
128
129 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
130
131         doc: update main copyright year
132         * doc/gnulib.texi: Update copyright date.
133
134 2014-01-01  Eric Blake  <eblake@redhat.com>
135
136         version-etc: new year
137         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
138         * all files: run 'make update-copyright'
139
140 2013-12-24  Eric Blake  <eblake@redhat.com>
141
142         passfd: give nicer error for recvfd at eof
143         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
144         * tests/test-passfd.c (main): Enhance test to cover this.
145
146 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
147
148         gettimeofday: port recent C++ fix to Emacs
149         Without this further patch, Emacs won't build due to
150         the portcheck failing.  Also, this simplifies the patch a bit.
151         * lib/time.in.h (localtime, gmtime): Don't replace unless
152         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
153         * lib/time.in.h (localtime, gmtime):
154         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
155         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
156         * modules/time (time.h):
157         Don't worry about about the possibility of localtime and gmtime
158         being absent; they're present in all C libraries we know about.
159         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
160         Don't assume sys_time is present and has been initialized.
161         Instead, use a hack that should work even if it hasn't been.
162         Don't use a portcheck for gmtime or localtime; this supports
163         the hack.
164         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
165
166 2013-12-17  John W. Eaton  <jwe@gnu.org>
167
168         gettimeofday: fix C++ crosscompilation
169
170         Never replace gmtime and localtime by macros when compiling with
171         C++, this prevents <ctime> from being included.
172
173         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
174         define gmtime and localtime as preprocessor macros.  Instead
175         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
176         REPLACE_LOCALTIME substitutions.
177         * lib/time.in.h: Declare gmtime and localtime when needed.
178         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
179         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
180         * modules/time: Depend on gettimeofday, and substitute the above
181         variables in time.h.
182
183 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
184
185         qacl: port to Windows better
186         See Eli Zaretskii in
187         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
188         * lib/file-has-acl.c (acl_access_nontrivial):
189         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
190         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
191
192 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
193
194         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
195         * lib/gl_openssl.h: Cast void pointers to a specific type.
196
197 2013-12-07  Pádraig Brady <P@draigBrady.com>
198
199         open-tests: fix build failure with -Werror=old-style-declaration
200         * tests/test-open.h: Reorder the inline to avoid the issue.
201
202 2013-12-07  Pádraig Brady <P@draigBrady.com>
203
204         md5, sha1, sha256, sha512: fix link error with partial libcrypto
205         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
206         init time, so that if early checks find crypto routines,
207         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
208         avoiding link failures.
209
210 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
211
212         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
213         This provides a new way to specify the default for
214         gl_CRYPTO_CHECK, one that is reflected in the --help message.
215         Emacs uses this, as well as the old way.
216         This attempts to implement a suggestion by Pádraig Brady in
217         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
218         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
219         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
220
221         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
222         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
223         Add support for a new option, --with-openssl=auto, which causes
224         the library to be used if available and silently ignored if not.
225         Add support to allow allow configure.ac to specify its own
226         default, by setting with_openssl_default before invoking gl_INIT.
227
228 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
229
230         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
231         Problem reported by Daiki Ueno in:
232         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
233         * tests/test-open.h (__always_inline):
234         New macro, if not already defined.
235         (test_open): Use it.
236
237 2013-12-04  Eric Blake  <eblake@redhat.com>
238
239         include_next: minimize code duplication
240         * modules/include_next (Depends-on): Add absolute-header.
241         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
242         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
243
244 2013-12-04  Pádraig Brady <P@draigBrady.com>
245
246         getcwd: fix compile error in configure check
247         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
248
249 2013-12-04  Pádraig Brady <P@draigBrady.com>
250
251         regex: suppress core dumps from detection code
252         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
253         to suppress core dumps that may well occur on glibc systems.
254         These core dumps might not be cleaned up automatically, or could
255         trigger some system core dump handling logic.
256
257 2013-12-03  Pádraig Brady <P@draigBrady.com>
258
259         md5, sha1, sha256, sha512: support mandating use of openssl
260         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
261         description, to list the now 3 separate options.  also don't
262         mention the default=no, since this is implicit given the option
263         is described as --with-openssl rather than --without-openssl.
264         If projects change the default they're free to document that.
265         with --with-openssl[=yes] we now error out when the specified
266         hash algorithm is not available in libcrypto.
267
268 2013-12-03  Ivailo  <xakepa10@gmail.com>
269
270         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
271         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
272         -Wformat-nonliteral checks, as these edge cases are part of the test.
273
274 2013-12-03  Eric Blake  <eblake@redhat.com>
275
276         regex: avoid glibc deadlock during configure
277         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
278         glibc bug 15078 in turn triggers bug 16159.
279         Reported by Michal Privoznik.
280
281 2013-12-02  Pádraig Brady <P@draigBrady.com>
282
283         md5, sha1, sha256, sha512: use openssl routines if available.
284         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
285         routines will be used if available, requiring apps to link @LIB_CRYPTO@
286         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
287         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
288         in the standard system location.
289         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
290         * m4/sha256.m4: Likewise with SHA256.
291         * m4/sha512.m4: Likewise with SHA512.
292         * m4/md5.m4: Likewise with MD5.
293         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
294         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
295         * lib/sha256.h: Likewise with SHA256.
296         * lib/sha512.h: Likewise with SHA512.
297         * lib/md5.h: Likewise with MD5.
298         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
299         * lib/sha256.c: Likewise with SHA256.
300         * lib/sha512.c: Likewise with SHA512.
301         * lib/md5.c: Likewise with MD5.
302         * modules/crypto/sha1 (Link:): Add the new optional lib.
303         (Depends-on:): Add dependency on extern-inline.
304         * modules/crypto/sha256: Likewise.
305         * modules/crypto/sha512: Likewise.
306         * modules/crypto/md5: Likewise.
307         * modules/crypto/sha1-tests: Reference the lib here too.
308         * modules/crypto/md5-tests: Likewise.
309         * modules/crypto/gc-des-tests: Likewise.
310         * modules/crypto/gc-hmac-md5-tests: Likewise.
311         * modules/crypto/gc-hmac-sha1-tests: Likewise.
312         * modules/crypto/gc-hmac-sha256-tests: Likewise.
313         * modules/crypto/gc-hmac-sha512-tests: Likewise.
314         * modules/crypto/gc-md5-tests: Likewise.
315         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
316         * modules/crypto/gc-sha1-tests: Likewise.
317         * modules/crypto/gc-tests: Likewise.
318         * modules/crypto/hmac-md5-tests: Likewise.
319         * modules/crypto/hmac-sha1-tests: Likewise.
320         * modules/crypto/hmac-sha256-tests: Likewise.
321         * modules/crypto/hmac-sha512-tests: Likewise.
322
323 2013-11-29  RV1971  <rv1971@web.de>
324
325         base64: (trivial) fix compilation regression on some compilers
326         * lib/base64.c: Don't return the void function,
327         instead split to a separate return statement.
328
329 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
330
331         ignore-value: revert previous code change
332         * lib/ignore-value.h (ignore_value): Use __extension__ and
333         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
334         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
335         Change the comment to try to explain this better.
336
337 2013-11-27  Pádraig Brady <P@draigBrady.com>
338
339         selinux-h: improve stub types and add more stub functions
340
341         * lib/se-selinux.in.h: Change security_context_t to a typedef
342         rather than a define, as it's a pointer type and so is better
343         as a typedef to avoid issues declaring multiple variables
344         with the comma operator.  Also add stub for string_to_security_class().
345         * lib/se-context.in.h: Add stub functions for
346         context_{type,range,role,user}_get().
347
348 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
349
350         ignore-value: prefer GCC version back through 2.0
351         The code didn't match the comments, so I did a bit of software
352         archaeology.  GCC 2.0 seems to support __extension__ and
353         __typeof__, so fix both code and comments to use 2.0.
354         * lib/ignore-value.h (ignore_value): Use __extension__ and
355         __typeof__ for GCC 2.0 through 3.3, too.
356
357 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
358
359         pty: Activate the signature wrapper of forkpty.
360         The intended preprocessor macro HAVE_FORKPTY is
361         never defined, yet `lib/forkpty.c' depends on it.
362
363         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
364         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
365         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
366
367 2013-11-18  Jim Meyering  <meyering@fb.com>
368         and Paul Eggert  <eggert@cs.ucla.edu>
369
370         quotearg: don't attempt to store 1 << 31 into an "int"
371         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
372         gcc's new -fsanitize=undefined and running its tests triggered some
373         new test failures due to undefined behavior, all with this diagnostic:
374           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
375             cannot be represented in type int
376         Rather than shifting "1" left to form a mask, shift the bits right and
377         simply use "1" as the mask.
378
379 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
380
381         error: depend on stdio
382         Problem reported by Nikos Mavrogiannopoulos in
383         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
384         * modules/error (Depends-on): Add stdio.
385
386 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
387
388         * doc/relocatable-maint.texi (Supporting Relocation): Improve
389         wording.
390         Reported by Reuben Thomas <rrt@sc3d.org>.
391
392 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
393
394         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
395         New function and macro, to work around _DARWIN_C_SOURCE problem.
396         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
397
398 2013-11-11  Pádraig Brady <P@draigBrady.com>
399
400         base64: provide a fast path for encoding well sized buffers
401         Avoid conditionals in the base64 encoding loop,
402         which was seen to give 60% better throughput.
403         * lib/base64.c (base64_encode_fast): A new function to be called
404         when we don't want to NUL terminate, and we have enough space
405         in the output to encode the given input.
406         (base64_encode): Call the _fast() version when appropriate.
407         Also remove a redundant mask with 0x3F on the first encoded byte.
408
409 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
410
411         extern-inline: port better to OS X 10.9
412         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
413         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
414         OS X 10.9, except for g++ where the bug is still present.
415         See <http://trac.macports.org/ticket/41033>.
416
417 2013-11-08  Eric Blake  <eblake@redhat.com>
418
419         fpending: fix regression on DragonFly BSD
420         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
421         * lib/fpending.h (__fpending): Don't declare twice.
422         Reported by GW in
423         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
424
425 2013-11-05  Jim Meyering  <meyering@fb.com>
426
427         hash: relax license to LGPLv2+, for libguestfs
428         * modules/hash (License): Change from GPL to LGPLv2+.
429
430 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
431
432         intprops: port to Oracle Studio c99
433         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
434         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
435
436 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
437
438         obstack: pacify HP C
439         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
440         warning "conversion from pointer to smaller integer" from HP
441         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
442         C89 or later nowadays, so cast to void instead of int.  Privately
443         reported by H.Merijn Brand.  Also, change header to match glibc's,
444         to make checking against glibc easier.
445
446 2013-10-29  Jim Meyering  <meyering@fb.com>
447
448         maint.mk: prefer gpgv2 over gpgv
449         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
450         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
451         Reported by Gary Vaughan.
452
453 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
454
455         isnan: port to VAX
456         Reported by John Klos for NetBSD-5/VAX in
457         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
458         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
459         (FUNC): Use it.
460
461 2013-10-28  Jim Meyering  <meyering@fb.com>
462
463         gnulib-tool: protect against CDPATH
464         * gnulib-tool: Many "cd" built-in functions print a directory name
465         to stdout when CDPATH is set, e.g.,
466           $ bash -c 'CDPATH=/; cd tmp'
467           /tmp
468         Unset it, when possible.  Prompted by a comment from Bruce Korb.
469
470         maint.mk: restore functionality removed by recent change...
471         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
472         the context of a shallow-cloned gnulib repository: "git describe"
473         would fail in such a directory.  However, that change made it so
474         the reported gnulib revision no longer includes the version number
475         or a commit count, even when run from a full clone.
476         * top/maint.mk (gnulib-version): Use the full "git describe"
477         output when possible, e.g., the form above, rather than the
478         abbreviated, no-tag, no-commit-count string, and fall back to
479         using a 10-byte hash, rather than the default minimal-length
480         hash prefix, since while the minimal-length one may be fine today,
481         it is likely not to be unique for very long.
482
483 2013-10-26  Jim Meyering  <meyering@fb.com>
484
485         maint.mk: fix "release" target to build _version
486         This fixes a bug in README-release whereby following the outlined
487         steps, one would publish a tarball whose programs would report
488         --version output not consistent with the package version number.
489         This bug caused grep-2.15 to produce a grep program whose
490         --version option made it print 2.14.56-1e3d rather than 2.15.
491         * top/maint.mk (release): Making this target build "_version"
492         ensures that the new version number is reflected in configure.
493
494 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
495
496         install-reloc: Support multi-binary installation.
497         * build-aux/install-reloc: Support installing multiple programs in
498         one invocation, as done by Automake starting with commit
499         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
500         Haible <bruno@clisp.org>, archived at
501         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
502         Reported by Sylvain <beuc@gnu.org>.
503
504 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
505
506         selinux-h: Really build without selinux when library is missing.
507         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
508         continue without selinux, as already told in the warning message.
509
510 2013-10-21  Jim Meyering  <meyering@fb.com>
511
512         regex: also remove dependency on HAVE_WCSCOLL
513         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
514
515 2013-10-21  Reuben Thomas <rrt@sc3d.org>
516
517         xfreopen: Fix typo. s/frepoen/freopen/
518         * lib/xfreopen.c: Fix description.
519         * modules/xfreopen: Likewise.
520
521 2013-10-21  Jim Meyering  <meyering@fb.com>
522
523         regex: don't depend on wcscoll
524         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
525         It is no longer used.
526
527 2013-10-20  Jim Meyering  <meyering@fb.com>
528
529         error: add the printf attribute to a static function
530         * lib/error.c (error_tail): Add the printf attribute, to placate
531         gcc's -Werror=suggest-attribute=format option.
532
533 2013-09-30  Jim Meyering  <meyering@fb.com>
534
535         fpending, obstack, strerror-override: use pure+const function attrs
536         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
537         * lib/obstack.c (_obstack_allocated_p): Likewise.
538         * lib/obstack.h (_obstack_memory_used): Likewise.
539         (_obstack_memory_used): Likewise.
540         * lib/strerror-override.h (strerror_override): Declare with
541         the "const" attribute.
542
543 2013-10-18  Eric Blake  <eblake@redhat.com>
544
545         extern-inline: make safe for -Wundef usage
546         Reported by Vladimir 'phcoder' Serbinenko in
547         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
548         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
549
550 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
551
552         mkfifo-tests, etc.: allow HP-UX 11.11 bug
553         Problem reported by Daniel Richard G. in
554         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
555         * doc/posix-functions/mkfifo.texi (mkfifo):
556         * doc/posix-functions/mkfifoat.texi (mkfifoat):
557         * doc/posix-functions/mknod.texi (mknod):
558         * doc/posix-functions/mknodat.texi (mknodat):
559         Document the HP-UX 11.11 bug.
560         * tests/test-mkfifo.h (test_mkfifo):
561         Allow the HP-UX 11.11 bug.
562
563 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
564
565         acl: allow cross-compilation to Gentoo
566         Problem reported by Gabriel Marcano in
567         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
568         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
569         test only whether it links.
570
571 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
572
573         mgetgroups: remove dependency on realloc-gnu
574         The dependency violates the comment in realloc-gnu, which
575         says that tests can't depend on realloc-gnu; some tests depend
576         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
577         Problem reported by Daniel Richard G. in
578         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
579         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
580         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
581         not realloc-gnu.
582
583 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
584
585         regex-tests: port to HP-UX 11.11
586         Problem reported by Daniel Richard G. in
587         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
588         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
589
590 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
591
592         verify: document some 'assume' pitfalls
593         * doc/verify.texi (Compile-time Assertions):
594         Mention that 'assume (E)' can sometimes slow things down.
595         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
596
597 2013-10-10  Eric Blake  <eblake@redhat.com>
598
599         strtoumax: fix typo in previous commit.
600         * modules/strtoumax (Depends-on): Fix typo.
601         * modules/strtoimax (Depends-on): Likewise.
602
603 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
604
605         strtoumax: port to Solaris 8
606         This problem was introduced in the recent HP-UX patch.
607         Reported by Tom G. Christensen in
608         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
609         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
610         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
611
612 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
613
614         strtoimax, strtoumax: port to HP-UX 11.11
615         Problem reported by Daniel Richard G. in
616         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
617         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
618         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
619         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
620         REPLACE_STRTOUMAX.
621         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
622         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
623         Replace the function if defined as a macro but not as a function.
624         * modules/inttypes-incomplete (inttypes.h): Substitute
625         REPLACE_STRTOUMAX.
626         * modules/strtoumax (configure.ac): Replace strtoumax if
627         REPLACE_STRTOUMAX.
628
629 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
630
631         strtoimax: port to HP-UX 11.11
632         Problem reported by Daniel Richard G.
633         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
634         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
635         they might clash with inttypes.h.
636
637 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
638
639         New module 'count-trailing-zeros'.
640         * MODULES.html.sh: Mention it.
641         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
642         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
643         * modules/count-trailing-zeros-tests:
644         * tests/test-count-trailing-zeros.c:
645         New files.
646
647         count-leading-zeros: port to MSC; support types wider than 64 bits
648         The ideas behind the MSC port are stolen from Emacs.
649         * lib/count-leading-zeros.h:
650         Don't include verify.h: it's no longer needed, as types wider than
651         64 bits are now supported.
652         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
653         performance with MSC.  All uses changed.  Do not assume that TYPE
654         has at most 64 bits.
655         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
656         All uses changed.  Fold the subtraction from 31 into the table.
657
658         count-one-bits: port to MSC; support types wider than 64 bits
659         The ideas behind the MSC port are stolen from Emacs.
660         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
661         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
662         Don't include verify.h: it's no longer needed, as types wider than
663         64 bits are now supported.
664         (COUNT_ONE_BITS_GENERIC): New macro.
665         (popcount_supported) [_MSC_VER]: New inline function.
666         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
667         performance with MSC.  All uses changed.  Do not assume that TYPE
668         has at most 64 bits.
669         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
670
671 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
672
673         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
674         * lib/mountlist.c (read_file_system_list): fix leak of directory
675         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
676
677 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
678
679         tests: improve diagnostic when an assertion fails
680         * tests/macros.h (ASSERT): Report the assertion that failed.
681
682 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
683
684         verify: new macro 'assume'
685         This is taken from Emacs, and should be generally useful.
686         * doc/verify.texi (assume): Document it.
687         * lib/verify.h (assume): New macro.
688         (__has_builtin): Expand to 0 if not defined.
689
690 2013-09-26  Eric Blake  <eblake@redhat.com>
691
692         dup2, dup3: work around another cygwin crasher
693         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
694         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
695         * tests/test-dup2.c (main): Likewise.
696         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
697         * lib/dup3.c (dup3): Likewise.
698         * doc/posix-functions/dup2.texi (dup2): Document it.
699         * doc/glibc-functions/dup3.texi (dup3): Likewise.
700
701         getdtablesize: work around cygwin issue
702         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
703         * modules/getdtablesize (configure.ac): Build replacement.
704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
705         * modules/unistd (Makefile.am): Expose the witness.
706         * lib/unistd.in.h (getdtablesize): Declare replacement.
707         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
708         * tests/test-getdtablesize.c (main): Test it.
709         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
710
711 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
712
713         pmccabe2html: escaping of special characters
714         Escape all '<', '>', and '&' in HTML output.
715         * build-aux/pmccabe2html (html_fnc): Call gsub()
716         instead of sub() to capture all '<', '>', and '&'.
717         Neither of '<' and '>' is special in a regexp,
718         so first arguments to gsub() are corrected. Also,
719         in replacement strings, ampersand must be escaped.
720         Finally, '&' must be handled first, then '<' and '>'.
721
722 2013-09-24  Eric Blake  <eblake@redhat.com>
723
724         manywarnings: enable nicer gcc warning messages
725         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
726         some -f options for optimal warnings.
727
728 2013-09-21  Jim Meyering  <meyering@fb.com>
729
730         timespec: use the new TIMESPEC_RESOLUTION in a few more places
731         * lib/timespec-add.c (timespec_add): Also replace 999999999
732         with TIMESPEC_RESOLUTION - 1.
733         * lib/timespec-sub.c (timespec_sub): Likewise.
734
735 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
736
737         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
738         Problem reported by Dagobert Michelsen via Eric Blake in
739         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
740         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
741         not AC_COMPILE_IFELSE.
742
743 2013-09-23  Eric Blake  <eblake@redhat.com>
744
745         configmake: support new --runstatedir option
746         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
747         even if autoconf was too old to provide the command line option.
748         * modules/configmake (Makefile.am): Propagate it to .h file.
749
750 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
751
752         ctype, string: depend on extern-inline
753         This is needed to complete the recent OS X fixes.
754         Also, fix related documentation as suggested by Eric Blake.
755         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
756         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
757         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
758         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
759         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
760         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
761         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
762         * doc/posix-functions/toupper.texi:
763         List the 'ctype' gnulib module.
764         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
765         * doc/posix-functions/strncpy.texi:
766         List the 'string' gnulib module.
767         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
768         Add string.
769         * modules/ctype, modules/string (Depends-on): Add extern-inline.
770
771 2013-09-19  Pádraig Brady  <P@draigBrady.com>
772
773         userspec: support optional parameters to parse_user_spec()
774         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
775         then avoid group processing and treat the full spec as a user.
776         (parse_with_separator): Allow the USERNAME and GROUPNAME to
777         be optional params (NULL), in which case they're ignored.
778
779 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
780
781         timespec: new function make_timespec, and new constants
782         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
783         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
784         (make_timespec): New function.
785         * lib/dtotimespec.c (dtotimespec):
786         * lib/timespec-add.c (timespec_add):
787         * lib/timespec-sub.c (timespec_sub):
788         * lib/utimens.c (validate_timespec):
789         * lib/utimensat.c (rpl_utimensat):
790         Use these new constants and functions.
791
792         stdio: OS X port of putc_unlocked + extern inline
793         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
794         * doc/posix-functions/putc_unlocked.texi:
795         * doc/posix-functions/putchar_unlocked.texi:
796         Document this portability problem.
797
798         signal: OS X port of sigaddset etc. + extern inline
799         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
800         (sigismember): #undef on problematic Apple platforms.
801         * doc/posix-functions/sigaddset.texi:
802         * doc/posix-functions/sigdelset.texi:
803         * doc/posix-functions/sigemptyset.texi:
804         * doc/posix-functions/sigfillset.texi:
805         * doc/posix-functions/sigismember.texi:
806         Document this portability problem.
807
808         extern-inline: do not always suppress extern inline on OS X
809         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
810         extern inline on Apple only if the particular compile-time
811         configuration is known to have the problem.
812         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
813         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
814         other Gnulib modules.
815
816         extern-inline: document fixes for ctype and wctype macros
817         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
818         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
819         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
820         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
821         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
822         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
823         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
824         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
825         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
826         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
827         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
828         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
829         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
830         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
831         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
832         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
833         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
834         * doc/posix-functions/strncpy.texi:
835         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
836         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
837         Document that Gnulib fixes portability problems with these
838         functions on OS X 10.8 and earlier when called from plain inline
839         or extern inline functions.
840
841 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
842
843         fflush, freadahead, fseeko: Fix for Android
844         Suggested by Bruno Haible in:
845         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
846         * lib/stdio-impl.h: Use local __sfileext definition.
847
848 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
849
850         pmccabe2html: Portability to other awk versions.
851         The functions systime() and strftime() are available
852         in Gawk only.  Properly close two HTML-tags 'style'
853         and 'span'.
854         * build-aux/pmccabe2html (BEGIN): Store timing
855         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
856         systime() in HTML_COMMENT.
857         (html_header): Correctly close tag 'style'.
858         (END): Replace strftime() by CHRONOS_TIME.  Close
859         tag 'span' correctly, not as 'div'.
860
861 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
862
863         getgroups: statement without effect
864         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
865         Change equality conditional to expected assignment.
866
867 2013-09-09  Eric Blake  <eblake@redhat.com>
868
869         glob: fix compilation
870         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
871
872 2013-09-07  Eric Blake  <eblake@redhat.com>
873
874         glob: fix build for platforms without __THROW
875         * lib/glob.in.h (__THROW): Add definition again.
876
877 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
878
879         regex-quote: fix buffer access out of bounds
880         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
881         * lib/regex-quote.c (regex_quote_spec_pcre):
882         Fix typo that resulted in an out-of-bounds read.
883
884 2013-09-04  Eric Blake  <eblake@redhat.com>
885
886         glob: avoid -Wattribute warnings on glibc
887         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
888         __THROWNL, not __THROW, on static functions.
889         * lib/glob.in.h (__THROW): Adjust...
890         (__THROWNL): ...accordingly.
891
892 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
893
894         headers: check that _GL_INLINE_HEADER_BEGIN is defined
895         Suggested by Bruce Korb in:
896         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
897         * doc/extern-inline.texi (extern inline):
898         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
899         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
900         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
901         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
902         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
903         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
904         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
905         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
906         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
907         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
908         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
909         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
910         * lib/xtime.h:
911         Check that _GL_INLINE_HEADER_BEGIN is defined.
912
913 2013-08-29  Pádraig Brady  <P@draigBrady.com>
914
915         bootstrap: remove the --version requirement from ancillary tools
916         * build-aux/bootstrap (check_exists): A new refactored function to
917         determine if a command exists.
918         (find_tool): Use the new function which does not require the
919         --version option to be supported.
920         (check_versions): Use the new function.
921
922 2013-08-26  Simon Josefsson  <simon@josefsson.org>
923
924         gc: support HMAC-SHA256 and HMAC-SHA512.
925         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
926         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
927         functions.
928         (gc_hmac_md5): Use symbolic constant.
929         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
930         (gc_hmac_sha256, gc_hmac_sha512): New functions.
931         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
932         * m4/sha256.m4: Protect against empty expansion.
933         * m4/sha512.m4: Likewise.
934         * lib/hmac-sha256.c: New file.
935         * lib/hmac-sha512.c: Likewise.
936         * m4/gc-hmac-sha256.m4: Likewise.
937         * m4/gc-hmac-sha512.m4: Likewise.
938         * m4/gc-sha256.m4: Likewise.
939         * m4/gc-sha512.m4: Likewise.
940         * modules/crypto/gc-hmac-sha256: Likewise.
941         * modules/crypto/gc-hmac-sha256-tests: Likewise.
942         * modules/crypto/gc-hmac-sha512: Likewise.
943         * modules/crypto/gc-hmac-sha512-tests: Likewise.
944         * modules/crypto/hmac-sha256: Likewise.
945         * modules/crypto/hmac-sha256-tests: Likewise.
946         * modules/crypto/hmac-sha512: Likewise.
947         * modules/crypto/hmac-sha512-tests: Likewise.
948         * tests/test-gc-hmac-sha256.c: Likewise.
949         * tests/test-gc-hmac-sha512.c: Likewise
950         * tests/test-hmac-sha256.c: Likewise.
951         * tests/test-hmac-sha512.c: Likewise
952
953 2013-08-24  Daiki Ueno  <ueno@gnu.org>
954
955         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
956         of AC_CHECK_DECLS.
957
958 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
959
960         selinux-at: omit unnecessary include
961         * lib/selinux-at.c: Don't include dosname.h; not needed, since
962         this source file doesn't use its macros, and subsidiary files that
963         use the macros already include it.
964
965 2013-08-21  Eric Blake  <eblake@redhat.com>
966
967         d-ino: avoid false negative on symlink
968         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
969         Reported by Stephane Chazelas.
970
971 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
972
973         bootstrap: port to OpenBSD sed
974         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
975         does not interpret `-' as a file argument to mean stdin.
976
977 2013-08-15  Eric Blake  <eblake@redhat.com>
978
979         warnings: minor optimization
980         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
981
982         warnings: check -Wfoo rather than -Wno-foo
983         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
984         -Wno-, test if the compiler recognizes the positive form instead.
985
986 2013-08-15  Karl Berry  <karl@gnu.org>
987
988         * config/srclist-update: add option "doclicense" to placate
989         pulling *.texi files from Emacs.  Write terse usage
990         documentation at the top.
991
992 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
993
994         xvasprintf-tests: port to GCC with hardening flags
995         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
996         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
997         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
998
999 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1000
1001         fpending: port to recent Cygwin change to stdio_ext.h
1002         Reported by LRN in
1003         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
1004         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
1005         just declare __fpending unless it's a macro.
1006         A duplicate decl shouldn't hurt.
1007         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
1008         call compiles and links, instead of separately checking for
1009         decl and lib function.
1010         * modules/fpending (configure-ac):
1011         Adjust to fpending.m4's renaming of shell variable.
1012
1013 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1014
1015         sys_time: port to OpenBSD
1016         * lib/sys_time.in.h: Simply delegate to the system's header
1017         in the BSDish cases as well.  Problem reported by Mike Miller in
1018         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
1019         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
1020         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
1021         wider than time_t.
1022
1023 2013-08-09  Pádraig Brady <P@draigBrady.com>
1024
1025         bootstrap: support checksum utils having -c but not --status
1026         * build-aux/bootstrap: Only look for sha1sum if updating po files.
1027         Add sha1 to the list of supported checksum utils since it's now
1028         supported through adjustments below.
1029         (update_po_files): Remove the use of --status
1030         in a way that will suppress all error messages, but since this is
1031         only used to minimize updates, it shouldn't cause an issue.
1032         Exit early if there is a problem updating the po file checksums.
1033         (find_tool): Remove the check for --version support as this
1034         is optional as per commit 86186b17.  Don't even check for the
1035         presence of the command as if that is needed, it's supported
1036         through configuring prerequisites in bootstrap.conf.
1037         Prompt that when a tool isn't found, one can define an environment
1038         variable to add to the hardcoded search list.
1039
1040 2013-08-05  Jim Meyering  <meyering@fb.com>
1041
1042         regex: port to non-glibc/lock-using systems
1043         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
1044         system with GNULIB_LOCK would fail due to absence of the
1045         included "glthread/lock.h".  This would affect any package
1046         for which the "lock" module is used only by the regex module,
1047         and not explicitly used.
1048         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
1049         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
1050         Add a dependency on the "lock" module.
1051
1052 2013-07-20  Daiki Ueno  <ueno@gnu.org>
1053
1054         localecharset: make locale_charset thread-safe on Mac OS X
1055         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
1056         instead of MB_CUR_MAX.
1057
1058 2013-07-20  Daiki Ueno  <ueno@gnu.org>
1059
1060         gettext: update to version 0.18.3
1061         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
1062         require AC_PROG_SED to allow user to specify custom sed command when
1063         generating en@quot PO file.
1064
1065 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
1066
1067         bootstrap: use correct source when copying build-aux files
1068         * build-aux/bootstrap (gnulib_extra_files): This variable is
1069         relative to upstream gnulib layout, not downstream.
1070
1071 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
1072
1073         tmpdir: fix bug in VMS port
1074         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
1075         See Steven M. Schweda in
1076         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
1077
1078 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1079
1080         tmpdir: port to VMS, to // != /, and to long dirs
1081         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
1082         __secure_getenv, so that we're more like the glibc version.
1083         All uses changed.
1084         (path_search): Don't put slash after directory if __VMS.
1085         Problem reported by Steven M. Schweda in
1086         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
1087         Simplify code to add slash; no need for a loop.
1088         Do not remove trailing slash from "//".
1089         Do not assume dlen <= INT_MAX.
1090
1091 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1092
1093         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
1094         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
1095         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
1096         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
1097
1098         accept4, dup3, pipe2: port to Cygwin
1099         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
1100         * lib/accept4.c (accept4) [O_BINARY]:
1101         * lib/dup3.c (dup3) [O_BINARY]:
1102         * lib/pipe2.c (pipe2) [O_BINARY]:
1103         Use set_binary_mode, not setmode.
1104         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
1105         * modules/binary-io (Depends-on): Remove module indicator.
1106         These last two bits undo the previous change to pipe2 and binary-io.
1107
1108 2013-07-09  Pádraig Brady  <P@draigBrady.com>
1109
1110         mountlist: add support for deallocating returned list entries
1111         * lib/mountlist.c (free_mount_entry): A new exported function
1112         to deallocate a mount list entry.
1113         (read_file_system_list): Refactor to use the new deallocation function.
1114         Suggested by Anton Ovchinnikov.
1115
1116 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1117
1118         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
1119         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
1120         * lib/stdalign.in.h (_Alignas, _Alignof):
1121         Port to FreeBSD 9.1, and to C11 and C++11.
1122         (_Alignas): Also support ICC.
1123         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
1124         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
1125
1126 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1127
1128         fnmatch: don't goto over declaration
1129         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
1130         undefined behavior for goto over a declaration.
1131         Problem reported by Charlie Brown in
1132         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
1133
1134         pipe2: decouple from binary-io a bit
1135         This is for Emacs, which needs pipe2 but not binary-io.
1136         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
1137         * modules/binary-io (Depends-on): Add module indicator.
1138
1139 2013-07-03  Eric Blake  <eblake@redhat.com>
1140
1141         mgetgroups: relax license to LGPLv2+
1142         * modules/getugroups (License): Change from GPLv3+.
1143         * modules/mgetgroups (License): Likewise.
1144         * modules/getgroups (License): Change from LGPLv3+.
1145
1146         xalloc-oversized: relax license to LGPLv2+
1147         * modules/xalloc-oversized (License): Change from GPLv3+.
1148
1149         nproc: relax license to LGPLv2+
1150         * modules/nproc (License): Change from LGPLv3+.
1151
1152         bootstrap: honor --no-git
1153         * build-aux/bootstrap: Don't even try to use git when user is
1154         pointing to a static checkout.
1155
1156 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1157
1158         ignore-value: port to gcc -pedantic
1159         * lib/ignore-value.h (ignore_value):
1160         Port to gcc -pedantic, by using __extension__.
1161         Reindent as per usual gnulib style nowadays.
1162         Simplify GCC version check.
1163
1164 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1165
1166         extern-inline: port to gcc -std=c89
1167         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1168         Do not use __gnu_inline__ if pedantic and pre-C99.
1169
1170 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1171
1172         doc: document extern-inline
1173         * doc/extern-inline.texi: New file.
1174         * doc/gnulib.texi (alloca-opt): Include it.
1175         * m4/extern-inline.m4: Move some comments to documentation,
1176         and others closer to what they describe.
1177
1178         doc: chatter less
1179         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1180         (updated-stamp): Use it.  This causes 'make' to output just
1181         one file name rather than zillions.
1182
1183         fflush, fseeko: port to musl cross-compiles
1184         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1185         on some implementation that (1) is not known to be buggy,
1186         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1187         cross-compiled to so we can't easily check for lack of
1188         conformance.  This is for cross-compiling to musl.
1189         Reported by Rich Felker in
1190         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1191         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1192         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1193         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1194         Adjust to above change.
1195         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1196         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1197         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1198         known not to work, or unknown.
1199
1200 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1201
1202         msvc-inval: port to mingw-w64
1203         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1204         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1205         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1206
1207 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1208
1209         getcwd-lgpl: port to Tru64
1210         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1211         Problem reported by Steven M. Schweda in
1212         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1213
1214         tests: port large-fd POSIX spawn tests to OS X
1215         Problem reported by Daiki Ueno in
1216         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1217         * tests/test-posix_spawn_file_actions_addclose.c:
1218         * tests/test-posix_spawn_file_actions_adddup2.c:
1219         * tests/test-posix_spawn_file_actions_addopen.c:
1220         Include <limits.h>, for OPEN_MAX, if available.
1221         (big_fd): New static function.
1222         (main): Use it.
1223
1224 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1225
1226         tests/nap.h: use an adaptive delay to avoid ctime update issues
1227         The recent change in nap.h (5191133e) decreased the probability of lost
1228         races to about a third, however such problems could still be observed
1229         in virtual machines and openSUSE's OBS.
1230         Before, nap() detected the needed time once empirically and then used
1231         that delay (together with a small correction multiplier) in further
1232         calls.  This problem has been reported and discussed several times,
1233         including guesses about possible kernel issues:
1234         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1235         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1236         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1237         http://bugs.gnu.org/12820
1238         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1239         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1240         Now, nap() avoids the race alltogether by verifying on a reference
1241         file whether a timestamp difference has happened.
1242         * tests/nap.h (nap_fd): Define file descriptor variable for the
1243         witness file.
1244         (nap_works): Change return value to bool.  Change passing
1245         the old file's status by value instead of by reference as this function
1246         does no longer update that timestamp; rename the function argument from
1247         st to old_st.  Remove the local variables cdiff and mdiff because that
1248         function now returns true/false instead of the precise delay.
1249         (guess_delay): Remove function.
1250         (clear_tmp_file): Add new function to close and unlink the witness file.
1251         (nap): Instead of re-using the delay which has been calculated during
1252         the first call, avoid the race by actually verifying that a timestamp
1253         difference can be observed on the current file system.  Use an adaptive
1254         approach for the delay to minimize execution time.  Assert that the
1255         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1256         = 2^31 - 1 = 2.1s.
1257         Use atexit to call clear_tmp_file when the process terminates.
1258
1259 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         sig2str: port to C++
1262         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1263         Reported by Daniel J Sebald in
1264         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1265
1266 2013-05-30  Eric Blake  <eblake@redhat.com>
1267
1268         docs: mention cygwin shortcoming in <sys/un.h>
1269         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1270
1271         vasnprintf: silence mingw compiler warning
1272         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1273
1274 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1275
1276         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1277         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1278         This fixes a porting bug I recently reintroduced in regex, and
1279         some other instances that I discovered while testing the fix.
1280         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1281         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1282         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1283         with an empty argument if this is a pedantic pre-C99 GCC.
1284         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1285         pre-C11 GCC.
1286
1287         regex: adapt to locking regime instead of depending on pthread
1288         Instead of depending on pthread, adapt to whatever thread
1289         modules are in use.  Problem reported by Ludovic Courtès in
1290         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1291         and by Mats Erik Andersson in
1292         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1293         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1294         Support either the 'lock' module, or the 'pthread' module, or
1295         no module.
1296         (lock_lock, lock_unlock): New macros.
1297         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1298         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1299         * modules/regex (Depends-on): Remove pthread.
1300
1301 2013-05-22  Eric Blake  <eblake@redhat.com>
1302
1303         getgroups: document portability issues
1304         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1305         multithread safety.
1306         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1307         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1308         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1309         getugroups.
1310         * doc/posix-functions/getgroups.texi (getgroups): Mention
1311         multithread safety and mgetgroups.
1312
1313 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1314
1315         test-lchown, test-chown: also skip test if chown fails with EPERM
1316         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1317         skip this test, to handle FAT file systems.
1318         * tests/test-chown.h (test_chown): Likewise.
1319
1320 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1321
1322         regex: fix dfa race in multithreaded uses
1323         Problem reported by Ludovic Courtès in
1324         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1325         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1326         New macros.  All uses of __libc_lock_define, __libc_lock_init
1327         changed to use the first two of these.
1328         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1329         non-glibc platforms.
1330         (struct re_dfa_t): Define the lock unconditionally.
1331         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1332         '#ifdef _LIBC"s.
1333         * modules/regex (Depends-on): Add pthread, if we use the
1334         included regex.
1335
1336         * lib/regcomp.c: Do actions that are not needed for glibc,
1337         but may be needed elsewhere.
1338         (regfree, re_compile_internal): Destroy the lock.
1339         (re_compile_internal): Check for lock-initialization failure.
1340
1341         malloca: port to compilers that reject size-zero arrays
1342         This fixes a bug introduced in my previous patch.
1343         * lib/malloca.c (struct preliminary_header): Use an int
1344         rather than a character array of size int; that's simpler.
1345         (struct header): Remove, replacing with ...
1346         (union header): New type.  This avoids the need for declaring a
1347         character array of size zero, which is not allowed on some platforms.
1348         All uses changed.
1349
1350 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1351
1352         parse-datetime, tests: don't use "string" + int
1353         Recent versions of 'clang' complain about C source code that
1354         uses expressions of the form '"string literal" + integer',
1355         I guess on the theory that it's confusing for readers who are
1356         used to C++.  On those grounds I suppose it's OK to make this
1357         minor style change.
1358         * lib/parse-datetime.y (parse_datetime):
1359         * tests/test-fchdir.c (main):
1360         * tests/test-snprintf-posix.h (test_function):
1361         * tests/test-snprintf.c (main):
1362         * tests/test-vasnprintf-posix.c (test_function):
1363         * tests/test-vasnprintf.c (test_function):
1364         * tests/test-vsnprintf.c (main):
1365         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1366         Rewrite '"str" + E' to '&"str"[E]'.
1367
1368 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1369
1370         argmatch: port to C++
1371         * lib/argmatch.h [__cplusplus]: Add extern "C".
1372
1373         argp: typo fix
1374         * lib/argp-help.c: Typo in comment.
1375
1376 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1377
1378         manywarnings: update for GCC 4.8.0
1379         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1380         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1381         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1382         -Wmissing-noreturn, as they are duplicates of other warnings.
1383         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1384         was documented to be flaky in earlier versions of GCC.
1385
1386         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1387         * tests/test-spawn.c (main):
1388         * tests/test-sys_socket.c (main):
1389         * tests/test-sys_wait.c (main):
1390         Don't have a switch value that isn't covered by a case.
1391
1392         getaddrinfo-tests: port --enable-gcc-warnings to clang
1393         * tests/test-getaddrinfo.c (simple):
1394         Avoid casts from looser to stricter-aligned pointers.
1395
1396         thread: port --enable-gcc-warnings to clang
1397         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1398         Include <signal.h>, to pacify a warning about pthread_sigmask.
1399
1400         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1401         * lib/stdio.in.h (fwrite):
1402         When working around bug 11959, use __REDIRECT rather than '#define
1403         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1404         fix the -Wunused-value issue with clang, and it works with GCC too.
1405         Problem with targeting reported by Eric Blake in
1406         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1407         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1408         debugging the fwrite issue.
1409
1410         stdio: port --enable-gcc-warnings to clang
1411         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1412         since the GCC workaround for fwrite does not pacify clang.
1413
1414         sig2str: port --enable-gcc-warnings to clang
1415         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1416
1417         obstack: port --enable-gcc-warnings to clang
1418         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1419         Avoid casts from looser to stricter-aligned pointers.
1420
1421         memchr2: port --enable-gcc-warnings to clang
1422         * lib/memchr2.c (memchr2):
1423         Avoid casts from looser to stricter-aligned pointers.
1424
1425         mbsstr: port --enable-gcc-warnings to clang
1426         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1427         Avoid casts from looser to stricter-aligned pointers.
1428
1429         malloca: port --enable-gcc-warnings to clang
1430         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1431         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1432
1433         inttostr: port --enable-gcc-warnings to clang
1434         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1435
1436         warnings: port to clang
1437         Problem reported by Daniel P. Berrange via Eric Blake in
1438         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1439         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1440         (gl_WARN_ADD): Use it.
1441
1442 2013-05-11  Jim Meyering  <meyering@fb.com>
1443
1444         quotearg: do not read beyond end of buffer
1445         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1446         end of an ARG for which no length was specified.  With an N-byte
1447         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1448         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1449         via coreutils' misc/sort-debug-keys.sh test and detected by running
1450         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1451         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1452         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1453         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1454         characters correctly."
1455
1456 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1457
1458         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1459         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1460         compilation target is Mac OS X 10.6.
1461         Problem reported by parafin and Andoni Morales in
1462         <http://savannah.gnu.org/bugs/?37844> and
1463         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1464
1465 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1466
1467         mkdir-p: remove assumptions about umask and mode
1468         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1469         umask is 0, or that MODE is a subset of MODE_BITS.
1470
1471 2013-05-10  Eric Blake  <eblake@redhat.com>
1472
1473         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1474         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1475
1476 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1477
1478         deps: require Automake >= 1.9.6 in generated Makefile fragments
1479
1480         That is the same minimal version required in the DEPENDENCIES file.
1481         Moreover, the old code generated a requirement of Automake >= 1.5,
1482         and that is an insanely outdated version.
1483
1484         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1485         * tests/havelib/rpathlx/Makefile.am: Likewise.
1486         * tests/havelib/rpathly/Makefile.am: Likewise.
1487         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1488         * tests/havelib/rpathlz/Makefile.am: Likewise.
1489         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1490         * tests/havelib/rpathx/Makefile.am: Likewise.
1491         * tests/havelib/rpathy/Makefile.am: Likewise.
1492         * tests/havelib/rpathz/Makefile.am: Likewise.
1493
1494 2013-05-08  Eric Blake  <eblake@redhat.com>
1495
1496         bootstrap: AC_INIT may have more than four parameters
1497         * build-aux/bootstrap (extract_package_name): Correctly extract
1498         non-empty tarname field.  Avoid range in regex.
1499         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1500
1501 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1502
1503         qacl: port to MS-Windows port of GNU Emacs
1504         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1505         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1506         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1507         <http://bugs.gnu.org/14295#14>.
1508
1509 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1510
1511         acl: include quote.h
1512         * lib/copy-acl.c: Include quote.h.
1513         * lib/set-acl.c: Likewise.
1514
1515 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1516
1517         fchownat, renameat, unlinkat: update statat dependencies
1518         These modules use statat and lstatat, not fstatat; so depend on
1519         the statat module, which was split out recently from fstatat.
1520         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1521         * modules/renameat: Likewise.  Also delete fstat.
1522         URL: http://bugs.gentoo.org/468790
1523
1524 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1525
1526         Assume gnulib is checked out from Git, not CVS
1527
1528         In fact, access to the gnulib repository through CVS has been
1529         disabled, or more precisely, got broken and was never restored; see:
1530         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1531
1532         Note that support for CVS is not removed completely and unthinkingly
1533         by this change: only support for CVS checkouts of gnulib itself is
1534         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1535         files and CVS directories, for the benefit of those poor gnulib clients
1536         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1537
1538         * gnulib-tool: Simplify accordingly.
1539         * posix-modules: Likewise.
1540         * MODULES.html.sh: Likewise.
1541         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1542         repository.
1543         * doc/gnulib-intro.texi: Likewise.
1544         * doc/gnulib-readme.texi: Likewise.
1545         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1546         sample '.gitignore' file rather than a sample '.cvsignore'.
1547         * NEWS: Update.
1548         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1549         to "CVS Autoconf" rather than "git Autoconf".
1550
1551 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1552
1553         utimensat-tests, etc.: try to fix some races
1554         Problem reported by Bernhard Voelker in
1555         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1556         I don't know whether this patch fixes that race condition, but it
1557         fixes *some* race conditions, so it should be a win.
1558         * modules/chown-tests (Depends-on):
1559         * modules/fchownat-tests (Depends-on):
1560         * modules/fdutimensat-tests (Depends-on):
1561         * modules/futimens-tests (Depends-on):
1562         * modules/lchown-tests (Depends-on):
1563         * modules/stat-time-tests (Depends-on):
1564         * modules/utimens-tests (Depends-on):
1565         * modules/utimensat-tests (Depends-on):
1566         Depend on nanosleep, not usleep.
1567         * modules/chown-tests (test_chown_LDADD):
1568         * modules/lchown-tests (test_lchown_LDADD):
1569         * modules/stat-time-tests (test_stat_time_LDADD):
1570         New macro.
1571         * modules/fchownat-tests (test_fchownat_LDADD):
1572         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1573         * modules/futimens-tests (test_futimens_LDADD):
1574         * modules/utimens-tests (test_utimens_LDADD):
1575         * modules/utimensat-tests (test_utimensat_LDADD):
1576         Add $(LIB_NANOSLEEP).
1577         * modules/stat-time-tests (Files): Add tests/nap.h.
1578         * tests/nap.h: Include <limits.h>, for INT_MAX.
1579         (lt_mtime): Remove.
1580         (diff_timespec): New function.
1581         (get_stat): Rename from get_mtime.  All callers changed.
1582         (nap_works): Determine the needed delay by inspecting the
1583         file system's timestamp jumps; this should be more reliable.
1584         Look at both mtime and ctime, and take the maximum of the two jumps.
1585         (nap_works, guess_delay):
1586         Return a nanosecond cound, not a microsecond count.
1587         All callers changed.
1588         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1589         failure.
1590         (nap): Multiply the guess by 1.125, to accommodate the case where
1591         the file system's clock is a bit slower than nanosleep's clock.
1592         * tests/test-stat-time.c (BASE): New macro.
1593         Include nap.h.
1594         (nap): Remove; nap.h now defines this.  This removes a duplicate
1595         implementation of 'nap'.
1596
1597         utimens, utimensat: work around Solaris UTIME_OMIT bug
1598         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1599         Linux kernel 2.6.32 does.  Work around it in the same way.
1600         * doc/posix-functions/futimens.texi (futimens):
1601         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1602         * lib/utimens.c (fdutimens, lutimens):
1603         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1604
1605         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1606         Formerly, it was your responsibility to do this for all Makefile.ams
1607         other than Gnulib's.  Now it's your responsibility to do it for
1608         Gnulib's Makefile.am, too.
1609         * NEWS: Document this.
1610         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1611
1612         acl: include errno.h to get errno
1613         Reported by Daiki Ueno in
1614         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1615         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1616
1617 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1618
1619         tests: don't assume getdtablesize () <= 10000000
1620         * modules/cloexec-tests:
1621         * modules/dup2-tests:
1622         * modules/dup3-tests:
1623         * modules/nonblocking-tests:
1624         * modules/posix_spawn_file_actions_addclose-tests:
1625         * modules/posix_spawn_file_actions_adddup2-tests:
1626         * modules/posix_spawn_file_actions_addopen-tests:
1627         * modules/unistd-safer-tests:
1628         Depend on the getdtablesize module.
1629         * tests/test-cloexec.c:
1630         * tests/test-dup-safer.c:
1631         * tests/test-dup2.c:
1632         * tests/test-dup3.c:
1633         * tests/test-fcntl.c:
1634         * tests/test-nonblocking.c:
1635         * tests/test-posix_spawn_file_actions_addclose.c:
1636         * tests/test-posix_spawn_file_actions_adddup2.c:
1637         * tests/test-posix_spawn_file_actions_addopen.c:
1638         Don't assume getdtablesize () <= 10000000.
1639
1640 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1641
1642         extern-inline: work around bug in Sun c99
1643         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1644         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1645
1646 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         qacl: new module, broken out from the acl module
1649         This is for GNU Emacs, which wants the acl functions but does
1650         not want 'error' invoked when they fail.
1651         * lib/acl-internal.h: Do not include error.h, quote.h.
1652         (ENOSYS, ENOTSUP): Remove; no longer needed.
1653         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1654         * lib/acl.h: Include <stdbool.h>.
1655         (acl_errno_valid): New function.
1656         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1657         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1658         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1659         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1660         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1661         * lib/file-has-acl.c (file_has_acl):
1662         * lib/qcopy-acl.c (qcopy_acl):
1663         * lib/qset-acl.c (qset_acl):
1664         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1665         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1666         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1667         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1668         Add lib/set-acl.c.
1669         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1670         Add qacl.
1671         (configure.ac): Move gl_FUNC_ACL to qacl module.
1672         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1673         Rename set-mode-acl.c to set-acl.c.
1674         * lib/acl-errno-valid.c: New file.
1675         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1676         copy_acl function remains in copy-acl.c.
1677         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1678         (_): Remove; not needed.
1679         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1680         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1681         * modules/qacl: New file, moved from the old modules/acl.
1682         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1683         Remove set-mode-acl.c, copy-acl.c.
1684         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1685
1686         alignof, intprops, malloca: port better to IBM's C compiler
1687         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1688         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1689         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1690
1691 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1692
1693         wctype-h: fix gettext link error on mingw
1694         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1695         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1696         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1697         rpl_towupper and rpl_towupper.
1698
1699 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1700
1701         regex-tests, regex: allow glibc re_search behavior
1702         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1703         re_search input data to make the multi-character collating element
1704         in it clearly visible, and treat re_search return code 0 as valid.
1705         * m4/regex.m4 (gl_REGEX): Likewise.
1706
1707 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         stdalign: doc fix
1710         * doc/posix-headers/stdalign.texi (stdalign.h):
1711         Gnulib doesn't support '_Alignof expr'.
1712
1713 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1714
1715         stdalign: port to stricter ISO C11
1716         ISO C11 says that _Alignof's operand must be a parenthesized type.
1717         Problem reported by Eli Zaretskii in
1718         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1719         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1720         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1721
1722 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1723
1724         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1725         Problem reported by Marco Atzeri in
1726         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1727         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1728         Simply delegate to the system <sys/select.h> in this case too.
1729         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1730         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1731         be needed on Solaris either.
1732         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1733         Simply delegate to the system <sys/time.h> in this case.
1734
1735 2013-03-19  Karl Berry  <karl@gnu.org>
1736
1737         * build-aux/gnupload: check for erroneous (with gnupload) use of
1738         ftp-upload.gnu.org, tweak help.
1739
1740 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1741
1742         copy-file, rpmatch: fix problems found by cppcheck
1743         Reported by Arno Onken in
1744         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1745         * lib/rpmatch.c (try): Fix memory leak.
1746         * lib/copy-file.c: Include "ignore-value.h".
1747         (qcopy_file_preserving): Ignore chown value.
1748         * modules/copy-file (Depends-on): Add ignore-value.
1749
1750 2013-01-27  Jim Meyering  <jim@meyering.net>
1751
1752         prefix-gnulib-mk: give better diagnostics
1753         * build-aux/prefix-gnulib-mk: Don't just "die".
1754         Give better diagnostics upon failure.
1755
1756 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1757
1758         putenv: port to Solaris 10
1759         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1760         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1761         is not what is wanted here.
1762         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1763         declaration, not for its existence.
1764
1765 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         mktime: fix configure typo
1768         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1769
1770 2013-03-12  Eric Blake  <eblake@redhat.com>
1771
1772         regex-tests: skip UTF-8 test on mingw
1773         * modules/regex-tests (Depends-on): Add localcharset.
1774         * tests/test-regex.c (main): Use it to skip test on mingw.
1775
1776 2013-03-11  Eric Blake  <eblake@redhat.com>
1777
1778         tests: make it easier to bypass alarm time in debugger
1779         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1780         * tests/test-memmem.c (main): Likewise.
1781         * tests/test-passfd.c (main): Likewise.
1782         * tests/test-ptsname.c (main): Likewise.
1783         * tests/test-ptsname_r.c (main): Likewise.
1784         * tests/test-strcasestr.c (main): Likewise.
1785         * tests/test-strstr.c (main): Likewise.
1786
1787         regex: port to mingw's recent addition of undeclared alarm
1788         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1789         exists but still doesn't work in newer mingw.
1790         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1791         not existence.  Ensure SIGALRM is not trapped.
1792         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1793         * m4/regex.m4 (gl_REGEX): Likewise.
1794         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1795         * tests/test-regex.c (main): Use correct probe for alarm.
1796
1797         putenv: avoid compilation warning on mingw
1798         * lib/putenv.c (_unsetenv): Protect variable declaration.
1799         (putenv): Fix indentation.
1800
1801 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1802
1803         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1804         * lib/unistd.in.h: be careful not to include un-needed system
1805         stdlib.h from here, because that prevents gnulib stdlib.h from
1806         defining rpl_strtod correctly.
1807
1808 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1809
1810         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1811         changesets, but for the 'precision 0' test.
1812         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1813         round-to-even, since POSIX says rounding is implementation-defined
1814         and OS X 10.8.2 rounds 1.51 to 1 here.
1815
1816         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1817         changeset.
1818         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1819         round-to-even, since POSIX says rounding is implementation-defined
1820         and OS X 10.8.2 rounds 1.5 to 1 here.
1821
1822 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1823
1824         vasnprintf-posix-tests: allow rounding 1.5 to 1
1825         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1826         round-to-even, since POSIX says rounding is implementation-defined
1827         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1828         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1829
1830         bootstrap: port to FreeBSD
1831         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1832         that treat '--' differently.  Reported by Mats Erik Andersson in
1833         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1834
1835 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1836
1837         regex: rename remaining __attribute calls to __attribute__.
1838         2012-02-25 changed definition of __attribute, but left some uses
1839         unchanged, preventing compilation of regex module on most non-gcc
1840         environments.
1841         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1842         (lookup_collation_sequence_value, build_range_exp)
1843         (build_collating_symbol): Set attributes with newly renamed
1844         __attribute__ decorator.
1845         * lib/regex_internal.c (re_string_peek_byte_case)
1846         (re_node_set_compare, re_node_set_contains): Likewise.
1847         * lib/regexec.c (acquire_init_state_context): Likewise.
1848
1849 2013-03-06  Bruno Haible  <bruno@clisp.org>
1850
1851         execute: Revert last change, but use a different condition.
1852         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1853         on Windows.
1854
1855 2013-03-05  Eric Blake  <eblake@redhat.com>
1856
1857         execute: drop dead code
1858         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1859
1860 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1861
1862         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1863         * m4/non-recursive-gnulib-prefix-hack.m4
1864         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1865         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1866         <http://bugs.gnu.org/10305#237>.
1867
1868 2013-03-04  Eric Blake  <eblake@redhat.com>
1869
1870         test-getsockopt: avoid compiler warning
1871         * tests/test-getsockopt.c (includes): Ensure close is declared.
1872
1873 2013-03-02  Bruno Haible  <bruno@clisp.org>
1874
1875         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1876         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1877
1878 2013-03-02  Bruno Haible  <bruno@clisp.org>
1879
1880         gettext: Update to version 0.18.2.
1881         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1882         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1883                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1884
1885 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1886
1887         regex: merge patches from libc
1888
1889         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1890         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1891         All uses changed.
1892         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1893         (re_string_wchar_at, re_string_elem_size_at):
1894         Mark function as possibly unused.
1895
1896         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1897         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1898         elements compare against the byte sequence of it, not its name.
1899
1900 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1901
1902         putenv: port better to native Windows
1903         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1904         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1905         (_unsetenv): Use _putenv if available.
1906         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1907         a bit less likely to cause damage.
1908         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1909         Fix the wrong value with SetEnvironmentVariable.
1910         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1911         code better.
1912
1913 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1914
1915         regex: ignore old-style-definition warnings
1916         * lib/regex.c: Add pragma to ignore these warnings.
1917         Problem reported for GNU tar by Pavel Raiskup.
1918
1919 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1920
1921         getcwd: support coreutils better
1922         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1923         but this might not be correct in coreutils, which disables
1924         the raw decl checks.  Problem reported by Nagendra in
1925         <http://bugs.gnu.org/10305#192>.
1926         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1928         Test the getcwd function, not any macro, since getcwd.c wants the
1929         function.
1930         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1931         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1932         compile, as might happen if there's a macro but no function.
1933
1934         strtod: support coreutils better
1935         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1936         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1937         disables the raw decl checks.  This assumes there is an underlying
1938         strtod, but that's a safe assumption these days.
1939         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1940
1941         mountlist: port to HP NonStop
1942         Reported by Joachim Schmitz in
1943         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1944         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1945         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1946
1947 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         extern-inline: avoid compilation error with HP-UX cc
1950         Reported by Richard Lloyd in
1951         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1952         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1953         Suppress extern inline with HP-UX cc.  This should be safe,
1954         though it may hurt performance.  Perhaps someone with some HP-UX
1955         experience can come up with a higher-performance fix.
1956
1957 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1958
1959         putenv: fix heap corruption with mixed putenv/_putenv
1960         Problem reported by Michael Goffioul in
1961         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1962         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1963         Rely on _putenv to allocate the new environment.
1964         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1965         * modules/putenv (configure.ac): Use it.
1966
1967 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1968
1969         unsetenv etc.: port to Solaris 11 + GNU Emacs
1970         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1971         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1972         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1973         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1974         idea but is too painful to fix right now), and without this gnulib
1975         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1976         compiling unsetenv.c on Solaris 11.  Fix the problem for
1977         unsetenv.c, and fix other similar occurrences.
1978
1979 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1980
1981         secure_getenv: fix C++ declaration typo
1982         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1983         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1984         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1985
1986 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1987
1988         careadlinkat: stop exporting careadlinkatcwd
1989         Only Emacs used it directly, and Emacs no longer needs it.
1990         * NEWS: Document this simplification.
1991         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1992         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1993         for readlink.
1994         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1995         Don't include stdlib.h; no longer needed.
1996         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1997         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1998         * modules/areadlink (Depends-on): Add readlink.
1999         (Maintainer): Add self.
2000         * modules/careadlinkat (Depends-on): Remove readlink.
2001
2002         extensions: port better to HP-UX
2003         This is merged from git Autoconf.
2004         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2005         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
2006         so that it's compatible with the value used when compiling.
2007
2008         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
2009         Problem reported by Mats Erik Andersson in
2010         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
2011         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
2012         openpty function exists, not merely when we intend to replace it.
2013         This corrects the 2013-01-31 patch, which mistakenly defined
2014         HAVE_OPENPTY even on hosts that lacked it.
2015
2016 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2017
2018         secure_getenv: fix include typo
2019         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
2020
2021         secure_getenv: port better to FreeBSD and Solaris
2022         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
2023         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
2024         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
2025         This works better on BSDish platforms.
2026         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
2027         Test for issetugid if __secure_getenv is missing.
2028
2029 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2030
2031         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
2032         Some of these changes are merged in from git Autoconf.
2033         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2034         When deciding whether to define _XOPEN_SOURCE, inspect the
2035         preprocessor macro __hpux instead of the more-heavyweight
2036         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
2037         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
2038         as the key for __EXTENSIONS__.
2039
2040         unistd: avoid namespace pollution on non-glibc systems
2041         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
2042         This avoids namespace pollution on non-glibc systems, by causing
2043         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
2044         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
2045         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
2046
2047 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2048
2049         tmpdir: use secure_getenv
2050         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
2051         Define to secure_getenv, not getenv.
2052         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
2053         as that's now secure_getenv's job.
2054         * modules/tmpdir (Depends-on): Add secure_getenv.
2055
2056         tempname: use secure_getenv
2057         * lib/tempname.c (__secure_getenv) [!_LIBC]:
2058         Define to secure_getenv, not getenv.
2059         * modules/tempname (Depends-on):
2060         Add secure_getenv.
2061
2062         secure_getenv: new module
2063         * MODULES.html.sh (Extra functions based on ANSI C 89):
2064         Add secure_getenv.
2065         * doc/glibc-functions/secure_getenv.texi: New file.
2066         * doc/gnulib.texi: Include it.
2067         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
2068         New files.
2069         * lib/stdlib.in.h (secure_getenv): New decl.
2070         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
2071         * modules/stdlib (stdlib.h):
2072         Add secure_getenv checks.
2073
2074 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2075
2076         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
2077         Reported for OS X 10.8.2 by Assaf Gordon in
2078         <http://bugs.gnu.org/13516>.
2079         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
2080         !HAVE_OPENAT && !HAVE_FDOPENDIR.
2081         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
2082         so that they can be kept in sync more easily.  Avoid PATH_MAX
2083         test on the Hurd.  Sync from test-getcwd.c for errno tests after
2084         mkdir or chdir failure.
2085         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
2086         lib/getcwd.c.
2087         (test_abort_bug): Do not test for the deep directory bug unless we
2088         have openat support.  Avoid PATH_MAX test on the Hurd.
2089
2090         regex-tests, regex: fix bug: memset undeclared
2091         * tests/test-regex.c: Don't include regex.h twice.  Include
2092         string.h, to declare memset.  Christensen's report also mentioned
2093         this issue.
2094         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
2095         test-regex.c, to avoid future problems like this.  Remove
2096         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
2097         twice.
2098
2099         regex-tests: fix link errors on older Solaris
2100         These need to link with @LIBINTL@ to get libintl_gettext.
2101         Problem reported by Tom G. Christensen in
2102         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
2103         * modules/regex-tests (test_regex_LDADD): New macro.
2104
2105 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2106
2107         regex-tests: new module
2108         * modules/regex-tests, tests/test-regex.c: New files.
2109
2110         regex: fix off-by-one error in configure test
2111         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
2112
2113 2013-01-31  Eric Blake  <eblake@redhat.com>
2114
2115         regex: avoid infinite configure test
2116         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
2117
2118 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
2119
2120         openpty: fix bug where HAVE_OPENPTY wasn't defined
2121         See the thread starting at:
2122         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
2123         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
2124         openpty function exists, not merely when we intend to replace it.
2125
2126 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2127
2128         sys_time: port to Solaris 2.6
2129         There is a circularity problem on Solaris 2.6, where <time.h> includes
2130         <sys/time.h> for struct timespec.  The include nesting is gnulib
2131         <time.h>, system <time.h>, gnulib <sys/time.h>, system
2132         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
2133         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
2134         <sys/siginfo.h>; the last, innermost file needs struct
2135         timestruc_t, which is defined in <sys/time.h>, which has not been
2136         fully parsed.  Problem reported by Tom G. Christensen in
2137         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
2138         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
2139         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
2140         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
2141         uses split double-inclusion guards.
2142
2143 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2144
2145         regex: test for buffer overrun
2146         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2147         for the just-fixed regex bug.
2148
2149 2013-01-29  Andreas Schwab  <schwab@suse.de>
2150
2151         regex: fix buffer overrun in regexp matcher [BZ #15078]
2152         * lib/regexec.c (extend_buffers): Add parameter min_len.
2153         (check_matching): Pass minimum needed length.
2154         (clean_state_log_if_needed): Likewise.
2155         (get_subexp): Likewise.
2156
2157 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2158
2159         mountlist: don't consider "devtmpfs" as dummy
2160         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2161         as there is storage associcated with it.
2162
2163 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         futimens-tests, utimens-tests: Depend on gettext.
2166         This works around a problem introduced in my 2013-01-12 patch,
2167         which added @LIBINTL@ to these modules.
2168         * modules/futimens-tests (Depends-on):
2169         * modules/utimens-tests (Depends-on): Add gettext.
2170
2171 2013-01-26  Eric Blake  <eblake@redhat.com>
2172
2173         test-getpeername: fix typo
2174         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2175
2176 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2177
2178         bootstrap: remove the need for a sorted .gitignore file
2179         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2180         rename to insert_if_absent(), so that we don't need or generate
2181         a sorted .gitignore file.  We do require a .gitignore with no
2182         existing duplicate entries and enforce that.
2183         (sort_patterns): Remove this function as we now use the simpler
2184         technigue of inserting blacklist entries at the top of the file,
2185         assuming gnulib won't be inserting !whitelist entries.
2186
2187 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2188
2189         readlinkat: don't depend on gl_FUNC_OPENAT
2190         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2191         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2192         renameat.m4, symlinkat.m4; but one thing at a time.
2193
2194         statat: new module, split out from fstatat
2195         GNU Emacs needs the POSIX-specified fstatat, but not the
2196         gnulib-specified statat and lstat.  Split the latter two into a
2197         new module 'statat'.
2198         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2199         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2200         Rename from FSTATAT_INLINE. All uses changed.
2201         * modules/fstatat (Files): Remove lib/statat.c.
2202         (gl_MODULE_INDICATOR([fstatat])): Remove.
2203         (lib_SOURCES): Remove.
2204         (Maintainer): Add self.
2205         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2206         * tests/test-fstatat.c (BASE): Don't define if already defined.
2207         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2208
2209 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2210
2211         tests: don't assume fd 99 is closed
2212         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2213         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2214         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2215         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2216         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2217         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2218         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2219         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2220         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2221         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2222         * tests/test-fwrite.c, tests/test-getpeername.c:
2223         * tests/test-getsockname.c, tests/test-getsockopt.c:
2224         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2225         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2226         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2227         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2228         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2229         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2230         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2231         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2232         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2233         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2234         Close file descriptor 99, instead of assuming it's already closed.
2235
2236 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2237
2238         stpncpy: port to OS X 10.8
2239         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2240         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2241
2242 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2243
2244         unistd: port to recent mingw
2245         * lib/unistd.in.h: Remove special invocation convention for mingw,
2246         which breaks for the latest mingw version.  See John W. Eaton in
2247         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2248
2249         largefile: port better to Mac OS X 10.5
2250         This patch is backported from Autoconf git.
2251         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2252         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2253         with ino_t size being different for configuration time versus
2254         build/run time.  Problem reported by PHO in
2255         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2256
2257 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2258
2259         doc: clarify -Werror
2260         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2261         clarify that it's intended for developers, not for ordinary builds,
2262         and mention --enable-gcc-warnings as one possible use.
2263
2264 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2265
2266         stdint: fix build with Android's Bionic fox x86
2267         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2268         was already included as _SSIZE_T_DEFINED_ might also be defined
2269         in include/machine/_types.h, which is included by stdio.h
2270
2271 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2272
2273         net_if-tests: port to Solaris 7 + GCC 3.4.6
2274         Problem reported by Tom G. Christensen in
2275         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2276         * tests/test-net_if.c (ni): Move to next the code that uses it,
2277         so that it's declared only if needed.
2278
2279 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         net_if-tests: port to older Solaris
2282         Problem reported by Tom G. Christensen in
2283         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2284         * modules/net_if-tests (NET_IF_LIB): New substitution.
2285         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2286         (HAVE_IF_NAMEINDEX): New C macro.
2287         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2288
2289         system-quote-tests: port to older Solaris
2290         Problem reported by Tom G. Christensen in
2291         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2292         * tests/test-system-quote-child.c (fopen, fread): Undef.
2293
2294         c-xvasprintf etc.: fix link errors on older Solaris
2295         These need to link with @LIBINTL@ to get libintl_gettext.
2296         Problem reported by Tom G. Christensen in
2297         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2298         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2299         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2300         * modules/futimens-tests (test_futimens_LDADD):
2301         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2302
2303 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2304
2305         locale: port to Solaris 2.6 and 7 + GNU gettext
2306         * lib/locale.in.h: Just include_next <locale.h> when
2307         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2308         when combining the localename module with GNU gettext 0.18.2.
2309         Problem reported by Tom G. Christensen in
2310         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2311
2312 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2313
2314         stdlib: port to Solaris 2.6
2315         Also, the code worked on Solaris 7 through 9 only by accident.
2316         Problem reported by Tom G. Christensen in
2317         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2318         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2319         simply include the system stdlib.h.
2320         * lib/getopt.in.h (__need_system_stdlib_h):
2321         * lib/pthread.in.h (__need_system_stdlib_h):
2322         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2323         Define when including <stdlib.h>, to avoid problems at least for
2324         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2325         with the system stdlib.h.
2326
2327 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2328
2329         doc: update main copyright year
2330         * doc/gnulib.texi: Update copyright date.
2331
2332         doc: improve ISO 8601 discussion
2333         * doc/parse-datetime.texi (Combined date and time of day items):
2334         Specify more carefully what formats are supported and what is
2335         done with excess precision.
2336
2337 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         doc: avoid small caps
2340         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2341         they're more trouble than they're worth.  Suggested by Karl Berry
2342         in <http://bugs.gnu.org/13360>.
2343
2344         regex: conform to strict C
2345         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2346         From Aharon Robbins.
2347
2348         gnulib-tool: fix incompatibility with autopoint 0.18.2
2349         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2350         Problem reported by Tom G. Christensen in
2351         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2352
2353 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2354
2355         fprintftime: bring back and reword fwrite comment
2356         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2357
2358         stdio: remove now-unnecessary stdio.c
2359         Since stdio.in.h no longer uses inline functions, we no longer
2360         need to compile the extern versions.
2361         * lib/stdio.c: Remove.
2362         * modules/stdio (Files): Remove lib/stdio.c.
2363         (lib_SOURCES): Remove.
2364
2365         unicodeio: depend on stdio, not ignore-value
2366         * lib/unicodeio.c: Do not include ignore-value.h.
2367         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2368         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2369
2370         fprintftime: depend on stdio, not ignore-value
2371         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2372         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2373         since the stdio module arranges to silence that warning now.
2374         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2375
2376 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2377
2378         stdint-tests: Fix expanded-before-required-warning.
2379         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2380
2381 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2382
2383         fwrite: silence __wur only for older glibc versions
2384         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2385         This will help us remove this workaround some time in the far future.
2386
2387 2013-01-03  Eric Blake  <eblake@redhat.com>
2388
2389         fwrite: silence __wur without using inline
2390         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2391         just gcc, and in a way that avoids inline issues.
2392         * modules/stdio (Depends-on): Drop extern-inline.
2393
2394 2013-01-03  Jim Meyering  <jim@meyering.net>
2395
2396         update-copyright: avoid copyright notice date corruption
2397         Given a sequence of copyright year numbers in which the final
2398         one was a two-digit number that happened to be a substring of
2399         a preceding four-digit year number, we would mistakenly update
2400         the substring (from two- to four-digit) rather than the two-digit
2401         number at the end, which, combined with the addition of the current
2402         4-digit year number would yield two 5-digit year numbers, e.g.,
2403         here, it would convert the first "99" to "1999, 2013" rather than
2404         the final one:
2405           1991, 99
2406           11999, 20131, 1999
2407         * build-aux/update-copyright: Tighten a regexp.
2408         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2409         Reported by Joseph Myers in
2410         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2411
2412 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2413
2414         regex: omit needless signed-pointer casts
2415         * lib/regcomp.c (build_charclass, build_charclass_op):
2416         Use char *, not unsigned char *, for class name and extra.
2417         The char values are always nonnegative so there's no need to
2418         insist on unsigned char * here, and using char * removes the need
2419         for casts.  Reported by Aharon Robbins in
2420         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2421
2422         regex: support Gawk, which never uses alloca
2423         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2424         Do not include in this case.  Gawk doesn't supply a substitute
2425         alloca.h and doesn't need one.
2426
2427         regex: port __libc_lock_define usage to C89
2428         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2429         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2430         does not conform to C89, as it has an empty macro argument.
2431         Reported by Aharon Robbins in
2432         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2433
2434 2013-01-01  Eric Blake  <eblake@redhat.com>
2435
2436         maint: update all copyright year number ranges
2437         Run "make update-copyright".
2438
2439         version-etc: bump copyright year reported in --version
2440         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2441
2442 2012-12-31  Eric Blake  <eblake@redhat.com>
2443
2444         sigprocmask-tests: skip test if pid is unexpectedly large
2445         * tests/test-sigprocmask.c (main): Add range check.
2446
2447         git-version-gen: avoid test -z portability glitch
2448         * build-aux/git-version-gen: Prefer portable test spelling, since
2449         git-version-gen is run on more than just developer machines.
2450
2451 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2452
2453         git-version-gen: add --fallback option to use if git is not present
2454         * build-aux/git-version-gen: Add support for the new option --fallback,
2455         which comes into play when there is no $tarball_version_file and
2456         git is not working.
2457         (scriptversion): Update.
2458
2459         maint.mk: handle missing git with more grace
2460         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2461         Quietly proceed if git is not present.
2462
2463 2012-12-31  Eric Blake  <eblake@redhat.com>
2464
2465         dup2: work around cygwin bug
2466         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2467         * lib/dup2.c (rpl_dup2): Work around it.
2468         * doc/posix-functions/dup2.texi (dup2): Document it.
2469
2470 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2471
2472         regex: remove unnecessary dependency on localcharset.h
2473         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2474         hasn't been needed for years.
2475         * modules/regex (Depends-on): Remove localcharset.
2476
2477         regex: revert single-byte change
2478         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2479         to this function.  This was alredy fixed in a different way, at
2480         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2481         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2482         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2483
2484         regex: simplify based on Gawk version
2485         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2486         Reported by Aharon Robbins in
2487         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2488
2489 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2490
2491         regex: check that pattern char is single-byte
2492         Reported by Aharon Robbins in
2493         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2494         * lib/regexec.c (check_node_accept_bytes):
2495         Return 0 if the pattern string has a multibyte character here.
2496
2497         regex: implement rational ranges
2498         Reported by Aharon Robbins in
2499         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2500         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2501         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2502         Implement rational ranges.
2503
2504         regex: avoid redefining __wctype
2505         Reported by Aharon Robbins in
2506         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2507         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2508         #undef before defining.
2509
2510         regex: port to hosts where malloc (0) == NULL
2511         Reported by Aharon Robbins in
2512         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2513         * lib/regex_internal.c (re_node_set_alloc):
2514         Don't assume that malloc (0) yields nonnull.
2515         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2516         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2517         * modules/regex (Files): Add m4/eealloc.m4.
2518
2519         regex: port to C89
2520         Reported by Aharon Robbins in
2521         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2522         * lib/regcomp.c (init_word_char): Declaration before statement.
2523
2524         regex: merge glibc changes
2525         Also, copy the license wording from glibc.  This simplifies
2526         merging changes.  gnulib-tool will change the wording to GPL as
2527         appropriate, when importing it to other packages.  The only
2528         glibc change made since the last merge, which needs merging, is:
2529         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2530         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2531
2532         * users.txt: Add Emacs.
2533
2534         doc: omit mention of version when not needed
2535         * doc/gnulib-intro.texi (Portability and Application Code):
2536         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2537         Don't mention particular dates or versions when not necessary, so
2538         that the documentation won't go out of date so quickly.
2539
2540         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2541
2542 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2543
2544         bootstrap: pass --force to autoreconf.
2545         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2546         Add "--force" so that Automake's ylwrap and other such tools
2547         be updated at each bootstrap invocation.
2548         Use it.
2549
2550 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2551
2552         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2553         The earlier patch forgot to update one of the #if conditions, causing
2554         a problem on Debian testing i386 reported by Mats Erik Andersson
2555         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2556         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2557         (__argp_fmtstream_puts, argp_fmtstream_puts)
2558         (__argp_fmtstream_write, argp_fmtstream_write)
2559         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2560
2561         * doc/gnulib-readme.texi: Minor fixups.
2562         (Portability guidelines): Modernize URLs.  Remove some repetition.
2563         (Indent with spaces not TABs): Reword to avoid too-long lines.
2564         Remove some '@ifset standalone' stuff that isn't used.
2565
2566         * doc/gnulib-readme.texi (Portability guidelines):
2567         ctype.h, not ctime.h.
2568
2569         Correct name of POSIX.1-2001.
2570         * doc/posix-functions/fgetc.texi (fgetc):
2571         * doc/posix-functions/fgets.texi (fgets):
2572         * doc/posix-functions/fread.texi (fread):
2573         * doc/posix-functions/fscanf.texi (fscanf):
2574         * doc/posix-functions/getc.texi (getc):
2575         * doc/posix-functions/getchar.texi (getchar):
2576         * doc/posix-functions/scanf.texi (scanf):
2577         POSIX.1-2001, not POSIX-2001.
2578
2579         doc: move README into manual
2580         * README: Move contents to new file doc/gnulib-readme.texi.
2581         Replace with a one-line summary.
2582         * doc/gnulib.texi (Brief Overview): New section,
2583         with old intro preface.  Include gnulib-readme.texi for contents.
2584         (Philosophy): Rename from "Introduction", since this
2585         section no longer introduces the rest.  Write a new preface.
2586         * doc/gnulib-readme.texi: New file, with the old contents of
2587         README texinfo-ized.  This way, the README info appears
2588         in the online and printed manual.
2589
2590 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2591
2592         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2593         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2594         c_vasprintf() prototype.
2595
2596 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2597
2598         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2599         * lib/c-vasprintf.h: Remove stray semicolon.
2600
2601 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2604         It is obsolete and is planned to be removed from Automake 1.14; see
2605         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2606         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2607         (installdirs-data, installdirs-data-yes):
2608         Use $(MKDIR_P), not $(mkdir_p).
2609         * m4/intl.m4 (AM_INTL_SUBDIR):
2610         * m4/po.m4 (AM_PO_SUBDIRS):
2611         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2612
2613 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2614
2615         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2616         On this platform, we are not optimizing but we are using
2617         the substitute for extern inlines, so compile as if
2618         C99-style extern inline, or a substitute, is available.
2619         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2620         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2621         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2622         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2623         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2624         Declare as ARGP_FS_EI, not as extern.
2625         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2626         (__option_is_short, _option_is_end, __option_is_end)
2627         [!_LIBC && __USE_EXTERN_INLINES]:
2628         Declare as ARGP_EI, not as extern.
2629
2630 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2631
2632         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2633         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2634         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2635         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2636         ...), as the latter is fatal with older Autoconfs.
2637         Problem reported and fix suggested by Eric Blake in thread starting at
2638         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2639
2640 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2641
2642         AC_PROG_MKDIR_P: don't workaround if not buggy
2643         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2644         Define only for Autoconf versions before 2.62.
2645         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2646         undocumented m4_PACKAGE_VERSION, for consistency with the
2647         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2648         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2649         was introduced in 2.62.
2650
2651 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2652
2653         New 'c-*printf' modules for formatted output in C locale.
2654
2655         New module 'c-vasnprintf'.
2656         * modules/c-vasnprintf: New file.
2657         * lib/c-vasnprintf.c: New file.
2658         * lib/c-vasnprintf.h: New file.
2659
2660         New module 'c-snprintf'.
2661         * modules/c-snprintf: New file.
2662         * modules/c-snprintf-tests: New file.
2663         * lib/c-snprintf.c: New file.
2664         * lib/c-snprintf.h: New file.
2665         * tests/test-c-snprintf.c: New file.
2666         * tests/test-c-snprintf.sh: New file.
2667
2668         New module 'c-vsnprintf'.
2669         * modules/c-vsnprintf: New file.
2670         * modules/c-vsnprintf-tests: New file.
2671         * lib/c-vsnprintf.c: New file.
2672         * lib/c-vsnprintf.h: New file.
2673         * tests/test-c-vsnprintf.c: New file.
2674         * tests/test-c-vsnprintf.sh: New file.
2675
2676         New module 'c-vasprintf'.
2677         * modules/c-vasprintf: New file.
2678         * modules/c-vasprintf-tests: New file.
2679         * lib/c-asprintf.c: New file.
2680         * lib/c-vasprintf.c: New file.
2681         * lib/c-vasprintf.h: New file.
2682         * tests/test-c-vasprintf.c  +: New file.
2683         * tests/test-c-vasprintf.sh: New file.
2684
2685         New module 'c-xvasprintf'.
2686         * modules/c-xvasprintf: New file.
2687         * modules/c-xvasprintf-tests: New file.
2688         * lib/c-xasprintf.c: New file.
2689         * lib/c-xvasprintf.c: New file.
2690         * lib/c-xvasprintf.h: New file.
2691         * tests/test-c-xvasprintf.c: New file.
2692         * tests/test-c-xvasprintf.sh: New file.
2693
2694 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2695
2696         argp: better 'inline'
2697         Use extern-inline module to declare extern inline functions.
2698         This avoids some bogus warning diagnostics.  Problem discovered
2699         when modifying GNU tar to use the manywarnings module.
2700         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2701         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2702         Define based on extern-inline.
2703         * modules/argp (Depends-on): Add extern-inline.
2704
2705 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2706
2707         filemode, sys_stat: Handle MPX files a la AIX.
2708         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2709         * lib/sys_stat.in.h (S_ISMPX): New macro.
2710         * tests/test-sys_stat.c: Add tests for MPX files.
2711
2712 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2713
2714         x-to-1: honor $PERL
2715         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2716         a chance to use his preferred version of Perl.  This is typically
2717         required by Darwin users whose default /usr/bin/perl does not have all
2718         the libraries required by help2man, and who need to use their MacPorts
2719         installation of Perl instead.
2720
2721 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2722
2723         gnu-web-doc-update: add all the new files, even in new directories
2724         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2725         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2726         Use it.
2727         (main): Don't use cvsutils to get the list of unknown files,
2728         just add all the existing files and directories.
2729
2730 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2731
2732         gnu-web-doc-update: improve --help
2733         * build-aux/gnu-web-doc-update: Move comments into --help.
2734
2735 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2736
2737         mountlist: recognize more "dummy" file systems
2738         * lib/mountlist.c (ME_DUMMY_0):
2739         Add these dummy FS names to the list:
2740         - "debugfs" virtual filesystem for kernel debugging
2741         - "devpts" PTY slave filesystem
2742         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2743         - "fusectl" control filesystem for FUSE
2744         - "mqueue" enumerates POSIX message queues
2745         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2746         - "sysfs" is for exporting kernel objects
2747         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2748
2749 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2750
2751         extern-inline: avoid incompatibility with Darwin Libc
2752         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2753         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2754         Problem reported by Akim Demaille in
2755         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2756
2757 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2758
2759         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2760         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2761         let it handle password prompting.
2762
2763 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2764
2765         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2766         * lib/canonicalize.c (canonicalize_filename_mode):
2767         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2768         fetching the current directory.  Don't overrun the beginning of
2769         rpath if there's no slashes after the MS-Windows drive letter.
2770
2771 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2772
2773         maint.mk: avoid extra forks
2774         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2775         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2776         So use that instead of "$(shell test -f FILE && echo FILE)".
2777
2778 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2779
2780         vasnprintf: fix ASCII_ONLY typo
2781         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2782         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2783         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2784         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2785         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2786
2787 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         list, oset, xlist, xoset: fix extern inline issue with C99
2790         This was introduced by my recent changes for 'inline'.
2791         Problem reported for gettext by Daiki Ueno in
2792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2793         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2794         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2795         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2796         (gl_list_previous_node, gl_list_get_at)
2797         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2798         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2799         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2800         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2801         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2802         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2803         (gl_list_iterator_free, gl_sortedlist_search)
2804         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2805         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2806         (gl_sortedlist_remove):
2807         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2808         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2809         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2810         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2811         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2812         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2813         (gl_list_add_at, gl_sortedlist_add):
2814         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2815         Wrap these extern decls inside "#if 0", because they are implemented
2816         as inline functions, and extern inline is not what's wanted here.
2817         It would simplify these .h files to remove the extern decls entirely,
2818         although a downside would be less-clear separation between
2819         specification and implementation.
2820
2821 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2822
2823         sys_stat: no 'static inline'
2824         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2826
2827         extern-inline: no 'static inline'
2828         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2829         Do not require AC_C_INLINE.
2830         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2831         'static inline', for older compilers.
2832
2833         snippet/warn-on-use: no 'static inline'
2834         * build-aux/snippet/warn-on-use.h:
2835         Remove unnecessary 'inline' in comment.
2836
2837         rbtree-list, rbtreehash-list: no 'static inline'
2838         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2839         * lib/gl_anytree_list2.h (node_at):
2840         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2841         (gl_oset_first, add_nodes_to_buckets):
2842         Now static, not static inline.
2843
2844         regex: no 'static inline'
2845         * lib/regex_internal.c (calc_state_hash):
2846         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2847         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2848         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2849         Now static, not static inline.
2850         (inline) [__GNUC__ < 3 && _LIBC]:
2851         Remove macro; no longer needed.
2852
2853         xvasprintf: no 'static inline'
2854         * lib/xvasprintf.c (xstrcat):
2855         Now static, not static inline.
2856         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2857         Do not require AC_C_INLINE.
2858
2859         parse-datetime, parse-duration: no 'static inline'
2860         * lib/parse-datetime.y (to_uchar):
2861         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2862         (scale_n_add):
2863         Now static, not static inline.
2864         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2865         * modules/parse-duration (configure.ac):
2866         Do not require AC_C_INLINE.
2867
2868         getaddrinfo: no 'static inline'
2869         * lib/getaddrinfo.c (validate_family):
2870         Now static, not static inline.
2871         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2872         Do not require AC_C_INLINE.
2873
2874         ftruncate, fts, lstat, openat, raise: no 'static inline'
2875         * lib/ftruncate.c (chsize_nothrow):
2876         * lib/fts.c (opendirat, diropen):
2877         * lib/lstat.c (orig_lstat):
2878         * lib/openat.c (orig_openat):
2879         * lib/raise.c (raise_nothrow):
2880         Now static, not static inline.
2881         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2882         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2883         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2884         * m4/openat.m4 (gl_PREREQ_OPENAT):
2885         * m4/raise.m4 (gl_PREREQ_RAISE):
2886         Do not require AC_C_INLINE.
2887
2888         fflush, stat: no 'static inline'
2889         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2890         (clear_ungetc_buffer, disable_seek_optimization)
2891         (restore_seek_optimization, update_fpos_cache):
2892         * lib/stat.c (orig_stat):
2893         Now static, not static inline.
2894         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2895         (update_fpos_cache):
2896         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2897         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2898         * m4/stat.m4 (gl_PREREQ_STAT):
2899         Do not require AC_C_INLINE.
2900
2901         error, filevercmp: no 'static inline'
2902         * lib/error.c (is_open, flush_stdout):
2903         * lib/filevercmp.c (order):
2904         Now static, not static inline.
2905         * m4/error.m4 (gl_PREREQ_ERROR):
2906         * modules/filevercmp (configure.ac):
2907         Do not require AC_C_INLINE.
2908
2909         dup, execute, fatal-signal, etc.: no 'static inline'
2910         * lib/dup.c (dup_nothrow):
2911         * lib/execute.c (nonintr_close, nonintr_open):
2912         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2913         * lib/fopen.c (orig_fopen):
2914         * lib/freadseek.c (freadptrinc):
2915         * lib/freopen.c (orig_freopen):
2916         * lib/fstat.c (orig_fstat, fstat_nothrow):
2917         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2918         (get_rusage_as_via_iterator):
2919         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2920         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2921         * lib/isatty.c (_isatty_nothrow):
2922         * lib/open.c (orig_open):
2923         * lib/read.c (read_nothrow):
2924         * lib/sigprocmask.c (signal_nothrow):
2925         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2926         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2927         * lib/wait-process.c (unregister_slave_subprocess):
2928         * lib/write.c (write_nothrow):
2929         Now static, not static inline.
2930         * lib/spawn-pipe.c (nonintr_open): Define only if
2931         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2932         * m4/dup.m4 (gl_PREREQ_DUP):
2933         * m4/execute.m4 (gl_EXECUTE):
2934         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2935         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2936         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2937         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2938         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2939         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2940         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2941         * m4/open.m4 (gl_PREREQ_OPEN):
2942         * m4/read.m4 (gl_PREREQ_READ):
2943         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2944         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2945         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2946         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2947         * m4/write.m4 (gl_PREREQ_WRITE):
2948         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2949         Do not require AC_C_INLINE.
2950
2951         c-strtod, memcoll, readutmp: no 'static inline'
2952         * lib/c-strtod.c (c_locale):
2953         * lib/memcoll.c (strcoll_loop):
2954         * lib/readutmp.c (desirable_utmp_entry):
2955         Now static, not static inline.
2956         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2957         * m4/memcoll.m4 (gl_MEMCOLL):
2958         * m4/readutmp.m4 (gl_READUTMP):
2959         Do not require AC_C_INLINE.
2960
2961         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2962         * lib/arctwo.c (to_uchar):
2963         * lib/md4.c (set_uint32):
2964         * lib/md5.c (set_uint32):
2965         * lib/sha1.c (set_uint32):
2966         * lib/sha256.c (set_uint32):
2967         * lib/sha512.c (set_uint64):
2968         Now static, not static inline.  This is a bit simpler, and doesn't
2969         affect performance with GCC and default optimization.
2970         * m4/arctwo.m4 (gl_ARCTWO):
2971         * m4/md4.m4 (gl_MD4):
2972         * m4/md5.m4 (gl_MD5):
2973         * m4/sha1.m4 (gl_SHA1):
2974         * m4/sha256.m4 (gl_SHA256):
2975         * m4/sha512.m4 (gl_SHA512):
2976         Do not require AC_C_INLINE.
2977
2978         cond, lock, thread: better 'inline'
2979         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2980         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2981         New macros.  Use them instead of static inline, for header functions.
2982         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2983         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2984         * lib/glthread/lock.c (gl_waitqueue_init)
2985         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2986         * lib/glthread/thread.c (get_current_thread_handle):
2987         Change 'static inline' to 'inline'.
2988         * lib/glthread/cond.h, lib/glthread/thread.h:
2989         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2990         * m4/cond.m4 (gl_COND):
2991         * m4/lock.m4 (gl_PREREQ_LOCK):
2992         * m4/thread.m4 (gl_THREAD):
2993         Do not require AC_C_INLINE.
2994         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2995
2996         chdir-long, cycle-check, savewd: better 'inline'
2997         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2998         (find_non_slash):
2999         * lib/cycle-check.c (is_zero_or_power_of_two):
3000         * lib/savewd.c (savewd_delegating):
3001         Change 'static inline' to 'inline'.
3002         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
3003         Replace all remaining uses of 'static inline' with it.
3004         * lib/savewd.h:
3005         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3006         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
3007         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
3008         * m4/savewd.m4 (gl_SAVEWD):
3009         Do not require AC_C_INLINE.
3010         * modules/savewd (Depends-on): Add extern-inline.
3011
3012         base32, base64: no need for 'inline'
3013         * lib/base32.c (to_uchar, get_8, decode_8):
3014         * lib/base64.c (to_uchar, get_4, decode_4):
3015         Change 'static inline' to 'inline'.
3016         * m4/base32.m4 (gl_PREREQ_BASE32):
3017         * m4/base64.m4 (gl_PREREQ_BASE64):
3018         Do not require AC_C_INLINE.
3019
3020         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
3021         * lib/gl_array_oset.c (gl_array_nx_add_at):
3022         (gl_array_remove_at):
3023         * lib/gl_linkedhash_list.c (hash_resize_after_add)
3024         (add_to_bucket, remove_from_bucket):
3025         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
3026         Change 'static inline' to 'static', as it's simpler to omit
3027         'inline' unless there's a significant performance advantage.
3028
3029         list, oset, xlist, xoset, xsublist: simplify via extern inline
3030         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
3031         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
3032         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
3033         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
3034         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
3035         New macro.  Replace all uses of 'static inline' with it.
3036         [HAVE_INLINE]: Implement functions as *_INLINE functions,
3037         instead of as macros FOO that are defined to static inline
3038         functions FOO_inline.
3039         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
3040         * lib/gl_xsublist.c:
3041         Reimplement from scratch, by defining the corresponding *_INLINE
3042         macro and including the corresponding .h file.  This is simpler.
3043         * modules/list, modules/oset, modules/xlist, modules/xoset:
3044         (Files): Remove m4/gl_list.m4.
3045         (configure.ac): Remove gl_LIST.
3046         * m4/gl_list.m4: Remove.
3047         * modules/list, modules/oset, modules/xlist, modules/xoset:
3048         * modules/xsublist:
3049         (Depends-on): Depend on extern-inline, not inline.
3050
3051         xalloc: better 'inline'
3052         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
3053         New macro.  Replace all uses of 'static inline' with it.
3054         (static_inline): Remove.
3055         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
3056         Let 'extern inline' do the work automatically, instead of doing
3057         it by hand.
3058         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
3059         Remove.  All uses removed.
3060         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
3061
3062         gethrxtime: better 'inline'
3063         * lib/xtime.c: New file.
3064         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
3065         * lib/xtime.h (XTIME_INCLUDE):
3066         New macros.  Replace all uses of 'static inline' with them.
3067         * lib/gethrxtime.c (gethrxtime): Define only if
3068         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
3069         this source file is now always compiled, because of the extern inline.
3070         * lib/gethrxtime.h, lib/xtime.h:
3071         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3072         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
3073         if gethrtime works, as they're not needed in that case.
3074         (gl_XTIME): Do not require AC_C_INLINE.
3075         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
3076         compiled now.  Move the check into gl_GETHRXTIME.
3077         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
3078         (Depends-on): Add extern-inline.
3079         (configure.ac): gethrxtime is always compiled now.
3080         (lib_SOURCES): Add gethrxtime.c.
3081
3082         wctype-h: better 'inline'
3083         * lib/wctype-h.c: New file.
3084         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
3085         New macro.  Replace all uses of 'static inline' with it.
3086         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3087         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
3088         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
3089         (Depends-on): Add extern-inline.
3090
3091         unistd: better 'inline'
3092         * lib/unistd.c: New file.
3093         * lib/unistd.in.h (_GL_UNISTD_INLINE):
3094         New macro.  Replace all uses of 'static inline' with it.
3095         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3096         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
3097         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
3098         (Depends-on): Add extern-inline.
3099
3100         sys_socket: better 'inline'
3101         * lib/sys_socket.c: New file.
3102         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
3103         New macro.  Replace all uses of 'static inline' with it.
3104         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3105         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
3106         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
3107         (Depends-on): Add extern-inline.
3108
3109         stdio: better 'inline'
3110         * lib/stdio.c: New file.
3111         * lib/stdio.in.h (_GL_STDIO_INLINE):
3112         New macro.  Replace all uses of 'static inline' with it.
3113         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3114         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
3115         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
3116         (Depends-on): Add extern-inline.
3117
3118         sigaction: better 'inline'
3119         * lib/sig-handler.c: New file.
3120         * lib/sig-handler.h (SIG_HANDLER_INLINE):
3121         New macro.  Replace all uses of 'static inline' with it.
3122         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3123         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
3124         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
3125         (Depends-on): Add extern-inline.
3126
3127         selinux-h: better 'inline'
3128         * lib/se-context.c, lib/se-selinux.c: New files.
3129         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
3130         * lib/se-context.in.h (SE_CONTEXT_INLINE):
3131         New macro.  Replace all uses of 'static inline' with it.
3132         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3133         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
3134         New macro.  Replace all uses of 'static inline' with it.
3135         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3136         * modules/selinux-h (Files, lib_SOURCES):
3137         Add lib/se-context.c, lib/se-selinux.c.
3138         (Depends-on): Add extern-inline.
3139         (configure.ac): Do not require AC_C_INLINE.
3140
3141         pthread: better 'inline'
3142         * lib/pthread.c: New file.
3143         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
3144         New macro.  Replace all uses of 'static inline' with it.
3145         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3146         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3147         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3148         * modules/pthread (Files): Add lib/pthread.c.
3149         (Depends-on): Add extern-inline.
3150
3151         math: better 'inline'
3152         * lib/math.c: New file.
3153         * lib/math.in.h (_GL_MATH_INLINE):
3154         New macro.  Replace all uses of 'static inline' with it.
3155         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3156         * m4/math_h.m4 (gl_MATH_H):
3157         Do not require AC_C_INLINE.
3158         * modules/math (Files, lib_SOURCES):
3159         Add lib/math.c.
3160         (Depends-on): Add extern-inline.
3161
3162         count-one-bits: better 'inline'
3163         * lib/count-one-bits.c: New file.
3164         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3165         New macro.  Replace all uses of 'static inline' with it.
3166         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3167         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3168         Do not require AC_C_INLINE.
3169         * modules/count-one-bits (Files, lib_SOURCES):
3170         Add lib/count-one-bits.c.
3171         (Depends-on): Add extern-inline.
3172
3173         count-leading-zeros: better 'inline'
3174         * lib/count-leading-zeros.c: New file.
3175         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3176         New macro.  Replace all uses of 'static inline' with it.
3177         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3178         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3179         Do not require AC_C_INLINE.
3180         * modules/count-leading-zeros (Files, lib_SOURCES):
3181         Add lib/count-leading-zeros.c.
3182         (Depends-on): Add extern-inline.
3183
3184         bitrotate: better 'inline'
3185         * lib/bitrotate.c: New file.
3186         * lib/bitrotate.h (BITROTATE_INLINE):
3187         New macros.
3188         Replace all uses of 'static inline' with them.
3189         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3190         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3191         (Depends-on): Add extern-inline.
3192         (configure.ac): Do not require AC_C_INLINE.
3193
3194 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3195
3196         maint.mk: avoid gratuitous failure
3197         Reported by Stefano Lattarini in
3198         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3199         * top/maint.mk (public-submodule-commit): Quote more safely.
3200
3201 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3202
3203         canonicalize, canonicalize-lgpl: support MS-Windows file names
3204         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3205         for test cases, which it'd be nice to add at some point.
3206         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3207         * lib/canonicalize.c (canonicalize_filename_mode):
3208         * lib/canonicalize-lgpl.c (__realpath):
3209         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3210         slash is at the beginning of the file name.  Use ISSLASH, instead
3211         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3212         the first character with '/'.  Test for
3213         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3214         with a drive letter.
3215         * lib/canonicalize.c (SLASHES): New macro.
3216         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3217
3218 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3219
3220         fts: introduce FTS_VERBATIM
3221         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3222         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3223         * lib/fts.c (fts_open): Honor it.
3224
3225 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3226
3227         getlogin-tests: allow errno == ENXIO
3228         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3229         with errno == ENXIO (No controlling tty).
3230         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3231         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3232         with errno == ENOENT.  This was reported to happen in various
3233         situations on GNU/Linux.
3234
3235 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3236
3237         getlogin-tests: allow errno == ENOENT
3238         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3239         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3240         when running a test in an Emacs shell buffer.
3241
3242 2012-11-08  Jim Meyering  <jim@meyering.net>
3243
3244         tests/nap.h: avoid warning about unused variable
3245         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3246
3247         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3248         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3249         white space before each of the special-cased file names, to avoid
3250         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3251         in http://bugs.gnu.org/12830.
3252
3253 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3254
3255         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3256         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3257         fails with errno == EBADF when fd is opened with O_PATH.
3258         Reported by Jim Meyering in
3259         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3260         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3261         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3262
3263 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3264
3265         test-utimens: speed up by taking shorter naps
3266         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3267         New functions.
3268         (nap): Use them, to do a better job of guessing the delay.
3269         On Fedora 17 with ext4 atop md atop hard disks, this made
3270         test-utimens run 10x faster, because the test napped for
3271         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3272         <http://bugs.gnu.org/12820#11>.
3273
3274 2012-11-07  Jim Meyering  <jim@meyering.net>
3275
3276         mountlist.c: fix a compilation failure
3277         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3278         I introduced while transforming commit v0.0-7683-g613bcb6
3279
3280 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3281
3282         errno: port to LynxOS 178 2.2.2
3283         Problem reported by Joel Brobecker in
3284         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3285         * doc/posix-headers/errno.texi (errno.h): Document this.
3286         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3287         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3288         Supply a string for EILSEQ.
3289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3290
3291 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3292
3293         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3294         Linux kernel 2.6.39 introduced O_PATH (see
3295         <http://lwn.net/Articles/433854/>) and this is a better fallback
3296         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3297         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3298         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3299         * lib/fcntl.in.h (O_ACCMODE):
3300         * tests/test-fcntl-h.c (main):
3301         Do not reject O_ACCMODE merely because it has more than the
3302         minimal number of bits, as POSIX allows extensions here.
3303
3304 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3305
3306         mountlist: do not classify a bind-mounted dir entry as "dummy"
3307         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3308         the "none"-testing clause.
3309         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3310         exception for bind-mounted directories.
3311
3312 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3313
3314         quote: provide a means to escape strings with nul characters
3315         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3316         (quote, quote_n): Rename formal arguments for consistency with
3317         quotearg.
3318
3319 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3320
3321         test-raise: don't assume 199 is an invalid signal
3322         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3323
3324         sh-quote-tests: port to Solaris 9
3325         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3326         Problem reported by Dagobert Michelsen in
3327         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3328
3329 2012-10-28  Jim Meyering  <jim@meyering.net>
3330
3331         maint.mk: rename a new configurable variable
3332         * top/maint.mk (_gl_translatable_string_re): Rename from
3333         translation-markers: _gl_ prefix to insulate from user Makefile code,
3334         and the _re suffix to inform that it's a regular expression.
3335
3336 2012-10-26  Eric Blake  <eblake@redhat.com>
3337
3338         maint.mk: let packages tweak sc_po_check pattern
3339         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3340         finding files with other translation markers.
3341
3342 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3343
3344         euidaccess: speed up 'configure' on GNU hosts
3345         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3346         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3347         it's needed only in this case.  Use AC_CHECK_DECLS, not
3348         AC_CHECK_DECLS_ONCE.
3349         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3350         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3351
3352         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3353
3354 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3355
3356         fchmodat, fchownat, fstatat: port to non-inlining compilers
3357         Problem reported for FreeBSD 9 by Jim Meyering in
3358         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3359         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3360         New files, which define FCHMODAT_INLINE etc.
3361         * lib/fchmodat.c (FCHMODAT_INLINE):
3362         * lib/fchownat.c (FCHOWNAT_INLINE):
3363         * lib/fstatat.c (FSTATAT_INLINE):
3364         Remove, as chmodat.c etc. now do this.
3365         * modules/fchmodat (Files): Add lib/chmodat.c.
3366         * modules/fchownat (Files): Add lib/chownat.c.
3367         * modules/fstatat (Files): Add lib/statat.c.
3368
3369 2012-10-15  Jim Meyering  <jim@meyering.net>
3370
3371         fchmodat.c, fchownat.c: compile-impeding typos
3372         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3373         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3374         Introduced in commit v0.0-7636-gd202279.
3375
3376 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3377
3378         fcntl-h: support GNU flags like O_IGNORE_CTTY
3379         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3380         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3381         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3382         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3383         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3384         Define to 0 if not already defined.
3385         * tests/test-fcntl-h.c: Test these new flags.
3386
3387 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3388
3389         faccessat, etc.: support AT_FDCWD-only use
3390         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3391         this function only if its first argument is AT_FDCWD.
3392         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3393         values other than AT_FDCWD, so it doesn't want all the openat
3394         machinery with fchdir etc.
3395         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3396         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3397         * modules/unlinkat (Files):
3398         Remove lib/openat-priv.h, as at-internal supplies this file.
3399         Removing this file here allows us to support programs like Emacs
3400         that avoid at-internal.
3401
3402         faccessat: speed up 'configure' on mainstream hosts
3403         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3404         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3405         since it's only on unusual platforms that we need to check for
3406         'access', and it's better not to slow 'configure' down on all
3407         platforms.
3408
3409         faccessat: port to Solaris 10
3410         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3411         Needed on Solaris 10, which doesn't have AT_EACCESS,
3412         so we need the Gnulib fcntl.h, which defines it.
3413
3414 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3415         canonicalize: fix C89 compilation
3416         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3417         declarations so C89 is supported.  Also remove the comment
3418         referencing memorty allocation as the suggested feature could
3419         not be implemented as suggested.
3420         Reported by Michael Goffioul.
3421
3422 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3423
3424         group-member: omit unnecessary dependencies
3425         This is for Emacs, which has its own allocator and where we
3426         don't want to use xalloc.
3427         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3428         since we no longer use xmalloc.  Do not include stdbool.h, since
3429         the changes below happen to remove the only use of bool.
3430         (GROUPBUF_SIZE): New constant.
3431         (struct group_info): Remove n_groups member.  Add groupbuf member.
3432         This lets us get the groups without using malloc, usually.
3433         (free_group_info, get_group_info): Adjust to this.
3434         (get_group_info): Return the number of groups found, or -1 on error.
3435         Use plain malloc not xmalloc, and treat its failure as if there
3436         are no groups, as the user already loses in case of error.
3437         (group_member): Simplify, based on changes to get_group_info.
3438         * modules/group-member (Depends-on): Remove dependencies on
3439         xalloc and stdbool.  Add dependency on xalloc-oversized.
3440
3441 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3442
3443         gethrxtime: port to C++
3444         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3445
3446 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3447
3448         ptsname: fix macro-name typo
3449         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3450
3451 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3452
3453         inttostr: Relax license.
3454         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3455
3456 2012-10-03  Eric Blake  <eblake@redhat.com>
3457
3458         ptsname_r: support ptys returned by FreeBSD posix_openpt
3459         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3460         lives in /dev/pts/.
3461
3462 2012-10-02  Eric Blake  <eblake@redhat.com>
3463
3464         pselect: reject invalid file descriptors
3465         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3466         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3467         * modules/pselect (Depends-on): Add dup2.
3468         * doc/posix-functions/pselect.texi (pselect): Document this.
3469
3470         select: reject invalid file descriptors
3471         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3472         * lib/select.c (rpl_select) [!win32]: Work around it.
3473         * modules/select (Depends-on): Add dup2.
3474         * doc/posix-functions/select.texi (select): Document this.
3475
3476         select: enhance test
3477         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3478         New functions.
3479         (test_function): Enhance test.
3480         (do_select_bad_fd): Avoid any stale errno values.
3481
3482         ptsname: reject invalid file descriptors
3483         http://www.austingroupbugs.net/view.php?id=503
3484         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3486         * modules/stdlib (Makefile.am): Replace witness.
3487         * lib/stdlib.in.h (ptsname): Allow for replacement.
3488         * modules/ptsname (configure.ac): Trigger replacement.
3489         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3490
3491 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3492
3493         hash-pjw-bare: new module
3494         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3495         * lib/hash-pjw-bare.h: Likewise.
3496         * modules/hash-pjw-bare: New file.
3497         * MODULES.html.sh (Misc): Add it.
3498
3499 2012-10-02  Eric Blake  <eblake@redhat.com>
3500
3501         manywarnings: cater to more gcc infelicities
3502         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3503         -Wuninitialized without -O.
3504
3505 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3506
3507         select, poll tests: Make setsockopt invocation effective.
3508         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3509         the bind() call.
3510         * tests/test-select.h (open_server_socket): Likewise.
3511
3512 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3513
3514         sockets, sys_stat: restore AC_C_INLINE
3515         This undoes the 2012-09-22 patch.
3516         * m4/sockets.m4 (gl_SOCKETS):
3517         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3518         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3519         and does not support plain 'inline'.  Reported by Bruno Haible in
3520         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3521
3522 2012-09-30  Bruno Haible  <bruno@clisp.org>
3523
3524         localeconv tests: Avoid test failure on OpenIndiana.
3525         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3526         skip the 'grouping' and 'mon_grouping' tests.
3527         Reported by Jim Meyering.
3528
3529 2012-09-30  Bruno Haible  <bruno@clisp.org>
3530
3531         havelib: Follow libtool developments.
3532         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3533         Suggested by Simon Josefsson.
3534
3535 2012-09-29  Jim Meyering  <meyering@redhat.com>
3536
3537         fstatat.c: fix a compile-impeding typo
3538         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3539         Introduced in commit v0.0-7636-gd202279.
3540         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3541
3542 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3543
3544         extern-inline: provide a -Wundef safe config.h
3545         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3546         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3547         to produce a -Wundef warning free config.h.
3548
3549 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3550
3551         hash-pjw: relax license to LGPLv2+
3552         * modules/hash-pjw (License): Relax, with consent of author.
3553
3554 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3555
3556         maint.mk: fix strict vs. lazy variable issues with RELEASE
3557         * top/maint.mk (_equal): New function.
3558         (member_check): Strip the result to avoid spurious spaces.
3559         (url_dir_list): Do not use ifeq, which is strict, as it will
3560         require RELEASE_TYPE to be defined.
3561         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3562         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3563         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3564         (announcement_Cc_beta,announcement_mail_headers_beta)
3565         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3566         (release): Do not depend on $(release-type), as it forces its
3567         evaluation.  Bounce to it.
3568
3569 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3570
3571         maint.mk: formatting changes
3572         * top/maint.mk: Indent bodies of if's.
3573
3574 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3575
3576         maint.mk: factor the validation of RELEASE_TYPE
3577         With help from Jim Meyering.
3578         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3579         * top/maint.mk (_empty, _sp): Move their definition earlier.
3580         (member-check, release-type): New.
3581         Use the latter instead of $(RELEASE_TYPE).
3582         Remove now useless local checks.
3583
3584 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3585
3586         maint.mk: provide "make upload" to ease uploading
3587         See
3588         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3589         Do not depend simply on the current $(VERSION), as there may have been
3590         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3591         as "make release-commit" already does.
3592
3593         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3594         "make TYPE".
3595
3596         * top/maint.mk (upload_command, upload, release): New.
3597         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3598         (VERSION): first word of $(RELEASE) is always right.
3599         (emit_upload_commands): Adjust.
3600         * top/README-release: Update.
3601
3602 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3603
3604         maint.mk: silent rules
3605         With help from Stefano Lattarini.
3606         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3607         (announcement): Use $(AM_V_at).
3608
3609 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3610
3611         localename: port gl_locale_name_thread_unsafe to FreeBSD
3612         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3613         and use the simpler FreeBSD implementation on Mac OS X as well.
3614         Original idea suggested by Ed Maste in
3615         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3616
3617 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3618
3619         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3620         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3621         * lib/mbuiter.c, lib/xsize.c: New files.
3622         * lib/binary-io.h (BINARY_IO_INLINE):
3623         * lib/eealloc.h (EEALLOC_INLINE):
3624         * lib/mbfile.h (MBFILE_INLINE):
3625         * lib/mbiter.h (MBITER_INLINE):
3626         * lib/mbuiter.h (MBUITER_INLINE):
3627         * lib/xsize.h (XSIZE_INLINE):
3628         New macros.
3629         Replace all uses of 'static inline' with them.
3630         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3631         * m4/eealloc.m4 (gl_EEALLOC):
3632         * m4/mbfile.m4 (gl_MBFILE):
3633         * m4/mbiter.m4 (gl_MBITER):
3634         * m4/xsize.m4 (gl_XSIZE):
3635         Do not require AC_C_INLINE.
3636         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3637         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3638         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3639         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3640         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3641         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3642         * modules/binary-io, modules/eealloc, modules/mbfile:
3643         * modules/mbiter, modules/mbuiter:
3644         (Depends-on): Add extern-inline.
3645
3646         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3647         * lib/pipe-filter-aux.c: New file.
3648         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3649         Replace all uses of 'static inline' with it.
3650         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3651         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3652         (filter_retcode): No real need for inline here.
3653         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3654         (Files): Add lib/pipe-filter-aux.c.
3655         (Depends-on): Add extern-inline.
3656         (configure.ac): Do not require AC_C_INLINE.
3657         (lib_SOURCES): Add pipe-filter-aux.c.
3658
3659         fdutimensat: omit unnecessary AC_C_INLINE
3660         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3661
3662         fchmodat, fchownat, fstatat: use extern-inline
3663         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3664         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3665         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3666         New macros.
3667         * lib/openat.h:
3668         Replace all uses of 'static inline' with them.
3669         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3670         * modules/fchmodat, modules/fchownat, modules/fstatat:
3671         * modules/openat-h:
3672         (Depends-on):
3673         Add extern-inline.
3674         (configure.ac): Remove AC_C_INLINE.
3675
3676         acl, mbchar, priv-set: use extern-inline
3677         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3678         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3679         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3680         New macros.
3681         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3682         Replace all uses of 'static inline' with it.
3683         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3684         * m4/acl.m4 (gl_FUNC_ACL):
3685         * m4/mbchar.m4 (gl_MBCHAR):
3686         * m4/priv-set.m4 (gl_PRIV_SET):
3687         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3688         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3689         Add extern-inline.
3690
3691         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3692         * m4/sockets.m4 (gl_SOCKETS):
3693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3694         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3695         environments where it's already guaranteed to work, so we needn't
3696         check for it at 'configure'-time.
3697
3698         tls-tests: omit unnecessary 'inline'
3699         * tests/test-tls.c (perhaps_yield): No longer inline.
3700         Simplicity and portability trump efficiency in test cases.
3701
3702         utimens-tests: avoid unnecessary 'inline'
3703         * modules/fdutimensat-tests (configure.ac):
3704         * modules/futimens-tests (configure.ac):
3705         * modules/utimens-tests (configure.ac):
3706         * modules/utimensat-tests (configure.ac):
3707         Remove AC_C_INLINE.
3708         * tests/test-utimens-common.h (ctime_compare):
3709         No longer inline.  Simplicity and portability trump efficiency here.
3710
3711         misc: don't limit commentary to inline functions
3712         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3713         * lib/xalloc-oversized.h, lib/xsize.h:
3714         Contrast macros to functions in general, not just to inline functions,
3715         when the commentary does not apply only to inline functions.
3716
3717 2012-09-20  Jim Meyering  <meyering@redhat.com>
3718
3719         non-recursive-gnulib-prefix-hack: new module
3720         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3721         the file that originated in Bison.
3722         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3723         largely copied from a snippet that resided in bison's configure.ac.
3724         * modules/non-recursive-gnulib-prefix-hack: New file.
3725         * MODULES.html.sh (Support for maintaining and releasing projects):
3726         Add it.
3727
3728 2012-09-18  Jim Meyering  <meyering@redhat.com>
3729
3730         maint.mk: generalize _gl_tight_scope for non-recursive make
3731         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3732         that *.h would describe additional .h files in the directory
3733         specified by $(_gl_TS_dir).  I.e., add this...
3734         (_gl_TS_other_headers): New variable.
3735
3736         maint.mk: exempt trailing blanks found in "binary" files
3737         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3738         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3739         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3740
3741 2012-09-17  Jim Meyering  <meyering@redhat.com>
3742
3743         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3744         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3745         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3746         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3747
3748 2012-09-17  Jim Meyering  <meyering@redhat.com>
3749
3750         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3751         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3752         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3753         It is not in the same category as "exit (0)" or "exit (1)", and
3754         besides, I know of no symbolic name for that 77.  Reported by
3755         Richard W.M. Jones in
3756         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3757
3758 2012-09-17  Jim Meyering  <meyering@redhat.com>
3759
3760         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3761         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3762         all uses of #define, not just those that start in column 1.
3763         Richard W.M. Jones reported a false positive in
3764         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3765
3766 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3767
3768         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3769         * lib/localcharset.c (locale_charset) [DARWIN7]:
3770         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3771         as these two values are incompatible.  Problem reported by Max Horn.
3772         For more discussion, please see
3773         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3774
3775         doc: document sticky-EOF issue
3776         * doc/posix-functions/fgetc.texi (fgetc):
3777         * doc/posix-functions/fgets.texi (fgets):
3778         * doc/posix-functions/fread.texi (fread):
3779         * doc/posix-functions/fscanf.texi (fscanf):
3780         * doc/posix-functions/getc.texi (getc):
3781         * doc/posix-functions/getchar.texi (getchar):
3782         * doc/posix-functions/scanf.texi (scanf):
3783         Mention that glibc and default Solaris do not conform to
3784         C99 and POSIX-2001 or later, with respect to how getchar
3785         etc. behave when feof reports nonzero.
3786
3787 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3788
3789         poll: fix poll(0, NULL, msec)
3790         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3791         but nfd is 0.  In that case poll should behave like select.
3792
3793 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3794             Paolo Bonzini <bonzini@gnu.org>
3795
3796         poll: fix for systems that can't recv() on a non-socket
3797         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3798         is readable.  In this case POLLHUP will not be supported.
3799         * doc/posix-functions/poll.texi: Document this.
3800
3801 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3802
3803         poll/select: document portability problems not fixed by Gnulib.
3804         * doc/posix-functions/poll.texi: poll does not work well on
3805         pipes under Windows.  It has the same limitations as select on
3806         BeOS.
3807         * doc/posix-functions/select.texi: select does not work well
3808         on pipes under Windows.
3809
3810 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3811
3812         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3813         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3814         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3815         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3816
3817 2012-09-06  Eric Blake  <eblake@redhat.com>
3818
3819         net_if: give more details about the bug being fixed
3820         * doc/posix-headers/net_if.texi: Add clarification.
3821
3822 2012-09-05  Eric Blake  <eblake@redhat.com>
3823
3824         net_if: new module
3825         * modules/net_if: New module, borrowing ideas from netinet_in.
3826         * m4/net_if_h.m4: New file.
3827         * lib/net_if.in.h: Likewise.
3828         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3829         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3830         * tests/test-net_if.c: Make function checks conditional.
3831         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3832
3833 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3834
3835         readutmp: fix non-portable UT_PID use
3836         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3837         Use `UT_PID (u) > 0' as absolute condition.
3838
3839 2012-09-04  Jim Meyering  <meyering@redhat.com>
3840
3841         fts: reduce two or more trailing spaces to just one, usually
3842         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3843         or more slashes, trim all but the final one.  But if a name consists
3844         solely of two slashes, don't modify it.  If it consists solely of
3845         three or more slashes, strip all but one.
3846
3847         This is part of the solution to a minor problem with rm:
3848         it would print a bogus ELOOP diagnostic when failing to remove
3849         the slash-decorated name of a symlink-to-directory:
3850
3851             $ mkdir d && ln -s d s && env rm -r s/
3852             rm: cannot remove 's': Too many levels of symbolic links
3853
3854         With the change below and a trivial don't-trim-trailing-slashes
3855         adjustment to remove.c, it does this:
3856
3857             $ env rm -r s/
3858             rm: cannot remove 's/': Not a directory
3859
3860         Improved by: Eric Blake
3861
3862         fts: when there is no risk of overlap, use memcpy, not memmove
3863         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3864
3865 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3866
3867         stdbool: be more compatible with mixed C/C++ compiles
3868         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3869         Define to bool, true, false, respectively, as GCC's builtin
3870         stdbool.h does.  Problem reported by Michael Goffioul in
3871         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3872
3873 2012-08-28  Jim Meyering  <meyering@redhat.com>
3874
3875         revert last change: it was not needed
3876         * tests/test-vc-list-files-git.sh: There's already a test for
3877         a working git, just below.
3878
3879 2012-08-28  Jim Meyering  <meyering@redhat.com>
3880
3881         tests: test-vc-list-files-git.sh: skip if git is not available
3882         * tests/test-vc-list-files-git.sh: Skip this test when git is
3883         not available.
3884
3885 2012-08-26  Bruno Haible  <bruno@clisp.org>
3886
3887         gnulib-tool: Remove no-op option --no-changelog.
3888         * gnulib-tool (func_usage): Don't mention --no-changelog.
3889         (do_changelog): Remove variable.
3890         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3891
3892 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3893
3894         doc: remove fdl-1.2.texi
3895         It is no longer used or maintained, and its use of @acronym
3896         is problematic.  See the thread containing
3897         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3898         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3899         * doc/old-licenses/fdl-1.2.texi: Remove.
3900
3901         execinfo: port to FreeBSD
3902         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3903         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3904         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3905         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3906
3907 2012-08-23  Jim Meyering  <meyering@redhat.com>
3908
3909         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3910         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3911         to placate gcc's -Wold-style-declaration.
3912
3913 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3914
3915         doc: do not use @acronym
3916         * doc/inet_ntoa.texi (inet_ntoa):
3917         * doc/parse-datetime.texi (Seconds since the Epoch)
3918         (Specifying time zone rules):
3919         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3920         Don't use @acronym.  Problem reported by John Darlington in
3921         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3922
3923 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3924
3925         stdnoreturn: port to newer GCCs
3926         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3927         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3928         Problem reported by Jim Meyering in
3929         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3930         Also, rename the 'test' function to a void a clash with the
3931         already-supplied 'main' function; this fixes a bug that incorrectly
3932         rejected GCC 4.7.1's <stdnoreturn.h>.
3933         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3934         Document GCC problem.
3935
3936 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3937
3938         pipe-filter: fix comment typo
3939         * lib/pipe-filter.h: Mention correct function.
3940
3941 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3942
3943         execinfo: new module
3944         This is for Emacs.  Currently, it provides a no-effect stub
3945         on all platforms where it does not already work.
3946         It already works on glibc-based systems, and on Solaris 11.
3947         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3948         New files.
3949         * doc/glibc-headers/execinfo.texi (execinfo.h):
3950         * MODULES.html.sh (Misc): Document it.
3951
3952 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3953
3954         extern-inline: support old GCC 'inline'
3955         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3956         if available.  This applies to GCC versions 2.7 through 4.2, or
3957         when newer GCC is using -fgnu89-inline.  The goal is to address
3958         some of the performance issues mentioned by Bruno Haible in
3959         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3960
3961 2012-08-20  Eric Blake  <eblake@redhat.com>
3962
3963         maint.mk: avoid redundant file name in message
3964         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3965         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3966         (sc_makefile_path_separator_check): Remove bogus $(ME).
3967
3968 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3969
3970         timer-time: fix link order when static linking on glibc
3971         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3972         _after_ -lrt so that it's significant.
3973
3974 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3975
3976         timespec: omit unnecessary AC_C_INLINE
3977         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3978
3979         stat-time: omit unnecessary AC_C_INLINE
3980         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3981         Do not require AC_C_INLINE.
3982
3983         ignore-value: omit unnecessary AC_C_INLINE
3984         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3985
3986         sys_select: avoid 'static inline'
3987         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3988
3989         mktime: avoid 'static inline'
3990         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3991         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3992
3993 2012-08-19  Bruno Haible  <bruno@clisp.org>
3994
3995         gnulib-tool: Improve coding style.
3996         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3997         func_emit_lib_Makefile_am.
3998         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3999
4000 2012-08-19  Bruno Haible  <bruno@clisp.org>
4001
4002         gnulib-tool: Fix indentation.
4003         * gnulib-tool (func_import): Fix indentation.
4004
4005 2012-08-19  Bruno Haible  <bruno@clisp.org>
4006
4007         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
4008         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
4009         on the list of removed files.
4010
4011 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4012
4013         test-parse-datetime: avoid glibc leap-second glitch
4014         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
4015         with the 2012 rules.  Problem reported by Bruce Dubbs in
4016         <http://bugs.gnu.org/12206>.
4017
4018 2012-08-14  Bruno Haible  <bruno@clisp.org>
4019
4020         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
4021         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
4022         from argument.
4023         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4024
4025 2012-08-14  Eric Blake  <eblake@redhat.com>
4026
4027         ldexp: relax license
4028         * modules/ldexp (License): Trivial relax, since the module only
4029         provides a permissively licensed m4 file.
4030
4031 2012-08-13  Bruno Haible  <bruno@clisp.org>
4032
4033         gnulib-tool: Fix persistence of --witness-c-macro option.
4034         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
4035         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4036
4037 2012-08-11  Eric Blake  <eblake@redhat.com>
4038
4039         count-leading-zeros: use a lookup table on non-gcc compilers
4040         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
4041         alternate implementation, suggested by Jim Meyering.
4042
4043 2012-08-10  Eric Blake  <eblake@redhat.com>
4044
4045         count-leading-zeros: new module
4046         * modules/count-leading-zeros: New module.
4047         * m4/count-leading-zeros.m4: New file.
4048         * lib/count-leading-zeros.h: Likewise.
4049         * modules/count-leading-zeros-tests: New test.
4050         * tests/test-count-leading-zeros.c: New file.
4051         * MODULES.html.sh (Integer arithmetic functions): Document it.
4052
4053 2012-08-07  Simon Josefsson  <simon@josefsson.org>
4054             Jim Meyering  <meyering@redhat.com>
4055
4056         maintainer-makefile: Fix syntax error with dash.
4057         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
4058         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
4059
4060 2012-08-05  Jim Meyering  <meyering@redhat.com>
4061
4062         extern-inline: also ignore -Wmissing-declarations
4063         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
4064         required with gcc-4.8.0-to-be.
4065
4066         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
4067         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
4068         for /error ?([^,]*)/.  This avoids false-positives for strings like
4069         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
4070
4071 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
4072
4073         gnumakefile: better interaction with Automake-NG
4074         * modules/gnumakefile [Makefile.am]: The makefiles generated by
4075         Automake-NG always contain a definition of VPATH, even in non-VPATH
4076         builds (its value being simply '.' in that case).  So, in the
4077         'clean-GNUmakefile' rule, to determine whether running under a
4078         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
4079         '$(VPATH)' expands to the empty string.
4080
4081 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
4082
4083         base64: Use extern C scope in header file, for C++.
4084         * lib/base64.h: Add C++ namespace protection.
4085
4086 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         stat-time, timespec, u64: support naive out-of-dir builds
4089         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
4090         Use '#include "foo.h"', not '#include <foo.h>', when including
4091         one's own interface.  This works better when configuring with
4092         out-of-directory builds, since packages need not add an
4093         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
4094
4095 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4096
4097         utimens: use extern-inline
4098         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
4099         * lib/utimens.h: Add copyright notice, since this is now large enough
4100         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4101         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
4102         * modules/utimens (Depends-on): Add extern-inline.
4103
4104         u64: use extern-inline
4105         * lib/u64.c: New file.
4106         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4107         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
4108         * modules/u64 (Files): Add lib/u64.c.
4109         (Depends-on): Add extern-inline.
4110         (configure.ac): No need to require AC_C_INLINE, since extern-inline
4111         does that now.
4112         (lib_SOURCES): Add u64.c.
4113
4114         timespec: use extern-inline
4115         * lib/timespec.c: New file.
4116         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4117         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
4118         * modules/timespec (Files): Add lib/timespec.c.
4119         (Depends-on): Add extern-inline.
4120         (lib_SOURCES): Add timespec.c.
4121
4122         stat-time: use extern-inline
4123         * lib/stat-time.c: New file.
4124         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4125         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
4126         * modules/stat-time (Files): Add lib/stat-time.c.
4127         (Depends-on): Add extern-inline.
4128         (lib_SOURCES): Add stat-time.c.
4129
4130         extern-inline: new module
4131         * modules/extern-inline, m4/extern-inline.m4: New files.
4132         This is for better support of 'extern inline' a la ISO C99,
4133         with a portable alternative on compilers that do not support
4134         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
4135         of the Emacs executable, when compiled with debugging disabled,
4136         which is a typical way that Emacs is built while developing.
4137
4138 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
4139
4140         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
4141         * build-aux/do-release-commit-and-tag: Move variable definitions
4142         together.
4143         ($branch): Instead of defaulting to "master", default to the current
4144         branch (as gnu-web-doc-update does).
4145         (help): Display the current values of the option arguments.
4146         * top/maint.mk (release-commit): New.
4147         * top/README-release: Simplify the corresponding step.
4148
4149 2012-07-30  Eric Blake  <eblake@redhat.com>
4150
4151         passfd: fix comment on recvfd
4152         * lib/passfd.c (recvfd): Fix comment.
4153         Reported by Jann Horn <jannhorn@googlemail.com>.
4154
4155 2012-07-30  Jim Meyering  <meyering@redhat.com>
4156
4157         maint.mk: avoid a sub-shell
4158         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4159
4160 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4161
4162         maint.mk: use silent-rules support from Automake
4163         * top/maint.mk (news-check, vc-diff-check, announcement)
4164         (no-submodule-changes, alpha beta stable, release-prep)
4165         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4166
4167 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4168
4169         maint.mk: provide a web-manual-update target
4170         * top/maint.mk: here.
4171         * top/README-release: Use it to simplify the web manual update step.
4172
4173 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4174
4175         README-release: shorten the circuit to post a news
4176         * top/README-release: Point directly to the news submission form.
4177
4178 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4179
4180         gnu-web-doc-update: fix --help
4181         * build-aux/gnu-web-doc-update: The information "top level" was written
4182         twice.
4183
4184 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4185
4186         maint.mk: absolute VPATH issue
4187         * top/maint.mk (release-prep): Help Git find .git/.
4188         From Jim Meyering.
4189
4190 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4191
4192         gitlog-to-changelog: fix previous change
4193         * build-aux/gitlog-to-changelog: Fix condition.
4194         Add missing ";".
4195
4196 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4197
4198         gitlog-to-changelog: don't expect .git to be in $srcdir
4199         Reported by Bruno Haible.
4200         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4201         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4202         Use it.
4203
4204 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4205
4206         maint.mk: absolute VPATH build fix
4207         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4208         $(srcdir) is not a parent of $(builddir).
4209
4210 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4211
4212         clean-temp: Fix memory leak.
4213         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4214         'files' members of tmpdir.
4215
4216 2012-07-27  Jim Meyering  <meyering@redhat.com>
4217
4218         maint.mk: new rule: refresh-gnulib-patches
4219         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4220         Use this rule to refresh them.
4221         * top/maint.mk (refresh-gnulib-patches): New rule.
4222
4223 2012-07-24  Bruno Haible  <bruno@clisp.org>
4224
4225         gnulib-tool: Fix handling of inctests variable.
4226         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4227         Reported by Nick Bowler <nbowler@elliptictech.com>.
4228
4229 2012-07-22  Bruno Haible  <bruno@clisp.org>
4230
4231         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4232         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4233         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4234         Remove exemption for getpass.h.
4235         Suggested by Eric Blake.
4236
4237 2012-07-20  Eric Blake  <eblake@redhat.com>
4238
4239         verify: document conflict with -Wnested-externs
4240         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4241
4242         maint.mk: forbid exit(-1)
4243         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4244
4245 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4246
4247         fsusage: port back to Solaris
4248         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4249         error (fsd not declared) on Solaris 10.  Reported privately by
4250         Andrew Borodin.
4251
4252 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4253
4254         gnu-web-doc-update: fix error messages
4255         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4256
4257         gnu-web-doc-update: check the requirements.
4258         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4259         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4260         * build-aux/bootstrap (find_tool): Comment change.
4261
4262 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4263
4264         maint.mk: minor simplication.
4265         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4266         for default values.
4267
4268 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4269
4270         gitlog-to-changelog: VPATH build issues
4271         If builddir is not a subdirectory of srcdir, running git from it will
4272         fail.
4273         * build-aux/gitlog-to-changelog (--srcdir): New option.
4274
4275 2012-07-15  Bruno Haible  <bruno@clisp.org>
4276
4277         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4278         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4279         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4280         Remove exemption for fpending.h.
4281         Suggested by Eric Blake.
4282
4283 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4284
4285         pthread_sigmask: fix bug on FreeBSD 9
4286         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4287         Include string.h.
4288         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4289         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4290         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4291         but pthread_sigmask (1729, NULL, NULL) returns zero.
4292         See <http://bugs.gnu.org/11884>.
4293         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4294         by inspecting whether the main call changed the old mask.
4295
4296 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4297
4298         README-release: make it more legible
4299         * top/README-release: Improve typography slightly.
4300
4301 2012-07-15  Jim Meyering  <meyering@redhat.com>
4302
4303         maint: require that each sc_... command start with "@"
4304         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4305         "make sc_maint" helps us avoid this nit.
4306
4307 2012-07-15  Jim Meyering  <meyering@redhat.com>
4308
4309         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4310         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4311
4312 2012-07-13  Eric Blake  <eblake@redhat.com>
4313
4314         maint.mk: new syntax check for HAVE_DECL checks
4315         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4316         * cfg.mk
4317         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4318         Exempt some false positives.
4319         Based on a report by Karel Zak.
4320
4321         argp: make HAVE_DECL usage consistent
4322         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4323         macros, not whether they are defined.
4324         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4325         convention with other declaration checks.
4326         Reported by Karel Zak, with suggestions from Paul Eggert.
4327
4328         stat-time: relax license to LGPLv2+
4329         * modules/stat-time (License): Relax, with consent of all authors.
4330
4331         strndup: fix m4 usage error
4332         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4333         defined, to either 0 or 1.
4334         Reported by Karel Zak.
4335
4336 2012-07-11  Jim Meyering  <meyering@redhat.com>
4337
4338         maint: enable the sc_avoid_if_before_free syntax-check rule
4339         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4340         (if_before_free_offenders_): Define.
4341         (if_before_free_basename_re_): Define.
4342         Exempt current files with useless if-before-free.
4343
4344 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4345
4346         gettext: do not assume '#define ... defined ...' behavior
4347         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4348         Do not use '#define FOO ... defined BAR ...', as the C standard says
4349         it's not portable to expect that this works after macro expansion.
4350         Problem reported for gzip by Steven M. Schweda in
4351         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4352
4353 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4354
4355         getloadavg: clean out old Emacs and Autoconf cruft
4356         See Glenn Morris in <http://bugs.gnu.org/11905>.
4357         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4358         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4359         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4360         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4361
4362 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4363
4364         bootstrap: let warn be like tests/init.sh's warn_
4365         Reported by Jim Meyering.
4366         * build-aux/bootstrap (warn): Remove, replaced by...
4367         (warnf_, warn_): these.
4368         Adjust callers.
4369         Shorten messages that no longer fit in 80 columns.
4370
4371 2012-07-09  Bruno Haible  <bruno@clisp.org>
4372
4373         getopt: Simplify after Emacs changed.
4374         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4375         (gl_GETOPT_IFELSE): Remove macro.
4376
4377 2012-07-09  Jim Meyering  <meyering@redhat.com>
4378
4379         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4380         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4381
4382         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4383         Bugs in both of those conspired to make the
4384         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4385         _sc_search_regexp's handling of non-empty $in_files would filter
4386         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4387         choice of in_files value meant there would be no match in most
4388         projects, due to the presence of two or more Makefile.in files.
4389         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4390         Fix a bug in how a non-empty $$in_files was processed:
4391         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4392         in spite of the name, it's a regexp, not a list of file names.
4393
4394 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4395
4396         getloadavg, getopt: fix commentary re configure.in
4397         Autoconf is deprecating the name 'configure.in', so change it to
4398         to the new name 'configure.ac' in a couple of places.
4399         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4400         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4401         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4402         Emacs has renamed it to configure.ac, and it no longer refers
4403         to these macros anyway.
4404
4405         timespec: mark functions with const attributes
4406         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4407         Mark with _GL_ATTRIBUTE_CONST.
4408
4409 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4410
4411         canonicalize[-lgpl]: handle "guessing" values when cross-building
4412         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4413         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4414         matches "*yes" instead of just "yes".  Regression introduced in commit
4415         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4416
4417 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4418             Bruno Haible  <bruno@clisp.org>
4419
4420         canonicalize: make the right guess when cross-compiling to GNU
4421         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4422         determine whether cross-compiling to glibc systems, so as to
4423         include GNU/Hurd.
4424
4425 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4426
4427         timespec-sub: avoid duplicate include
4428         * lib/timespec-sub.c: Do not include <config.h> twice.
4429         Reported by Juanma Barranquero.
4430
4431 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4432
4433         bootstrap: use a more consistent error reporting scheme
4434         * build-aux/bootstrap (warn, die): New.
4435         Use them.
4436
4437 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4438
4439         sys_time: allow too-wide tv_sec
4440         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4441         timeval even if tv_sec is wider than time_t.  This allows
4442         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4443         as without this patch gnulib replaces struct timeval
4444         and OpenBSD futimes therefore has a type mismatch.
4445         * doc/posix-headers/sys_time.texi: Mention this.
4446
4447         pthread: check for both pthread_create and pthread_join
4448         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4449         alter the check so that it tests for both pthread_create and
4450         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4451         Suggested by Bruno Haible and Richard Yao in
4452         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4453
4454         parse-datetime: doc tuneup
4455         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4456         spacing issues.
4457
4458 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4459
4460         do-release-commit-and-tag: fix the previous commit
4461         * build-aux/do-release-commit-and-tag: Actually the test was right,
4462         but the comment and the error message were misleading.
4463         Fix comment, and improve error message.
4464         Perform check first, so that NEWS is not modified uselessly.
4465
4466         do-release-commit-and-tag: fix typo
4467         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4468         _not_ start with a stub.
4469
4470 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4471
4472         pthread: check for pthread_create, not pthread_join
4473         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4474         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4475         pthread_join in libc.  I hope this removes the need for all the
4476         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4477         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4478
4479 2012-07-04  Jim Meyering  <meyering@redhat.com>
4480
4481         parse-datetime: fix failure to diagnose invalid input
4482         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4483         rather than diagnosing the invalid input.  Now it reports this:
4484         date: invalid date '\260'
4485         * lib/parse-datetime.y (to_uchar): Define.
4486         (yylex): Don't sign-extend "other" bytes.
4487         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4488         Thanks to Bruno Haible for the patch to this file.
4489         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4490         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4491
4492 2012-07-03  Jim Meyering  <meyering@redhat.com>
4493
4494         bootstrap: do not require now-removed build-aux/missing
4495         Now that build-aux/missing is, er, missing, bootstrap would
4496         silently fail.
4497         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4498         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4499         no longer part of gnulib.
4500         Diagnose the failure.
4501
4502 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4503
4504         alloca: add support for HP NonStop TNS/E native
4505         * lib/alloca.in.h (alloca): Support the new host.
4506         From a suggestion by Joachim Schmitz in
4507         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4508
4509 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4510
4511         fsusage: remove code not needed on non GNU/Linux systems.
4512
4513         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4514         Don't include headers no longer needed in this case.
4515         * lib/fsusage.c [STAT_STATVFS &&
4516         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4517         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4518
4519 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4520
4521         fsusage: include files needed for glibc 2.6 fallback
4522         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4523         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4524         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4525         Problem reported by Ludovic Courtès in
4526         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4527
4528         fsusage: avoid needless check on GNU/Linux
4529         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4530         on GNU/Linux systems, since it can't possibly work.
4531
4532 2012-07-01  Bruno Haible  <bruno@clisp.org>
4533
4534         log: Fix an autoconf >= 2.64 warning.
4535         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4536         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4537
4538 2012-06-28  Bruno Haible  <bruno@clisp.org>
4539
4540         log10f: Fix possible configuration problem.
4541         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4542         $LOGF_LIBM.
4543         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4544
4545 2012-06-28  Bruno Haible  <bruno@clisp.org>
4546
4547         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4548         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4549         not gl_cv_func_unlink_works.
4550         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4551
4552 2012-06-27  Eric Blake  <eblake@redhat.com>
4553
4554         config: drop scripts that automake says are not independent
4555         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4556         * build-aux/elisp-comp: Delete.
4557         * build-aux/missing: Likewise.
4558         * build-aux/ylwrap: Likewise.
4559         * modules/elisp-comp: Likewise.
4560         * MODULES.html.sh: Drop mention of elisp-comp.
4561         * NEWS: Mention this.
4562
4563 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4564
4565         root-uid: new module
4566         This is for portability to Tandem's NonStop Kernel.
4567         * lib/root-uid.h, modules/root-uid: New files.
4568         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4569         * lib/write-any-file.c, tests/test-sethostname2.c:
4570         Include "root-uid.h".
4571         * lib/euidaccess.c (euidaccess):
4572         * lib/pt_chown.c (main):
4573         * lib/unlinkdir.c (cannot_unlink_dir):
4574         * lib/write-any-file.c (can_write_any_file):
4575         * m4/mknod.m4 (gl_FUNC_MKNOD):
4576         * tests/test-sethostname2.c (geteuid, main):
4577         Don't assume ROOT_UID == 0.
4578         * modules/euidaccess (Depends-on):
4579         * modules/pt_chown (Depends-on):
4580         * modules/sethostname-tests (Depends-on):
4581         * modules/unlinkdir (Depends-on):
4582         * modules/write-any-file (Depends-on):
4583         Add root-uid.
4584
4585         regex: use locale-independent comparison for codeset name
4586         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4587         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4588         for codeset name.
4589         * lib/regex_internal.h: Do not include <strings.h>, since we
4590         no longer use strcasecmp.
4591         * modules/regex (Depends-on): Remove strcase.
4592
4593 2012-06-23  Bruno Haible  <bruno@clisp.org>
4594
4595         getopt-posix: No longer guarantee that option processing is resettable.
4596         * doc/posix-functions/getopt.texi: Drop description of problem with
4597         internal state. Fix info about mingw and msvc9.
4598         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4599         option processing by getopt(). Run three test programs instead of one.
4600         Simplify cross-compilation guess.
4601         * NEWS: Mention the change.
4602         Reported by Rich Felker <dalias@aerifal.cx>.
4603
4604 2012-06-26  Bruno Haible  <bruno@clisp.org>
4605
4606         argp, regex: Ensure strcasecmp gets declared.
4607         * lib/argp-help.c: Include <strings.h>.
4608         * lib/regex_internal.h: Likewise.
4609         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4610
4611 2012-06-24  Bruno Haible  <bruno@clisp.org>
4612
4613         ptsname_r: Make it consistent with ptsname on AIX.
4614         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4615         implementation as for OSF/1.
4616         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4617         a pty master.
4618
4619         ptsname_r: Make it consistent with ptsname on OSF/1.
4620         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4621         OSF/1.
4622
4623 2012-06-24  Bruno Haible  <bruno@clisp.org>
4624
4625         ttyname_r: Fix result on OSF/1, Solaris.
4626         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4627
4628 2012-06-24  Bruno Haible  <bruno@clisp.org>
4629
4630         ptsname_r: Add support for Solaris.
4631         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4632         Solaris.
4633
4634         ptsname_r: Fix test failure on native Windows.
4635         * modules/ptsname_r (Depends-on): Add isatty.
4636
4637         ptsname_r: Fix test failures on IRIX, Solaris.
4638         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4639         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4640         accordingly.
4641         * lib/ptsname_r.c: Include <fcntl.h>.
4642         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4643         set errno if fd is invalid.
4644         * tests/test-isatty.c (main): Update comments.
4645
4646 2012-06-24  Bruno Haible  <bruno@clisp.org>
4647
4648         ptsname test: Extend test.
4649         * tests/test-ptsname.c: Include <errno.h>.
4650         (main): Test behaviour with invalid file descriptor.
4651
4652 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4653
4654         time: fix obsolete comment
4655         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4656         reference to HAVE_STRUCT_TIMESPEC in comment.
4657
4658 2012-06-23  Bruno Haible  <bruno@clisp.org>
4659
4660         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4662         does not handle abbreviated long options with equivalent
4663         disambiguations, set gl_replace_getopt to yes.
4664         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4665
4666 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4667
4668         time_r: fix typo that always overrode localtime_r decl
4669         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4670         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4671         not in a standard include.
4672
4673 2012-06-22  Bruno Haible  <bruno@clisp.org>
4674
4675         Write "Mac OS X" instead of "MacOS X".
4676         * README: Write "Mac OS X" instead of "MacOS X".
4677         * build-aux/bootstrap: Likewise.
4678         * build-aux/install-reloc: Likewise.
4679         * lib/acl-internal.h: Likewise.
4680         * lib/acl_entries.c: Likewise.
4681         * lib/argp-ba.c: Likewise.
4682         * lib/argp-pv.c: Likewise.
4683         * lib/config.charset: Likewise.
4684         * lib/copy-acl.c: Likewise.
4685         * lib/csharpexec.c: Likewise.
4686         * lib/euidaccess.c: Likewise.
4687         * lib/fbufmode.c: Likewise.
4688         * lib/fflush.c: Likewise.
4689         * lib/file-has-acl.c: Likewise.
4690         * lib/filemode.h: Likewise.
4691         * lib/fpurge.c: Likewise.
4692         * lib/freadable.c: Likewise.
4693         * lib/freadahead.c: Likewise.
4694         * lib/freading.c: Likewise.
4695         * lib/freadptr.c: Likewise.
4696         * lib/freadseek.c: Likewise.
4697         * lib/fseeko.c: Likewise.
4698         * lib/fseterr.c: Likewise.
4699         * lib/fsusage.c: Likewise.
4700         * lib/fwritable.c: Likewise.
4701         * lib/fwriting.c: Likewise.
4702         * lib/get-rusage-as.c: Likewise.
4703         * lib/get-rusage-data.c: Likewise.
4704         * lib/getdomainname.c: Likewise.
4705         * lib/idpriv-drop.c: Likewise.
4706         * lib/idpriv-droptemp.c: Likewise.
4707         * lib/localcharset.c: Likewise.
4708         * lib/locale.in.h: Likewise.
4709         * lib/localename.c: Likewise.
4710         * lib/mbsrtowcs-state.c: Likewise.
4711         * lib/nproc.c: Likewise.
4712         * lib/passfd.c: Likewise.
4713         * lib/posix_openpt.c: Likewise.
4714         * lib/printf-parse.c: Likewise.
4715         * lib/progreloc.c: Likewise.
4716         * lib/safe-read.h: Likewise.
4717         * lib/safe-write.h: Likewise.
4718         * lib/sched.in.h: Likewise.
4719         * lib/set-mode-acl.c: Likewise.
4720         * lib/signal.in.h: Likewise.
4721         * lib/stdint.in.h: Likewise.
4722         * lib/stdio-impl.h: Likewise.
4723         * lib/stdlib.in.h: Likewise.
4724         * lib/strtod.c: Likewise.
4725         * lib/sys_select.in.h: Likewise.
4726         * lib/tcgetsid.c: Likewise.
4727         * lib/unistd.in.h: Likewise.
4728         * lib/unlockpt.c: Likewise.
4729         * lib/vasnprintf.c: Likewise.
4730         * lib/vma-iter.c: Likewise.
4731         * lib/wcsrtombs-state.c: Likewise.
4732         * m4/acl.m4: Likewise.
4733         * m4/acosl.m4: Likewise.
4734         * m4/asinl.m4: Likewise.
4735         * m4/atanl.m4: Likewise.
4736         * m4/c-stack.m4: Likewise.
4737         * m4/cosl.m4: Likewise.
4738         * m4/expl.m4: Likewise.
4739         * m4/extensions.m4: Likewise.
4740         * m4/fdatasync.m4: Likewise.
4741         * m4/fmal.m4: Likewise.
4742         * m4/frexp.m4: Likewise.
4743         * m4/frexpf.m4: Likewise.
4744         * m4/frexpl.m4: Likewise.
4745         * m4/fsusage.m4: Likewise.
4746         * m4/getdomainname.m4: Likewise.
4747         * m4/getloadavg.m4: Likewise.
4748         * m4/getopt.m4: Likewise.
4749         * m4/gettext.m4: Likewise.
4750         * m4/gnulib-common.m4: Likewise.
4751         * m4/intdiv0.m4: Likewise.
4752         * m4/intlmacosx.m4: Likewise.
4753         * m4/largefile.m4: Likewise.
4754         * m4/ldexpl.m4: Likewise.
4755         * m4/link-follow.m4: Likewise.
4756         * m4/locale-ar.m4: Likewise.
4757         * m4/locale-fr.m4: Likewise.
4758         * m4/locale-ja.m4: Likewise.
4759         * m4/locale-tr.m4: Likewise.
4760         * m4/locale-zh.m4: Likewise.
4761         * m4/locale_h.m4: Likewise.
4762         * m4/lock.m4: Likewise.
4763         * m4/logl.m4: Likewise.
4764         * m4/mathfunc.m4: Likewise.
4765         * m4/minus-zero.m4: Likewise.
4766         * m4/mktime.m4: Likewise.
4767         * m4/mmap-anon.m4: Likewise.
4768         * m4/multiarch.m4: Likewise.
4769         * m4/nanosleep.m4: Likewise.
4770         * m4/nocrash.m4: Likewise.
4771         * m4/poll.m4: Likewise.
4772         * m4/printf-frexpl.m4: Likewise.
4773         * m4/printf.m4: Likewise.
4774         * m4/signbit.m4: Likewise.
4775         * m4/sinl.m4: Likewise.
4776         * m4/sqrtl.m4: Likewise.
4777         * m4/strerror_r.m4: Likewise.
4778         * m4/tanl.m4: Likewise.
4779         * m4/threadlib.m4: Likewise.
4780         * m4/ttyname_r.m4: Likewise.
4781         * m4/unlink.m4: Likewise.
4782         * m4/visibility.m4: Likewise.
4783         * m4/wcwidth.m4: Likewise.
4784         * tests/minus-zero.h: Likewise.
4785         * tests/test-alloca-opt.c: Likewise.
4786         * tests/test-copy-acl.sh: Likewise.
4787         * tests/test-copy-file.sh: Likewise.
4788         * tests/test-fdatasync.c: Likewise.
4789         * tests/test-file-has-acl.sh: Likewise.
4790         * tests/test-flock.c: Likewise.
4791         * tests/test-fsync.c: Likewise.
4792         * tests/test-localename.c: Likewise.
4793         * tests/test-malloca.c: Likewise.
4794         * tests/test-nonblocking-pipe.h: Likewise.
4795         * tests/test-nonblocking-socket.h: Likewise.
4796         * tests/test-openpty.c: Likewise.
4797         * tests/test-posix_openpt.c: Likewise.
4798         * tests/test-ptsname.c: Likewise.
4799         * tests/test-ptsname_r.c: Likewise.
4800         * tests/test-sameacls.c: Likewise.
4801         * tests/test-select.h: Likewise.
4802         * tests/test-set-mode-acl.sh: Likewise.
4803         * tests/test-snprintf-posix.h: Likewise.
4804         * tests/test-sprintf-posix.h: Likewise.
4805         * tests/test-strtod.c: Likewise.
4806         * tests/test-time.c: Likewise.
4807         * tests/test-vasnprintf-posix.c: Likewise.
4808         * tests/test-vasprintf-posix.c: Likewise.
4809         * doc/acl-resources.txt: Likewise.
4810         * doc/**/*.texi: Likewise.
4811         Reported by Max Horn <max@quendi.de>.
4812
4813 2012-06-22  Bruno Haible  <bruno@clisp.org>
4814
4815         grantpt: Relax requirement regarding invalid file descriptors.
4816         * lib/grantpt.c: Don't include <fcntl.h>.
4817         (grantpt): Don't verify the validity of the file descriptor.
4818         * modules/grantpt (Depends-on): Remove fcntl-h.
4819         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4820         file descriptors.
4821         * doc/posix-functions/grantpt.texi: Document more platforms on which
4822         grantpt succeeds for invalid file descriptors.
4823         Reported by Rich Felker <dalias@aerifal.cx>.
4824
4825 2012-06-22  Bruno Haible  <bruno@clisp.org>
4826
4827         fbufmode test: Don't test unportable behaviour.
4828         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4829         (main): Invoke it three times.
4830         Reported by Szabolcs Nagy <nsz@port70.net>
4831         and Rich Felker <dalias@aerifal.cx>.
4832
4833 2012-06-21  Bruno Haible  <bruno@clisp.org>
4834
4835         gnulib-tool: Refactor inctests variable.
4836         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4837         (func_modules_transitive_closure,
4838         func_modules_transitive_closure_separately,
4839         func_import, func_create_testdir): Update.
4840
4841         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4842         * gnulib-tool: Accept option --without-tests.
4843         (func_usage): Document --without-tests option. Rearrange.
4844         (inctests): Normalize according to the mode.
4845         * NEWS: Mention the change.
4846         Suggested by Simon Josefsson.
4847
4848 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4849
4850         parse-duration test: Avoid spurious output.
4851         * tests/test-parse-duration.sh: Reindent with leading tabs.
4852
4853 2012-06-21  Jim Meyering  <meyering@redhat.com>
4854
4855         maint: disable the strncpy prohibition
4856         * cfg.mk: Do not prohibit strncpy here.
4857
4858 2012-06-21  Bruno Haible  <bruno@clisp.org>
4859
4860         nonblocking: Avoid compilation error on mingw64.
4861         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4862         fscanf.
4863         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4864         * modules/vfscanf (configure.ac): Likewise.
4865         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4866         definition only if stdio.h has prepared it.
4867         Reported by Daniel P. Berrange <berrange@redhat.com>.
4868
4869 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4870
4871         gnulib-tool: Use readlink if it is available.
4872         * gnulib-tool (func_readlink): Choose function more appropriately.
4873
4874 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4875
4876         posixtm-tests: port to buggy compiler
4877         Problem reported by Simon Josefsson in
4878         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4879         * modules/posixtm-tests (Depends-on): Add stdint.
4880         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4881         Now of type int_least64_t, not int64_t, both because that's
4882         what INT64_C returns and because int_least64_t works even
4883         on 72-bit hosts.
4884         (T): Use INT64_C on constants outside the traditional int range,
4885         to work around compiler bug noted by Simon.
4886
4887         mktime: fix integer overflow in 'configure'-time test
4888         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4889         after integer overflow.  Problem reported by Rich Felker in
4890         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4891         Also, don't look for further instances of a bug if we've already
4892         found one instance; this helps 'configure' run faster.
4893
4894 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4895
4896         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4897         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4898         GetVersionEx correctly.
4899         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4900
4901 2012-06-20  Bruno Haible  <bruno@clisp.org>
4902
4903         fdopen: Allow implementations that don't reject invalid fd arguments.
4904         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4905         succeeds.
4906         Reported by Rich Felker <dalias@aerifal.cx>.
4907
4908 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4909
4910         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4911         bring in LIBINTL.
4912
4913 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4914
4915         init.sh: do not rely on autoupated PWD
4916         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4917         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4918         Although Nelson's bug was not necessarily fixed by this patch,
4919         it seems wise to make the change for safety.
4920         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4921         automagically after 'cd'; this is not reliable on older shells.
4922         (setup_): Fail if we cannot cd to temporary directory.
4923
4924 2012-06-19  Bruno Haible  <bruno@clisp.org>
4925
4926         stat, fstat: Avoid warnings on mingw64.
4927         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4928         redefining.
4929         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4930         Reported by Daniel P. Berrange <berrange@redhat.com>.
4931
4932 2012-06-19  Bruno Haible  <bruno@clisp.org>
4933
4934         stdioext: Add support for musl libc.
4935
4936         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4937         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4938
4939         * m4/fseterr.m4: New file.
4940         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4941         function exists.
4942         * modules/fseterr (Files): Add m4/fseterr.m4.
4943         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4944         __fseterr does not exist.
4945         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4946
4947         * lib/freadable.h: Update comment.
4948
4949         * lib/fwritable.h: Update comment.
4950
4951         * lib/freading.h: Update comment.
4952
4953         * lib/fwriting.h: Update comment.
4954
4955         * m4/freadahead.m4: New file.
4956         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4957         that function exists.
4958         * modules/freadahead (Files): Add m4/freadahead.m4.
4959         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4960         __freadahead does not exist.
4961         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4962
4963         * m4/freadptr.m4: New file.
4964         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4965         function exists.
4966         * modules/freadptr (Files): Add m4/freadptr.m4.
4967         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4968         __freadptr does not exist.
4969         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4970
4971         * m4/freadseek.m4: New file.
4972         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4973         exists.
4974         * modules/freadseek (Files): Add m4/freadseek.m4.
4975         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4976
4977         * lib/fpurge.c (fpurge): Update comment.
4978
4979         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4980
4981 2012-06-19  Bruno Haible  <bruno@clisp.org>
4982
4983         *printf-posix: Put more info into config.log.
4984         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4985         exit code into config.log.
4986
4987 2012-06-19  Bruno Haible  <bruno@clisp.org>
4988
4989         getopt-gnu: Fix exit code overflow in autoconf test.
4990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4991         to keep them below < 128.
4992
4993 2012-06-17  Jim Meyering  <meyering@redhat.com>
4994
4995         maint.mk: fix typo in code to derive GPG key at release time
4996         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4997
4998 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4999
5000         regex: avoid warning when pointers are not long
5001         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
5002         and uintptr_t, not long, for portability to hosts where pointers and
5003         long have different sizes.  Issue noted by Daniel P. Berrange in
5004         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
5005         and fix suggested by Bruno Haible in
5006         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
5007
5008 2012-06-17  Bruno Haible  <bruno@clisp.org>
5009
5010         dummy: Relicense into the public domain.
5011         * modules/dummy (License): Set to "public domain".
5012         Suggested by Reuben Thomas.
5013
5014 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
5015
5016         announce-gen: VPATH issues
5017         * build-aux/announce-gen (--srcdir): New option, used to trim the
5018         $srcdir part of the path from $builddir to NEWS.
5019         * top/maint.mk (announcement): Adjust.
5020
5021 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
5022
5023         gnu-web-doc-update: VPATH builds
5024         * build-aux/gnu-web-doc-update (--builddir): New option.
5025         Revamp the handling of options.
5026         Prefer $(...) to `...`.
5027         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
5028         the template, and it is GNU mktemp specific.
5029         Prefer set -e to long series of &&.
5030         Restore the initial git branch, not "master".
5031         Properly initialize submodules (don't rely only on bootstrap).
5032         Do not reconfigure blindly, use config.status.
5033         * top/README-release: Update instructions for gnu-web-doc-update.
5034
5035 2012-06-11  Jim Meyering  <meyering@redhat.com>
5036
5037         maint.mk: revert most of the previous change re "all these"
5038         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
5039         For rationale, see the discussion at
5040         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
5041
5042 2012-06-10  Karl Berry  <karl@gnu.org>
5043
5044         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
5045
5046         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
5047
5048 2012-06-10  Bruce Korb  <bkorb@gnu.org>
5049
5050         parse-duration: Relicense under LGPLv2+.
5051         * modules/parse-duration (License): Change to LGPLv2+.
5052
5053 2012-06-10  Jim Meyering  <meyering@redhat.com>
5054
5055         maint.mk: prohibit common grammar error: "all these"
5056         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
5057         the list of prohibited word sequences.  It should be "all of these".
5058         * lib/tempname.c (__gen_tempname): Fix one of them.
5059
5060 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5061
5062         do-release-commit-and-tag: support VPATH builds
5063         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
5064         (noteworthy): Defined earlier to factor its value.
5065         (noteworthy_stub): New.
5066         Use it to factor.
5067         (help_version): Split into...
5068         (help, version): these.
5069         Adjust the option processing part.
5070         Support "--option=value" in addition to "--option value".
5071         (builddir): New.
5072         (--builddir): New option.
5073         * top/README-release: Document this.
5074         Reword slightly so that the reader cannot understand that he
5075         has to do these steps before calling do-release-commit-and-tag.
5076
5077 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5078
5079         readme-release: also require announce-gen and maintainer-makefile
5080         * modules/readme-release (Depends-on): here.
5081         * modules/announce-gen, modules/do-release-commit-and-tag,
5082         modules/gnu-web-doc-update, modules/maintainer-makefile
5083         (Description): Point to readme-release.
5084
5085 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5086
5087         maint.mk: fix VPATH issues.
5088         * top/maint.mk (news-check): GNU Make understand $< very well.
5089         (release-prep): NEWS is in $(srcdir).
5090
5091 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
5092
5093         readme-release: require the promoted modules.
5094         * modules/readme-release (Depends-on): Add
5095         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
5096         in this text.
5097
5098 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5099             Bruno Haible  <bruno@clisp.org>
5100
5101         error, strerror-override: Support mingw64 from Fedora 17.
5102         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
5103         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
5104         EINPROGRESS.
5105         * lib/strerror-override.h (strerror_override): Test it.
5106         * lib/strerror-override.c (strerror_override): Likewise.
5107         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
5108
5109 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5110             Bruno Haible  <bruno@clisp.org>
5111
5112         error, strerror-override: Support mingw64 from Fedora 17.
5113         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
5114         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
5115         * lib/strerror-override.h (strerror_override): Test it.
5116         * lib/strerror-override.c (strerror_override): Likewise.
5117
5118 2012-06-03  Bruno Haible  <bruno@clisp.org>
5119
5120         error, strerror-override: Support new errno values from POSIX:2008.
5121         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
5122         ENOTRECOVERABLE.
5123         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
5124         platforms.
5125         * lib/strerror-override.c (strerror_override): Conditionalize the
5126         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
5127         * lib/strerror-override.h (strerror_override): Declare also if
5128         GNULIB_defined_EOWNERDEAD is defined.
5129         * tests/test-errno.c (e130, e131): New variables.
5130         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
5131         ENOTRECOVERABLE.
5132         Reported by Paolo Bonzini.
5133
5134 2012-05-31  Jim Meyering  <meyering@redhat.com>
5135
5136         savewd: add missing dependency on sys_wait module
5137         * modules/savewd (Depends-on): Add sys_wait, needed at least
5138         for MSVC.  Report and suggested change by Michael Goffioul.
5139
5140 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5141
5142         system-quote-tests: port to CentOS 5
5143         Problem reported by Tom G. Christensen in
5144         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5145         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5146
5147 2012-05-29  Jim Meyering  <meyering@redhat.com>
5148
5149         maint: fix typos in comments and ChangeLog
5150         Culprits identified and fixed mostly automatically using these commands:
5151         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5152         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5153         using http://github.com/lyda/misspell-check
5154         * ChangeLog: Fix typos.
5155         * doc/solaris-versions: Likewise.
5156         * lib/regexec.c (re_search_stub): Likewise.
5157         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5158
5159 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5160
5161         manywarnings: remove duplicate -Wmultichar entry
5162         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5163         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5164         so keep the entry marked as documented.
5165
5166 2012-05-27  Karl Berry  <karl@gnu.org>
5167
5168         * config/srclist.txt (mktime.c): remove last libc sync,
5169         perhaps just temporarily.
5170
5171 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5172
5173         regex: don't assume uint64_t or uint32_t
5174         * lib/regcomp.c (init_word_char): Don't assume that the types
5175         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5176         them, and on some 32-bit compilers there is no uint64_t.
5177         Problem reported by Gianluigi Tiesi in
5178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5179
5180 2012-05-25  Jim Meyering  <meyering@redhat.com>
5181
5182         maint.mk: add strncpy-prohibiting syntax-check rule
5183         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5184
5185 2012-05-24  Jim Meyering  <meyering@redhat.com>
5186
5187         maint.mk: compute $(gpg_key_ID) more portably
5188         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5189         That use of sed is not portable to some fringe systems.
5190         Reported by Paul Eggert in
5191         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5192
5193 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5194
5195         mktime: sync from glibc
5196         * config/srclist.txt: Uncomment mktime.c.
5197         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5198         First, indent with tabs, since glibc uses tabs and doesn't want to
5199         change and we'd rather be identical to glibc.  Also, two small
5200         coding changes:
5201         (isdst_differ): Use &&, not &, as && is the usual style.
5202         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5203         for clarity.
5204
5205 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5206
5207         announce-gen: du -h is more portable than du --human
5208         * build-aux/announce-gen (sizes): Invoke du with -h instead
5209         of --human.  Accept leading white space in its output.
5210
5211 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5212
5213         announce-gen: Improve diagnostics.
5214         * build-aux/announce-gen: When parsing command line options,
5215         prefer "announce-gen: option --release-type requires an argument"
5216         to "Option release-type requires an argument".
5217
5218 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5219
5220         maint.mk: gpg_key_ID: use sed more portably
5221         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5222         the closing brace.
5223         (refresh-po): Fuse two sed invocations into one.
5224
5225 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5226
5227         gitlog-to-changelog: support the log message format used in Bison.
5228         * build-aux/gitlog-to-changelog: Support --strip-tab and
5229         --strip-cherry-picked.
5230
5231 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5232
5233         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5234         the rest of the current time slice to another thread in the current
5235         process. So if the thread that feeds the file decscriptor we're
5236         polling is not in the current process, we get busy-waiting.
5237         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5238         Patch from Theodore Leblond.
5239         * lib/select.c: Split polling out of the loop that sets the output
5240         fd_sets.  Check for zero result and loop if the wait timeout is
5241         infinite.
5242
5243 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5244
5245         select: Fix build error on IRIX 6.5.
5246         * lib/select.c: Include stddef.h for NULL.
5247
5248 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5249
5250         gc: fix libgcrypt detection on older machines.
5251         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5252         copyright years because the file has been distributed every year
5253         since it was created.
5254
5255 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5256
5257         crypto: fix bug in large buffer handling
5258         Problem reported by Serge Belyshev for glibc in
5259         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5260         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5261         * lib/md4.c (md4_process_block):
5262         * lib/md5.c (md5_process_block):
5263         * lib/sha1.c (sha1_process_block):
5264         * lib/sha256.c (sha256_process_block):
5265         Don't assume the buffer length is less than 2**32.
5266         * lib/sha512.c (sha512_process_block): Likewise.
5267         Here, the bug is present only in the rare case where the host does
5268         not support uint64_t or where size_t is wider than 64 bits.
5269         Use u64size to work around the problems.
5270         * lib/u64.h (u64size): New macro.
5271
5272 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5273
5274         fsusage: fix block size returned on older Linux 2.6
5275
5276         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5277         which is available since Linux 2.6.
5278         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5279         when the member is available so it can be used as a fallback.
5280         * doc/posix-functions/statvfs.texi: Mention the hang issue
5281         on Linux < 2.6.36.
5282
5283 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5284
5285         bootstrap: suppress stderr chatter
5286         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5287         Omit unnecessary chatter to stderr.  The main program chatter
5288         was there only inadvertantly.
5289
5290         bootstrap: .gitignore files created by autopoint, libtool
5291         I ran into this problem when bootstrapping the latest diffutils.
5292         After './bootstrap', 'git status' reported lots of untracked files
5293         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5294         autopoint and do not need to be version-controlled.
5295         * build-aux/bootstrap: Put into .gitignore the files that
5296         autopoint and libtool create, by keeping track of files that exist
5297         after but not before these programs are run.
5298         (version_controlled_file): Move up.  2nd arg is now full file
5299         name, not base name; this is more convenient.  Put CVS at the end,
5300         as it's now somewhat deprecated.
5301
5302 2012-05-14  Jim Meyering  <meyering@redhat.com>
5303
5304         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5305         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5306         definition.  Reported by Bruno Haible.
5307
5308 2012-05-13  Bruno Haible  <bruno@clisp.org>
5309             Paul Eggert  <eggert@cs.ucla.edu>
5310
5311         binary-io: Define set_binary_mode function.
5312         * lib/binary-io.h (set_binary_mode): New function.
5313         (SET_BINARY): Define in terms of set_binary_mode.
5314         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5315         * tests/test-binary-io.c (main): Accept an argument, and test either
5316         set_binary_mode or SET_BINARY depending on the argument.
5317         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5318         argument. Clean up also t-bin-out0.tmp.
5319
5320 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5321
5322         bootstrap: take advantage of POSIX shell features
5323
5324         The 'bootstrap' script offered by Gnulib script already uses POSIX
5325         shell features (like $((...)) arithmetic expansions) that are not
5326         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5327         means that bootstrap must already be run using a proper POSIX shell,
5328         which will thus provide more features, like ${var#pattern} parameter
5329         expansion or inversion of a command exit status with '!'.  We can
5330         thus use these features to improve the clarity and the performances
5331         of the bootstrap script.
5332
5333         Suggested by Eric Blake.
5334
5335         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5336         of sed/expr plus command substitutions, to save some forks.  While
5337         we are at it, prefer the POSIX $(...) form of command substitution,
5338         rather than the legacy form `...` (since the former is visually
5339         clearer and interacts better with quoting), and prefer the idiom:
5340           "if ! CMD; then ACTION ..."
5341         over the idiom:
5342           "if CMD; then :; else ACTION ..."
5343         which was required by legacy Bourne shells not supporting '!'.
5344
5345 2012-05-12  Bruno Haible  <bruno@clisp.org>
5346
5347         system-quote: Add more comments.
5348         * lib/system-quote.h: Add more comments about wilcards and limitations.
5349         Suggested by Eli Zaretskii <eliz@gnu.org>.
5350
5351         sh-quote, system-quote: Add comments about wildcards.
5352         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5353         * lib/system-quote.h: Likewise.
5354         Reported by Eli Zaretskii <eliz@gnu.org>.
5355
5356 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5357
5358         fsusage: check for GNU/Linux statvfs problem dynamically
5359         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5360         Define STAT_STATFS2_BSIZE too, since in this case the code now
5361         checks dynamically whether statvfs is reliable, falling back on
5362         Linux-style statfs otherwise.
5363         (statvfs_works): New function, for dynamically testing statvfs.
5364         (get_fs_usage) [STAT_STATVFS]: Use it.
5365         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5366         statvfs on GNU/Linux hosts, since it's now done dynamically.
5367
5368 2012-05-10  Bruno Haible  <bruno@clisp.org>
5369
5370         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5371         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5372         '?' character.
5373         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5374         * tests/test-system-quote-main.c (check_all): Check also strings like
5375         "??????????".
5376         Reported by Eli Zaretskii <eliz@gnu.org>.
5377
5378 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5379
5380         _Noreturn: port config.h to gcc -Wundef
5381         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5382         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5383         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5384
5385 2012-05-10  Bruno Haible  <bruno@clisp.org>
5386
5387         system-quote: Refactor.
5388         * lib/system-quote.h (system_quote_copy): Fix comment.
5389         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5390         New functions, extracted from system_quote_copy.
5391         (system_quote_length, system_quote_copy): Use these functions.
5392         Reported by Paul Eggert.
5393
5394 2012-05-08  Bruno Haible  <bruno@clisp.org>
5395
5396         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5397         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5398
5399 2012-05-08  Bruno Haible  <bruno@clisp.org>
5400
5401         Tests for module 'system-quote'.
5402         * modules/system-quote-tests: New file.
5403         * tests/test-system-quote.sh: New file.
5404         * tests/test-system-quote-main.c: New file.
5405         * tests/test-system-quote-child.c: New file.
5406
5407         New module 'system-quote'.
5408         * lib/system-quote.h: New file.
5409         * lib/system-quote.c: New file.
5410         * modules/system-quote: New file.
5411
5412 2012-05-08  Bruno Haible  <bruno@clisp.org>
5413
5414         sh-quote: Make C++ safe and allow multiple inclusion.
5415         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5416         declarations in extern "C".
5417
5418 2012-05-08  Bruno Haible  <bruno@clisp.org>
5419
5420         sh-quote tests: Make tests stricter.
5421         * tests/test-sh-quote.c (check_one): Check the return value of
5422         shell_quote_copy.
5423         (main): Check a string with a CR character. Check a string that
5424         contains UCHAR_MAX.
5425
5426 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5427
5428         warnings.m4: provide a means to specify the program to compile.
5429         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5430         (gl_WARN_ADD): here.
5431         Use gl_AS_VAR_APPEND.
5432         Support an argument to specify the program to compile.
5433         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5434         AC_SUBST the WARN_CFLAGS when they are used.
5435         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5436         leave this to gl_WARN_ADD.
5437
5438 2012-05-08  Eric Blake  <eblake@redhat.com>
5439
5440         doc: recommendations on gettext version
5441         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5442         choice between versions.
5443         * DEPENDENCIES (gettext): Cover both approaches.
5444
5445 2012-05-08  Jim Meyering  <meyering@redhat.com>
5446
5447         init.sh: explain why EXEEXT support uses aliases rather than functions
5448         * tests/init.sh: Add a comment.
5449
5450         init.sh: don't let bash aliases interfere with tests
5451         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5452         is bash.  This avoids problems for those who alias standard commands to
5453         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5454         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5455
5456 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5457
5458         stdint: be more consistent with glibc, SunOS libc
5459         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5460         (gl_int_fast16_t, gl_uint_fast16_t)
5461         (gl_int_fast32_t, gl_uint_fast32_t)
5462         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5463         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5464         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5465         Be consistent with glibc by default, and with SunOS 5.10 and later
5466         if __sun is defined.  This lessens the likelihood of clashes if
5467         code compiled for older hosts is combined with code compiled for
5468         newer ones.  Problem reported by Niels Möller in
5469         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5470
5471 2012-05-07  Eric Blake  <eblake@redhat.com>
5472
5473         isatty: relax license to LGPLv2+
5474         * modules/isatty (License): Relax license.
5475
5476 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         stat-size: comment fix
5479         * lib/stat-size.h: Remove obsolete comment about indenting.
5480
5481 2012-05-06  Bruno Haible  <bruno@clisp.org>
5482
5483         Tests for module 'sh-quote'.
5484         * modules/sh-quote-tests: New file.
5485         * tests/test-sh-quote.c: New file.
5486
5487 2012-05-06  Bruno Haible  <bruno@clisp.org>
5488
5489         sh-quote: Improve shell_quote_argv's signature.
5490         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5491         * lib/sh-quote.c (shell_quote_argv): Likewise.
5492
5493 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5494
5495         stdint: document issues with int_fast8_t etc.
5496         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5497         stdint.h substitutes may define these types differently.  See
5498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5499
5500 2012-05-05  Bruno Haible  <bruno@clisp.org>
5501
5502         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5504         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5505         or 'guessing no (mishandles large arguments)'.
5506
5507 2012-05-05  Bruno Haible  <bruno@clisp.org>
5508
5509         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5510         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5511         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5512         set gl_cv_func_link_follows_symlink to "guessing no".
5513
5514 2012-05-05  Bruno Haible  <bruno@clisp.org>
5515
5516         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5517         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5518         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5519         "guessing no".
5520         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5521
5522 2012-05-05  Bruno Haible  <bruno@clisp.org>
5523
5524         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5525         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5526         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5527         set gl_cv_struct_dirent_d_ino to "guessing yes".
5528
5529 2012-05-05  Bruno Haible  <bruno@clisp.org>
5530
5531         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5532         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5533         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5534         "guessing yes".
5535
5536 2012-05-05  Bruno Haible  <bruno@clisp.org>
5537
5538         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5539         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5540         compiling to a glibc system, set gl_cv_func_signbit and
5541         gl_cv_func_signbit_gcc to "guessing yes".
5542
5543 2012-05-05  Bruno Haible  <bruno@clisp.org>
5544
5545         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5546         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5547         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5548         to "guessing yes".
5549         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5550         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5551
5552 2012-05-05  Bruno Haible  <bruno@clisp.org>
5553
5554         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5555         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5556         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5557         gl_cv_func_realpath_works to "guessing yes".
5558
5559 2012-05-05  Bruno Haible  <bruno@clisp.org>
5560
5561         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5563         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5564
5565 2012-05-04  Bruno Haible  <bruno@clisp.org>
5566
5567         Tweak last commit.
5568         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5569         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5570
5571 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         unistd_h: make it easier to avoid sys_types_h
5574         This is useful for Emacs, which has its own method of porting to
5575         Windows, and which therefore does not need the sys_types_h module.
5576         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5577         code moved here from gl_SYS_TYPES_H.
5578         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5579         using the code directly.
5580         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5581         gl_SYS_TYPES_H.
5582         * modules/sys_types (Files):
5583         * modules/unistd (Files): Add m4/off_t.m4.
5584
5585 2012-05-03  Bruno Haible  <bruno@clisp.org>
5586
5587         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5588         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5589         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5590         "guessing yes" or "guessing no".
5591         (gl_FUNC_LSTAT): Update.
5592         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5593         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5594         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5595
5596 2012-05-03  Bruno Haible  <bruno@clisp.org>
5597
5598         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5599         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5600         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5601         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5602         cross-compiling, choose the first alternative on glibc systems.
5603         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5604
5605 2012-05-03  Bruno Haible  <bruno@clisp.org>
5606
5607         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5608         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5609         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5610
5611 2012-05-03  Bruno Haible  <bruno@clisp.org>
5612
5613         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5614         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5615
5616 2012-05-03  Bruno Haible  <bruno@clisp.org>
5617
5618         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5619         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5620         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5621         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5622         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5623         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5624         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5625         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5626         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5627         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5628         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5629         gl_cv_func_chown_ctime_works to "guessing yes".
5630         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5631         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5632         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5633         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5634         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5635         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5636         compiling to glibc systems, set gl_cv_func_open_directory_works to
5637         "guessing yes".
5638         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5639         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5640         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5641         "guessing yes".
5642         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5643         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5644         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5645         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5646         "guessing yes".
5647         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5648         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5649         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5650         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5651         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5652         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5653         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5654         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5655         "guessing yes".
5656         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5657         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5658         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5659         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5660         "guessing yes".
5661         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5662         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5663         "guessing yes".
5664         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5665         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5666         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5667         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5668         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5669         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5670         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5671         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5672         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5673         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5674         "guessing yes".
5675         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5676         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5677         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5678         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5679         "guessing yes".
5680         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5681         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5682         "guessing yes".
5683         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5684         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5685         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5686         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5687         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5688         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5689         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5690         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5691         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5692         "guessing yes".
5693         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5694         compiling to glibc systems, set gl_cv_func_mknod_works to
5695         "guessing yes".
5696         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5697         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5698         "guessing yes".
5699         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5700         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5701         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5702         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5703         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5704         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5705         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5706         compiling to glibc systems, set gl_cv_func_svid_putenv to
5707         "guessing yes".
5708         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5709         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5710         "guessing yes".
5711         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5712         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5713         "guessing yes".
5714         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5715         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5716         to "guessing yes".
5717         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5718         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5719         to "guessing yes".
5720         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5721         compiling to glibc systems, set gl_cv_func_rmdir_works to
5722         "guessing yes".
5723         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5724         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5725         gl_cv_func_unlink_parent_fails to "guessing yes".
5726         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5727         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5728         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5729         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5730         gl_cv_func_rename_dest_works to "guessing yes".
5731         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5732         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5734         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5735         "guessing yes".
5736         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5737         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5738         "guessing yes".
5739         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5740         compiling to glibc systems, set gl_cv_func_setenv_works to
5741         "guessing yes".
5742         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5743         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5744         "guessing yes".
5745         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5746         compiling to glibc systems, set gl_cv_func_sleep_works to
5747         "guessing yes".
5748         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5749         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5750         "guessing yes".
5751         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5752         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5753         "guessing yes".
5754         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5755         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5756         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5757         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5758         "guessing yes".
5759         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5760         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5761         "guessing yes".
5762         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5763         compiling to glibc systems, set gl_cv_func_usleep_works to
5764         "guessing yes".
5765         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5766         compiling to glibc systems, set gl_cv_func_futimesat_works to
5767         "guessing yes".
5768
5769 2012-05-03  Bruno Haible  <bruno@clisp.org>
5770
5771         Say "guessing yes" or "guessing no" when cross-compiling.
5772         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5773         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5774         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5775         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5776         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5777         am_cv_func_working_getline to "guessing yes" or "guessing no".
5778         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5779         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5780         (gl_FUNC_MEMMEM): When cross-compiling, set
5781         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5783         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5785         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5786         "guessing no".
5787         (gl_FUNC_STRCASESTR): When cross-compiling, set
5788         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5789         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5790         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5791         (gl_FUNC_STRSTR): When cross-compiling, set
5792         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5793         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5794         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5795         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5796         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5797
5798 2012-05-01  Bruno Haible  <bruno@clisp.org>
5799
5800         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5801         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5802         * build-aux/reloc-ldflags: Likewise.
5803         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5804
5805 2012-05-01  Bruno Haible  <bruno@clisp.org>
5806
5807         gnulib-tool: Remove transitional code.
5808         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5809         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5810
5811 2012-05-01  Bruno Haible  <bruno@clisp.org>
5812
5813         getcwd: Fix misindentation.
5814         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5815
5816 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5817
5818         exclude: process exclude and include directives in order
5819         This restores the pre-2009 behavior, and is part of a fix of a
5820         grep bug reported by Quentin Arce in
5821         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5822         * lib/exclude.c (struct exclude): Remove 'tail' member.
5823         (new_exclude_segment): Prepend the new segment instead of appending.
5824         Return void, since that's now more convenient.
5825         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5826         (file_name_matches): Renamed from excluded_file_name_p.
5827         (file_pattern_matches, file_name_matches):
5828         Return true if the pattern matches, not if it excludes.
5829         All callers changed.
5830         (excluded_file_name): Process the list in reverse order;
5831         since the list is now reversed this restores the pre-2009 behavior.
5832         (add_exclude): Adjust to new reversed-order list.  Use local var
5833         rather than macro, for clarity.
5834         * tests/test-exclude7.sh: Adjust to corrected behavior.
5835
5836         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5837         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5838         it's not possible here.  Handle the case of \ at end of pattern
5839         without dumping core.
5840         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5841
5842         _Noreturn: future-proof non-GNU and non-MSVC compilers
5843         * build-aux/snippet/_Noreturn.h (_Noreturn):
5844         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5845         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5846         C11 or later.  This is more likely to work with random future C
5847         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5848         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5849
5850         exclude: handle wildcards with FNM_EXTMATCH
5851         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5852         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5853         comment that "has wildcards" really means "has or may have
5854         wildcards".  Simplify by avoiding the need to call strcspn.
5855
5856 2012-04-29  Bruno Haible  <bruno@clisp.org>
5857
5858         gnulib-tool: Fix list of authors.
5859         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5860
5861 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5862
5863         bootstrap: support Automake-NG in $buildreq
5864         * bootstrap (check_versions): Handle automake and aclocal from
5865         Automake-NG specially.  They can be specified as respectively
5866         the "automake-ng" and "aclocal-ng" requirements.
5867
5868 2012-04-25  Eric Blake  <eblake@redhat.com>
5869
5870         bootstrap: only force latest Makefile.in.in for gettext module
5871         * build-aux/bootstrap (with_gettext): Only install latest
5872         Makefile.in.in for projects requesting bleeding edge gettext.
5873
5874 2012-04-22  Bruno Haible  <bruno@clisp.org>
5875
5876         doc: Mention reason for replacement on glibc/Linux systems.
5877         * doc/posix-functions/dprintf.texi: Mention the problem with special
5878         'long double' values.
5879         * doc/posix-functions/fprintf.texi: Likewise.
5880         * doc/posix-functions/printf.texi: Likewise.
5881         * doc/posix-functions/snprintf.texi: Likewise.
5882         * doc/posix-functions/sprintf.texi: Likewise.
5883         * doc/posix-functions/vdprintf.texi: Likewise.
5884         * doc/posix-functions/vfprintf.texi: Likewise.
5885         * doc/posix-functions/vprintf.texi: Likewise.
5886         * doc/posix-functions/vsnprintf.texi: Likewise.
5887         * doc/posix-functions/vsprintf.texi: Likewise.
5888         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5889         platforms with F_DUPFD_CLOEXEC problems.
5890         * doc/posix-functions/glob.texi: Mention which platforms are affected
5891         by the problem with symbolic links.
5892         * doc/posix-functions/linkat.texi: Mention the problem with
5893         AT_SYMLINK_FOLLOW on Linux.
5894
5895 2012-04-22  Bruno Haible  <bruno@clisp.org>
5896
5897         pwrite: Don't replace on all platforms.
5898         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5899
5900 2012-04-22  Bruno Haible  <bruno@clisp.org>
5901
5902         rint* tests: Avoid gcc warnings.
5903         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5904         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5905         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5906
5907 2012-04-21  Bruno Haible  <bruno@clisp.org>
5908
5909         users.txt: Update.
5910         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5911         switched from CVS to git, bzr, or svn.
5912
5913 2012-04-21  Bruno Haible  <bruno@clisp.org>
5914
5915         Large File Support for native Windows platforms.
5916
5917         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5918         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5919
5920         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5921         type.
5922         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5923         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5924         * doc/posix-headers/sys_types.texi: Mention the effect of the
5925         'largefile' module.
5926
5927         * lib/fcntl.in.h: Add comments about off_t.
5928         * modules/fcntl-h (Depends-on): Add sys_types.
5929
5930         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5931         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5932         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5933         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5934         * modules/unistd (Depends-on): Add sys_types.
5935         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5936
5937         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5938         instead of lseek.
5939         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5940         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5941         * modules/lseek (Depends-on): Add sys_types.
5942
5943         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5944         msvc-nothrow.h.
5945         (SetFileSize): New function.
5946         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5947         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5948         if Large File Support is requested.
5949         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5950         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5951
5952         * lib/stdio.in.h: Add comments about off_t.
5953         * modules/stdio (Depends-on): Add sys_types.
5954
5955         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5956         instead of ftello.
5957         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5958         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5959         (gl_PREREQ_FTELLO): New macro.
5960         * modules/ftello (Depends-on): Add sys_types.
5961         (configure.ac): Incoke gl_PREREQ_FTELLO.
5962
5963         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5964         instead of fseeko.
5965         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5966         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5967         (gl_PREREQ_FSEEKO): New macro.
5968         * modules/fseeko (Depends-on): Add sys_types.
5969         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5970
5971         * lib/sys_stat.in.h: Add comments about off_t.
5972         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5973         64-bit integer for st_size in 'struct stat'.
5974         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5975         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5976         * modules/sys_stat (Depends-on): Add sys_types.
5977         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5978
5979         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5980         instead of stat or _stat.
5981
5982         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5983         'struct _stati64' instead of fstat and 'struct stat'.
5984         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5985         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5986
5987         Reported by Ray Satiro <raysatiro@yahoo.com>.
5988
5989 2012-04-19  Eric Blake  <eblake@redhat.com>
5990
5991         bootstrap: accommodate older libtool
5992         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5993         Reported by Daniel P. Berrange.
5994
5995 2012-04-19  Jim Meyering  <meyering@redhat.com>
5996
5997         announce-gen: avoid failure due to lack of Digest::SHA1
5998         Even with the preferred Digest::SHA available, this script
5999         would fail when the backup module, Digest::SHA1, was not installed.
6000         * build-aux/announce-gen: Quote the conditional use of "use".
6001         Reported by Reuben Thomas in:
6002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
6003
6004         bootstrap: don't let a user's CDPATH setting affect this script
6005         When CDPATH is set, cd will sometimes generate output.
6006         When "cd" is run in a subshell whose output matters, that
6007         surprising-to-some output can cause malfunction.
6008         Unsetting CDPATH turns off this shell "feature."
6009         * build-aux/bootstrap (CDPATH): Unset.
6010         Reported by Reuben Thomas in:
6011         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
6012         and inspired by his patch here:
6013         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
6014
6015 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
6016         and Jim Meyering  <meyering@redhat.com>
6017
6018         maint.mk: catch "see @xref{}" and similar
6019         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6020         prohibit "See also @xref{", "Also see @pxref{", and similar.
6021
6022 2012-04-16  Jim Meyering  <meyering@redhat.com>
6023
6024         bootstrap: really use gnulib's po/Makefile.in.in
6025         * build-aux/bootstrap: Correct the source file name in previous change.
6026         Reported by Akim Demaille.
6027
6028         configmake: correct minor inconsistency in Makefile rule
6029         * modules/configmake (Makefile.am): All other rules like this one
6030         run the final "mv -f ..." in the same backslash-continued command
6031         as the one that does everything else.  This one put the mv -f ...
6032         command on a separate, non-backslash-continued line.
6033         Make it like the others.
6034
6035         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
6036         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
6037         the one from gettext.  Reported by Akim Demaille.
6038
6039 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
6040
6041         Fix recursion of install-* into po directories.
6042         Bison's install-pdf bug reported by Hans Aberg at
6043         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
6044         * build-aux/po/Makefile.in.in (install-dvi, install-html)
6045         (install-info, install-pdf, install-ps): New targets.
6046
6047 2012-04-16  Jim Meyering  <meyering@redhat.com>
6048
6049         maint: avoid spurious "make sc_maint" failure
6050         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
6051         exempt all *.class file names, for lib/javaversion.class.
6052
6053 2012-04-15  Bruno Haible  <bruno@clisp.org>
6054
6055         lseek: Make configure test independent of environment.
6056         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
6057         Windows, we know that lseek() on pipes is broken; skip the runtime
6058         test.
6059
6060 2012-04-14  Bruno Haible  <bruno@clisp.org>
6061
6062         stat: Bypass buggy override in mingw64.
6063         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
6064         * lib/stat.c (stat) [mingw64]: Define to _stat.
6065         * doc/posix-functions/stat.texi: Mention mingw64 bug.
6066
6067 2012-04-14  Bruno Haible  <bruno@clisp.org>
6068
6069         pathmax: Fix compilation error on MSVC 9.
6070         * modules/pathmax (Depends-on): Add unistd.
6071
6072 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
6073
6074         README: document pointer comparison assumption
6075         * README (Portability guidelines): Document assumption about
6076         pointer comparisons, in response to a recent bug-gnulib comment by
6077         Jeffrey Kegler.
6078
6079 2012-04-12  Bruno Haible  <bruno@clisp.org>
6080
6081         Tests for module 'getrusage'.
6082         * modules/getrusage-tests: New file.
6083         * tests/test-getrusage.c: New file.
6084
6085         New module 'getrusage'.
6086         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
6087         warn-on-use.h.
6088         (getrusage): New declaration.
6089         * lib/getrusage.c: New file.
6090         * m4/getrusage.m4: New file.
6091         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
6092         is declared.
6093         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
6094         HAVE_GETRUSAGE.
6095         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
6096         snippet/c++defs, snippet/warn-on-use.
6097         (Makefile.am): Update generation of sys/resource.h. Substitute
6098         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
6099         * modules/getrusage: New file.
6100         * doc/posix-functions/getrusage.texi: Mention the new module.
6101
6102 2012-04-12  Bruno Haible  <bruno@clisp.org>
6103
6104         Tests for module 'sys_resource'.
6105         * modules/sys_resource-tests: New file.
6106         * tests/test-sys_resource.c: New file.
6107
6108         New module 'sys_resource'.
6109         * lib/sys_resource.in.h: New file.
6110         * m4/sys_resource_h.m4: New file.
6111         * modules/sys_resource: New file.
6112         * doc/posix-headers/sys_resource.texi: Mention the new module.
6113
6114 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
6115
6116         ioctl: Fix compilation error on mingw.
6117         * lib/ioctl.c: Include <windows.h>.
6118         Also reported by Ray Satiro <raysatiro@yahoo.com>.
6119
6120 2012-04-04  Jim Meyering  <meyering@redhat.com>
6121
6122         regex: correct #pragma guard expression
6123         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
6124         not 4.3.  Correct its cpp guard expression.
6125
6126 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6127
6128         regex: remove unnecessary type punning
6129         Problem reported by Vladimir Serbinenko in
6130         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
6131         * lib/regex.h (struct re_pattern_buffer): Change the type of
6132         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
6133         Fix comment to match code.
6134         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
6135         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
6136         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
6137         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
6138         (set_regs):
6139         Omit no-longer-necessary casts.
6140
6141 2012-04-03  Bruno Haible  <bruno@clisp.org>
6142
6143         Tests for module 'ilogbl'.
6144         * modules/ilogbl-tests: New file.
6145         * tests/test-ilogbl.c: New file.
6146
6147         New module 'ilogbl'.
6148         * lib/math.in.h (ilogbl): New declaration.
6149         * lib/ilogbl.c: New file.
6150         * m4/ilogbl.m4: New file.
6151         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6153         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6154         Split sed invocation, to avoid the limit of 100 substitutions of
6155         HP-UX 'sed'.
6156         * modules/ilogbl: New file.
6157         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6158         * doc/posix-functions/ilogbl.texi: Mention the new module.
6159
6160 2012-04-03  Bruno Haible  <bruno@clisp.org>
6161
6162         Tests for module 'ilogbf'.
6163         * modules/ilogbf-tests: New file.
6164         * tests/test-ilogbf.c: New file.
6165
6166         New module 'ilogbf'.
6167         * lib/math.in.h (ilogbf): New declaration.
6168         * lib/ilogbf.c: New file.
6169         * m4/ilogbf.m4: New file.
6170         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6172         REPLACE_ILOGBF.
6173         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6174         REPLACE_ILOGBF.
6175         * modules/ilogbf: New file.
6176         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6177         * doc/posix-functions/ilogbf.texi: Mention the new module.
6178
6179 2012-04-03  Bruno Haible  <bruno@clisp.org>
6180
6181         Tests for module 'ilogb'.
6182         * modules/ilogb-tests: New file.
6183         * tests/test-ilogb.c: New file.
6184         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6185         tests/test-logb-ieee.h.
6186
6187         New module 'ilogb'.
6188         * lib/math.in.h (ilogb): New declaration.
6189         * lib/ilogb.c: New file.
6190         * m4/ilogb.m4: New file.
6191         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6192         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6193         REPLACE_ILOGB.
6194         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6195         REPLACE_ILOGB.
6196         * modules/ilogb: New file.
6197         * tests/test-math-c++.cc: Check the declaration of ilogb.
6198         * doc/posix-functions/ilogb.texi: Mention the new module.
6199
6200 2012-04-03  Bruno Haible  <bruno@clisp.org>
6201
6202         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6203         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6204         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6205         (main): Check their values.
6206         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6207         problem.
6208
6209 2012-04-03  Bruno Haible  <bruno@clisp.org>
6210
6211         Tests for module 'logbl-ieee'.
6212         * modules/logbl-ieee-tests: New file.
6213         * tests/test-logbl-ieee.c: New file.
6214
6215         New module 'logbl-ieee'.
6216         * modules/logbl-ieee: New file.
6217
6218         Tests for module 'logb-ieee'.
6219         * modules/logb-ieee-tests: New file.
6220         * tests/test-logb-ieee.c: New file.
6221
6222         New module 'logb-ieee'.
6223         * modules/logb-ieee: New file.
6224
6225         Tests for module 'logbf-ieee'.
6226         * modules/logbf-ieee-tests: New file.
6227         * tests/test-logbf-ieee.c: New file.
6228         * tests/test-logb-ieee.h: New file.
6229
6230         New module 'logbf-ieee'.
6231         * modules/logbf-ieee: New file.
6232
6233 2012-04-03  Bruno Haible  <bruno@clisp.org>
6234
6235         Tests for module 'logbl'.
6236         * modules/logbl-tests: New file.
6237         * tests/test-logbl.c: New file.
6238
6239         New module 'logbl'.
6240         * lib/math.in.h (logbl): New declaration.
6241         * lib/logbl.c: New file.
6242         * m4/logbl.m4: New file.
6243         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6245         REPLACE_LOGBL.
6246         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6247         REPLACE_LOGBL.
6248         * modules/logbl: New file.
6249         * tests/test-math-c++.cc: Check the declaration of logbl.
6250         * doc/posix-functions/logbl.texi: Mention the new module.
6251
6252 2012-04-02  Bruno Haible  <bruno@clisp.org>
6253
6254         Tests for module 'logbf'.
6255         * modules/logbf-tests: New file.
6256         * tests/test-logbf.c: New file.
6257
6258         New module 'logbf'.
6259         * lib/math.in.h (logbf): New declaration.
6260         * lib/logbf.c: New file.
6261         * m4/logbf.m4: New file.
6262         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6263         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6264         REPLACE_LOGBF.
6265         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6266         REPLACE_LOGBF.
6267         * modules/logbf: New file.
6268         * tests/test-math-c++.cc: Check the declaration of logbf.
6269         * doc/posix-functions/logbf.texi: Mention the new module.
6270
6271 2012-04-02  Bruno Haible  <bruno@clisp.org>
6272
6273         logb tests: More tests.
6274         * tests/test-logb.h: New file, based on tests/test-logb.c and
6275         tests/test-frexp.h.
6276         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6277         (main): Just invoke test_function.
6278         * modules/logb-tests (Files): Add tests/test-logb.h,
6279         tests/minus-zero.h, tests/randomd.c.
6280         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6281
6282         logb: Provide replacement and workarounds.
6283         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6284         is 1.
6285         * lib/logb.c: New file.
6286         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6287         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6288         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6289         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6290         * modules/logb (Files): Add lib/logb.c.
6291         (Depends-on): Add isfinite, frexp, isnand.
6292         (configure.ac): Compile the replacement code logb.c if needed.
6293         * tests/test-math-c++.cc: Check the declaration of logb.
6294         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6295         with subnormal numbers.
6296
6297 2012-04-02  Bruno Haible  <bruno@clisp.org>
6298
6299         log10* tests: Speed up.
6300         * tests/test-log10.h (test_function): Reduce amount of random numbers
6301         to test.
6302
6303 2012-04-01  Bruno Haible  <bruno@clisp.org>
6304
6305         logf-ieee: Fix test whether logf works.
6306         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6307
6308 2012-04-01  Bruno Haible  <bruno@clisp.org>
6309
6310         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6311         * lib/log10l.c: Include <float.h>
6312         (log10l): On IRIX, normalize the +Infinity value.
6313         * modules/log10l (Depends-on): Add 'float'.
6314         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6315         +Infinity.
6316
6317         log10f-ieee: Work around test failure on NetBSD 5.1.
6318         * m4/log10f-ieee.m4: New file.
6319         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6320         test whether log10f works with a negative argument. Replace it if not.
6321         * lib/log10f.c (log10f): For negative arguments, return NaN.
6322         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6323         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6324         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6325
6326         log10f-ieee: Work around test failure on Solaris 9.
6327         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6328         (configure.ac): Require gl_FUNC_LOG10F.
6329
6330         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6331         * m4/log10-ieee.m4: New file.
6332         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6333         whether log10 works with a negative argument. Replace it if not.
6334         * lib/log10.c (log10): For negative arguments, return NaN.
6335         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6336         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6337         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6338
6339         Tests for module 'log10l-ieee'.
6340         * modules/log10l-ieee-tests: New file.
6341         * tests/test-log10l-ieee.c: New file.
6342
6343         New module 'log10l-ieee'.
6344         * modules/log10l-ieee: New file.
6345
6346         Tests for module 'log10-ieee'.
6347         * modules/log10-ieee-tests: New file.
6348         * tests/test-log10-ieee.c: New file.
6349
6350         New module 'log10-ieee'.
6351         * modules/log10-ieee: New file.
6352
6353         Tests for module 'log10f-ieee'.
6354         * modules/log10f-ieee-tests: New file.
6355         * tests/test-log10f-ieee.c: New file.
6356         * tests/test-log10-ieee.h: New file.
6357
6358         New module 'log10f-ieee'.
6359         * modules/log10f-ieee: New file.
6360
6361 2012-04-01  Bruno Haible  <bruno@clisp.org>
6362
6363         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6364         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6365         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6366         workaround.
6367         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6368         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6370         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6371         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6372         (Depends-on): Update conditions.
6373         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6374         IRIX 6.5, OSF/1 5.1 problems.
6375
6376 2012-04-01  Bruno Haible  <bruno@clisp.org>
6377
6378         log10f: Work around OSF/1 5.1 bug.
6379         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6380         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6381         workaround.
6382         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6383         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6385         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6386         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6387         (Depends-on): Update conditions.
6388         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6389
6390 2012-04-01  Bruno Haible  <bruno@clisp.org>
6391
6392         log10: Work around OSF/1 5.1 bug.
6393         * lib/math.in.h (log10): New declaration.
6394         * lib/log10.c: New file.
6395         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6396         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6397         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6399         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6400         * modules/log10 (Files): Add lib/log10.c.
6401         (Depends-on): Add math.
6402         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6403         * tests/test-math-c++.cc: Check the declaration of log10.
6404         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6405
6406 2012-03-31  Bruno Haible  <bruno@clisp.org>
6407
6408         log10l tests: More tests.
6409         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6410         tests/minus-zero.h, tests/randoml.c.
6411         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6412         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6413         (main): Invoke test_function.
6414
6415         log10f tests: More tests.
6416         * modules/log10f-tests (Files): Add tests/test-log10.h,
6417         tests/minus-zero.h, tests/randomf.c.
6418         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6419         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6420         (main): Invoke test_function.
6421
6422         log10 tests: More tests.
6423         * tests/test-log10.h: New file.
6424         * modules/log10-tests (Files): Add tests/test-log10.h,
6425         tests/minus-zero.h, tests/randomd.c.
6426         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6427         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6428         (main): Invoke test_function.
6429
6430 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6431
6432         fflush: Fix syntax error.
6433         * lib/fflush.c: Include unused-parameter.h, needed for
6434         _GL_UNUSED_PARAMETER.
6435         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6436
6437 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6438
6439         regex: pacify GCC when compiling GRUB
6440         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6441         a diagnostic.  Reported by Vladimir Serbinenko in
6442         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6443
6444 2012-03-29  Eric Blake  <eblake@redhat.com>
6445
6446         stdio: don't assume gets any more
6447         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6448         support.
6449         * modules/stdio (Makefile.am): Likewise.
6450         * lib/stdio-read.c (gets): Likewise.
6451         * tests/test-stdio-c++.cc: Likewise.
6452         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6453         * lib/stdio.in.h (gets): Make warning occur in more places.
6454         * doc/posix-functions/gets.texi (gets): Update documentation.
6455         Reported by Christer Solskogen.
6456
6457         maint.mk: fix syntax checks without exclusions
6458         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6459         Reported by Daniel P. Berrange.
6460
6461         strerror_r: avoid compiler warning
6462         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6463         level.
6464
6465         fflush: avoid compiler warning
6466         * lib/fflush.c (update_fpos_cache): Mark variables that are
6467         potentially unused.
6468
6469 2012-03-25  Bruno Haible  <bruno@clisp.org>
6470
6471         Tests for module 'localeconv'.
6472         * modules/localeconv-tests: New file.
6473         * tests/test-localeconv.c: New file.
6474
6475         New module 'localeconv'.
6476         * lib/locale.in.h (localeconv): New declaration.
6477         * lib/localeconv.c: New file.
6478         * m4/localeconv.m4: New file.
6479         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6480         REPLACE_LOCALECONV.
6481         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6482         REPLACE_LOCALECONV.
6483         * modules/localeconv: New file.
6484         * modules/nl_langinfo (Depends-on): Add localeconv.
6485         * modules/human (Depends-on): Likewise.
6486         * doc/posix-functions/localeconv.texi: Mention the new module.
6487
6488 2012-03-25  Bruno Haible  <bruno@clisp.org>
6489
6490         locale: Provide a complete 'struct lconv'.
6491         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6492         'struct lconv' does not contain int_p_cs_precedes.
6493         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6494         * doc/posix-headers/locale.texi: Update.
6495
6496         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6497         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6498         * doc/posix-headers/locale.texi: Update.
6499
6500         locale: Provide a working 'struct lconv'.
6501         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6502         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6503         'struct lconv' does not even contain decimal_point.
6504         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6505         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6506         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6507         * doc/posix-headers/locale.texi: Mention the problems with
6508         'struct lconv'.
6509         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6510
6511 2012-03-24  Bruno Haible  <bruno@clisp.org>
6512
6513         Enable common subexpression optimization in GCC.
6514         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6515         macros.
6516         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6517         GCC attribute 'const'.
6518         (uc_locale_language): Declare with GCC attribute 'pure'.
6519         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6520         with GCC attribute 'const'.
6521         * lib/unictype.in.h (uc_is_general_category_withtable,
6522         uc_combining_class, uc_combining_class_name,
6523         uc_combining_class_long_name, uc_bidi_class_name,
6524         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6525         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6526         uc_decimal_value, uc_digit_value, uc_numeric_value,
6527         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6528         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6529         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6530         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6531         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6532         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6533         Declare with GCC attribute 'const'.
6534         (uc_general_category_name, uc_general_category_long_name,
6535         uc_general_category_byname, uc_general_category,
6536         uc_is_general_category, uc_combining_class_byname,
6537         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6538         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6539         Declare with GCC attribute 'pure'.
6540         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6541         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6542         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6543         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6544         with GCC attribute 'pure'.
6545         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6546         'const'.
6547         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6548         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6549         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6550         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6551         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6552         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6553         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6554         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6555         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6556         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6557         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6558         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6559         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6560         GCC attribute 'pure'.
6561         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6562         'const'.
6563         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6564         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6565         u32_strwidth): Declare with GCC attribute 'pure'.
6566
6567         Enable common subexpression optimization in GCC.
6568         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6569         (alphasort): Declare with GCC attribute 'pure'.
6570         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6571         (atoll): Declare with GCC attribute 'pure'.
6572         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6573         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6574         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6575         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6576         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6577         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6578         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6579
6580 2012-03-24  Bruno Haible  <bruno@clisp.org>
6581
6582         gnulib-tool: Avoid unintended error output from 'cmp'.
6583         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6584         "cmp -s", not "cmp > /dev/null".
6585
6586 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6587
6588         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6589
6590         It's not just Automake versions < 1.9b that creates an empty
6591         pkgdatadir at installation time if pkgdata_DATA is specified
6592         to empty; modern automake versions do this as well, at least
6593         until automake 1.11.4 (not yet released at the moment of writing,
6594         but soon to appear).  That behaviour was generally considered a
6595         feature rather than a bug, at least until this discussion:
6596         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6597
6598         See also automake bugs #10997 and #11030.
6599
6600         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6601         reference to relevant automake bug numbers.
6602         (func_emit_tests_Makefile_am): Likewise.
6603
6604 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6605
6606         announce-gen: use Digest::SHA when possible
6607         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6608         back to Digest::SHA1 if necessary.
6609
6610 2012-03-20  Jim Meyering  <meyering@redhat.com>
6611
6612         tests: avoid gcc warnings about argv vs. const initializers
6613         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6614         warnings about discarding 'const' qualifier from pointer target type.
6615         * tests/test-posix_spawn2.c (main): Likewise.
6616
6617 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6618
6619         README-release: simplify slightly
6620         * top/README-release: Run "git checkout master" only once.
6621
6622 2012-03-15  Mark Wielaard  <mark@klomp.org>
6623
6624         git-merge-changelog: add specific example on how to use with hg.
6625         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6626
6627 2012-03-18  Mark Wielaard  <mark@klomp.org>
6628
6629         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6630
6631 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6632
6633         git-version-gen: don't let "prefix" envvar cause trouble
6634         * build-aux/git-version-gen (prefix): Initialize properly,
6635         so as not to use a value specified via the environment.
6636         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6637
6638 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6639
6640         regex: diagnose too-large repeat counts in EREs
6641         Previously, the code did not diagnose the too-large repeat count
6642         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6643         as if it were 'b\{1000000000}', which is unexpected.
6644         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6645         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6646         is a reasonable one for this problem.  Another option would be to
6647         create a new REG_OVERFLOW error for repeat counts that are too large.
6648         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6649         count is too large, so that the caller can distinguish the two cases.
6650         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6651         "Too large" return code, and that repeat counts are one example of this.
6652
6653 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6654
6655         doc: some glibc x32 integer width issues
6656         * doc/posix-headers/sys_types.texi (sys/types.h):
6657         * doc/posix-headers/time.texi (time.h):
6658         Mention that glibc x32 does not conform to POSIX in a couple of
6659         areas related to integer widths.
6660
6661 2012-03-15  Bruno Haible  <bruno@clisp.org>
6662
6663         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6664         * lib/fma.c (VOLATILE): New macro.
6665         (FUNC): Use it to work around a GCC compiler bug.
6666
6667 2012-03-13  Bruno Haible  <bruno@clisp.org>
6668
6669         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6670         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6671         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6672         REPLACE_HYPOTL to 1.
6673         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6674
6675 2012-03-13  Bruno Haible  <bruno@clisp.org>
6676
6677         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6678         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6679         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6680         REPLACE_REMAINDERL to 1.
6681         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6682         bug.
6683
6684 2012-03-13  Bruno Haible  <bruno@clisp.org>
6685
6686         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6687         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6688         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6689         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6690         too big rounding errors.
6691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6692         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6693         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6694         (Depends-on): Update conditions.
6695         * tests/test-sqrtl.c (my_ldexpl): New function.
6696         (main): Add test of a particular value.
6697         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6698
6699 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6700
6701         doc: Update timer_* platform portability notes.
6702         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6703         that always return ENOSYS.
6704         * doc/posix-functions/timer_delete.texi: Likewise.
6705         * doc/posix-functions/timer_gettime.texi: Likewise.
6706         * doc/posix-functions/timer_settime.texi: Likewise.
6707
6708 2012-03-13  Bruno Haible  <bruno@clisp.org>
6709
6710         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6711         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6712         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6713         REPLACE_CBRTL to 1.
6714         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6715
6716 2012-03-13  Bruno Haible  <bruno@clisp.org>
6717
6718         remainderl: Avoid compilation error on AIX >= 5.2.
6719         * lib/math.in.h (remainderl): Undefine macro from the system header.
6720
6721 2012-03-13  Bruno Haible  <bruno@clisp.org>
6722
6723         Avoid compilation errors with MSVC option -fp:strict.
6724         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6725         * lib/cbrtf.c: Likewise.
6726         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6727
6728 2012-03-12  Bruno Haible  <bruno@clisp.org>
6729
6730         uninorm: Don't crash in out-of-memory conditions.
6731         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6732         gracefully.
6733         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6734         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6735
6736 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6737
6738         quote: fix syntax-check
6739         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6740         also exports quote_quoting_options.
6741
6742 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6743
6744         Collapse list of copyright years to ranges.  See
6745         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6746         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6747         build-aux/csharpexec.sh.in, build-aux/gnupload,
6748         build-aux/install-reloc, build-aux/javacomp.sh.in,
6749         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6750         build-aux/move-if-change, build-aux/reloc-ldflags,
6751         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6752
6753 2012-03-11  Bruno Haible  <bruno@clisp.org>
6754
6755         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6756         * m4/log2f-ieee.m4: New file.
6757         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6758         whether log2f works with a minus zero argument. Replace it if not.
6759         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6760         (Depends-on): Add log2-ieee.
6761         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6762         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6763
6764         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6765         * m4/log2-ieee.m4: New file.
6766         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6767         whether log2 works with a minus zero argument. Replace it if not.
6768         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6769         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6770         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6771
6772         Tests for module 'log2l-ieee'.
6773         * modules/log2l-ieee-tests: New file.
6774         * tests/test-log2l-ieee.c: New file.
6775
6776         New module 'log2l-ieee'.
6777         * modules/log2l-ieee: New file.
6778
6779         Tests for module 'log2-ieee'.
6780         * modules/log2-ieee-tests: New file.
6781         * tests/test-log2-ieee.c: New file.
6782
6783         New module 'log2-ieee'.
6784         * modules/log2-ieee: New file.
6785
6786         Tests for module 'log2f-ieee'.
6787         * modules/log2f-ieee-tests: New file.
6788         * tests/test-log2f-ieee.c: New file.
6789         * tests/test-log2-ieee.h: New file.
6790
6791         New module 'log2f-ieee'.
6792         * modules/log2f-ieee: New file.
6793
6794 2012-03-11  Bruno Haible  <bruno@clisp.org>
6795
6796         Tests for module 'log2l'.
6797         * modules/log2l-tests: New file.
6798         * tests/test-log2l.c: New file.
6799
6800         New module 'log2l'.
6801         * lib/math.in.h (log2l): New declaration.
6802         * lib/log2l.c: New file.
6803         * m4/log2l.m4: New file.
6804         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6806         REPLACE_LOG2L.
6807         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6808         REPLACE_LOG2L.
6809         * modules/log2l: New file.
6810         * tests/test-math-c++.cc: Check the declaration of log2l.
6811         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6812         and OSF/1 problems.
6813
6814 2012-03-11  Bruno Haible  <bruno@clisp.org>
6815
6816         Tests for module 'log2f'.
6817         * modules/log2f-tests: New file.
6818         * tests/test-log2f.c: New file.
6819
6820         New module 'log2f'.
6821         * lib/math.in.h (log2f): New declaration.
6822         * lib/log2f.c: New file.
6823         * m4/log2f.m4: New file.
6824         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6825         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6826         REPLACE_LOG2F.
6827         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6828         REPLACE_LOG2F.
6829         * modules/log2f: New file.
6830         * tests/test-math-c++.cc: Check the declaration of log2f.
6831         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6832         and OSF/1 and Cygwin problems.
6833
6834 2012-03-11  Bruno Haible  <bruno@clisp.org>
6835
6836         Tests for module 'log2'.
6837         * modules/log2-tests: New file.
6838         * tests/test-log2.c: New file.
6839         * tests/test-log2.h: New file.
6840
6841         New module 'log2'.
6842         * lib/math.in.h (log2): New declaration.
6843         * lib/log2.c: New file.
6844         * m4/log2.m4: New file.
6845         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6846         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6847         REPLACE_LOG2.
6848         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6849         REPLACE_LOG2.
6850         * modules/log2: New file.
6851         * tests/test-math-c++.cc: Check the declaration of log2.
6852         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6853         and OSF/1 and Cygwin problems.
6854
6855 2012-03-11  Bruno Haible  <bruno@clisp.org>
6856
6857         exp2* tests: More tests.
6858         * tests/test-exp2.h (test_function): Test all integral arguments that
6859         don't need to overflow or denormalized numbers.
6860         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6861         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6862         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6863
6864 2012-03-10  Bruno Haible  <bruno@clisp.org>
6865
6866         log1pl-ieee: Work around test failure on AIX 7.1.
6867         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6868
6869         log1pl-ieee: Work around test failure on IRIX 6.5.
6870         * m4/log1pl-ieee.m4: New file.
6871         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6872         test whether log1pl works with a minus zero argument. Replace it if
6873         not.
6874         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6875         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6876         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6877         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6878         (Depends-on): Update conditions.
6879         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6880         m4/signbit.m4.
6881         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6882         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6883
6884         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6885         * m4/log1pf-ieee.m4: New file.
6886         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6887         test whether log1pf works with a minus zero argument. Replace it if
6888         not.
6889         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6890         m4/signbit.m4.
6891         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6892         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6893
6894         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6895         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6896         (configure.ac): Require gl_FUNC_LOG1PF.
6897
6898         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6899         * m4/log1p-ieee.m4: New file.
6900         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6901         whether log1p works with a minus zero argument. Replace it if not.
6902         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6903         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6904         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6905         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6906         (Depends-on): Update conditions.
6907         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6908         m4/signbit.m4.
6909         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6910         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6911
6912         Tests for module 'log1pl-ieee'.
6913         * modules/log1pl-ieee-tests: New file.
6914         * tests/test-log1pl-ieee.c: New file.
6915
6916         New module 'log1pl-ieee'.
6917         * modules/log1pl-ieee: New file.
6918
6919         Tests for module 'log1p-ieee'.
6920         * modules/log1p-ieee-tests: New file.
6921         * tests/test-log1p-ieee.c: New file.
6922
6923         New module 'log1p-ieee'.
6924         * modules/log1p-ieee: New file.
6925
6926         Tests for module 'log1pf-ieee'.
6927         * modules/log1pf-ieee-tests: New file.
6928         * tests/test-log1pf-ieee.c: New file.
6929         * tests/test-log1p-ieee.h: New file.
6930
6931         New module 'log1pf-ieee'.
6932         * modules/log1pf-ieee: New file.
6933
6934 2012-03-10  Bruno Haible  <bruno@clisp.org>
6935
6936         Tests for module 'log1pl'.
6937         * modules/log1pl-tests: New file.
6938         * tests/test-log1pl.c: New file.
6939
6940         New module 'log1pl'.
6941         * lib/math.in.h (log1pl): New declaration.
6942         * lib/log1pl.c: New file.
6943         * m4/log1pl.m4: New file.
6944         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6946         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6947         * modules/log1pl: New file.
6948         * tests/test-math-c++.cc: Check the declaration of log1pl.
6949         * doc/posix-functions/log1pl.texi: Mention the new module.
6950
6951 2012-03-10  Bruno Haible  <bruno@clisp.org>
6952
6953         Tests for module 'log1pf'.
6954         * modules/log1pf-tests: New file.
6955         * tests/test-log1pf.c: New file.
6956
6957         New module 'log1pf'.
6958         * lib/math.in.h (log1pf): New declaration.
6959         * lib/log1pf.c: New file.
6960         * m4/log1pf.m4: New file.
6961         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6963         REPLACE_LOG1PF.
6964         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6965         REPLACE_LOG1PF.
6966         * modules/log1pf: New file.
6967         * tests/test-math-c++.cc: Check the declaration of log1pf.
6968         * doc/posix-functions/log1pf.texi: Mention the new module.
6969
6970 2012-03-10  Bruno Haible  <bruno@clisp.org>
6971
6972         log1p tests: More tests.
6973         * tests/test-log1p.h: New file.
6974         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6975         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6976         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6977         (main): Invoke test_function.
6978
6979         log1p: Provide replacement for Minix and MSVC.
6980         * lib/math.in.h (log1p): New declaration.
6981         * lib/log1p.c: New file.
6982         * m4/log1p.m4: New file.
6983         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6985         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6986         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6987         (Depends-on): Add math, isnand, log, round.
6988         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6989         HAVE_LOG1P is 0.
6990         * tests/test-math-c++.cc: Check the declaration of log1p.
6991         * doc/posix-functions/log1p.texi: Mention the replacement.
6992
6993 2012-03-10  Bruno Haible  <bruno@clisp.org>
6994
6995         math tests: Small simplification.
6996         * tests/test-exp.h (test_function): Use the same err_bound for
6997         'double' on platforms with sizeof (long double) == sizeof (double)
6998         than on platforms with sizeof (long double) > sizeof (double).
6999         * tests/test-exp2.h (test_function): Likewise.
7000         * tests/test-expm1.h (test_function): Likewise.
7001         * tests/test-log.h (test_function): Likewise.
7002
7003 2012-03-10  Bruno Haible  <bruno@clisp.org>
7004
7005         Fix some comments.
7006         * lib/expl.c: Fix an ambiguous comment.
7007         * lib/expm1.c: Likewise.
7008         * lib/expm1l.c: Likewise.
7009         * lib/exp2.c: Likewise.
7010         * lib/exp2l.c: Likewise.
7011
7012 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
7013
7014         regex: allow inclusion of <regex.h> before <limits.h>
7015         Without this patch, portable programs had to include <limits.h> before
7016         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
7017         I ran into this problem with a test version of GNU grep on Solaris 8.
7018         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
7019         This is done conditionally so that this change can be merged
7020         back to glibc.
7021         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
7022         using the included regex.
7023
7024         fts: depend on fdopendir
7025         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
7026         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
7027         problem was introduced when fdopendir was split out.
7028
7029 2012-03-10  Bruno Haible  <bruno@clisp.org>
7030
7031         Remove unused variables.
7032         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
7033         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7034
7035 2012-03-10  Bruno Haible  <bruno@clisp.org>
7036
7037         isnanf-nolibm: Fix last commit.
7038         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
7039
7040         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
7041         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
7042
7043 2012-03-10  Bruno Haible  <bruno@clisp.org>
7044
7045         logf-ieee: Work around test failure on NetBSD 5.1.
7046         * m4/logf-ieee.m4: New file.
7047         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
7048         whether logf works with a negative argument. Replace it if not.
7049         * lib/logf.c (logf): For negative arguments, return NaN.
7050         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
7051         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
7052         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
7053
7054         logf-ieee: Work around test failure on Solaris 9.
7055         * modules/logf-ieee (Depends-on): Add log-ieee.
7056         (configure.ac): Require gl_FUNC_LOGF.
7057
7058         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
7059         * m4/log-ieee.m4: New file.
7060         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
7061         log works with a negative argument. Replace it if not.
7062         * lib/log.c (log): For negative arguments, return NaN.
7063         * modules/log-ieee (Files): Add m4/log-ieee.m4.
7064         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
7065         * doc/posix-functions/log.texi: Mention the log-ieee module.
7066
7067         Tests for module 'logl-ieee'.
7068         * modules/logl-ieee-tests: New file.
7069         * tests/test-logl-ieee.c: New file.
7070
7071         New module 'logl-ieee'.
7072         * modules/logl-ieee: New file.
7073
7074         Tests for module 'log-ieee'.
7075         * modules/log-ieee-tests: New file.
7076         * tests/test-log-ieee.c: New file.
7077
7078         New module 'log-ieee'.
7079         * modules/log-ieee: New file.
7080
7081         Tests for module 'logf-ieee'.
7082         * modules/logf-ieee-tests: New file.
7083         * tests/test-logf-ieee.c: New file.
7084         * tests/test-log-ieee.h: New file.
7085
7086         New module 'logf-ieee'.
7087         * modules/logf-ieee: New file.
7088
7089 2012-03-10  Bruno Haible  <bruno@clisp.org>
7090
7091         log: Fix bug introduced on 2012-03-09.
7092         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
7093
7094 2012-03-10  Pádraig Brady  <P@draigBrady.com>
7095
7096         timer-time: link explicitly with pthreads on glibc
7097         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
7098         to support static linking, when newer glibc is
7099         detected, as that contains pthread emulation of
7100         POSIX timer functions where required.
7101         * modules/timer-time: Depend on threadlib to
7102         pull in the appropriate library to link.
7103
7104 2012-03-10  Bruno Haible  <bruno@clisp.org>
7105
7106         log* tests: More tests.
7107         * tests/test-log.h: New file.
7108         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
7109         (main): Invoke test_function.
7110         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
7111         (main): Invoke test_function.
7112         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
7113         (main): Invoke test_function.
7114         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7115         tests/randomd.c.
7116         (Makefile.am): Add randomd.c to test_log_SOURCES.
7117         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7118         tests/randomf.c.
7119         (Makefile.am): Add randomf.c to test_logf_SOURCES.
7120         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7121         tests/randoml.c.
7122         (Depends-on): Add 'float'.
7123         (Makefile.am): Add randoml.c to test_logl_SOURCES.
7124
7125 2012-03-09  Bruno Haible  <bruno@clisp.org>
7126
7127         logl: Work around OSF/1 5.1 bug.
7128         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
7129         * lib/logl.c (logl): If logl exists, use it and provide just the
7130         workaround.
7131         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
7132         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
7133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
7134         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
7135         * modules/logl (configure.ac): Consider REPLACE_LOGL.
7136         (Depends-on): Update conditions.
7137         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
7138
7139 2012-03-09  Bruno Haible  <bruno@clisp.org>
7140
7141         logf: Work around OSF/1 5.1 bug.
7142         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
7143         * lib/logf.c (logf): If logf exists, use it and provide just the
7144         workaround.
7145         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7146         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7148         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7149         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7150         (Depends-on): Update conditions.
7151         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7152
7153 2012-03-09  Bruno Haible  <bruno@clisp.org>
7154
7155         log: Work around OSF/1 5.1 bug.
7156         * lib/math.in.h (log): New declaration.
7157         * lib/log.c: New file.
7158         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7159         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7160         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7162         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7163         * modules/log (Files): Add lib/log.c.
7164         (Depends-on): Add math.
7165         (configure.ac): If REPLACE_LOG is 1, compile an override.
7166         * tests/test-math-c++.cc: Check the declaration of log.
7167         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7168
7169 2012-03-09  Jim Meyering  <meyering@redhat.com>
7170
7171         readtokens.c: adjust wording in a comment
7172         * lib/readtokens.c: Insert omitted "that" in a comment.
7173
7174 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7175
7176         modechange: add notations +40, 00440, etc.
7177         * lib/modechange.c (mode_compile): Support new notations
7178         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7179
7180 2012-03-08  Bruno Haible  <bruno@clisp.org>
7181
7182         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7183         * m4/exp2l-ieee.m4: New file.
7184         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7185         test whether exp2l works with a NaN argument and with a negative
7186         infinity argument. Replace it if not.
7187         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7189         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7190         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7191         (Depends-on): Update conditions.
7192         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7193         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7194         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7195
7196         Tests for module 'exp2l-ieee'.
7197         * modules/exp2l-ieee-tests: New file.
7198         * tests/test-exp2l-ieee.c: New file.
7199
7200         New module 'exp2l-ieee'.
7201         * modules/exp2l-ieee: New file.
7202
7203         Tests for module 'exp2-ieee'.
7204         * modules/exp2-ieee-tests: New file.
7205         * tests/test-exp2-ieee.c: New file.
7206
7207         New module 'exp2-ieee'.
7208         * modules/exp2-ieee: New file.
7209
7210         Tests for module 'exp2f-ieee'.
7211         * modules/exp2f-ieee-tests: New file.
7212         * tests/test-exp2f-ieee.c: New file.
7213         * tests/test-exp2-ieee.h: New file.
7214
7215         New module 'exp2f-ieee'.
7216         * modules/exp2f-ieee: New file.
7217
7218 2012-03-08  Bruno Haible  <bruno@clisp.org>
7219
7220         Tests for module 'exp2l'.
7221         * modules/exp2l-tests: New file.
7222         * tests/test-exp2l.c: New file.
7223
7224         New module 'exp2l'.
7225         * lib/math.in.h (exp2l): New declaration.
7226         * lib/exp2l.c: New file.
7227         * lib/expl-table.c: New file, extracted from lib/expl.c.
7228         * lib/expl.c (gl_expl_table): New declaration.
7229         (expl): Remove expl_table. Update reference.
7230         * m4/exp2l.m4: New file.
7231         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7233         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7234         * modules/exp2l: New file.
7235         * modules/expl (Files): Add lib/expl-table.c.
7236         (configure.ac): Compile also expl-table.c.
7237         * tests/test-math-c++.cc: Check the declaration of exp2l.
7238         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7239         problem.
7240
7241 2012-03-08  Bruno Haible  <bruno@clisp.org>
7242
7243         Tests for module 'exp2f'.
7244         * modules/exp2f-tests: New file.
7245         * tests/test-exp2f.c: New file.
7246
7247         New module 'exp2f'.
7248         * lib/math.in.h (exp2f): New declaration.
7249         * lib/exp2f.c: New file.
7250         * m4/exp2f.m4: New file.
7251         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7253         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7254         * modules/exp2f: New file.
7255         * tests/test-math-c++.cc: Check the declaration of exp2f.
7256         * doc/posix-functions/exp2f.texi: Mention the new module and the
7257         IRIX problem.
7258
7259 2012-03-08  Bruno Haible  <bruno@clisp.org>
7260
7261         Tests for module 'exp2'.
7262         * modules/exp2-tests: New file.
7263         * tests/test-exp2.c: New file.
7264         * tests/test-exp2.h: New file.
7265
7266         New module 'exp2'.
7267         * lib/math.in.h (exp2): New declaration.
7268         * lib/exp2.c: New file.
7269         * m4/exp2.m4: New file.
7270         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7272         REPLACE_EXP2.
7273         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7274         REPLACE_EXP2.
7275         * modules/exp2: New file.
7276         * tests/test-math-c++.cc: Check the declaration of exp2.
7277         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7278         and OpenBSD problems.
7279
7280 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7281
7282         savedir: fix comment typo
7283         * lib/savedir.c (savedirstream): Fix typo in comment.
7284
7285 2012-03-08  Bruno Haible  <bruno@clisp.org>
7286
7287         test-readtokens.c: use const; remove unwarranted cast
7288         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7289
7290 2012-03-08  Bruno Haible  <bruno@clisp.org>
7291
7292         fmal: Avoid compilation error on AIX.
7293         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7294         AIX 5.2..7.1.
7295
7296 2012-03-08  Bruno Haible  <bruno@clisp.org>
7297
7298         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7299         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7300         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7301         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7302         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7303         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7304         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7305
7306 2012-03-08  Bruno Haible  <bruno@clisp.org>
7307
7308         remainderf: Override buggy system function on IRIX 6.5.
7309         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7310         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7311         when it exists.
7312         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7313
7314 2012-03-08  Jim Meyering  <meyering@redhat.com>
7315
7316         test-readtokens.c: avoid const-related compilation warnings
7317         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7318
7319 2012-03-07  Jim Meyering  <meyering@redhat.com>
7320             Bruno Haible  <bruno@clisp.org>
7321
7322         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7323         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7324         tests/randomd.c.
7325         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7326         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7327         tests/randoml.c.
7328         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7329
7330 2012-03-07  Bruno Haible  <bruno@clisp.org>
7331
7332         expm1l: Avoid compilation error on AIX.
7333         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7334         AIX 5.2..7.1.
7335
7336 2012-03-07  Bruno Haible  <bruno@clisp.org>
7337
7338         expm1l: Don't override undeclared system function on IRIX 6.5.
7339         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7340         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7341         it exists. Set HAVE_DECL_EXPM1L.
7342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7343         HAVE_EXPM1L.
7344         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7345         HAVE_EXPM1L.
7346         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7347
7348 2012-03-07  Bruno Haible  <bruno@clisp.org>
7349
7350         remainderl: Don't override undeclared system function on IRIX 6.5.
7351         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7352         HAVE_REMAINDERL.
7353         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7354         declared when it exists. Set HAVE_DECL_REMAINDERL.
7355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7356         not HAVE_REMAINDERL.
7357         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7358         HAVE_REMAINDERL.
7359         * doc/posix-functions/remainderl.texi: Mention missing declaration
7360         problem.
7361
7362 2012-03-07  Bruno Haible  <bruno@clisp.org>
7363
7364         rintf: Don't override undeclared system function on IRIX 6.5.
7365         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7366         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7367         exists. Set HAVE_DECL_RINTF.
7368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7369         HAVE_RINTF.
7370         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7371         HAVE_RINTF.
7372         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7373
7374 2012-03-07  Bruno Haible  <bruno@clisp.org>
7375
7376         roundl: Avoid compilation error on AIX.
7377         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7378         AIX 5.2..7.1.
7379
7380 2012-03-07  Bruno Haible  <bruno@clisp.org>
7381
7382         roundl: Don't override undeclared system function on IRIX 6.5.
7383         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7384         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7385         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7386         * modules/roundl (configure.ac): For replacement code, test
7387         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7388         (Depends-on): Update conditions.
7389         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7390
7391 2012-03-07  Bruno Haible  <bruno@clisp.org>
7392
7393         roundf: Don't override undeclared system function on IRIX 6.5.
7394         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7395         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7396         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7397         * modules/roundf (configure.ac): For replacement code, test
7398         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7399         (Depends-on): Update conditions.
7400         * modules/roundf-ieee (Depends-on): Update conditions.
7401         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7402
7403 2012-03-07  Bruno Haible  <bruno@clisp.org>
7404
7405         round: Don't override undeclared system function on IRIX 6.5.
7406         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7407         argument.
7408         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7409         also when it is not declared. Set HAVE_ROUND. For replacement code,
7410         test HAVE_ROUND, not HAVE_DECL_ROUND.
7411         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7412         not HAVE_DECL_ROUND.
7413         (Depends-on): Update conditions.
7414         * modules/round-ieee (Depends-on): Update conditions.
7415         * doc/posix-functions/round.texi: Mention the IRIX problem.
7416
7417 2012-03-07  Bruno Haible  <bruno@clisp.org>
7418
7419         copysignf: Don't override undeclared system function on IRIX 6.5.
7420         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7421         HAVE_COPYSIGNF.
7422         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7423         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7424         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7425         not HAVE_COPYSIGNF.
7426         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7427         HAVE_COPYSIGNF.
7428         * doc/posix-functions/copysignf.texi: Mention missing declaration
7429         problem.
7430
7431 2012-03-07  Jim Meyering  <meyering@redhat.com>
7432
7433         readtokens: add tests
7434         * modules/readtokens-tests: New file.
7435         * tests/test-readtokens.c: New file.
7436
7437 2012-03-07  Jim Meyering  <meyering@redhat.com>
7438
7439         quotearg: the module must now include quote.h
7440         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7441         So must the module.
7442         * modules/quotearg (Files): Add quote.h.
7443
7444 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7445
7446         readtokens: avoid core dumps with unusual calling patterns
7447         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7448         * lib/readtokens.c: Include limits.h.
7449         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7450         (readtoken): Don't cache the delimiters; the cache code was buggy
7451         if !delim && saved_delim, or if the new n_delim differs from the old.
7452         Also, it wasn't thread-safe.
7453
7454 2012-03-07  Bruno Haible  <bruno@clisp.org>
7455
7456         quote: Adhere to common module description layout.
7457         * modules/quote (Makefile.am): Add back empty section.
7458
7459 2012-03-06  Akim Demaille  <demaille@gostai.com>
7460
7461         quote: fuse into quotearg
7462         This patch is made for the benefit of Bison.
7463         quote does not leave the choice of the quoting style to the user.
7464         quoting_style provides poor customizability, yet quoting_options,
7465         which is very rich, is hidden inside quotearg.c.  So in order to
7466         allow quote customization, move its implementation to quotearg.c.
7467         * lib/quote.c: Remove.
7468         * modules/quote: Adjust.
7469         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7470         warning: provide all the members of literal structs.
7471         (quote_quoting_options): New.
7472         (quote, quote_n): Import implementation from quote.c.
7473         * lib/quote.h: Import the comments from quote.c.
7474         (quote_quoting_options): New.
7475
7476 2012-03-06  Bruno Haible  <bruno@clisp.org>
7477
7478         Tests for module 'expm1l-ieee'.
7479         * modules/expm1l-ieee-tests: New file.
7480         * tests/test-expm1l-ieee.c: New file.
7481
7482         New module 'expm1l-ieee'.
7483         * modules/expm1l-ieee: New file.
7484
7485         Tests for module 'expm1f-ieee'.
7486         * modules/expm1f-ieee-tests: New file.
7487         * tests/test-expm1f-ieee.c: New file.
7488
7489         New module 'expm1f-ieee'.
7490         * modules/expm1f-ieee: New file.
7491
7492         Tests for module 'expm1-ieee'.
7493         * modules/expm1-ieee-tests: New file.
7494         * tests/test-expm1-ieee.c: New file.
7495         * tests/test-expm1-ieee.h: New file.
7496
7497         New module 'expm1-ieee'.
7498         * modules/expm1-ieee: New file.
7499         * m4/expm1-ieee.m4: New file.
7500         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7501         whether expm1 works with a minus zero argument. Replace it if not.
7502         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7504         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7505         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7506         (Depends-on): Update conditions.
7507         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7508         AIX problem.
7509
7510 2012-03-06  Bruno Haible  <bruno@clisp.org>
7511
7512         Work around expm1f bug on IRIX 6.5.
7513         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7514         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7515         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7516         not work.
7517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7518         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7519         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7520         (Depends-on): Update conditions.
7521         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7522
7523 2012-03-06  Bruno Haible  <bruno@clisp.org>
7524
7525         Tests for module 'expm1l'.
7526         * modules/expm1l-tests: New file.
7527         * tests/test-expm1l.c: New file.
7528
7529         New module 'expm1l'.
7530         * lib/math.in.h (expm1l): New declaration.
7531         * lib/expm1l.c: New file.
7532         * m4/expm1l.m4: New file.
7533         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7535         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7536         * modules/expm1l: New file.
7537         * tests/test-math-c++.cc: Check the declaration of expm1l.
7538         * doc/posix-functions/expm1l.texi: Mention the new module.
7539
7540 2012-03-06  Bruno Haible  <bruno@clisp.org>
7541
7542         Tests for module 'expm1f'.
7543         * modules/expm1f-tests: New file.
7544         * tests/test-expm1f.c: New file.
7545
7546         New module 'expm1f'.
7547         * lib/math.in.h (expm1f): New declaration.
7548         * lib/expm1f.c: New file.
7549         * m4/expm1f.m4: New file.
7550         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7552         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7553         * modules/expm1f: New file.
7554         * tests/test-math-c++.cc: Check the declaration of expm1f.
7555         * doc/posix-functions/expm1f.texi: Mention the new module.
7556
7557 2012-03-06  Bruno Haible  <bruno@clisp.org>
7558
7559         Tests for module 'expm1'.
7560         * modules/expm1-tests: New file.
7561         * tests/test-expm1.c: New file.
7562         * tests/test-expm1.h: New file.
7563
7564         New module 'expm1'.
7565         * lib/math.in.h (expm1): New declaration.
7566         * lib/expm1.c: New file.
7567         * m4/expm1.m4: New file.
7568         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7570         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7571         * modules/expm1: New file.
7572         * tests/test-math-c++.cc: Check the declaration of expm1.
7573         * doc/posix-functions/expm1.texi: Mention the new module.
7574
7575 2012-03-06  Bruno Haible  <bruno@clisp.org>
7576
7577         math: Ensure declarations of math functions.
7578         * modules/acosf (Depends-on): Add 'extensions'.
7579         * modules/asinf (Depends-on): Likewise.
7580         * modules/atan2f (Depends-on): Likewise.
7581         * modules/atanf (Depends-on): Likewise.
7582         * modules/cbrt (Depends-on): Likewise.
7583         * modules/cbrtf (Depends-on): Likewise.
7584         * modules/cbrtl (Depends-on): Likewise.
7585         * modules/copysignf (Depends-on): Likewise.
7586         * modules/copysignl (Depends-on): Likewise.
7587         * modules/cosf (Depends-on): Likewise.
7588         * modules/coshf (Depends-on): Likewise.
7589         * modules/expf (Depends-on): Likewise.
7590         * modules/fabsf (Depends-on): Likewise.
7591         * modules/fabsl (Depends-on): Likewise.
7592         * modules/fmaf (Depends-on): Likewise.
7593         * modules/fmal (Depends-on): Likewise.
7594         * modules/fmodf (Depends-on): Likewise.
7595         * modules/fmodl (Depends-on): Likewise.
7596         * modules/frexpf (Depends-on): Likewise.
7597         * modules/frexpl (Depends-on): Likewise.
7598         * modules/hypot (Depends-on): Likewise.
7599         * modules/hypotf (Depends-on): Likewise.
7600         * modules/hypotl (Depends-on): Likewise.
7601         * modules/ldexpf (Depends-on): Likewise.
7602         * modules/ldexpl (Depends-on): Likewise.
7603         * modules/log10f (Depends-on): Likewise.
7604         * modules/log10l (Depends-on): Likewise.
7605         * modules/log1p (Depends-on): Likewise.
7606         * modules/logb (Depends-on): Likewise.
7607         * modules/logf (Depends-on): Likewise.
7608         * modules/modff (Depends-on): Likewise.
7609         * modules/modfl (Depends-on): Likewise.
7610         * modules/powf (Depends-on): Likewise.
7611         * modules/remainderf (Depends-on): Likewise.
7612         * modules/remainderl (Depends-on): Likewise.
7613         * modules/rintf (Depends-on): Likewise.
7614         * modules/rintl (Depends-on): Likewise.
7615         * modules/sinf (Depends-on): Likewise.
7616         * modules/sinhf (Depends-on): Likewise.
7617         * modules/sqrtf (Depends-on): Likewise.
7618         * modules/tanf (Depends-on): Likewise.
7619         * modules/tanhf (Depends-on): Likewise.
7620         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7621         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7622         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7623         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7624         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7625         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7626         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7627         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7628         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7629         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7630         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7631         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7632         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7633         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7634         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7635         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7636         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7637         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7638         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7639         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7640         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7641         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7642         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7643         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7644         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7645         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7646         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7647         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7648         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7649         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7650         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7651         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7652         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7653         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7654         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7655         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7656         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7657         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7658         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7659         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7660         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7661
7662 2012-03-06  Bruno Haible  <bruno@clisp.org>
7663
7664         math: Update module names in warnings.
7665         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7666         tanl): Use specific module name in warn-on-use warning.
7667
7668 2012-03-06  Bruno Haible  <bruno@clisp.org>
7669
7670         expl: Simplify computation.
7671         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7672
7673 2012-03-05  Bruno Haible  <bruno@clisp.org>
7674
7675         exp* tests: More tests.
7676         * tests/test-exp.h: New file.
7677         * tests/test-exp.c: Include <float.h> and test-exp.h.
7678         (main): Invoke test_function.
7679         * tests/test-expf.c: Include <float.h> and test-exp.h.
7680         (main): Invoke test_function.
7681         * tests/test-expl.c: Include <float.h> and test-exp.h.
7682         (main): Invoke test_function.
7683         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7684         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7685         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7686         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7687         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7688         (Depends-on): Add 'float'.
7689         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7690
7691         expl: Fix precision of computed result.
7692         * lib/expl.c: Completely rewritten.
7693         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7694         (Maintainer): Add me.
7695         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7696
7697 2012-03-05  Bruno Haible  <bruno@clisp.org>
7698
7699         cbrt* tests: More tests.
7700         * tests/test-cbrt.h: New file.
7701         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7702         (main): Invoke test_function.
7703         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7704         (main): Invoke test_function.
7705         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7706         (main): Invoke test_function.
7707         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7708         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7709         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7710         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7711         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7712         (Depends-on): Add 'float'.
7713         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7714
7715 2012-03-05  Bruno Haible  <bruno@clisp.org>
7716
7717         hypot* tests: More tests.
7718         * tests/test-hypot.h: New file, partially extracted from
7719         tests/test-hypotl.c.
7720         * tests/test-hypot.c: Include test-hypot.h.
7721         (main): Invoke test_function.
7722         * tests/test-hypotf.c: Include test-hypot.h.
7723         (main): Invoke test_function.
7724         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7725         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7726         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7727         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7728         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7729         tests/randomf.c.
7730         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7731         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7732         tests/randoml.c.
7733         (Depends-on): Add 'fpucw', 'float'.
7734         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7735
7736 2012-03-05  Bruno Haible  <bruno@clisp.org>
7737
7738         fpucw: Doc about FreeBSD.
7739         * lib/fpucw.h: Mention FreeBSD in comments.
7740
7741 2012-03-04  Bruno Haible  <bruno@clisp.org>
7742
7743         sqrt* tests: More tests.
7744         * tests/test-sqrt.h: New file.
7745         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7746         (main): Invoke test_function.
7747         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7748         (main): Invoke test_function.
7749         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7750         (main): Invoke test_function.
7751         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7752         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7753         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7754         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7755         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7756         (Depends-on): Add 'float'.
7757         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7758
7759 2012-03-04  Bruno Haible  <bruno@clisp.org>
7760
7761         remainder* tests: More tests.
7762         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7763         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7764         (main): Invoke test_function.
7765         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7766         (main): Invoke test_function.
7767         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7768         (main): Invoke test_function.
7769         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7770         tests/randomd.c.
7771         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7772         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7773         tests/randomf.c.
7774         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7775         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7776         tests/randoml.c.
7777         (Depends-on): Add 'float'.
7778         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7779
7780 2012-03-04  Bruno Haible  <bruno@clisp.org>
7781
7782         remainder, remainderf, remainderl: Fix computation for large quotients.
7783         * lib/remainder.c: Completely rewritten.
7784         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7785         USE_FLOAT.
7786         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7787         USE_LONG_DOUBLE.
7788         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7789         isnand, isinf. Remove round, fma.
7790         * modules/remainderf (Files): Add lib/remainder.c.
7791         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7792         Remove roundf, fmaf.
7793         * modules/remainderl (Files): Add lib/remainder.c.
7794         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7795         isinf. Remove roundl, fmal.
7796         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7797         REMAINDER_LIBM.
7798         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7799         REMAINDERF_LIBM.
7800         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7801         REMAINDERL_LIBM.
7802
7803 2012-03-04  Bruno Haible  <bruno@clisp.org>
7804
7805         fmod* tests: More tests.
7806         * tests/test-fmod.h (my_ldexp): New function.
7807         (test_function): Reduce amount of random numbers to test. Add tests
7808         of very large quotients x / y.
7809         * tests/test-fmod.c (MAX_EXP): New macro.
7810         * tests/test-fmodf.c (MAX_EXP): Likewise.
7811         * tests/test-fmodl.c (MAX_EXP): Likewise.
7812
7813 2012-03-04  Bruno Haible  <bruno@clisp.org>
7814
7815         fmod, fmodl: Fix computation for large quotients x / y.
7816         * lib/fmod.c: Completely rewritten.
7817         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7818         USE_LONG_DOUBLE.
7819         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7820         isnand. Remove fma.
7821         * modules/fmodl (Files): Add lib/fmod.c.
7822         (Depends-on): Add float, isfinite, signbit, fabsl,
7823         frexpl, ldexpl, isnanl. Remove fma.
7824         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7825         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7826
7827 2012-03-03  Bruno Haible  <bruno@clisp.org>
7828
7829         fmod* tests: More tests.
7830         * tests/test-fmod.h: New file.
7831         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7832         (main): Invoke test_function.
7833         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7834         (main): Invoke test_function.
7835         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7836         (main): Invoke test_function.
7837         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7838         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7839         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7840         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7841         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7842         (Depends-on): Add 'float'.
7843         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7844
7845 2012-03-03  Bruno Haible  <bruno@clisp.org>
7846
7847         rint* tests: More tests.
7848         * tests/test-rint.h: New file, partially extracted from
7849         tests/test-rintl.c.
7850         * tests/test-rint.c: Include test-rint.h.
7851         (main): Invoke test_function.
7852         * tests/test-rintf.c: Include test-rint.h.
7853         (main): Invoke test_function.
7854         * tests/test-rintl.c: Include test-rint.h.
7855         (main): Invoke test_function.
7856         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7857         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7858         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7859         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7860         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7861         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7862
7863 2012-03-03  Bruno Haible  <bruno@clisp.org>
7864
7865         modf* tests: More tests.
7866         * tests/test-modf.h: New file.
7867         * tests/test-modf.c: Include <float.h> and test-modf.h.
7868         (main): Invoke test_function.
7869         * tests/test-modff.c: Include <float.h> and test-modf.h.
7870         (main): Invoke test_function.
7871         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7872         (main): Invoke test_function.
7873         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7874         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7875         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7876         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7877         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7878         (Depends-on): Add 'float'.
7879         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7880
7881 2012-03-03  Bruno Haible  <bruno@clisp.org>
7882
7883         fabs* tests: More tests.
7884         * tests/test-fabs.h: New file, partially extracted from
7885         tests/test-fabsl.c.
7886         * tests/test-fabs.c (RANDOM): New macro.
7887         * tests/test-fabsf.c (RANDOM): New macro.
7888         * tests/test-fabsl.c (RANDOM): New macro.
7889         * modules/fabs-tests (Files): Add tests/randomd.c.
7890         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7891         * modules/fabsf-tests (Files): Add tests/randomf.c.
7892         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7893         * modules/fabsl-tests (Files): Add tests/randoml.c.
7894         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7895
7896 2012-03-03  Bruno Haible  <bruno@clisp.org>
7897
7898         ldexp* tests: More tests.
7899         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7900         * tests/test-ldexp.c (RANDOM): New macro.
7901         * tests/test-ldexpf.c (RANDOM): New macro.
7902         * tests/test-ldexpl.c (RANDOM): New macro.
7903         * modules/ldexp-tests (Files): Add tests/randomd.c.
7904         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7905         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7906         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7907         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7908         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7909
7910 2012-03-03  Bruno Haible  <bruno@clisp.org>
7911
7912         frexp* tests: More tests.
7913         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7914         * tests/test-frexp.c (RANDOM): New macro.
7915         * tests/test-frexpf.c (RANDOM): New macro.
7916         * tests/test-frexpl.c (RANDOM): New macro.
7917         * modules/frexp-tests (Files): Add tests/randomd.c.
7918         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7919         * modules/frexpf-tests (Files): Add tests/randomf.c.
7920         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7921         * modules/frexpl-tests (Files): Add tests/randoml.c.
7922         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7923
7924 2012-03-03  Bruno Haible  <bruno@clisp.org>
7925
7926         Support for pseudo-random numbers in tests.
7927         * tests/randomf.c: New file.
7928         * tests/randomd.c: New file.
7929         * tests/randoml.c: New file.
7930         * tests/macros.h (randomf, randomd, randoml): New declarations.
7931
7932 2012-03-03  Bruno Haible  <bruno@clisp.org>
7933
7934         frexp* tests: Refactor.
7935         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7936         * tests/test-frexp.c: Include and use it.
7937         * tests/test-frexpf.c: Likewise.
7938         * tests/test-frexpl.c: Likewise.
7939         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7940         * modules/frexpf-tests (Files): Likewise.
7941         * modules/frexpl-tests (Files): Likewise.
7942
7943 2012-03-02  Jim Meyering  <meyering@redhat.com>
7944
7945         maint: don't specify XZ_OPT=-9ev in dist-related rule
7946         Using xz's -9 option is warranted only if you have a very large
7947         tarball (see xz's documentation for the sizes vs. presets), and
7948         requires 64MiB of memory at decompression time.
7949         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7950         Automake's default of just "-e" is fine.  Override on a
7951         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7952
7953 2012-03-01  Eric Blake  <eblake@redhat.com>
7954
7955         maint.mk: allow announcement for non-gnulib project
7956         * maint.mk (announcement): Skip gnulib version if not used.
7957
7958 2012-03-01  Jim Meyering  <meyering@redhat.com>
7959
7960         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7961         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7962         envvar settings cannot interfere.  Otherwise, setting envvars like
7963         prohibit=foo require=bar, etc. would cause spurious test failures.
7964
7965 2012-03-01  Eric Blake  <eblake@redhat.com>
7966
7967         maint.mk: add per-line exclusions to prohibitions
7968         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7969         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7970         (sc_const_long_option): Use it.
7971
7972 2012-03-01  Bruno Haible  <bruno@clisp.org>
7973
7974         Tests for module 'expl-ieee'.
7975         * modules/expl-ieee-tests: New file.
7976         * tests/test-expl-ieee.c: New file.
7977
7978         New module 'expl-ieee'.
7979         * modules/expl-ieee: New file.
7980
7981         Tests for module 'exp-ieee'.
7982         * modules/exp-ieee-tests: New file.
7983         * tests/test-exp-ieee.c: New file.
7984
7985         New module 'exp-ieee'.
7986         * modules/exp-ieee: New file.
7987
7988         Tests for module 'expf-ieee'.
7989         * modules/expf-ieee-tests: New file.
7990         * tests/test-expf-ieee.c: New file.
7991         * tests/test-exp-ieee.h: New file.
7992
7993         New module 'expf-ieee'.
7994         * modules/expf-ieee: New file.
7995
7996 2012-02-29  Bruno Haible  <bruno@clisp.org>
7997
7998         cbrtl-ieee: Work around test failure on IRIX 6.5.
7999         * m4/cbrtl-ieee.m4: New file.
8000         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
8001         test whether cbrtl works with a minus zero argument. Replace it if not.
8002         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
8003         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
8004         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
8005         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
8006         (Depends-on): Update conditions.
8007         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
8008         m4/signbit.m4.
8009         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
8010         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
8011         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
8012
8013         Tests for module 'cbrtl-ieee'.
8014         * modules/cbrtl-ieee-tests: New file.
8015         * tests/test-cbrtl-ieee.c: New file.
8016
8017         New module 'cbrtl-ieee'.
8018         * modules/cbrtl-ieee: New file.
8019
8020         Tests for module 'cbrt-ieee'.
8021         * modules/cbrt-ieee-tests: New file.
8022         * tests/test-cbrt-ieee.c: New file.
8023
8024         New module 'cbrt-ieee'.
8025         * modules/cbrt-ieee: New file.
8026
8027         Tests for module 'cbrtf-ieee'.
8028         * modules/cbrtf-ieee-tests: New file.
8029         * tests/test-cbrtf-ieee.c: New file.
8030         * tests/test-cbrt-ieee.h: New file.
8031
8032         New module 'cbrtf-ieee'.
8033         * modules/cbrtf-ieee: New file.
8034
8035 2012-02-29  Bruno Haible  <bruno@clisp.org>
8036
8037         cbrtf: Work around bug in IRIX 6.5 system function.
8038         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
8039         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
8040         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
8041         work.
8042         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
8043         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
8044         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
8045         (Depends-on): Update conditions.
8046         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
8047
8048 2012-02-29  Bruno Haible  <bruno@clisp.org>
8049
8050         Tests for module 'cbrtl'.
8051         * modules/cbrtl-tests: New file.
8052         * tests/test-cbrtl.c: New file.
8053
8054         New module 'cbrtl'.
8055         * lib/math.in.h (cbrtl): New declaration.
8056         * lib/cbrtl.c: New file.
8057         * m4/cbrtl.m4: New file.
8058         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
8059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
8060         HAVE_DECL_CBRTL.
8061         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
8062         HAVE_DECL_CBRTL.
8063         * modules/cbrtl: New file.
8064         * tests/test-math-c++.cc: Check the declaration of cbrtl.
8065         * doc/posix-functions/cbrtl.texi: Mention the new module.
8066
8067 2012-02-29  Bruno Haible  <bruno@clisp.org>
8068
8069         Tests for module 'cbrtf'.
8070         * modules/cbrtf-tests: New file.
8071         * tests/test-cbrtf.c: New file.
8072
8073         New module 'cbrtf'.
8074         * lib/math.in.h (cbrtf): New declaration.
8075         * lib/cbrtf.c: New file.
8076         * m4/cbrtf.m4: New file.
8077         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
8078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
8079         HAVE_DECL_CBRTF.
8080         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
8081         HAVE_DECL_CBRTF.
8082         * modules/cbrtf: New file.
8083         * tests/test-math-c++.cc: Check the declaration of cbrtf.
8084         * doc/posix-functions/cbrtf.texi: Mention the new module.
8085
8086 2012-02-29  Bruno Haible  <bruno@clisp.org>
8087
8088         cbrt: Provide replacement on MSVC and Minix.
8089         * lib/math.in.h (cbrt): New declaration.
8090         * lib/cbrt.c: New file.
8091         * m4/cbrt.m4: New file.
8092         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
8093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
8094         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
8095         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
8096         (Depends-on): Add dependencies.
8097         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
8098         * tests/test-math-c++.cc: Check the declaration of cbrt.
8099         * doc/posix-functions/cbrt.texi: Mention that the module provides a
8100         replacement.
8101
8102 2012-02-29  Bruno Haible  <bruno@clisp.org>
8103
8104         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
8105         * m4/hypotl-ieee.m4: New file.
8106         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
8107         test whether hypotl works with mixed NaN and Infinity arguments.
8108         Replace it if not.
8109         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
8110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
8111         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
8112         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
8113         (Depends-on): Update conditions.
8114         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
8115         (Depends-on): Add hypot-ieee.
8116         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
8117         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
8118
8119         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
8120         * m4/hypotf-ieee.m4: New file.
8121         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
8122         test whether hypotf works with mixed NaN and Infinity arguments.
8123         Replace it if not.
8124         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
8125         (Depends-on): Add hypot-ieee.
8126         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
8127         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
8128
8129         hypot-ieee: Work around test failure on OSF/1 and native Windows.
8130         * lib/math.in.h (hypot): New declaration.
8131         * lib/hypot.c: New file.
8132         * m4/hypot-ieee.m4: New file.
8133         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
8134         whether hypot works with mixed NaN and Infinity arguments. Replace it
8135         if not.
8136         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
8137         REPLACE_HYPOT.
8138         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
8139         * modules/hypot (Files): Add lib/hypot.c.
8140         (Depends-on): Add dependencies.
8141         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
8142         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
8143         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
8144         * tests/test-math-c++.cc: Check the declaration of hypot.
8145         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8146
8147         Tests for module 'hypotl-ieee'.
8148         * modules/hypotl-ieee-tests: New file.
8149         * tests/test-hypotl-ieee.c: New file.
8150
8151         New module 'hypotl-ieee'.
8152         * modules/hypotl-ieee: New file.
8153
8154         Tests for module 'hypot-ieee'.
8155         * modules/hypot-ieee-tests: New file.
8156         * tests/test-hypot-ieee.c: New file.
8157
8158         New module 'hypot-ieee'.
8159         * modules/hypot-ieee: New file.
8160
8161         Tests for module 'hypotf-ieee'.
8162         * modules/hypotf-ieee-tests: New file.
8163         * tests/test-hypotf-ieee.c: New file.
8164         * tests/test-hypot-ieee.h: New file.
8165
8166         New module 'hypotf-ieee'.
8167         * modules/hypotf-ieee: New file.
8168
8169 2012-02-29  Bruno Haible  <bruno@clisp.org>
8170
8171         Remove unused variables.
8172         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8173         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8174         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8175         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8176
8177 2012-02-29  Eric Blake  <eblake@redhat.com>
8178
8179         termios: fix pid_t always, not just for tcgetsid
8180         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8181         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8182         just when building tcgetsid.
8183
8184 2012-02-29  Bruno Haible  <bruno@clisp.org>
8185
8186         Tests for module 'hypotl'.
8187         * modules/hypotl-tests: New file.
8188         * tests/test-hypotl.c: New file.
8189
8190         New module 'hypotl'.
8191         * lib/math.in.h (hypotl): New declaration.
8192         * lib/hypotl.c: New file.
8193         * m4/hypotl.m4: New file.
8194         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8196         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8197         * modules/hypotl: New file.
8198         * tests/test-math-c++.cc: Check the hypotl declaration.
8199         * doc/posix-functions/hypotl.texi: Mention the new module.
8200
8201 2012-02-29  Eric Blake  <eblake@redhat.com>
8202
8203         tcgetsid: fix cygwin header bug
8204         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8205
8206         docs: update cygwin progress
8207         * doc/posix-functions/llround.texi (llround): Added in cygwin
8208         1.7.8.
8209         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8210         * doc/glibc-functions/program_invocation_name.texi
8211         (program_invocation_name): Likewise.
8212         * doc/glibc-functions/program_invocation_short_name.texi
8213         (program_invocation_short_name): Likewise.
8214         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8215         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8216         Likewise.
8217         * doc/posix-functions/pthread_spin_destroy.texi
8218         (pthread_spin_destroy): Added in cygwin 1.7.10.
8219         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8220         Likewise.
8221         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8222         Likewise.
8223         * doc/posix-functions/pthread_spin_trylock.texi
8224         (pthread_spin_trylock): Likewise.
8225         * doc/posix-functions/pthread_spin_unlock.texi
8226         (pthread_spin_unlock): Likewise.
8227         * doc/posix-functions/pthread_setschedprio.texi
8228         (pthread_setschedprio): Likewise.
8229         * doc/posix-functions/pthread_attr_getstack.texi
8230         (pthread_attr_getstack): Likewise.
8231         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8232         (pthread_attr_getstackaddr): Likewise.
8233         * doc/glibc-functions/pthread_getattr_np.texi
8234         (pthread_getattr_np): Likewise.
8235         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8236         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8237         * doc/posix-functions/clock_settime.texi (clock_settime):
8238         Likewise.
8239         * doc/posix-functions/pthread_attr_getguardsize.texi
8240         (pthread_attr_getguardsize): Likewise.
8241         * doc/posix-functions/pthread_attr_setguardsize.texi
8242         (pthread_attr_setguardsize): Likewise.
8243         * doc/posix-functions/pthread_attr_setstack.texi
8244         (pthread_attr_setstack): Likewise.
8245         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8246         (pthread_attr_setstackaddr): Likewise.
8247         * doc/posix-functions/clock_getcpuclockid.texi
8248         (clock_getcpuclockid): Likewise.
8249         * doc/posix-functions/pthread_getcpuclockid.texi
8250         (pthread_getcpuclockid): Likewise.
8251         * doc/glibc-functions/error.texi (error): Likewise.
8252         * doc/glibc-functions/error_at_line.texi (error_at_line):
8253         Likewise.
8254         * doc/glibc-functions/error_message_count.texi
8255         (error_message_count): Likewise.
8256         * doc/glibc-functions/error_one_per_line.texi
8257         (error_one_per_line): Likewise.
8258         * doc/glibc-functions/error_print_progname.texi
8259         (error_print_progname): Likewise.
8260         * doc/posix-functions/pthread_condattr_getclock.texi
8261         (pthread_condattr_getclock): Likewise.
8262         * doc/posix-functions/pthread_condattr_setclock.texi
8263         (pthread_condattr_setclock): Likewise.
8264         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8265         Likewise.
8266         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8267         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8268         * doc/glibc-functions/get_current_dir_name.texi
8269         (get_current_dir_name): Likewise.
8270         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8271         Likewise.
8272         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8273         wrong return type.
8274         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8275         1.7.11.
8276
8277 2012-02-29  Bruno Haible  <bruno@clisp.org>
8278
8279         Tests for module 'hypotf'.
8280         * modules/hypotf-tests: New file.
8281         * tests/test-hypotf.c: New file.
8282
8283         New module 'hypotf'.
8284         * lib/math.in.h (hypotf): New declaration.
8285         * lib/hypotf.c: New file.
8286         * m4/hypotf.m4: New file.
8287         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8289         REPLACE_HYPOTF.
8290         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8291         REPLACE_HYPOTF.
8292         * modules/hypotf: New file.
8293         * tests/test-math-c++.cc: Check the hypotf declaration.
8294         * doc/posix-functions/hypotf.texi: Mention the new module.
8295
8296         hypot: Prepare for hypotf module.
8297         * m4/hypot.m4: New file.
8298         * modules/hypot (Files): Add m4/hypot.m4.
8299         (configure.ac): Invoke gl_FUNC_HYPOT.
8300
8301 2012-02-29  Bruno Haible  <bruno@clisp.org>
8302
8303         hypot tests: More tests.
8304         * tests/test-hypot.c: Include <float.h>.
8305         (main): Add tests about overflow and underflow.
8306
8307 2012-02-29  Bruno Haible  <bruno@clisp.org>
8308
8309         math code: Add comments.
8310         * lib/acosl.c: Add comment about related glibc source files.
8311         * lib/asinl.c: Likewise.
8312         * lib/atanl.c: Likewise.
8313         * lib/expl.c: Likewise.
8314         * lib/logl.c: Likewise.
8315         * lib/sincosl.c: Likewise.
8316         * lib/sinl.c: Likewise.
8317         * lib/tanl.c: Likewise.
8318         * lib/trigl.c: Likewise.
8319         * lib/cosl.c: Likewise. Fix comments.
8320
8321 2012-02-28  Bruno Haible  <bruno@clisp.org>
8322
8323         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8324         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8325         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8326         HUGE_VALL are defined.
8327         (numeric_equald): Renamed from numeric_equal.
8328         (numeric_equalf, numeric_equall): New functions.
8329         (main): Check also HUGE_VALF, HUGE_VALL.
8330         * modules/math-tests (Files): Add tests/macros.h.
8331         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8332         HUGE_VALL.
8333
8334 2012-02-28  Bruno Haible  <bruno@clisp.org>
8335
8336         doc: Move ISO C11 feature notes into POSIX chapters.
8337         * doc/posix-functions/aligned_alloc.texi: Renamed from
8338         doc/glibc-functions/aligned_alloc.texi.
8339         * doc/posix-functions/quick_exit.texi: Renamed from
8340         doc/glibc-functions/quick_exit.texi.
8341         * doc/posix-headers/uchar.texi: Renamed from
8342         doc/glibc-headers/uchar.texi.
8343         * doc/posix-functions/c16rtomb.texi: Renamed from
8344         doc/glibc-functions/c16rtomb.texi.
8345         * doc/posix-functions/c32rtomb.texi: Renamed from
8346         doc/glibc-functions/c32rtomb.texi.
8347         * doc/posix-functions/mbrtoc16.texi: Renamed from
8348         doc/glibc-functions/mbrtoc16.texi.
8349         * doc/posix-functions/mbrtoc32.texi: Renamed from
8350         doc/glibc-functions/mbrtoc32.texi.
8351         * doc/gnulib.texi: Update.
8352         (Glibc uchar.h): Remove section.
8353         Suggested by Eric Blake.
8354
8355 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8356
8357         stdnoreturn: port to MSVC better
8358         MSVC standard headers use __declspec(noreturn), so #define noreturn
8359         to empty on that platform.  Reported by Bruno Haible in
8360         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8361         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8362         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8363
8364 2012-02-28  Bruno Haible  <bruno@clisp.org>
8365
8366         doc: Mention new glibc headers and functions.
8367         * doc/glibc-headers/uchar.texi: New file.
8368         * doc/glibc-functions/aligned_alloc.texi: New file.
8369         * doc/glibc-functions/c16rtomb.texi: New file.
8370         * doc/glibc-functions/c32rtomb.texi: New file.
8371         * doc/glibc-functions/clock_adjtime.texi: New file.
8372         * doc/glibc-functions/fanotify_init.texi: New file.
8373         * doc/glibc-functions/fanotify_mark.texi: New file.
8374         * doc/glibc-functions/inet6_opt_append.texi: New file.
8375         * doc/glibc-functions/inet6_opt_find.texi: New file.
8376         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8377         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8378         * doc/glibc-functions/inet6_opt_init.texi: New file.
8379         * doc/glibc-functions/inet6_opt_next.texi: New file.
8380         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8381         * doc/glibc-functions/inet6_rth_add.texi: New file.
8382         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8383         * doc/glibc-functions/inet6_rth_init.texi: New file.
8384         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8385         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8386         * doc/glibc-functions/inet6_rth_space.texi: New file.
8387         * doc/glibc-functions/login.texi: New file.
8388         * doc/glibc-functions/mbrtoc16.texi: New file.
8389         * doc/glibc-functions/mbrtoc32.texi: New file.
8390         * doc/glibc-functions/name_to_handle_at.texi: New file.
8391         * doc/glibc-functions/ntp_gettimex.texi: New file.
8392         * doc/glibc-functions/open_by_handle_at.texi: New file.
8393         * doc/glibc-functions/prlimit.texi: New file.
8394         * doc/glibc-functions/process_vm_readv.texi: New file.
8395         * doc/glibc-functions/process_vm_writev.texi: New file.
8396         * doc/glibc-functions/recvmmsg.texi: New file.
8397         * doc/glibc-functions/scandirat.texi: New file.
8398         * doc/glibc-functions/sendmmsg.texi: New file.
8399         * doc/glibc-functions/setns.texi: New file.
8400         * doc/glibc-functions/timespec_get.texi: New file.
8401         * doc/gnulib.texi: Include them.
8402         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8403         sections.
8404         Reported by Eric Blake.
8405
8406 2012-02-28  Bruno Haible  <bruno@clisp.org>
8407
8408         Avoid compilation errors with MSVC option -fp:strict.
8409         * lib/floor.c: Use MSVC specific pragma fenv_access.
8410         * lib/ceil.c: Likewise.
8411         * lib/trunc.c: Likewise.
8412         * lib/round.c: Likewise.
8413         * lib/rint.c: Likewise.
8414         * lib/fma.c: Likewise.
8415         * lib/integer_length.c: Likewise.
8416         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8417         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8418         * tests/test-floor2.c: Likewise.
8419         * tests/test-floorf2.c: Likewise.
8420         * tests/test-ceil2.c: Likewise.
8421         * tests/test-ceilf2.c: Likewise.
8422         * tests/test-trunc2.c: Likewise.
8423         * tests/test-truncf2.c: Likewise.
8424         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8425
8426 2012-02-27  Bruno Haible  <bruno@clisp.org>
8427
8428         Tests for module 'sqrtl-ieee'.
8429         * modules/sqrtl-ieee-tests: New file.
8430         * tests/test-sqrtl-ieee.c: New file.
8431
8432         New module 'sqrtl-ieee'.
8433         * modules/sqrtl-ieee: New file.
8434
8435         Tests for module 'sqrt-ieee'.
8436         * modules/sqrt-ieee-tests: New file.
8437         * tests/test-sqrt-ieee.c: New file.
8438
8439         New module 'sqrt-ieee'.
8440         * modules/sqrt-ieee: New file.
8441
8442         Tests for module 'sqrtf-ieee'.
8443         * modules/sqrtf-ieee-tests: New file.
8444         * tests/test-sqrtf-ieee.c: New file.
8445         * tests/test-sqrt-ieee.h: New file.
8446
8447         New module 'sqrtf-ieee'.
8448         * modules/sqrtf-ieee: New file.
8449
8450 2012-02-27  Bruno Haible  <bruno@clisp.org>
8451
8452         remainderl-ieee: Work around test failure on OSF/1.
8453         * m4/remainderl-ieee.m4: New file.
8454         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8455         present, test whether remainderl works with a zero second argument.
8456         Replace it if not.
8457         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8459         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8460         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8461         (Depends-on): Update conditions.
8462         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8463         (Depends-on): Add remainder-ieee.
8464         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8465         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8466         module.
8467
8468         remainderf-ieee: Work around test failure on OSF/1.
8469         * m4/remainderf-ieee.m4: New file.
8470         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8471         present, test whether remainderf works with a zero second argument.
8472         Replace it if not.
8473         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8475         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8476         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8477         (Depends-on): Update conditions.
8478         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8479         (Depends-on): Add remainder-ieee.
8480         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8481         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8482         module.
8483
8484         remainder-ieee: Work around test failure on OSF/1.
8485         * m4/remainder-ieee.m4: New file.
8486         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8487         present, test whether remainder works with a zero second argument.
8488         Replace it if not.
8489         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8490         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8491         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8492         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8493         (Depends-on): Update dependencies.
8494         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8495         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8496         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8497
8498         Tests for module 'remainderl-ieee'.
8499         * modules/remainderl-ieee-tests: New file.
8500         * tests/test-remainderl-ieee.c: New file.
8501
8502         New module 'remainderl-ieee'.
8503         * modules/remainderl-ieee: New file.
8504
8505         Tests for module 'remainder-ieee'.
8506         * modules/remainder-ieee-tests: New file.
8507         * tests/test-remainder-ieee.c: New file.
8508
8509         New module 'remainder-ieee'.
8510         * modules/remainder-ieee: New file.
8511
8512         Tests for module 'remainderf-ieee'.
8513         * modules/remainderf-ieee-tests: New file.
8514         * tests/test-remainderf-ieee.c: New file.
8515         * tests/test-remainder-ieee.h: New file.
8516
8517         New module 'remainderf-ieee'.
8518         * modules/remainderf-ieee: New file.
8519
8520 2012-02-27  Bruno Haible  <bruno@clisp.org>
8521
8522         modff, modfl: Fix configure syntax error.
8523         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8524         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8525
8526 2012-02-27  Bruno Haible  <bruno@clisp.org>
8527
8528         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8529         * m4/fmodl-ieee.m4: New file.
8530         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8531         whether fmodl works with zero arguments. Replace it if not.
8532         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8533         (Depends-on): Add fmod-ieee.
8534         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8535         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8536
8537         fmodf-ieee: Work around test failure on OSF/1.
8538         * m4/fmodf-ieee.m4: New file.
8539         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8540         whether fmodf works with zero arguments. Replace it if not.
8541         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8543         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8544         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8545         (Depends-on): Update dependencies.
8546         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8547         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8548         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8549
8550         fmodf-ieee: Work around test failure on MSVC 9.
8551         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8552         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8553
8554         fmod-ieee: Work around test failures on OSF/1, mingw.
8555         * m4/fmod-ieee.m4: New file.
8556         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8557         whether fmod works with zero arguments. Replace it if not.
8558         * lib/math.in.h (fmod): New declaration.
8559         * lib/fmod.c: New file.
8560         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8561         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8562         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8563         * modules/fmod (Files): Add lib/fmod.c.
8564         (Depends-on): Add math, isinf, trunc, fma.
8565         (configure.ac): Arrange to compile lib/fmod.c if needed.
8566         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8567         m4/signbit.m4.
8568         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8569         * tests/test-math-c++.cc: Check the declaration of fmod.
8570         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8571
8572         fmodl-ieee: Fix test failures.
8573         * lib/fmodl.c (fmodl): Treat Inf specially.
8574         * modules/fmodl (Depends-on): Add isinf.
8575
8576         Tests for module 'fmodl-ieee'.
8577         * modules/fmodl-ieee-tests: New file.
8578         * tests/test-fmodl-ieee.c: New file.
8579
8580         New module 'fmodl-ieee'.
8581         * modules/fmodl-ieee: New file.
8582
8583         Tests for module 'fmod-ieee'.
8584         * modules/fmod-ieee-tests: New file.
8585         * tests/test-fmod-ieee.c: New file.
8586
8587         New module 'fmod-ieee'.
8588         * modules/fmod-ieee: New file.
8589
8590         Tests for module 'fmodf-ieee'.
8591         * modules/fmodf-ieee-tests: New file.
8592         * tests/test-fmodf-ieee.c: New file.
8593         * tests/test-fmod-ieee.h: New file.
8594
8595         New module 'fmodf-ieee'.
8596         * modules/fmodf-ieee: New file.
8597
8598 2012-02-27  Bruno Haible  <bruno@clisp.org>
8599
8600         Tests for module 'rintl-ieee'.
8601         * modules/rintl-ieee-tests: New file.
8602         * tests/test-rintl-ieee.c: New file.
8603
8604         New module 'rintl-ieee'.
8605         * modules/rintl-ieee: New file.
8606
8607         Tests for module 'rint-ieee'.
8608         * modules/rint-ieee-tests: New file.
8609         * tests/test-rint-ieee.c: New file.
8610
8611         New module 'rint-ieee'.
8612         * modules/rint-ieee: New file.
8613
8614         Tests for module 'rintf-ieee'.
8615         * modules/rintf-ieee-tests: New file.
8616         * tests/test-rintf-ieee.c: New file.
8617         * tests/test-rint-ieee.h: New file.
8618
8619         New module 'rintf-ieee'.
8620         * modules/rintf-ieee: New file.
8621
8622 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8623
8624         regex: re_search etc. should return -2 when memory exhausted
8625         This bug was uncovered when testing 'grep'.  Without the fix,
8626         re_search and friends return -1 when memory is exhausted, but -1
8627         means no match, and this causes grep to falsely report no-match
8628         instead of memory-exhaustion.  See
8629         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8630         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8631         trouble; this can occur if re_search_internal ran out of memory.
8632
8633 2012-02-26  Bruno Haible  <bruno@clisp.org>
8634
8635         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8636         * m4/modfl-ieee.m4: New file.
8637         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8638         whether modfl works with Inf. Replace it if not.
8639         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8641         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8642         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8643         (Depends-on): Update dependencies.
8644         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8645         m4/signbit.m4.
8646         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8647         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8648
8649         modfl-ieee: Fix dependencies.
8650         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8651
8652         modfl-ieee: Fix test failures.
8653         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8654         * modules/modfl (Depends-on): Add isfinite, isinf.
8655
8656         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8657         * m4/modff-ieee.m4: New file.
8658         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8659         whether modff works with NaN and Inf. Replace it if not.
8660         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8662         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8663         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8664         (Depends-on): Update dependencies.
8665         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8666         m4/signbit.m4.
8667         (Depends-on): Add modf-ieee.
8668         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8669         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8670
8671         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8672         * m4/modf-ieee.m4: New file.
8673         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8674         whether modf works with NaN and Inf. Replace it if not.
8675         * lib/math.in.h (modf): New declaration.
8676         * lib/modf.c: New file.
8677         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8679         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8680         * modules/modf (Files): Add lib/modf.c.
8681         (Depends-on): Add math, isfinite, trunc, isinf.
8682         (configure.ac): Addrange to compile lib/modf.c if needed.
8683         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8684         m4/signbit.m4.
8685         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8686         * tests/test-math-c++.cc: Check the declaration of modf.
8687         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8688
8689         Tests for module 'modfl-ieee'.
8690         * modules/modfl-ieee-tests: New file.
8691         * tests/test-modfl-ieee.c: New file.
8692
8693         New module 'modfl-ieee'.
8694         * modules/modfl-ieee: New file.
8695
8696         Tests for module 'modf-ieee'.
8697         * modules/modf-ieee-tests: New file.
8698         * tests/test-modf-ieee.c: New file.
8699
8700         New module 'modf-ieee'.
8701         * modules/modf-ieee: New file.
8702
8703         Tests for module 'modff-ieee'.
8704         * modules/modff-ieee-tests: New file.
8705         * tests/test-modff-ieee.c: New file.
8706         * tests/test-modf-ieee.h: New file.
8707
8708         New module 'modff-ieee'.
8709         * modules/modff-ieee: New file.
8710
8711 2012-02-26  Bruno Haible  <bruno@clisp.org>
8712
8713         Tests for module 'fabsl-ieee'.
8714         * modules/fabsl-ieee-tests: New file.
8715         * tests/test-fabsl-ieee.c: New file.
8716
8717         New module 'fabsl-ieee'.
8718         * modules/fabsl-ieee: New file.
8719
8720         Tests for module 'fabs-ieee'.
8721         * modules/fabs-ieee-tests: New file.
8722         * tests/test-fabs-ieee.c: New file.
8723
8724         New module 'fabs-ieee'.
8725         * modules/fabs-ieee: New file.
8726
8727         Tests for module 'fabsf-ieee'.
8728         * modules/fabsf-ieee-tests: New file.
8729         * tests/test-fabsf-ieee.c: New file.
8730         * tests/test-fabs-ieee.h: New file.
8731
8732         New module 'fabsf-ieee'.
8733         * modules/fabsf-ieee: New file.
8734
8735 2012-02-26  Bruno Haible  <bruno@clisp.org>
8736
8737         Tests for module 'fmal-ieee'.
8738         * modules/fmal-ieee-tests: New file.
8739         * tests/test-fmal-ieee.c: New file.
8740
8741         New module 'fmal-ieee'.
8742         * modules/fmal-ieee: New file.
8743
8744         Tests for module 'fma-ieee'.
8745         * modules/fma-ieee-tests: New file.
8746         * tests/test-fma-ieee.c: New file.
8747
8748         New module 'fma-ieee'.
8749         * modules/fma-ieee: New file.
8750
8751         Tests for module 'fmaf-ieee'.
8752         * modules/fmaf-ieee-tests: New file.
8753         * tests/test-fmaf-ieee.c: New file.
8754         * tests/test-fma-ieee.h: New file.
8755
8756         New module 'fmaf-ieee'.
8757         * modules/fmaf-ieee: New file.
8758
8759 2012-02-26  Bruno Haible  <bruno@clisp.org>
8760
8761         Tests for module 'ldexpl-ieee'.
8762         * modules/ldexpl-ieee-tests: New file.
8763         * tests/test-ldexpl-ieee.c: New file.
8764
8765         New module 'ldexpl-ieee'.
8766         * modules/ldexpl-ieee: New file.
8767
8768         Tests for module 'ldexp-ieee'.
8769         * modules/ldexp-ieee-tests: New file.
8770         * tests/test-ldexp-ieee.c: New file.
8771
8772         New module 'ldexp-ieee'.
8773         * modules/ldexp-ieee: New file.
8774
8775         Tests for module 'ldexpf-ieee'.
8776         * modules/ldexpf-ieee-tests: New file.
8777         * tests/test-ldexpf-ieee.c: New file.
8778         * tests/test-ldexp-ieee.h: New file.
8779
8780         New module 'ldexpf-ieee'.
8781         * modules/ldexpf-ieee: New file.
8782
8783 2012-02-26  Bruno Haible  <bruno@clisp.org>
8784
8785         Refactor frexp*-ieee tests.
8786         * tests/test-frexp-ieee.h: New file.
8787         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8788         (main): Just call test_function.
8789         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8790         (main): Just call test_function.
8791         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8792         (main): Just call test_function.
8793         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8794         * modules/frexp-ieee-tests (Files): Likewise.
8795         * modules/frexpl-ieee-tests (Files): Likewise.
8796
8797         Tests for module 'frexpl-ieee'.
8798         * modules/frexpl-ieee-tests: New file.
8799         * tests/test-frexpl-ieee.c: New file.
8800
8801         New module 'frexpl-ieee'.
8802         * modules/frexpl-ieee: New file.
8803
8804         Tests for module 'frexp-ieee'.
8805         * modules/frexp-ieee-tests: New file.
8806         * tests/test-frexp-ieee.c: New file.
8807
8808         New module 'frexp-ieee'.
8809         * modules/frexp-ieee: New file.
8810
8811         Tests for module 'frexpf-ieee'.
8812         * modules/frexpf-ieee-tests: New file.
8813         * tests/test-frexpf-ieee.c: New file.
8814
8815         New module 'frexpf-ieee'.
8816         * modules/frexpf-ieee: New file.
8817
8818 2012-02-26  Bruno Haible  <bruno@clisp.org>
8819
8820         roundl-ieee tests: More tests.
8821         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8822         (main): Add tests for [MX] shaded specification in POSIX.
8823         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8824         (Depends-on): Add isnanl-nolibm.
8825
8826         round-ieee tests: More tests.
8827         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8828         (main): Add tests for [MX] shaded specification in POSIX.
8829         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8830         (Depends-on): Add isnand-nolibm.
8831
8832         roundf-ieee tests: More tests.
8833         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8834         (main): Add tests for [MX] shaded specification in POSIX.
8835         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8836         (Depends-on): Add isnanf-nolibm.
8837
8838         truncl-ieee tests: More tests.
8839         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8840         (main): Add tests for [MX] shaded specification in POSIX.
8841         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8842         (Depends-on): Add isnanl-nolibm.
8843
8844         trunc-ieee tests: More tests.
8845         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8846         (main): Add tests for [MX] shaded specification in POSIX.
8847         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8848         (Depends-on): Add isnand-nolibm.
8849
8850         truncf-ieee tests: More tests.
8851         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8852         (main): Add tests for [MX] shaded specification in POSIX.
8853         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8854         (Depends-on): Add isnanf-nolibm.
8855
8856         ceill-ieee tests: More tests.
8857         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8858         (main): Add tests for [MX] shaded specification in POSIX.
8859         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8860         (Depends-on): Add isnanl-nolibm.
8861
8862         ceil-ieee tests: More tests.
8863         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8864         (main): Add tests for [MX] shaded specification in POSIX.
8865         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8866         (Depends-on): Add isnand-nolibm.
8867
8868         ceilf-ieee tests: More tests.
8869         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8870         (main): Add tests for [MX] shaded specification in POSIX.
8871         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8872         (Depends-on): Add isnanf-nolibm.
8873
8874         floorl-ieee tests: More tests.
8875         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8876         (main): Add tests for [MX] shaded specification in POSIX.
8877         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8878         (Depends-on): Add isnanl-nolibm.
8879
8880         floor-ieee tests: More tests.
8881         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8882         (main): Add tests for [MX] shaded specification in POSIX.
8883         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8884         (Depends-on): Add isnand-nolibm.
8885
8886         floorf-ieee tests: More tests.
8887         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8888         (main): Add tests for [MX] shaded specification in POSIX.
8889         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8890         (Depends-on): Add isnanf-nolibm.
8891
8892 2012-02-26  Bruno Haible  <bruno@clisp.org>
8893
8894         fpieee: More comments.
8895         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8896
8897 2012-02-25  Bruno Haible  <bruno@clisp.org>
8898
8899         Tests for module 'log10l'.
8900         * modules/log10l-tests: New file.
8901         * tests/test-log10l.c: New file.
8902         * tests/test-math-c++.cc: Check the declaration of log10l.
8903
8904         New module 'log10l'.
8905         * lib/math.in.h (log10l): New declaration.
8906         * lib/log10l.c: New file.
8907         * m4/log10l.m4: New file.
8908         * modules/log10l: New file.
8909         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8910         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8911         HAVE_DECL_LOG10L.
8912         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8913         HAVE_DECL_LOG10L.
8914         * doc/posix-functions/log10l.texi: Mention the new module.
8915
8916 2012-02-25  Bruno Haible  <bruno@clisp.org>
8917
8918         fmodl, remainder*: Avoid wrong results due to rounding errors.
8919         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8920         expected bounds.
8921         * lib/remainderf.c (remainderf): Likewise.
8922         * lib/remainder.c (remainder): Likewise.
8923         * lib/remainderl.c (remainderl): Likewise.
8924
8925 2012-02-25  Bruno Haible  <bruno@clisp.org>
8926
8927         Tests for module 'remainderl'.
8928         * modules/remainderl-tests: New file.
8929         * tests/test-remainderl.c: New file.
8930         * tests/test-math-c++.cc: Check the declaration of remainderl.
8931
8932         New module 'remainderl'.
8933         * lib/math.in.h (remainderl): New declaration.
8934         * lib/remainderl.c: New file.
8935         * m4/remainderl.m4: New file.
8936         * modules/remainderl: New file.
8937         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8938         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8939         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8940         HAVE_REMAINDERL.
8941         * doc/posix-functions/remainderl.texi: Mention the new module.
8942
8943 2012-02-25  Bruno Haible  <bruno@clisp.org>
8944
8945         Tests for module 'remainderf'.
8946         * modules/remainderf-tests: New file.
8947         * tests/test-remainderf.c: New file.
8948         * tests/test-math-c++.cc: Check the declaration of remainderf.
8949
8950         New module 'remainderf'.
8951         * lib/math.in.h (remainderf): New declaration.
8952         * lib/remainderf.c: New file.
8953         * m4/remainderf.m4: New file.
8954         * modules/remainderf: New file.
8955         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8957         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8958         HAVE_REMAINDERF.
8959         * doc/posix-functions/remainderf.texi: Mention the new module.
8960
8961 2012-02-25  Bruno Haible  <bruno@clisp.org>
8962
8963         remainder: Support for MSVC.
8964         * lib/math.in.h (remainder): New declaration.
8965         * lib/remainder.c: New file.
8966         * m4/remainder.m4: New file.
8967         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8968         (Depends-on): Add math, round, fma.
8969         (configure.ac): Use results of gl_FUNC_REMAINDER.
8970         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8972         HAVE_DECL_REMAINDER.
8973         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8974         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8975         * tests/test-math-c++.cc: Check the declaration of remainder.
8976         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8977         problems are fixed.
8978
8979 2012-02-25  Bruno Haible  <bruno@clisp.org>
8980
8981         Tests for module 'fmodl'.
8982         * modules/fmodl-tests: New file.
8983         * tests/test-fmodl.c: New file.
8984         * tests/test-math-c++.cc: Check the declaration of fmodl.
8985
8986         New module 'fmodl'.
8987         * lib/math.in.h (fmodl): New declaration.
8988         * lib/fmodl.c: New file.
8989         * m4/fmodl.m4: New file.
8990         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8992         REPLACE_FMODL.
8993         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8994         REPLACE_FMODL.
8995         * modules/fmodl: New file.
8996         * doc/posix-functions/fmodl.texi: Mention the new module.
8997
8998 2012-02-25  Bruno Haible  <bruno@clisp.org>
8999
9000         Tests for module 'modfl'.
9001         * modules/modfl-tests: New file.
9002         * tests/test-modfl.c: New file.
9003         * tests/test-math-c++.cc: Check the declaration of modfl.
9004
9005         New module 'modfl'.
9006         * lib/math.in.h (modfl): New declaration.
9007         * lib/modfl.c: New file.
9008         * m4/modfl.m4: New file.
9009         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
9010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
9011         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
9012         * modules/modfl: New file.
9013         * doc/posix-functions/modfl.texi: Mention the new module.
9014
9015 2012-02-25  Bruno Haible  <bruno@clisp.org>
9016
9017         Tests for module 'fabsl'.
9018         * modules/fabsl-tests: New file.
9019         * tests/test-fabsl.c: New file.
9020         * tests/test-math-c++.cc: Check the declaration of fabsl.
9021
9022         New module 'fabsl'.
9023         * lib/math.in.h (fabsl): New declaration.
9024         * lib/fabsl.c: New file.
9025         * m4/fabsl.m4: New file.
9026         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
9027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
9028         REPLACE_FABSL.
9029         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
9030         REPLACE_FABSL.
9031         * modules/fabsl: New file.
9032         * doc/posix-functions/fabsl.texi: Mention the new module.
9033
9034 2012-02-25  Bruno Haible  <bruno@clisp.org>
9035
9036         fabs tests: More tests.
9037         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
9038         (zero): New variable.
9039         (main): Add tests for signed zero.
9040         * modules/fabs-tests (Files): Add tests/minus-zero.h.
9041
9042         fabsf tests: More tests.
9043         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
9044         (zero): New variable.
9045         (main): Add tests for signed zero.
9046         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
9047
9048 2012-02-24  Bruno Haible  <bruno@clisp.org>
9049
9050         atanl: Provide function definition on MSVC.
9051         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
9052         function pointer.
9053         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
9054
9055 2012-02-24  Bruno Haible  <bruno@clisp.org>
9056
9057         acosl: Provide function definition on MSVC.
9058         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
9059         function pointer.
9060         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
9061
9062 2012-02-24  Bruno Haible  <bruno@clisp.org>
9063
9064         asinl: Provide function definition on MSVC.
9065         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
9066         function pointer.
9067         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
9068
9069 2012-02-24  Bruno Haible  <bruno@clisp.org>
9070
9071         tanl: Provide function definition on MSVC.
9072         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
9073         function pointer.
9074         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
9075
9076 2012-02-24  Bruno Haible  <bruno@clisp.org>
9077
9078         cosl: Provide function definition on MSVC.
9079         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
9080         function pointer.
9081         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
9082
9083 2012-02-24  Bruno Haible  <bruno@clisp.org>
9084
9085         sinl: Provide function definition on MSVC.
9086         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
9087         function pointer.
9088         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
9089
9090 2012-02-24  Bruno Haible  <bruno@clisp.org>
9091
9092         logl: Provide function definition on MSVC.
9093         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
9094         function pointer.
9095         * lib/math.in.h (logl): Undefine if it does not exist as a function.
9096
9097 2012-02-24  Bruno Haible  <bruno@clisp.org>
9098
9099         expl: Provide function definition on MSVC.
9100         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
9101         function pointer.
9102         * lib/math.in.h (expl): Undefine if it does not exist as a function.
9103
9104 2012-02-24  Bruno Haible  <bruno@clisp.org>
9105
9106         sqrtl: Provide function definition on MSVC.
9107         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
9108         a function pointer.
9109         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
9110
9111 2012-02-24  Bruno Haible  <bruno@clisp.org>
9112
9113         ceill: Provide function definition on MSVC.
9114         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
9115         used as a function pointer.
9116         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
9117
9118 2012-02-24  Bruno Haible  <bruno@clisp.org>
9119
9120         floorl: Provide function definition on MSVC.
9121         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
9122         used as a function pointer.
9123         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
9124
9125 2012-02-24  Bruno Haible  <bruno@clisp.org>
9126
9127         ceilf: Provide function definition on MSVC.
9128         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
9129         used as a function pointer.
9130         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
9131
9132 2012-02-24  Bruno Haible  <bruno@clisp.org>
9133
9134         floorf: Provide function definition on MSVC.
9135         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
9136         used as a function pointer.
9137         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
9138
9139 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9140
9141         stdnoreturn: new module
9142         This implements a replacement for C11's <stdnoreturn.h>.
9143         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
9144         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9145         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9146         * tests/test-stdnoreturn.c: New files.
9147
9148 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9149
9150         regex: fix false multibyte matches in some regular expressions
9151         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9152         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9153         * lib/regex_internal.c (re_string_skip_chars):
9154         Fix miscomputation of remain_len that may cause incomplete
9155         multi-byte character and false match.
9156
9157 2012-02-24  Jim Meyering  <meyering@redhat.com>
9158
9159         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9160         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9161         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9162         Remove now-unnecessary str''cmp obfuscation.
9163         Suggested by Akim Demaille.
9164
9165 2012-02-24  Bruno Haible  <bruno@clisp.org>
9166
9167         streq: Rename macro.
9168         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9169         * NEWS: Mention the change.
9170         * lib/mbrtowc.c (mbrtowc): Update.
9171         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9172         * lib/wcwidth.c (wcwidth): Update.
9173         Suggested by Akim Demaille and Jim Meyering.
9174
9175 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9176
9177         regex: fix typo in definition of MIN
9178         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9179         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9180
9181 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9182             Bruno Haible  <bruno@clisp.org>
9183
9184         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9185         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9186         entries into a stack-allocated buffer directly.
9187         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9188
9189 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9190             Bruno Haible  <bruno@clisp.org>
9191
9192         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9193
9194          - There were several instances of this pattern:
9195
9196              for (;;) {
9197                n = acl (f, GETACLCNT, 0, NULL);
9198                [ allocate an array A of size N ]
9199                if (acl (f, GETACL, n, a) == n)
9200                  break;
9201              }
9202
9203            This loop might never terminate if some other process is constantly
9204            manipulating the file's ACL.  The loop should be rewritten to
9205            terminate.
9206
9207          - The acl (... GETACLNT ...) call is merely an optimization; its value
9208            is merely a hint as to how big to make the array.  A better
9209            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9210            and just guess a reasonably-big size, growing the size and trying
9211            again if it's not large enough.  This guarantees termination, and
9212            saves a system call.
9213
9214         * lib/acl-internal.h: Include <limits.h>.
9215         (MIN, SIZE_MAX): New macros.
9216         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9217         a stack-allocated buffer, and use malloc if it does not fit. Don't
9218         use GETACLCNT.
9219         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9220
9221 2012-02-19  Bruno Haible  <bruno@clisp.org>
9222
9223         acl: Fix endless loop on Solaris with vxfs.
9224         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9225         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9226         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9227         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9228         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9229         Reported by Bill Jones in
9230         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9231
9232 2012-02-19  Bruno Haible  <bruno@clisp.org>
9233
9234         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9235         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9236         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9237         that this function returns 0 in some more cases.
9238
9239 2012-02-19  Bruno Haible  <bruno@clisp.org>
9240
9241         acl: Update doc references.
9242         * doc/acl-resources.txt: Update links to Solaris documentation.
9243
9244 2012-02-19  Bruno Haible  <bruno@clisp.org>
9245
9246         Fix test failure in many locales on Solaris 11.
9247         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9248         'tr' arguments.
9249         * tests/test-pipe-filter-ii1.c (main): Likewise.
9250         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9251         expressions in the C locale.
9252         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9253         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9254
9255 2012-02-19  Bruno Haible  <bruno@clisp.org>
9256
9257         gnulib-tool: Improve usage message.
9258         * gnulib-tool (func_usage): Move doc of --help and --version to the
9259         section "Operation modes".
9260
9261 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9262
9263         README-release: make it easier to execute commands
9264         * top/README-release: break commands out on to separate lines.
9265
9266 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9267
9268         GNUmakefile: simplify detection of unconfigured trees
9269         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9270         whether the tree make is being run from is already configured or
9271         not.  Related simplifications.
9272
9273 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9274
9275         * gnulib-tool (func_usage): Document --help and --version.
9276
9277 2012-02-11  Jim Meyering  <meyering@redhat.com>
9278
9279         bootstrap: don't exit 0 upon gnulib-tool failure
9280         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9281         its exit status, not 0.
9282
9283 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9284
9285         README-release: various improvements
9286         * top/README-release: Give a command to push changes for the
9287         release.  Add "distcheck" to list of other pre-release checks.
9288         Fix instance of "make stable" which should be "make TYPE".
9289
9290 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9291
9292         maint: replace FSF snail-mail addresses with URLs
9293         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9294         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9295         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9296         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9297         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9298         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9299         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9300         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9301         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9302         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9303         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9304         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9305         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9306         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9307         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9308         * lib/glthread/thread.c, lib/glthread/thread.h:
9309         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9310         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9311         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9312         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9313         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9314         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9315         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9316         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9317         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9318         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9319         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9320         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9321         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9322         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9323         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9324         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9325         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9326         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9327         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9328         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9329         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9330         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9331         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9332         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9333         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9334         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9335         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9336         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9337         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9338         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9339         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9340         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9341         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9342         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9343         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9344         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9345         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9346         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9347         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9348         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9349         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9350         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9351         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9352         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9353         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9354         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9355         * tests/test-poll.c, tests/test-quotearg-simple.c:
9356         * tests/test-quotearg.c, tests/test-quotearg.h:
9357         * tests/test-round-ieee.c, tests/test-round1.c:
9358         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9359         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9360         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9361         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9362         * tests/test-strerror.c, tests/test-strerror_r.c:
9363         * tests/test-strsignal.c, tests/test-strverscmp.c:
9364         * tests/test-xmemdup0.c:
9365         Replace FSF snail mail addresses with URLs, as per GNU coding
9366         standards.  See glibc bug
9367         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9368
9369 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9370
9371         README-release: capitalize a word and split a line
9372         * top/README-release: Fix punctuation and spacing.
9373
9374 2012-02-08  Akim Demaille  <demaille@gostai.com>
9375
9376         fatal-signal: use C prototypes (with explicit void).
9377         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9378         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9379
9380 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9381
9382         regex: spelling fix
9383         * lib/regexec.c: spelling fix
9384
9385         regex: rely on stdint.h for SIZE_MAX
9386         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9387
9388 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9389
9390         regex: merge glibc changes
9391
9392         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9393         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9394         (init_word_char): Work even if bitset words are not exactly 32 or
9395         64 bits wide.  Don't assume there are no padding bits.
9396         * lib/regex.c [_LIBC]: Do not include <config.h>.
9397         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9398         and -Wtype-limits.
9399         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9400         needless disagreement with glibc.  All uses changed.  Define it to
9401         1 only if _GNU_SOURCE, to match glibc.
9402         (_REG_RM_NAME): Remove; no longer needed, since the names in
9403         question are now all protected by __USE_GNU.
9404         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9405         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9406         * lib/regex_internal.h (MIN): New macro.
9407
9408         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9409         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9410
9411         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9412         * lib/regex_internal.c (re_string_fetch_byte_case):
9413         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9414         is miscompiled, and it turns out it is because of an incorrect
9415         attribute on re_string_fetch_byte_case.  Unlike
9416         re_string_peek_byte_case, this one is really not pure, it modifies
9417         memory (increments pstr->cur_idx), and with the pure attribute GCC
9418         assumed it doesn't and it cached the presumed value of
9419         regexp->cur_idx in a variable across the
9420          for (;; ++i)
9421            {
9422              if (i >= BRACKET_NAME_BUF_SIZE)
9423                return REG_EBRACK;
9424              if (token->type == OP_OPEN_CHAR_CLASS)
9425                ch = re_string_fetch_byte_case (regexp);
9426              else
9427                ch = re_string_fetch_byte (regexp);
9428              if (re_string_eoi(regexp))
9429                return REG_EBRACK;
9430              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9431                break;
9432              elem->opr.name[i] = ch;
9433            }
9434
9435         2011-11-29 Andreas Schwab <schwab@redhat.com>
9436         * lib/regcomp.c (build_equiv_class):
9437         Fix access after end of search string in regex matcher.
9438
9439         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9440         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9441
9442         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9443         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9444
9445         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9446         * lib/regcomp.c (parse_branch, parse_sub_exp):
9447         More regex memory leak fixes and tests.
9448         (parse_sub_exp, parse_bracket_exp):
9449         Fix memory leak for some invalid regular expressions.
9450
9451         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9452         * lib/regex_internal.c, lib/regexec.c:
9453         Fix unnecessary overallocation due to incomplete character.  When
9454         incomplete characters are found at the end of a string the code
9455         ran amok and allocated lots of memory.  Stricter limits are now in
9456         place.
9457
9458         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9459         * lib/regex.h: Update documentation.
9460
9461         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9462         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9463
9464         2010-05-05 Andreas Schwab <schwab@redhat.com>
9465         * lib/regexec.c (find_collation_sequence_value):
9466         Fix lookup of collation sequence value during regexp matching.
9467
9468         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9469         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9470
9471         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9472         * lib/regex.h: Cleanup namespace.
9473
9474         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9475         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9476
9477         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9478         * lib/regex_internal.h: Prevent some declarations and definitions
9479         to be seen when used in tests.
9480
9481         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9482         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9483         __libc_lock_* macros if not _LIBC.
9484         (struct re_dfa_t): Add lock.
9485
9486 2012-02-07  Eric Blake  <eblake@redhat.com>
9487
9488         maint.mk: also prohibit lower-case @var@
9489         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9490         lower case, like @top_srcdir@.
9491
9492 2012-02-04  Eric Blake  <eblake@redhat.com>
9493
9494         canonicalize: avoid uninitialized memory use
9495         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9496         random '/' left in dest.
9497         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9498
9499 2012-02-04  Bruno Haible  <bruno@clisp.org>
9500
9501         isatty: Fix test failure of ptsname_r on native Windows.
9502         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9503         and don't set errno.
9504         (isatty): Test first whether fd is valid. Set errno when returning 0.
9505
9506 2012-02-04  Bruno Haible  <bruno@clisp.org>
9507
9508         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9509         * tests/test-spawn-pipe-main.c: Include progname.h.
9510         (main): Invoke set_program_name.
9511         * modules/spawn-pipe-tests (Depends-on): Add progname.
9512
9513         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9514         * tests/test-nonblocking-socket-main.c: Include progname.h.
9515         (main): Invoke set_program_name.
9516         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9517
9518         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9519         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9520         (main): Invoke set_program_name.
9521         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9522
9523 2012-02-04  Eric Blake  <eblake@redhat.com>
9524
9525         canonicalize-lgpl: fix // handling
9526         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9527
9528         canonicalize: fix // handling
9529         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9530         /// to //, since only // is special.
9531
9532 2012-02-04  Bruno Haible  <bruno@clisp.org>
9533
9534         ioctl: Fix test failure on native Windows.
9535         * lib/ioctl.c: Include msvc-nothrow.h.
9536         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9537
9538 2012-02-04  Bruno Haible  <bruno@clisp.org>
9539
9540         fsync: Avoid test failure on native Windows.
9541         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9542         read-only.
9543
9544 2012-02-04  Bruno Haible  <bruno@clisp.org>
9545
9546         sys_select: Avoid syntax error on OpenBSD 5.0.
9547         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9548         currently being included, just include the system's <sys/select.h>.
9549
9550 2012-02-04  Bruno Haible  <bruno@clisp.org>
9551
9552         sys_select: Avoid syntax error on OpenBSD 5.0.
9553         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9554         <sys/select.h>, not before.
9555         Reported by Jiri B <jirib@devio.us>.
9556
9557 2012-02-04  Bruno Haible  <bruno@clisp.org>
9558
9559         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9560         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9561         global variables.
9562         * tests/test-get-rusage-data.c (main): Likewise.
9563         Reported by Jim Meyering.
9564
9565 2012-02-04  Bruno Haible  <bruno@clisp.org>
9566
9567         stdioext: Fix last commit.
9568         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9569
9570 2012-02-03  Bruno Haible  <bruno@clisp.org>
9571
9572         stdioext: Add tentative support for Plan9.
9573         * lib/stdio-impl.h: Include <errno.h>.
9574         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9575         * lib/freadable.c (freadable): Likewise.
9576         * lib/fwritable.c (fwritable): Likewise.
9577         * lib/fbufmode.c (fbufmode): Likewise.
9578         * lib/freading.c (freading): Likewise.
9579         * lib/fwriting.c (fwriting): Likewise.
9580         * lib/freadptr.c (freadptr): Likewise.
9581         * lib/freadseek.c (freadptrinc): Likewise.
9582         * lib/freadahead.c (freadahead): Likewise.
9583         * lib/fpurge.c (fpurge): Likewise.
9584         * lib/fseeko.c (rpl_fseeko): Likewise.
9585         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9586         Reported by Jens Staal <staal1978@gmail.com>.
9587
9588 2012-02-02  Jim Meyering  <meyering@redhat.com>
9589
9590         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9591         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9592         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9593         not even to try to add the attribute.  Instead, add a pragma to suppress
9594         the suggestion/warning.
9595
9596 2012-01-31  Karl Berry  <karl@gnu.org>
9597
9598         setstate doc: typo.
9599         * doc/posix-functions/setstate.texi (setstate): { not (.
9600
9601 2012-01-31  Bruno Haible  <bruno@clisp.org>
9602
9603         popen: Make more robust on Windows.
9604         * lib/popen.c: On native Windows, use the _popen based code even if
9605         HAVE_POPEN is set.
9606         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9607         environment variable on native Windows.
9608
9609 2012-01-30  Bruno Haible  <bruno@clisp.org>
9610
9611         pclose: Fix typo.
9612         * lib/stdio.in.h (pclose): Fix typo in warning message.
9613
9614 2012-01-30  Bruno Haible  <bruno@clisp.org>
9615
9616         doc about getlogin_r, setstate.
9617         * doc/posix-functions/getlogin_r.texi: List the incompatible
9618         declaration problem under "not fixed by gnulib".
9619         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9620         problem on Solaris 11 and other platforms.
9621
9622 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9623             Bruno Haible  <bruno@clisp.org>
9624
9625         poll tests: Make test more robust.
9626         * tests/test-poll.c: Include macros.h.
9627         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9628         return value of various I/O operations.
9629         * modules/poll-tests (Files): Add tests/macros.h.
9630
9631 2012-01-30  Bruno Haible  <bruno@clisp.org>
9632
9633         sys_stat: Fix support for mingw64 and MSVC.
9634         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9635         header files already do it.
9636         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9637         stat itself.
9638         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9639
9640 2012-01-30  Bruno Haible  <bruno@clisp.org>
9641
9642         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9643         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9644         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9645
9646 2012-01-29  Bruno Haible  <bruno@clisp.org>
9647
9648         quotearg: Fix test failure on MacOS X 10.5.
9649         * tests/test-quotearg-simple.c: Include localcharset.h.
9650         (main): If the locale encoding is not ASCII, bypass the tests of
9651         locale_quoting_style and clocale_quoting_style.
9652         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9653
9654 2012-01-29  Jim Meyering  <meyering@redhat.com>
9655
9656         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9657         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9658         detect uses of canonicalize_file_name.
9659
9660 2012-01-28  Bruno Haible  <bruno@clisp.org>
9661
9662         test-framework-sh: Fix test failure with AIX 7.1 diff.
9663         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9664         in column 1, like 'diff -c' does.
9665         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9666         whether 'diff -u' is used. Instead, test whether the output contains
9667         some '@' character.
9668
9669 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9670
9671         strtoimax: eliminate need for stdint.h, inttypes.h checks
9672         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9673         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9674         the prerequisites for a recently-introduced strtoimax test.
9675         I guess this might cause strtoimax to be replaced when not
9676         strictly necessary on older hosts, but this shouldn't introduce
9677         any bugs and it should make Emacs 'configure' faster on typical
9678         modern hosts.  Problem discovered when importing the latest gnulib
9679         to an Emacs test version.
9680         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9681
9682 2012-01-28  Bruno Haible  <bruno@clisp.org>
9683
9684         sys_time: Override 'struct timeval' on some native Windows platforms.
9685         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9686         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9687         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9688         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9689         needs to be overridden.
9690         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9691         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9692         * tests/test-sys_select.c: Check that the tv_sec member has the same
9693         size as a 'time_t'.
9694         * tests/test-sys_time.c: Likewise.
9695         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9696         is set, set also REPLACE_GETTIMEOFDAY.
9697         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9698         convert the resulting 'struct timeval' before returning.
9699         * lib/select.c: Include <sys/time.h>.
9700         (select, timeval): Undefine at the right place.
9701         * modules/select (Depends-on): Add sys_time.
9702         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9703         some Windows platforms.
9704         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9705
9706 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9707
9708         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9709         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9710         an integer.
9711         * lib/fcntl.c (dupfd): Likewise.
9712         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9713
9714 2012-01-28  Bruno Haible  <bruno@clisp.org>
9715
9716         fcntl: Avoid compilation error on native Windows.
9717         * modules/fcntl (Depends-on): Add 'close'.
9718
9719 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9720
9721         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9722         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9723         pointer to an integer.
9724         * lib/poll.c (IsConsoleHandle): Likewise.
9725         * lib/isatty.c (IsConsoleHandle): Likewise.
9726
9727 2012-01-28  Jim Meyering  <meyering@redhat.com>
9728
9729         doc: clarify README-release
9730         * top/README-release: Clarify: you should make a point to have
9731         the latest stable versions of build tools in your PATH, and the
9732         reference to buildreq is solely for its list of tool names, not
9733         for its minimal-functional version numbers.
9734         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9735
9736         maint.mk: use more readable (yet functionally equivalent) quoting
9737         It is common to quote a single quote in a single quoted string like
9738         this:  '...'\''...'.  Unless you know the idiom, that looks like
9739         gibberish, so prefer to double-quote the string when possible.
9740         Then you can use a more readable, lone single quote: "...'..."
9741         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9742         "don't" is more readable than the equivalent 'don'\''t'.
9743         (sc_cast_of_x_alloc_return_value): Likewise.
9744         (sc_cast_of_alloca_return_value): Likewise.
9745         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9746         rather than '\'':'\''.
9747
9748 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9749
9750         stdalign: relax _Alignof and tighten _Alignas test
9751         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9752         as it was too strict: alignof must divide offsetof, but it need
9753         not equal offsetof.  Inspired by Joseph S. Myers's comment
9754         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9755         Conversely, tighten the _Alignas test a bit, as the resulting
9756         alignment must be exactly 8.
9757
9758 2012-01-27  Bruno Haible  <bruno@clisp.org>
9759
9760         stdalign: Document the last change.
9761         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9762
9763 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9764
9765         stdalign: check that alignof and offsetof are consistent
9766         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9767         Problem reported for gnulib by Richard W.M. Jones in
9768         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9769
9770 2012-01-27  Jim Meyering  <meyering@redhat.com>
9771
9772         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9773         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9774         convert a sequence with gaps to the minimal containing range.
9775         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9776         * tests/test-update-copyright.sh: Test for this.
9777         The FSF confirmed it is ok to do this, assuming there is at
9778         least one significant change per year in the affected range:
9779         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9780
9781 2012-01-26  Bruno Haible  <bruno@clisp.org>
9782
9783         pipe2: refine doc about thread-safety
9784         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9785         multithread-safety problem.
9786         * doc/glibc-functions/accept4.texi: Likewise.
9787
9788 2012-01-26  Bruno Haible  <bruno@clisp.org>
9789
9790         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9791         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9792         In the test program, include <fcntl.h>, for O_RDONLY.
9793
9794 2012-01-26  Eric Blake  <eblake@redhat.com>
9795
9796         pipe2: document lack of thread-safety in replacement
9797         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9798         issue in replacement.
9799         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9800         Based on a report by Eric Wong.
9801
9802 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9803             Bruno Haible  <bruno@clisp.org>
9804
9805         malloca: Avoid warnings on x86_64 mingw64.
9806         * lib/malloca.c: Include <stdint.h>.
9807         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9808         * modules/malloca (Depends-on): Add stdint.
9809         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9810
9811 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9812
9813         obstack: remove __STDC__ conditionals
9814         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9815         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9816         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9817         m4/include_next.m4 as the only gnulib-maintained places that still
9818         refer to __STDC__.
9819
9820 2012-01-24  Bruno Haible  <bruno@clisp.org>
9821
9822         havelib: Modern quoting.
9823         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9824         the recent change to the GNU coding standards.
9825
9826 2012-01-24  Bruno Haible  <bruno@clisp.org>
9827
9828         stdint: Improve support for Android.
9829         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9830         Reported by Simon Josefsson <simon@josefsson.org>.
9831
9832 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9833
9834         doc: omit trailing empty lines from INSTALL etc.
9835         * doc/Makefile (INSTALL): Omit trailing empty lines.
9836         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9837         omit trailing empty lines.  This simplifies the build procedure.
9838
9839 2012-01-23  Jim Meyering  <meyering@redhat.com>
9840
9841         tests: avoid spurious warnings about gl_sockets_startup
9842         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9843         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9844         reporting a "statement with no effect".
9845         * tests/test-accept.c (main): Mark as "(void)".
9846         * tests/test-accept4.c (main): Likewise.
9847         * tests/test-bind.c (main): Likewise.
9848         * tests/test-connect.c (main): Likewise.
9849         * tests/test-getpeername.c (main): Likewise.
9850         * tests/test-getsockname.c (main): Likewise.
9851         * tests/test-getsockopt.c (main): Likewise.
9852         * tests/test-listen.c (main): Likewise.
9853         * tests/test-recv.c (main): Likewise.
9854         * tests/test-recvfrom.c (main): Likewise.
9855         * tests/test-send.c (main): Likewise.
9856         * tests/test-sendto.c (main): Likewise.
9857         * tests/test-setsockopt.c (main): Likewise.
9858         * tests/test-shutdown.c (main): Likewise.
9859
9860 2012-01-21  Bruno Haible  <bruno@clisp.org>
9861
9862         locale-fr.m4: Fix for Android.
9863         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9864         failure of the test program on Bionic libc.
9865
9866 2012-01-21  Jim Meyering  <meyering@redhat.com>
9867
9868         bootstrap: fail when bootstrap_post_import_hook fails
9869         Otherwise, it's far too easy to miss diagnostics emitted
9870         between gnulib-tool's output and that of running configure.
9871         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9872
9873 2012-01-17  Jim Meyering  <meyering@redhat.com>
9874
9875         maint: enable sc_trailing_blank
9876         * build-aux/pmccabe.css: Remove trailing blanks.
9877         * doc/acl-cygwin.txt: Likewise.
9878         * doc/gnu-oids.texi: Likewise
9879         * cfg.mk: Enable sc_trailing_blank.
9880         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9881
9882 2012-01-17  Jim Meyering  <meyering@redhat.com>
9883
9884         maint: enable sc_prohibit_openat_without_use
9885         * cfg.mk: Enable sc_prohibit_openat_without_use.
9886         Exempt lib/selinux-at.c.
9887
9888 2012-01-17  Jim Meyering  <meyering@redhat.com>
9889
9890         maint: enable sc_prohibit_cloexec_without_use
9891         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9892         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9893
9894 2012-01-17  Jim Meyering  <meyering@redhat.com>
9895
9896         maint: enable sc_prohibit_intprops_without_use
9897         * cfg.mk: Enable sc_prohibit_intprops_without_use
9898         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9899
9900 2012-01-17  Jim Meyering  <meyering@redhat.com>
9901
9902         maint: enable sc_prohibit_hash_pjw_without_use
9903         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9904         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9905         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9906         following " (".
9907
9908 2012-01-17  Jim Meyering  <meyering@redhat.com>
9909
9910         maint: enable double-word-prohibiting rule
9911         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9912         Exempt three files.
9913
9914 2012-01-17  Jim Meyering  <meyering@redhat.com>
9915
9916         maint: remove empty lines at EOF, but excluding modules/*
9917         Apply syntax rules at home as well as abroad.  Most changes
9918         were induced by running this:
9919           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9920             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9921             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9922         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9923         Exempt modules/* and two binary files.
9924         Also exempt doc/INSTALL*, per request from Bruno Haible.
9925         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9926         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9927         * doc/Copyright/request-assign.future: Likewise.
9928         * doc/Copyright/request-disclaim.changes: Likewise.
9929         * doc/INSTALL: Likewise.
9930         * doc/INSTALL.ISO: Likewise.
9931         * doc/INSTALL.UTF-8: Likewise.
9932         * doc/acl-cygwin.txt: Likewise.
9933         * doc/acl-resources.txt: Likewise.
9934         * doc/fdl-1.2.texi: Likewise.
9935         * doc/fdl-1.3.texi: Likewise.
9936         * doc/fdl.texi: Likewise.
9937         * lib/argp-pin.c: Likewise.
9938         * lib/round.c: Likewise.
9939         * lib/unicase/u16-totitle.c: Likewise.
9940         * lib/unictype/block_test.c: Likewise.
9941         * lib/uninorm/canonical-decomposition.c: Likewise.
9942         * m4/README: Likewise.
9943         * m4/relocatable-lib.m4: Likewise.
9944         * tests/test-isnand-nolibm.c: Likewise.
9945         * tests/test-isnand.c: Likewise.
9946         * tests/uninorm/NormalizationTest.txt: Likewise.
9947
9948 2012-01-17  Jim Meyering  <meyering@redhat.com>
9949
9950         maint: add framework to run syntax-check rules against gnulib sources
9951         * cfg.mk: New file, to disable all currently-failing tests.
9952         We'll enable them one by one, as they are made to pass.
9953         * Makefile (sc_maint): New rule.
9954
9955 2012-01-21  Bruno Haible  <bruno@clisp.org>
9956
9957         stdint: Add support for Android.
9958         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9959         include the system's <stdint.h>.
9960         Reported by Simon Josefsson <simon@josefsson.org>.
9961
9962 2012-01-19  Jim Meyering  <meyering@redhat.com>
9963
9964         bootstrap: add bootstrap_post_import_hook
9965         Bison does still need something like the gnulib_mk_hook whose
9966         invocation I had to remove along with slurp in commit 767ccd40.
9967         Technically, we could get along without it, but doing so would
9968         have required living with a warning and a mandatory post-bootstrap
9969         automake rerun.
9970         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9971         (bootstrap_post_import_hook): New function.
9972         Invoke it after gnulib-tool --import and before autoreconf.
9973
9974 2012-01-18  Jim Meyering  <meyering@redhat.com>
9975
9976         gitlog-to-changelog: don't use "no_"-prefixed variable name
9977         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9978         to enable both --cluster and --no-cluster.  Change variable name,
9979         s/\$no_cluster/$cluster/, and reverse usage to match.
9980
9981         gitlog-to-changelog: use "||", not "or" in expressions
9982         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9983         expressions.
9984
9985 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9986
9987         gitlog-to-changelog: new option --no-cluster
9988         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9989         clustering of adjacent commit messages.
9990
9991 2012-01-17  Jim Meyering  <meyering@redhat.com>
9992
9993         maint: spell file systems with two words, not one
9994         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9995         two words, not one.
9996
9997 2012-01-16  Jim Meyering  <meyering@redhat.com>
9998
9999         bootstrap: add a FIXME comment to ensure we eventually remove the hack
10000         * build-aux/bootstrap (gnulib_tool_options): Add comment.
10001
10002 2012-01-16  Eric Blake  <eblake@redhat.com>
10003
10004         bootstrap: cater to autoconf 2.59
10005         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
10006         is not available.
10007
10008         bootstrap: properly check for libtool
10009         * build-aux/bootstrap (libtoolize): Also run libtool when older
10010         usage is detected.
10011
10012 2012-01-15  Bruno Haible  <bruno@clisp.org>
10013
10014         Improve support for MSVC 9.
10015         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
10016         clashes on MSVC.
10017         * lib/fcntl.in.h: Likewise.
10018         * lib/stdlib.in.h: Likewise.
10019         * lib/sys_stat.in.h: Likewise.
10020
10021 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
10022
10023         gnupload: we hold the master copy of this script now
10024         For motivation and more information, see:
10025         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
10026         * build-aux/gnupload: Make it clear in the heading comments that the
10027         master copy of this file is maintained by gnulib.  Since we are at
10028         it, bump its copyright year and ...
10029         ($scriptversion): ... the date in its version.
10030         ($usage): Patches and bug reports should be sent to the gnulib list,
10031         not the automake one.
10032         * config/srclist.txt: Don't try to sync 'gnupload' from automake
10033         anymore.
10034
10035 2012-01-15  Bruno Haible  <bruno@clisp.org>
10036
10037         Fix module 'random'.
10038         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
10039         initstate, setstate are declared.
10040
10041 2012-01-14  Bruno Haible  <bruno@clisp.org>
10042
10043         Tests for module 'random'.
10044         * modules/random-tests: New file.
10045         * tests/test-random.c: New file, based on tests/test-random_r.c.
10046
10047         New module 'random'.
10048         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
10049         declarations.
10050         * lib/random.c: New file, based on glibc/stdlib/random.c.
10051         * m4/random.m4: New file.
10052         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
10053         HAVE_RANDOM.
10054         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
10055         * modules/random: New file.
10056         * config/srclist.txt: Add an entry for random.c.
10057         * doc/posix-functions/random.texi: Mention the 'random' module.
10058         * doc/posix-functions/initstate.texi: Likewise.
10059         * doc/posix-functions/setstate.texi: Likewise.
10060         * doc/posix-functions/srandom.texi: Likewise.
10061
10062 2012-01-12  Bruno Haible  <bruno@clisp.org>
10063
10064         random_r: Use common idioms.
10065         * lib/random_r.c: Include <stdlib.h> first.
10066
10067         random_r: Override incompatible API on AIX, OSF/1.
10068         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
10069         Override the system function if REPLACE_RANDOM_R is 1.
10070         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
10071         and OSF/1, set REPLACE_RANDOM_R.
10072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
10073         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
10074         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
10075         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
10076         * doc/glibc-functions/random_r.texi: Likewise.
10077         * doc/glibc-functions/setstate_r.texi: Likewise.
10078
10079         random_r: Support for MSVC 9.
10080         * lib/random_r.c: Include stdint.h, not inttypes.h.
10081
10082 2012-01-12  Eric Blake  <eblake@redhat.com>
10083
10084         inet_ntop: guard extra work by IF_LINT
10085         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
10086         better code generation when not checking for warnings.
10087         Suggested by Paul Eggert and Jim Meyering.
10088
10089         strptime: fix regression on mingw
10090         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
10091         Fix regression.  Reported by Bruno Haible.
10092
10093 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
10094             Bruno Haible  <bruno@clisp.org>
10095
10096         copy-file: add error-code-returning variant.
10097         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
10098         (qcopy_file_preserving): New declaration.
10099         * lib/copy-file.c (qcopy_file_preserving): Renamed from
10100         copy_file_preserving. Change return type to 'int'. Don't emit an error
10101         message here.
10102         (copy_file_preserving): New function.
10103         * tests/test-copy-file.c: Include <stdlib.h>.
10104         (main): Test qcopy_file_preserving if the environment variable
10105         NO_STDERR_OUTPUT is set.
10106         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
10107         with NO_STDERR_OUTPUT
10108         * tests/test-copy-file-2.sh: Likewise.
10109
10110 2012-01-10  Bruno Haible  <bruno@clisp.org>
10111
10112         copy-file: Use 'quote' module consistently.
10113         * lib/copy-file.c (copy_file_preserving): Use quote().
10114
10115         copy-file: Refactor.
10116         * lib/copy-file.c: Include quote.h.
10117         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
10118         message here.
10119         * modules/copy-file (Depends-on): Add quote.
10120
10121         acl: Export qcopy_acl.
10122         * lib/acl.h (qcopy_acl): New declaration.
10123         * lib/copy-acl.c (qcopy_acl): Make non-static.
10124
10125         acl: Rename a local variable.
10126         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
10127
10128         acl: Align return values of copy_acl and qcopy_acl.
10129         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
10130         maybe < -1.
10131
10132 2012-01-11  Eric Blake  <eblake@redhat.com>
10133
10134         strptime: silence gcc warnings
10135         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
10136         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
10137         Reported by Daniel P. Berrange.
10138
10139         inet_ntop: silence gcc warning
10140         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
10141         Reported by Daniel P. Berrange.
10142
10143 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
10144
10145         getloadavg test: skip the test on GNU/Linux without /proc mounted
10146         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10147         file.  When /proc is not mounted, it always fails with ENOENT.
10148         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10149         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10150
10151 2012-01-10  Bruno Haible  <bruno@clisp.org>
10152
10153         regex: Avoid link error on MSVC 9.
10154         * modules/regex (Depends-on): Add wctype.
10155
10156 2012-01-10  Bruno Haible  <bruno@clisp.org>
10157
10158         doc: Mention --with-tests option.
10159         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10160         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10161         --with-tests.
10162         Reported by Reuben Thomas.
10163
10164 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10165
10166         users.txt: order package names lexicographically.
10167         * users.txt: Order package names lexicographically.
10168
10169 2012-01-10  Jim Meyering  <meyering@redhat.com>
10170
10171         maint.mk: fix description in comment
10172         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10173
10174         ignore-value: remove deprecated ignore_ptr function
10175         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10176         * NEWS: Note this.
10177
10178 2012-01-09  Jim Meyering  <meyering@redhat.com>
10179
10180         test-init.sh: avoid a subshell
10181         * tests/test-init.sh: Remove protective subshell.
10182         Suggested by Bernhard Voelker.  While a subshell is normally
10183         required to protect against older shells (Solaris, FreeBSD) that
10184         warn about a missing program before performing redirection, the
10185         shell-selection tests performed by init.sh probably exclude any
10186         offending shell.
10187
10188 2012-01-08  Bruno Haible  <bruno@clisp.org>
10189
10190         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10191         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10192         variable.
10193
10194 2012-01-08  Bruno Haible  <bruno@clisp.org>
10195
10196         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10197         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10198         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10199         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10200         macro.
10201         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10202         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10203         * lib/spawn_faction_addopen.c: Add workaround implementation if
10204         HAVE_WORKING_POSIX_SPAWN.
10205         * modules/spawn (Makefile): Substitute
10206         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10207         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10208         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10209         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10210         (Depends-on): Update conditions.
10211         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10212         the Solaris 11 bug.
10213
10214 2012-01-08  Bruno Haible  <bruno@clisp.org>
10215
10216         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10217         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10218         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10219         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10220         macro.
10221         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10222         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10223         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10224         HAVE_WORKING_POSIX_SPAWN.
10225         * modules/spawn (Makefile): Substitute
10226         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10227         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10228         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10229         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10230         (Depends-on): Update conditions.
10231         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10232         the Solaris 11 bug.
10233
10234 2012-01-08  Bruno Haible  <bruno@clisp.org>
10235
10236         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10237         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10238         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10240         HAVE_WORKING_POSIX_SPAWN.
10241         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10242         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10243         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10244         * lib/spawn_faction_addclose.c: Add workaround implementation if
10245         HAVE_WORKING_POSIX_SPAWN.
10246         * modules/spawn (Makefile): Substitute
10247         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10248         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10249         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10250         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10251         (Depends-on): Update conditions.
10252         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10253         the Solaris 11 bug.
10254
10255 2012-01-08  Bruno Haible  <bruno@clisp.org>
10256
10257         doc: Update for Solaris 11 2011-11.
10258         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10259         * m4/printf.m4: Update comments.
10260
10261 2012-01-08  Bruno Haible  <bruno@clisp.org>
10262
10263         mktime: Avoid compilation error on Solaris 11.
10264         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10265
10266 2012-01-08  Bruno Haible  <bruno@clisp.org>
10267
10268         doc: Small fix.
10269         * doc/posix-headers/nl_types.texi: Correct platforms list.
10270
10271 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10272
10273         Add lgpl-3.0 module.
10274         * MODULES.html.sh (Support for building documentation): Add
10275         lgpl-3.0.
10276         * modules/lgpl-3.0: New file.
10277
10278 2012-01-08  Jim Meyering  <meyering@redhat.com>
10279
10280         select.c: indent with spaces, not TABs
10281         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10282
10283 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10284
10285         quotearg: do not use grave accent for left quote
10286         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10287         locale_quoting_style.
10288         (quotearg_buffer_restyled): Fix example.
10289         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10290
10291 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10292
10293         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10294         Most programs do not have translation catalogs for English and much
10295         less separate catalogs for British and American English.  Drop the
10296         suggestion to translators about these two, and provide it
10297         automatically for Unicode locales.  Like most programs, even those
10298         using American English, we use single quotation marks.  This conflicts
10299         with the American typographic convention, but works better when you
10300         cite the entire error message within double quotes.  It also tries not
10301         to clash with established practice and with what non-gnulib programs
10302         will usually do.
10303         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10304         using an UTF-8 or GB-18030 locale.  The list of other locales with
10305         quotes was provided by Bruno Haible.
10306         (quotearg_buffer_restyled): Adjust instructions to translators.
10307         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10308         text, since this would be wrong when using Unicode.
10309         * modules/quotearg: Depend on c-strcaseeq.
10310
10311 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10312
10313         quotearg: fix Wikipedia link
10314         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10315
10316 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10317
10318         Fix for mingw with MSVC9.
10319         * m4/ld-version-script.m4: Check that compiler rejects version
10320         scripts with syntax errors.  Reported by Bruno Haible
10321         <bruno@clisp.org>.
10322
10323 2012-01-06  Bruno Haible  <bruno@clisp.org>
10324
10325         Talk about "native Windows API", not "Woe32".
10326         * lib/accept4.c: Update comments to mention native Windows.
10327         * lib/execute.c: Likewise.
10328         * lib/fatal-signal.c: Likewise.
10329         * lib/localcharset.c: Likewise.
10330         * lib/nanosleep.c: Likewise.
10331         * lib/nl_langinfo.c: Likewise.
10332         * lib/pclose.c: Likewise.
10333         * lib/pipe-filter-gi.c: Likewise.
10334         * lib/pipe-filter-ii.c: Likewise.
10335         * lib/pipe.c: Likewise.
10336         * lib/pipe2.c: Likewise.
10337         * lib/popen.c: Likewise.
10338         * lib/progreloc.c: Likewise.
10339         * lib/relocatable.c: Likewise.
10340         * lib/sigaction.c: Likewise.
10341         * lib/sigprocmask.c: Likewise.
10342         * lib/spawn-pipe.h: Likewise.
10343         * lib/spawn-pipe.c: Likewise.
10344         * lib/spawni.c: Likewise.
10345         * lib/stat-time.h: Likewise.
10346         * lib/w32spawn.h: Likewise.
10347         * tests/test-isatty.c: Likewise.
10348         * lib/config.charset: More comments.
10349         * doc/gnulib-intro.texi: Mention native Windows.
10350         * doc/posix-functions/_Exit_C99.texi: Likewise.
10351         * doc/posix-headers/fcntl.texi: Likewise.
10352
10353 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10354
10355         argp: Avoid crash if translator uses % characters in a translation.
10356         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10357         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10358
10359 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10360
10361         doc: C11 and C++11 are now official
10362         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10363         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10364         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10365         * modules/stdalign:
10366         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10367
10368 2012-01-06  Bruno Haible  <bruno@clisp.org>
10369
10370         uc-is-grapheme-break tests: Tweak.
10371         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10372         message.
10373
10374 2012-01-06  Bruno Haible  <bruno@clisp.org>
10375
10376         test-init.sh: correct the test for diff -u
10377         * tests/test-init.sh: Also redirect stdout to /dev/null.
10378
10379 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10380
10381         Use ', not `, for quoting output.
10382         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10383         (print_changelog_deltas, get_tool_versions, main program):
10384         * build-aux/git-version-gen:
10385         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10386         * build-aux/move-if-change (help):
10387         * build-aux/useless-if-before-free (usage, main program):
10388         * check-module (parse_module_file, usage)
10389         (find_included_lib_files, check_module):
10390         * lib/argmatch.c (main) [TEST]:
10391         * lib/argp-help.c (_help):
10392         * lib/getopt1.c (main) [TEST]:
10393         * lib/git-merge-changelog.c (usage):
10394         * lib/xstrtol-error.c (xstrtol_error):
10395         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10396         * m4/argz.m4 (gl_FUNC_ARGZ):
10397         * m4/bison.m4 (gl_BISON):
10398         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10399         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10400         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10401         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10402         * m4/gc-random.m4 (gl_GC_RANDOM):
10403         * m4/intl.m4 (gt_CHECK_DECL):
10404         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10405         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10406         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10407         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10408         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10409         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10410         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10411         * tests/test-dirname.c (main):
10412         * tests/test-getpass.c (main):
10413         * tests/test-iconvme.c (main):
10414         * tests/test-parse-datetime.c (LOG):
10415         * tests/test-xstrtoimax.sh:
10416         * tests/test-xstrtol.sh:
10417         * tests/test-xstrtoll.sh:
10418         * tests/test-xstrtoumax.sh:
10419         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10420         * top/GNUmakefile (abort-due-to-no-makefile):
10421         Quote 'like this', not `like this', as per the recent change to
10422         the GNU coding standards.
10423
10424 2012-01-05  Bruno Haible  <bruno@clisp.org>
10425
10426         strtoimax: Don't force a replacement on systems where intmax_t is int.
10427         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10428         'intmax_t' is not larger than 'int'.
10429         Reported by Pádraig Brady <P@draigBrady.com>.
10430
10431 2012-01-05  Bruno Haible  <bruno@clisp.org>
10432
10433         doc: Mention NetBSD bugs.
10434         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10435         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10436
10437 2012-01-05  Bruno Haible  <bruno@clisp.org>
10438
10439         strtoumax tests: Enhance tests.
10440         * tests/test-strtoumax.c (main): Add tests for large values.
10441
10442 2012-01-05  Bruno Haible  <bruno@clisp.org>
10443
10444         strtoimax: Work around AIX 5.1 bug.
10445         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10446         definition.
10447         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10448         Set HAVE_STRTOIMAX.
10449         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10450         REPLACE_STRTOIMAX.
10451         * modules/inttypes-incomplete (Makefile.am): Substitute
10452         REPLACE_STRTOIMAX.
10453         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10454         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10455         (Depends-on): Update conditions.
10456         * tests/test-strtoimax.c (main): Add tests for large values.
10457         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10458
10459 2012-01-05  Bruno Haible  <bruno@clisp.org>
10460
10461         inttypes: Modernize.
10462         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10463         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10464         (Makefile.am): Update inttypes.h rule.
10465
10466 2012-01-05  Jim Meyering  <meyering@redhat.com>
10467
10468         init.sh: don't waste a subshell just to redirect stderr
10469         * tests/init.sh: In testing for diff -u and diff -c, use a
10470         stderr-redirecting exec inside `...` rather than a subshell.
10471
10472         test-init.sh: avoid failure on HP-UX 11.00
10473         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10474         resolves to diff -c or cmp.  Reported by Bruno Haible.
10475
10476 2012-01-05  Bruno Haible  <bruno@clisp.org>
10477
10478         Tests for module 'strtoull'.
10479         * modules/strtoull-tests: New file.
10480         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10481
10482 2012-01-05  Bruno Haible  <bruno@clisp.org>
10483
10484         Tests for module 'strtoll'.
10485         * modules/strtoll-tests: New file.
10486         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10487
10488 2012-01-05  Bruno Haible  <bruno@clisp.org>
10489
10490         Tests for module 'strtoul'.
10491         * modules/strtoul-tests: New file.
10492         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10493
10494 2012-01-05  Bruno Haible  <bruno@clisp.org>
10495
10496         Tests for module 'strtol'.
10497         * modules/strtol-tests: New file.
10498         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10499
10500 2012-01-04  Jim Meyering  <meyering@redhat.com>
10501
10502         test-init.sh: accommodate Solaris 5.10's different diff -u output
10503         * tests/test-init.sh: Also exempt @@ lines from the comparison
10504         of diff output, since Solaris 5.10 and GNU diff formats differ.
10505         Reported by Stefano Lattarini.
10506
10507 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10508
10509         test-posixtm: don't assume signed integer wraparound
10510         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10511         after signed integer overflow.  Inspired by (though it may not
10512         fix) Bruno Haible's bug report in
10513         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10514
10515         Spell out "Windows 9x" and "Windows XP".
10516         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10517         "Windows 9x" and "WinXP" with "Windows XP".
10518
10519 2012-01-04  Jim Meyering  <meyering@redhat.com>
10520
10521         test-vc-list-files-cvs.sh: remove obsolete comment
10522         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10523         double exit.  Now that's all encapsulated via skip_ and Exit.
10524
10525 2012-01-04  Bruno Haible  <bruno@clisp.org>
10526
10527         Talk about "native Windows API", not "Win32".
10528         * lib/classpath.c: Update comments to mention native Windows.
10529         * lib/csharpexec.c: Likewise.
10530         * lib/dup2.c: Likewise.
10531         * lib/error.c: Likewise.
10532         * lib/fcntl.c: Likewise.
10533         * lib/filename.h: Likewise.
10534         * lib/findprog.c: Likewise.
10535         * lib/get-rusage-as.c: Likewise.
10536         * lib/get-rusage-data.c: Likewise.
10537         * lib/getpagesize.c: Likewise.
10538         * lib/javaexec.c: Likewise.
10539         * lib/msvc-inval.c: Likewise.
10540         * lib/msvc-nothrow.c: Likewise.
10541         * lib/nanosleep.c: Likewise.
10542         * lib/nonblocking.c: Likewise.
10543         * lib/printf-parse.c: Likewise.
10544         * lib/setlocale.c: Likewise.
10545         * lib/sigaction.c: Likewise.
10546         * lib/strerror_r.c: Likewise.
10547         * lib/tmpdir.c: Likewise.
10548         * lib/vasnprintf.c: Likewise.
10549         * lib/w32spawn.h: Likewise.
10550         * lib/waitpid.c: Likewise.
10551         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10552         * m4/locale-ar.m4: Likewise.
10553         * m4/locale-fr.m4: Likewise.
10554         * m4/locale-ja.m4: Likewise.
10555         * m4/locale-tr.m4: Likewise.
10556         * m4/locale-zh.m4: Likewise.
10557         * m4/printf.m4: Likewise.
10558         * tests/test-cloexec.c: Likewise.
10559         * tests/test-copy-acl.sh: Likewise.
10560         * tests/test-copy-file.sh: Likewise.
10561         * tests/test-file-has-acl.sh: Likewise.
10562         * tests/test-set-mode-acl.sh: Likewise.
10563         * tests/test-dup-safer.c: Likewise.
10564         * tests/test-dup2.c: Likewise.
10565         * tests/test-dup3.c: Likewise.
10566         * tests/test-fcntl.c: Likewise.
10567         * tests/test-nonblocking-pipe.h: Likewise.
10568         * tests/test-nonblocking-socket.h: Likewise.
10569         * tests/test-pipe.c: Likewise.
10570         * tests/test-pipe2.c: Likewise.
10571         * tests/test-spawn-pipe-child.c: Likewise.
10572         * doc/acl-resources.txt: Likewise.
10573         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10574         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10575         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10576         * lib/localcharset.c: Update comments to mention native Windows.
10577         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10578         * lib/localename.c: Likewise.
10579         * lib/progreloc.c: Likewise.
10580         * lib/relocatable.c: Likewise.
10581         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10582         (windows_compute_revents): Renamed from win32_compute_revents.
10583         (windows_compute_revents_socket): Renamed from
10584         win32_compute_revents_socket.
10585         * lib/select.c: Update comments to mention native Windows.
10586         (windows_poll_handle): Renamed from win32_poll_handle.
10587         * m4/threadlib.m4: Update comments to mention native Windows.
10588         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10589         --enable-threads=windows instead of --enable-threads=win32. Set
10590         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10591         * lib/glthread/lock.h: Update comments to mention native Windows.
10592         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10593         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10594         USE_WIN32_THREADS.
10595         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10596         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10597         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10598         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10599         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10600         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10601         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10602         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10603         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10604         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10605         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10606         * tests/test-tls.c: Likewise.
10607         Rationale:
10608         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10609         on both 32-bit and 64-bit Windows systems.
10610         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10611         line of distinction is between "native Windows" on one side and Unix/
10612         POSIX systems on the other side. More details in
10613         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10614         Suggested by Paul Eggert.
10615
10616 2012-01-03  Bruno Haible  <bruno@clisp.org>
10617
10618         isatty: Support for MSVC 9.
10619         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10620         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10621         (_isatty_nothrow): New function.
10622         (isatty): Use it instead of _isatty.
10623         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10624         * lib/poll.c (IsConsoleHandle): Likewise.
10625         * lib/select.c (IsConsoleHandle): Likewise.
10626         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10627         (gl_PREREQ_ISATTY): New macro.
10628         * modules/isatty (Depends-on): Add msvc-inval.
10629         (configure.ac): Invoke gl_PREREQ_ISATTY.
10630
10631 2012-01-03  Jim Meyering  <meyering@redhat.com>
10632
10633         maint.mk: remove temporary transition aid from over 1.5 years ago
10634         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10635         purpose was to aid in the transition (avoiding silent malfunction)
10636         from that old name to the new _sc_search_regexp.  This shim was
10637         added by commit 219c504b.
10638
10639         init.sh: do not try to accommodate compare arguments starting with "-"
10640         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10641         compare arguments that start with "-".  Besides, we do not worry
10642         about this when invoking diff or cmp; why start now with sed?
10643         Using "--" to separate options from argument would trigger sed
10644         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10645         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10646
10647 2012-01-02  Bruno Haible  <bruno@clisp.org>
10648
10649         Enhance tests for module 'isatty'.
10650         * modules/isatty-tests (Depends-on): Add pipe-posix.
10651         * tests/test-isatty.c: Include <fcntl.h>.
10652         (DEV_NULL): New macro.
10653         (main): Test the resut of isatty() also on regular files, pipes, and
10654         /dev/null.
10655
10656         New module 'isatty'.
10657         * lib/unistd.in.h (isatty): New declaration.
10658         * lib/isatty.c: New file, based on an idea of
10659         Bastien Roucariès <roucaries.bastien@gmail.com>.
10660         * m4/isatty.m4: New file.
10661         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10662         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10663         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10664         REPLACE_ISATTY.
10665         * modules/isatty: New file.
10666         * doc/posix-functions/isatty.texi: Mention the new module.
10667         Suggested by Paolo Bonzini.
10668
10669 2012-01-02  Bruno Haible  <bruno@clisp.org>
10670
10671         canonicalize: Tweak 2011-12-29 commit.
10672         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10673         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10674
10675 2012-01-02  Jim Meyering  <meyering@redhat.com>
10676
10677         gitlog-to-changelog: describe input syntax in --help output
10678         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10679
10680         gitlog-to-changelog: fix typo in --help: show backslash before email @
10681         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10682         in sources, but not in actual output.
10683
10684 2011-12-30  Jim Meyering  <meyering@redhat.com>
10685
10686         gitlog-to-changelog: don't malfunction when name contains %-directive
10687         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10688         in a name string cause trouble.  E.g., with a user name of "%s",
10689         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10690
10691 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10692
10693         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10694         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10695         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10696         the "  (tiny change)" notation that is appended to the standard
10697         ChangeLog "date  name  email" header line.
10698
10699 2012-01-01  Jim Meyering  <meyering@redhat.com>
10700
10701         test-framework-sh: init.sh: fix "make dist" failure
10702         When using gnulib-tool's --with-tests option and any module that
10703         depends on test-framework-sh, "make dist" would fail due to the
10704         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10705         in the gltests directory, and not in the gllib/ directory.
10706         One way to work around that is to move the EXTRA_DIST += init.sh
10707         from the primary module to the -tests one:
10708         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10709         * modules/test-framework-sh (Makefile.am): ...not here.
10710         Reported by Tom G. Christensen in
10711         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10712
10713         version-etc: update copyright year reported by --version
10714         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10715
10716 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10717
10718         canonicalize: only stat() if required
10719         * lib/canonicalize.c (canonicalize_filename_mode):
10720         Avoid calling l?stat() when both CAN_MISSING,
10721         and CAN_NOLINKS are set, as we neither need
10722         to resolve symlinks or test component existence.
10723
10724 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10725
10726         doc: cover st_ino issues once; add OpenVMS etc.
10727         * doc/posix-functions/stat.texi (stat):
10728         * doc/posix-functions/lstat.texi (lstat):
10729         * doc/posix-functions/fstatat.texi (fstatat):
10730         * doc/posix-functions/fstat.texi (fstat):
10731         Move general 'struct stat' stuff to sys_stat.texi,
10732         leaving behind a pointer.
10733         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10734         Merge duplicate info about 'struct stat' problems into here.
10735         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10736         and suggest partial workarounds.
10737
10738         same-inode: port to OpenVMS
10739         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10740         three st_ino values.
10741
10742 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10743
10744         canonicalize: fix references to stat() and lstat()
10745         * lib/canonicalize.c (canonicalize_filename_mode):
10746         Ensure references always resolve to a replacement
10747         function if required (even via a macro).
10748
10749 2011-12-30  Jim Meyering  <meyering@redhat.com>
10750
10751         gitlog-to-changelog: remove a little duplication
10752         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10753         rather than twice.
10754
10755 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10756
10757         canonicalize: add support for not resolving symlinks
10758         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10759         indicate we don't want to follow symlinks.  Also
10760         provide CAN_MODE_MASK to aid setting these existing
10761         mutually exclusive values.
10762         * lib/canonicalize.c (canonicalize_filename_mode):
10763         Extract the flags from can_mode parameter, which
10764         are currently just used to select between stat()
10765         and lstat().  Also ensure that mutually exclusive
10766         values are flagged immediately as invalid.
10767         * tests/test-canonicalize.c: Verify symlinks are
10768         not followed, and that invalid flag combinations
10769         are diagnosed.
10770
10771 2011-12-25  Jim Meyering  <meyering@redhat.com>
10772
10773         gitlog-to-changelog: do not clump multi-paragraph entries
10774         Identical header lines (date,name,email+coauthors) are suppressed,
10775         thus putting all entries with those same characteristics under
10776         a single header.  However, when a log entry consists of two or
10777         more paragraphs, it may not be clear where it starts and ends.
10778         This change makes it so that such an entry is always separated
10779         from others by a header line, even when that header would
10780         otherwise be suppressed.
10781         * build-aux/gitlog-to-changelog: Implement the above.
10782         Inspired by a related request from Stefano Lattarini in
10783         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10784
10785 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10786
10787         announce-gen: fix `cmd' typo in diagnostic
10788         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10789         diagnostic: a missing '$' meant that the command was not output.
10790
10791 2011-12-23  Jim Meyering  <meyering@redhat.com>
10792
10793         test-framework-sh: distribute init.sh
10794         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10795         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10796         fail due to the lack of init.sh.
10797
10798         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10799         * modules/atexit-tests: Rather than listing tests/init.sh,
10800         now that there's a module for it, simply depend on that new module.
10801         * modules/closein-tests: Likewise.
10802         * modules/exclude-tests: Likewise.
10803         * modules/getcwd-tests: Likewise.
10804         * modules/perror-tests: Likewise.
10805         * modules/pread-tests: Likewise.
10806         * modules/pwrite-tests: Likewise.
10807         * modules/vc-list-files-tests: Likewise.
10808         * modules/verify-tests: Likewise.
10809         * modules/xalloc-die-tests: Likewise.
10810         * modules/xstrtoimax-tests: Likewise.
10811         * modules/xstrtol-tests: Likewise.
10812         * modules/xstrtoll-tests: Likewise.
10813         * modules/xstrtoumax-tests: Likewise.
10814         * modules/yesno-tests: Likewise.
10815
10816 2011-12-22  Jim Meyering  <meyering@redhat.com>
10817
10818         test-framework-sh: add minimal tests of init.sh's compare function
10819         * modules/test-framework-sh-tests: New file.
10820         * tests/test-init.sh: New file.
10821
10822         test-framework-sh: new module
10823         * modules/test-framework-sh: New file.
10824         * MODULES.html.sh (Support for maintaining and releasing projects):
10825         List it.
10826
10827         init.sh: do not emit simulated diff output to stderr
10828         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10829
10830 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10831
10832         .gitignore: ignore gnulib.dvi and regex.info
10833         * doc/.gitignore:add gnulib.dvi and regex.info
10834
10835 2011-12-22  Jim Meyering  <meyering@redhat.com>
10836
10837         init.sh: correct previous change
10838         * tests/init.sh (compare): My previous change was wrong.
10839         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10840
10841         init.sh: avoid unwarranted test failure when using "set -e"
10842         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10843         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10844         a use like "compare exp out" would get evoke an unconditional failure.
10845
10846 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10847
10848         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10849         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10850         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10851         autoreconf that did not.
10852         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10853         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10854
10855 2011-12-17  Jim Meyering  <meyering@redhat.com>
10856
10857         bootstrap: remove some now-unneeded code
10858         This script arose back when gnulib-tool was young.
10859         Since then, it has seen improvements that render much of this
10860         script unnecessary.  In particular, it can now make symlinks
10861         to the files it uses.  Also, I no longer see as much value in
10862         marking files as read-only via comments.
10863         If you relied on the symlink-creation feature of the preceding
10864         version of this script, you can get most of that functionality
10865         by adding the --symlink option to the definition of
10866         gnulib_tool_option_extras in your bootstrap.conf file.
10867         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10868         Run autopoint and libtoolize *before* gnulib-tool.
10869         After it, run an abbreviated autoreconf, rather than a loop around
10870         all tools.
10871         (slirp, bt_mark_as_generated): Remove functions.
10872
10873 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10874
10875         ftoastr: fix typo
10876         * lib/ftoastr.h: Fix misspelling in comment.
10877
10878 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10879
10880         * top/README-release: fix punctuation.
10881
10882 2011-12-17  Jim Meyering  <meyering@redhat.com>
10883
10884         bootstrap: correct the recent buildreq change
10885         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10886         had no effect.
10887         * build-aux/bootstrap (buildreq): Bracket each search term with
10888         "*...*", so that the shell "case" statement works as intended.
10889         Add comments.
10890
10891 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10892
10893         build: let bootstrap resort to wget when downloading .po files
10894         * build-aux/bootstrap (download_po_files): Fallback to wget when
10895         downloading the .po files via rsync fails.  This is necessary to
10896         bootstrap from behind a strict firewall.
10897
10898 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10899
10900         stdint: don't assume C++11 when compiling with g++
10901         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10903         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10904         work also in C++ before C++11, as that improperly inhibits
10905         generating a substitute stdint.h for that case.
10906
10907 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10908
10909         alloca: protect comment from gnulib-tool
10910         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10911         that gnulib-tool doesn't think it's a license, and munge it to
10912         say "GCC version 3".
10913
10914 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10915
10916         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10917         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10918         $(abs_top_builddir) instead of $(top_builddir).
10919
10920 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10921
10922         strftime-tests: also test nanoseconds
10923         * tests/test-strftime.c (T): Add a test of %N.
10924
10925 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10926
10927         inttypes, stdint: add C++11 support
10928         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10929         when including inttypes.h and stdint.h.  Support this change to
10930         the standard.
10931         * doc/posix-headers/inttypes.texi (inttypes.h):
10932         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10933         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10934         Define if not defined already, for the benefit of pre-C++11 hosts.
10935         Define the standard format macros (e.g., PRId8) always.
10936         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10937         Likewise, if __cpluspus.  Define the standard constant and limit
10938         macros (e.g., INT8_C, INT8_MAX) always.
10939         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10940         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10941         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10942         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10943         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10944         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10945         Likewise.
10946
10947 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10948
10949         nonblocking tests: Fix test failure on Linux/PPC.
10950         Suggested by Prerna Saxena in
10951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10952         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10953         Set to 1100000.
10954
10955 2011-12-12  Jim Meyering  <meyering@redhat.com>
10956
10957         argmatch: don't hard-code `' when listing valid option arguments
10958         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10959         use the quote function to add quotes.  Use fputs rather than
10960         fprintf for the format string with no format directive.
10961
10962 2011-12-07  Eric Blake  <eblake@redhat.com>
10963
10964         bootstrap: detect tools required by gnulib-tool
10965         * build-aux/bootstrap (buildreq): Provide minimum implicit
10966         dependencies.
10967         * DEPENDENCIES: Mention patch as a prereq.
10968
10969 2011-12-04  Bruno Haible  <bruno@clisp.org>
10970
10971         sethostname: Port to Windows platforms.
10972         * lib/sethostname.c: Provide an alternate implementation for Windows
10973         platforms.
10974         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10975         (main): Skip the test if sethostname() fails with EPERM. On Windows
10976         platforms, don't check the result of gethostname().
10977
10978 2011-12-04  Bruno Haible  <bruno@clisp.org>
10979             Jim Meyering  <meyering@redhat.com>
10980
10981         tests: Avoid spurious error message on platforms without mktemp program.
10982         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10983
10984 2011-12-04  Bruno Haible  <bruno@clisp.org>
10985
10986         sethostname: Fix documentation.
10987         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10988         "not fixed" section.
10989
10990 2011-12-03  Bruno Haible  <bruno@clisp.org>
10991
10992         gnulib-tool: Verify that the License field is present and non-empty.
10993         * gnulib-tool (func_get_license_raw): New function, extracted from
10994         func_get_license.
10995         (func_get_license): Use it. Warn if the module is not a test module and
10996         has no license.
10997         Suggested by Jim Meyering.
10998
10999 2011-12-03  Bruno Haible  <bruno@clisp.org>
11000
11001         sethostname tests: Fix link error on mingw.
11002         * tests/test-sethostname1.c: New file, extracted from
11003         tests/test-sethostname.c.
11004         * tests/test-sethostname2.c: New file, extracted from
11005         tests/test-sethostname.c.
11006         * tests/test-sethostname.c: Remove file.
11007         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
11008         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
11009         (Depends-on): Add gethostname.
11010         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
11011         Link the latter with $(GETHOSTNAME_LIB).
11012
11013         sethostname tests: Fix compilation error on mingw.
11014         * tests/test-sethostname.c: Don't include <sys/types.h>.
11015         (geteuid): Use a dummy value without uid_t.
11016         * modules/sethostname-tests (Depends-on): Remove sys_types.
11017
11018         sethostname tests: Avoid a gcc warning.
11019         * tests/test-sethostname.c (main): Remove an unused variable.
11020
11021         Tweak last commit.
11022         * modules/sethostname-tests (Files): Sort by decreasing importance.
11023         (configure.ac): Check for geteuid.
11024         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
11025         the test when there's nothing to test. Drop an unnecessary cast.
11026         Improve an error message. Verify that the final sethostname() call
11027         succeeds.
11028
11029 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11030
11031         Add a test suite for the sethostname module.
11032         * modules/sethostname-tests: New file.  A test program
11033         for the sethostname module.
11034         * tests/test-sethostname.c: Likewise.
11035
11036 2011-12-03  Bruno Haible  <bruno@clisp.org>
11037
11038         Tweak last commit.
11039         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
11040         Fix preprocessor directives indentation. Fix typos.
11041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
11042         * modules/unistd (Makefile): Likewise.
11043
11044 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11045
11046         Integrate the sethostname module into unistd.
11047         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
11048         into the unistd.h header.
11049         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
11050         preprocessor directives.
11051         * modules/unistd: Setup the Makefile substitutions of the
11052         SETHOSTNAME preprocessor directives.
11053
11054 2011-12-03  Bruno Haible  <bruno@clisp.org>
11055
11056         Tweak last commit.
11057         * lib/sethostname.c: Don't include <string.h>.
11058         (sethostname): No need to copy the argument string to the stack. Don't
11059         call clearerr. Preserve errno when fprintf failed.
11060         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
11061         Don't invoke AC_REPLACE_FUNCS.
11062         * modules/sethostname (Link): Remove empty section.
11063         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
11064         failure problem.
11065
11066 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11067
11068         New module 'sethostname'.
11069         * lib/sethostname.c (sethostname): New file.  Provide sethostname
11070         for systems that lack it.
11071         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
11072         sethostname declaration and function.
11073         * modules/sethostname: New file.  Define the sethostname module.
11074
11075 2011-12-03  Bruno Haible  <bruno@clisp.org>
11076
11077         Tweak last commit.
11078         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
11079
11080 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11081
11082         Split the HOST_NAME_MAX detection into a separate m4 macro.
11083         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
11084         macro so it can be used by the pending sethostname module.
11085
11086 2011-12-03  Bruno Haible  <bruno@clisp.org>
11087
11088         Fix module descriptions syntax.
11089         * modules/argv-iter (License): Fix syntax.
11090         * modules/di-set (License): Likewise.
11091         * modules/ino-map (License): Likewise.
11092         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
11093
11094 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11095
11096         stdalign: port to Clang 3.0
11097         Problem reported by Simon Josefsson in
11098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
11099         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
11100         which has <stdalign.h> but which does not define alignof.
11101         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
11102
11103 2011-12-01  Eric Blake  <eblake@redhat.com>
11104
11105         mktempd: silence dd usage
11106         * build-aux/mktempd (rand_bytes): Silence dd.
11107
11108 2011-11-30  Simon Josefsson  <simon@josefsson.org>
11109
11110         manywarnings: Don't mention gcc version in docstring.
11111         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
11112         Jim Meyering <meyering@redhat.com>.
11113
11114 2011-11-30  Jim Meyering  <meyering@redhat.com>
11115
11116         hash: mark a few floating point constants with "f" suffix
11117         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
11118         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
11119         floating point constants with "f", since they're destined to be
11120         saved/used as "float"s.
11121
11122 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
11123
11124         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
11125         * tests/test-float.c (test_long_double): Correct and re-enable the
11126         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
11127
11128 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
11129
11130         Avoid subtracting two pointers that don't point into the same block.
11131         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
11132         only pointers into the same memory block are subtracted. We cannot
11133         assume that sizeof (ptrdiff_t) == sizeof (void *).
11134
11135 2011-11-29  Eric Blake  <eblake@redhat.com>
11136
11137         maint.mk: add syntax check for use of compare from init.sh
11138         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
11139         moved here from coreutils.
11140
11141         manywarnings: drop -Wunsuffixed-float-constants
11142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
11143         '1.0D', which is the only way to silence this warning for 'double'.
11144
11145 2011-11-29  Jim Meyering  <meyering@redhat.com>
11146
11147         hash: mark compute_bucket_size with the pure attribute
11148         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11149
11150         quotearg, propername: correct pragma guard expression
11151         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11152         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11153
11154 2011-11-28  Jim Meyering  <meyering@redhat.com>
11155
11156         propername: do not mark proper_name with the const attribute
11157         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11158         since it examines data pointed to by its parameter.
11159         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11160         the suggestion from -Wsuggest-attribute=const.
11161
11162         propername: mark one more function as const
11163         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11164
11165 2011-11-27  Jim Meyering  <meyering@redhat.com>
11166
11167         mark functions with const and pure attributes
11168
11169         Mark functions per suggestions from gcc-4.6 when using these options:
11170         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11171         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11172         Follow these guidelines: when possible, apply the attribute to
11173         an extern declaration, not to its definition.  Apply it to the
11174         definition only when the definition is static.
11175         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11176         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11177         * lib/base64.h (isbase64): Likewise.
11178         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11179         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11180         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11181         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11182         (c_tolower, c_toupper): Likewise.
11183         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11184         * lib/chdir-long.c (find_non_slash): Likewise.
11185         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11186         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11187         * lib/file-type.h (file_type): Likewise.
11188         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11189         * lib/filevercmp.c (verrevcmp): Likewise.
11190         * lib/freadahead.h (freadahead): Likewise.
11191         * lib/fts.c (fts_maxarglen): Likewise.
11192         * lib/hash-pjw.h (hash_pjw): Likewise.
11193         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11194         * lib/hash.c (is_prime, next_prime): Likewise.
11195         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11196         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11197         (hash_table_ok, hash_get_first, hash_string): Likewise.
11198         (compute_bucket_size): Likewise.
11199         * lib/i-ring.h (i_ring_empty): Likewise.
11200         * lib/isnan.c (isnanl): Likewise.
11201         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11202         * lib/memcasecmp.h (memcasecmp): Likewise.
11203         * lib/memchr2.h (memchr2): Likewise.
11204         * lib/memcmp2.h (memcmp2): Likewise.
11205         * lib/parse-datetime.y (lookup_zone): Likewise.
11206         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11207         [!WINDOWS_SOCKETS]: Likewise.
11208         * lib/strnlen1.h (strnlen1): Likewise.
11209         * lib/uniwidth.in.h (uc_width): Likewise.
11210         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11211         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11212         (quoting_options_from_style): Add a comment.
11213         * lib/propername.h (proper_name): Add a comment.
11214
11215 2011-11-27  Bruno Haible  <bruno@clisp.org>
11216
11217         Remove unused macros from !_LIBC code in glibc-borrowed files.
11218         * lib/fnmatch.c (STRCOLL): Remove macro.
11219         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11220         * lib/glob.c (__stat, __readdir64): Remove macros.
11221         * lib/tempname.c (__open64, __xstat64): Remove macros.
11222         Suggested by Paul Eggert.
11223
11224 2011-11-27  Bruno Haible  <bruno@clisp.org>
11225
11226         getcwd: Fix link error on MSVC 9.
11227         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11228
11229 2011-11-27  Bruno Haible  <bruno@clisp.org>
11230
11231         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11232         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11233         HAVE_OPENDIR is 0.
11234         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11235         HAVE_CLOSEDIR is 0.
11236         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11237         is 0.
11238         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11239
11240 2011-11-27  Bruno Haible  <bruno@clisp.org>
11241
11242         getcwd: Fix bug from 2011-08-17.
11243         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11244         platforms that need it.
11245         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11246         code of 4 to be a failure, not a success. This ensures that
11247         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11248
11249 2011-11-27  Bruno Haible  <bruno@clisp.org>
11250
11251         binary-io tests: Avoid test failure on mingw when libtool is used.
11252         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11253         Don't verify the size of t-bin-out1.tmp here.
11254         * tests/test-binary-io.sh: Verify it here.
11255         Reported by Simon Josefsson.
11256
11257 2011-11-26  Bruno Haible  <bruno@clisp.org>
11258
11259         Fix conflict between two instantiations of module 'unistd'.
11260         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11261         ${include_guard_prefix} also in the autoconf snippet.
11262         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11264         GNULIB_UNISTD_H_GETOPT.
11265         * modules/getopt-posix (configure.ac): Set the
11266         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11267         * modules/getopt-gnu (configure.ac): Likewise.
11268         * modules/unistd (Makefile.am): Change the substitution value of
11269         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11270         Reported by Simon Josefsson.
11271
11272 2011-11-25  Bruno Haible  <bruno@clisp.org>
11273
11274         pagealign_alloc: Doc and comments.
11275         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11276         module.
11277         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11278
11279 2011-11-25  Jim Meyering  <meyering@redhat.com>
11280
11281         test-update-copyright.sh: avoid false-positive failure
11282         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11283         around false positive failure on Cygwin/Windows.  The latter was
11284         matching erroneously-created files with names like
11285         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11286
11287 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11288
11289         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11290         * m4/valgrind-tests.m4: Check that the parameters that will be
11291         used works, not just a subset of them.  Reported by Bruno Haible
11292         <bruno@clisp.org>.
11293
11294 2011-11-24  Jim Meyering  <meyering@redhat.com>
11295
11296         test-stdalign.c: comment out long double tests
11297         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11298         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11299         error: '_Alignas' specifiers cannot reduce alignment of \
11300         'static_longdouble_alignas'.
11301
11302 2011-11-22  Jim Meyering  <meyering@redhat.com>
11303
11304         init.sh: make "compare /dev/null FILE" output more readable
11305         * tests/init.sh (compare_): Document the preferred order of arguments.
11306         (emit_diff_u_header_): New function.
11307         (compare_dev_null_): Emit a simulated diff, rather than just the
11308         contents of the unexpected file.  Suggestion from Bruno Haible.
11309
11310 2011-11-21  Jim Meyering  <meyering@redhat.com>
11311             Eric Blake  <eblake@redhat.com>
11312
11313         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11314         * tests/init.sh: Make our compare function slightly more portable.
11315         Reported by Bruno Haible in
11316         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11317
11318 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11319
11320         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11321         before using it, in code that ends up in config.h.
11322
11323 2011-11-20  Bruno Haible  <bruno@clisp.org>
11324
11325         getcwd: Work around getcwd bug on AIX 5..7.
11326         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11327         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11328         Use a different value for gl_cv_func_getcwd_path_max. Move the
11329         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11330         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11331         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11332         Define HAVE_MINIMALLY_WORKING_GETCWD.
11333         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11334         where it is not even minimally working, that is, on AIX.
11335         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11336         m4/getcwd-path-max.m4.
11337         (main): Update exit code computation.
11338         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11339         getcwd does not handle long file names.
11340
11341 2011-11-20  Bruno Haible  <bruno@clisp.org>
11342
11343         getcwd: Fix bug from 2009-09-10.
11344         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11345         like "no".
11346
11347 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11348
11349         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11350
11351 2011-11-20  Bruno Haible  <bruno@clisp.org>
11352
11353         fma tests: Avoid shadowing local variables.
11354         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11355         expected.
11356
11357 2011-11-20  Bruno Haible  <bruno@clisp.org>
11358
11359         copysignf tests: Fix.
11360         * tests/test-copysignf.c: Fix signature check.
11361
11362 2011-11-20  Bruno Haible  <bruno@clisp.org>
11363
11364         fma: Remove unused code.
11365         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11366         unused macros.
11367
11368 2011-11-20  Bruno Haible  <bruno@clisp.org>
11369
11370         sethostname: Fix doc about AIX.
11371         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11372         sethostname; it has it.
11373
11374         sethostname: Mention more portability problems.
11375         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11376         problem.
11377         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11378
11379 2011-11-19  Bruno Haible  <bruno@clisp.org>
11380
11381         Depend on module fcntl-h when AT_FDCWD is used.
11382         * modules/utimens (Depends-on): Add fcntl-h.
11383         * modules/areadlinkat (Depends-on): Likewise.
11384         * modules/areadlinkat-with-size (Depends-on): Likewise.
11385         * modules/faccessat (Depends-on): Likewise.
11386         * modules/fchmodat (Depends-on): Likewise.
11387         * modules/fchownat (Depends-on): Likewise.
11388         * modules/getcwd (Depends-on): Likewise.
11389         * modules/mkdirat (Depends-on): Likewise.
11390         * modules/mkfifoat (Depends-on): Likewise.
11391         * modules/readlinkat (Depends-on): Likewise.
11392         * modules/symlinkat (Depends-on): Likewise.
11393         * modules/dup2-tests (Depends-on): Likewise.
11394         * modules/fdutimensat-tests (Depends-on): Likewise.
11395         * modules/futimens-tests (Depends-on): Likewise.
11396
11397 2011-11-19  Bruno Haible  <bruno@clisp.org>
11398
11399         euidaccess: Update a comment.
11400         * lib/euidaccess.c: Update comment about platforms with faccessat.
11401
11402 2011-11-19  Bruno Haible  <bruno@clisp.org>
11403
11404         openat: Fix file list.
11405         * modules/openat (Files): Remove lib/at-func.c.
11406
11407 2011-11-19  Bruno Haible  <bruno@clisp.org>
11408
11409         fstatat: Simplify.
11410         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11411         gnulib should define rpl_fstatat, there is a
11412         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11413
11414 2011-11-19  Bruno Haible  <bruno@clisp.org>
11415
11416         Ensure 'inline' can be used in tests/test-utimens-common.h.
11417         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11418         * modules/futimens-tests (configure.ac): Likewise.
11419         * modules/utimens-tests (configure.ac): Likewise.
11420         * modules/utimensat-tests (configure.ac): Likewise.
11421
11422 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11423
11424         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11425         not hash_insert0.
11426         (hash_insert_if_absent): Doc fix.
11427
11428 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11429
11430         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11431
11432 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11433
11434         test-getcwd: disambiguate exit status
11435         * tests/test-getcwd.c (test_long_name): Return 0..7.
11436         (main): Exit with an unambiguous exit status.  The old
11437         code yielded a mysterious mixture of two failure codes.
11438
11439         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11440         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11441         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11442         rpl_fstatat or fstatat.  This should fix the other problem
11443         reported by Kai Habel in
11444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11445         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11447         and I reproduced it on a Solaris 8 host we still have in production.
11448
11449 2011-11-18  Jim Meyering  <meyering@redhat.com>
11450
11451         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11452         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11453         Add a sentence to the comment.
11454         (hash_insert0): New function that simply calls hash_insert_if_absent.
11455         * lib/hash.h (hash_insert_if_absent): Declare it.
11456         (hash_insert0): Add deprecation attribute.
11457         (_GL_ATTRIBUTE_DEPRECATED): Define.
11458         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11459         not hash_insert0.
11460         * NEWS: Mention it, even though it's not really an incompatible change.
11461
11462 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11463
11464         openat: avoid compilation failure due to lack of <errno.h> inclusion
11465         * lib/openat.c: Include <errno.h>.
11466
11467 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11468
11469         * modules/getcwd (Depends-on): Add fdopendir.
11470         This fixes one of the two problems reported by Kai Habel in
11471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11472
11473         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11474         stdalign problem reported by Ian Beckwith in
11475         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11476         * modules/crypto/gc-arcfour (Depends-on):
11477         Depend conditionally on crypto/arcfour.
11478         * modules/crypto/gc-arctwo (Depends-on):
11479         Depend conditionally on crypto/arctwo.
11480         * modules/crypto/gc-des (Depends-on):
11481         Depend conditionally on crypto/des.
11482         * modules/crypto/gc-hmac-md5 (Depends-on):
11483         Depend conditionally on crypto/hmac-md5.
11484         * modules/crypto/gc-hmac-sha1 (Depends-on):
11485         Depend conditionally on crypto/hmac-sha1.
11486         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11487         * modules/crypto/gc-md4 (Depends-on):
11488         Depend conditionally on crypto/md4.
11489         * modules/crypto/gc-md5 (Depends-on):
11490         Depend conditionally on crypto/md5.
11491         * modules/crypto/gc-rijndael (Depends-on):
11492         Depend conditionally on crypto/rijndael.
11493         * modules/crypto/gc-sha1 (Depends-on):
11494         Depend conditionally on crypto/sha1.
11495         * modules/crypto/gc-arcfour:
11496         * modules/crypto/gc-arctwo:
11497         * modules/crypto/gc-des:
11498         * modules/crypto/gc-hmac-md5:
11499         * modules/crypto/gc-hmac-sha1:
11500         * modules/crypto/gc-md2:
11501         * modules/crypto/gc-md4:
11502         * modules/crypto/gc-md5:
11503         * modules/crypto/gc-rijndael:
11504         * modules/crypto/gc-sha1:
11505         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11506         now that the conditional dependencies do the work for us.
11507
11508 2011-11-17  Jim Meyering  <meyering@redhat.com>
11509
11510         tests: factor st_ctime-comparison out of two headers
11511         * tests/test-utimens-common.h (ctime_compare): Define.
11512         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11513         * tests/test-lutimens.h (test_lutimens): Likewise.
11514         * tests/test-utimens.h (test_utimens): Likewise.
11515
11516         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11517         Invoke the test program via an init.sh-using wrapper.
11518         * tests/test-getcwd.sh: New file.
11519         * modules/getcwd-tests (Files): Add it.
11520         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11521
11522 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11523
11524         gitlog-to-changelog: support multi-author commits.
11525         The FSF cares about keeping track of all authors of patches to its
11526         projects, but Git doesn't provide obvious support for multi-author
11527         changesets. Consensus seems to be forming around the use of extra
11528         Signed-off-by inspired lines in the log message formatted as
11529         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11530         multi-author commits between version control systems.
11531         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11532         log message and output in standard ChangeLog multi-author format.
11533         Reported by Peter Rosin <peda@lysator.liu.se>
11534
11535 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11536             Bruno Haible  <bruno@clisp.org>
11537
11538         Fix some modules' file list.
11539         * modules/fstatat (Files): Add m4/lstat.m4.
11540         * modules/openat (Files): Likewise.
11541         * modules/unlinkat (Files): Likewise.
11542
11543 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11544
11545         maint.mk: fix tight-scope.mk generation in VPATH builds.
11546         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11547         reference with $(srcdir) so that the file is found correctly even
11548         when running `make syntax-check' in a VPATH build.
11549
11550 2011-11-13  Bruno Haible  <bruno@clisp.org>
11551             Jim Meyering  <meyering@redhat.com>
11552
11553         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11554         * tests/init.sh (compare): Remove "No differences encountered" or
11555         synonymous output from the 'diff' program.
11556
11557 2011-11-13  Bruno Haible  <bruno@clisp.org>
11558
11559         Makefile: Tweak indentation.
11560         * Makefile: Use tab as first character in every line that contains rule
11561         commands.
11562
11563 2011-11-13  Bruno Haible  <bruno@clisp.org>
11564
11565         Syntax check for copyright statements.
11566         * check-copyright: New file.
11567         * Makefile (sc_check_copyright): New rule.
11568
11569 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11570
11571         * build-aux/git-version-gen: Add --prefix to configure the tag
11572         match string.
11573
11574 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11575
11576         * build-aux/git-version-gen: Add --help and --version.
11577
11578 2011-11-12  Jim Meyering  <meyering@redhat.com>
11579
11580         revamp the other test-exclude?.sh scripts to use init.sh, too
11581         * tests/test-exclude1.sh: Use init.sh.
11582         * tests/test-exclude2.sh: Likewise.
11583         * tests/test-exclude3.sh: Likewise.
11584         * tests/test-exclude4.sh: Likewise.
11585         * tests/test-exclude5.sh: Likewise.
11586         * tests/test-exclude6.sh: Likewise.
11587         * tests/test-exclude7.sh: Likewise.
11588         * tests/test-exclude8.sh: Likewise.
11589         * modules/exclude-tests (Files): List init.sh.
11590
11591         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11592         These shell scripts ignored failure of the binary test-exclude,
11593         so making the latter return 77 didn't cause them to be skipped.
11594         * tests/test-exclude5.sh: Exit with test-exclude's error status
11595         when that program fails.  Revamp to use init.sh.
11596         * tests/test-exclude2.sh: Likewise.
11597
11598         test-exclude: fix a typo
11599         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11600
11601 2011-11-11  Bruno Haible  <bruno@clisp.org>
11602
11603         obstack: Fix compilation error on MSVC 9.
11604         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11605
11606 2011-11-11  Jim Meyering  <meyering@redhat.com>
11607
11608         test-exclude: skip tests rather than failing on deficient systems
11609         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11610         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11611         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11612         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11613
11614 2011-11-10  Bruno Haible  <bruno@clisp.org>
11615
11616         ptsname_r test: Avoid gcc warning on glibc systems.
11617         * tests/test-ptsname_r.c (null_ptr): New function.
11618         (test_errors): Use it.
11619
11620 2011-11-10  Bruno Haible  <bruno@clisp.org>
11621
11622         ptsname_r: Avoid compilation error on OSF/1 5.1.
11623         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11625         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11626         function is not declared or incompatibly declared.
11627         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11628         * modules/ptsname_r (Depends-on, configure.ac): Update.
11629         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11630
11631 2011-11-10  Bruno Haible  <bruno@clisp.org>
11632
11633         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11634         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11635         When cross-compiling, guess yes on all platforms except AIX.
11636         Reported by Ludovic Courtès <ludo@gnu.org>.
11637
11638 2011-11-09  Bruno Haible  <bruno@clisp.org>
11639
11640         ptsname_r tests: Fix bugs.
11641         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11642         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11643
11644 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11645
11646         fstatat: work with cross-compilation
11647         Problem reported by Ludovic Courtès in
11648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11649         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11650         "cross-compiling" and assume the bug is present.  Replace
11651         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11652         an inverted sense, to be more conservative about our assumptions.
11653         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11654
11655 2011-11-09  Bruno Haible  <bruno@clisp.org>
11656
11657         Improve MODULES.html output.
11658         * modules/mkfifoat (Description): Use the word "function".
11659         * modules/readlinkat (Description): Likewise.
11660         * modules/symlinkat (Description): Likewise.
11661
11662 2011-11-09  Eric Blake  <eblake@redhat.com>
11663
11664         ptsname_r-tests: new test module
11665         * modules/ptsname_r-tests: New module.
11666         * tests/test-ptsname_r.c: New file.
11667
11668         ptsname_r: new module
11669         * modules/ptsname_r: New module.
11670         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11671         * lib/ptsname.c (__ptsname_r): Split...
11672         * lib/ptsname_r.c: ...into new file.
11673         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11674         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11675         * modules/stdlib (Makefile.am): Substitute witnesses.
11676         * lib/stdlib.in.h (ptsname_r): Declare it.
11677         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11678         * MODULES.html.sh (Misc): Likewise.
11679         * modules/ptsname (Depends-on): Alter dependency.
11680         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11681
11682 2011-11-09  Jim Meyering  <meyering@redhat.com>
11683
11684         announce-gen: be more concise when there's only one URL+tarball
11685         * build-aux/announce-gen (get_tool_versions): When you distribute
11686         only one type of tarball, combine the first two "Here are..."
11687         sections and make the key-checking grammar independent of
11688         how many tarballs there are.
11689
11690 2011-11-09  Eric Blake  <eblake@redhat.com>
11691
11692         openpty: provide a stub on mingw
11693         * lib/pty.in.h (includes): Provide forward declarations.
11694         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11695
11696         raise: fix mingw handling of SIGPIPE
11697         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11698
11699 2011-11-08  Bruno Haible  <bruno@clisp.org>
11700
11701         More conditional dependencies.
11702         * modules/faccessat (Depends-on): Add conditions.
11703         * modules/fchmodat (Depends-on): Likewise.
11704         * modules/fchownat (Depends-on): Likewise.
11705         * modules/fstatat (Depends-on): Likewise.
11706         * modules/mkfifoat (Depends-on): Likewise.
11707         * modules/readlinkat (Depends-on): Likewise.
11708         * modules/symlinkat (Depends-on): Likewise.
11709         * modules/unlinkat (Depends-on): Likewise.
11710         * modules/utimensat (Depends-on): Likewise.
11711         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11712         * modules/linkat (Depends-on): Refine the conditions.
11713         * modules/renameat (Depends-on): Likewise.
11714
11715 2011-11-08  Bruno Haible  <bruno@clisp.org>
11716
11717         faccessat: Move AC_LIBOBJ invocation to module description.
11718         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11719         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11720         invocation from here...
11721         * modules/faccessat (configure.ac): ... to here. Invoke
11722         gl_PREREQ_FACCESSAT.
11723
11724 2011-11-08  Bruno Haible  <bruno@clisp.org>
11725
11726         faccessat: Simplify autoconf macro.
11727         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11728         gl_FUNC_EUIDACCESS.
11729
11730 2011-11-08  Bruno Haible  <bruno@clisp.org>
11731
11732         renameat: Fix dependencies.
11733         * modules/renameat (Depends-on): Add stdbool.
11734
11735 2011-11-08  Bruno Haible  <bruno@clisp.org>
11736
11737         mkfifoat: Fix module description.
11738         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11739         not gl_UNISTD_MODULE_INDICATOR.
11740
11741 2011-11-08  Bruno Haible  <bruno@clisp.org>
11742
11743         fstatat: Remove unused dependency.
11744         * modules/fstatat (Depends-on): Remove fstat.
11745
11746 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11747
11748         GNUmakefile: behave when Makefile is missing.
11749         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11750
11751 2011-11-08  Bruno Haible  <bruno@clisp.org>
11752
11753         openat: Conditionalize dependencies.
11754         * lib/openat.c: Reduce the scope of some #includes.
11755         * modules/openat (Depends-on): Add conditions.
11756
11757 2011-11-07  Jim Meyering  <meyering@redhat.com>
11758
11759         maint.mk: extract GPG key ID without using a temporary file
11760         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11761         without using a temporary file.  Based on a suggestion from Werner Koch
11762         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11763
11764 2011-11-07  Eric Blake  <eblake@redhat.com>
11765
11766         grantpt: fix typo
11767         * lib/stdlib.in.h (grantpt): Check correct function.
11768
11769         maint.mk: silence new syntax check
11770         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11771
11772 2011-11-06  Bruno Haible  <bruno@clisp.org>
11773
11774         Doc about floating-point and math API.
11775         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11776         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11777
11778 2011-11-06  Bruno Haible  <bruno@clisp.org>
11779
11780         stdalign tests: Skip the test when compiled by Sun C.
11781         * tests/test-stdalign.c (main): Skip the test on Sun C.
11782
11783 2011-11-06  Bruno Haible  <bruno@clisp.org>
11784
11785         ansi-c++-opt: Complete the 2011-06-05 change.
11786         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11787         does not support namespaces, set the variable to "no", not to ":".
11788
11789 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11792
11793 2011-11-06  Bruno Haible  <bruno@clisp.org>
11794
11795         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11796         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11797         (minus_zerol) [HP-UX]: New macro.
11798         (unary_minus) [HP-UX]: New function.
11799         (copysignl) [HP-UX]: Use unary_minus function.
11800
11801 2011-11-06  Bruno Haible  <bruno@clisp.org>
11802
11803         ldexp, ldexpf, ldexpl: Enhance tests.
11804         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11805         and tests/test-ldexpl.c.
11806         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11807         LDEXP, MIN_EXP, MAX_EXP): New macros.
11808         Include test-ldexp.h.
11809         (main): Just call test_function.
11810         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11811         infinity.h, nan.h.
11812         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11813         MAX_EXP): New macros.
11814         Include test-ldexp.h.
11815         (x, y): Remove variables.
11816         (main): Just call test_function.
11817         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11818         infinity.h, nan.h.
11819         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11820         MAX_EXP): New macros.
11821         Include test-ldexp.h.
11822         (x, y): Remove variables.
11823         (main): Just call test_function.
11824         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11825         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11826         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11827         (Depends-on): Add isnand-nolibm, signbit, float.
11828         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11829         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11830         (Depends-on): Add isnanf-nolibm, signbit, float.
11831
11832 2011-11-06  Bruno Haible  <bruno@clisp.org>
11833
11834         math tests: Cosmetics.
11835         * tests/test-math-c++.cc: Reorder declarations.
11836
11837 2011-11-05  Bruno Haible  <bruno@clisp.org>
11838
11839         fma*: Simplify test.
11840         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11841         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11842
11843         Tests for module 'fmal'.
11844         * modules/fmal-tests: New file.
11845         * tests/test-fmal1.c: New file.
11846         * tests/test-fmal2.c: New file.
11847
11848         New module 'fmal'.
11849         * lib/math.in.h (fmal): New declaration.
11850         * lib/fmal.c: New file.
11851         * m4/fmal.m4: New file.
11852         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11854         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11855         REPLACE_FMAL.
11856         * modules/fmal: New file.
11857         * doc/posix-functions/fmal.texi: Mention the new module and the various
11858         bugs.
11859
11860         Tests for module 'fmaf'.
11861         * modules/fmaf-tests: New file.
11862         * tests/test-fmaf1.c: New file.
11863         * tests/test-fmaf2.c: New file.
11864
11865         New module 'fmaf'.
11866         * lib/math.in.h (fmaf): New declaration.
11867         * lib/fmaf.c: New file.
11868         * m4/fmaf.m4: New file.
11869         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11870         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11871         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11872         REPLACE_FMAF.
11873         * modules/fmaf: New file.
11874         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11875         bugs.
11876
11877         Tests for module 'fma'.
11878         * modules/fma-tests: New file.
11879         * tests/test-fma1.c: New file.
11880         * tests/test-fma1.h: New file.
11881         * tests/test-fma2.c: New file.
11882         * tests/test-fma2.h: New file.
11883
11884         New module 'fma'.
11885         * lib/math.in.h (fma): New declaration.
11886         * lib/fma.c: New file.
11887         * m4/fma.m4: New file.
11888         * m4/fegetround.m4: New file.
11889         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11891         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11892         REPLACE_FMA.
11893         * modules/fma: New file.
11894         * doc/posix-functions/fma.texi: Mention the new module and the various
11895         bugs.
11896
11897         Extend gl_MATHFUNC.
11898         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11899         Support 'void' as argument type.
11900         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11901
11902 2011-11-05  Jim Meyering  <meyering@redhat.com>
11903
11904         maint.mk: also prohibit inclusion of dirent.h without use
11905         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11906
11907 2011-11-05  Bruno Haible  <bruno@clisp.org>
11908
11909         ldexpl tests: Avoid test failure on MSVC 9.
11910         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11911         value. Needed in order to enforce the conversion from a value greater
11912         than LDBL_MAX to Infinity.
11913
11914 2011-11-05  Bruno Haible  <bruno@clisp.org>
11915
11916         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11917         * modules/at-internal: New file, extracted from modules/openat.
11918         * modules/openat-h: New file.
11919         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11920         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11921         * modules/openat (Description): Add reference to POSIX function.
11922         (Files): Remove lib/openat.h, lib/openat-proc.c.
11923         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11924         intprops, unistd.
11925         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11926         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11927         gl_FCNTL_MODULE_INDICATOR.
11928         (Include): Remove unistd.h, openat.h.
11929         * modules/areadlinkat (Files): Add lib/at-func.c.
11930         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11931         openat-die, openat-h, save-cwd.
11932         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11933         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11934         openat-die, openat-h, save-cwd, unistd.
11935         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11936         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11937         openat-h, save-cwd. Remove fcntl-h, openat.
11938         * modules/fchmodat (Files): Remove lib/openat.h.
11939         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11940         openat, stdbool, unistd.
11941         * modules/fchownat (Files): Remove lib/openat.h.
11942         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11943         openat, stdbool, sys_stat.
11944         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11945         lib/openat-proc.c.
11946         (Depends-on): Add at-internal.
11947         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11948         * modules/fstatat (Files): Remove lib/openat.h.
11949         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11950         stdbool, unistd.
11951         * modules/fts (Depends-on): Add openat-h.
11952         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11953         openat.
11954         * modules/mkdirat (Files): Remove lib/openat.h.
11955         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11956         openat, stdbool, sys_stat.
11957         * modules/mkfifoat (Files): Add lib/at-func.c.
11958         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11959         openat-h, save-cwd. Remove fcntl-h, openat.
11960         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11961         * modules/readlinkat (Files): Add lib/at-func.c.
11962         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11963         openat-h, save-cwd. Remove fcntl-h, openat.
11964         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11965         openat.
11966         * modules/selinux-at (Files): Add lib/at-func.c.
11967         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11968         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11969         * modules/symlinkat (Files): Add lib/at-func.c.
11970         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11971         openat-h, save-cwd. Remove fcntl-h, openat.
11972         * modules/unlinkat (Files): Remove lib/openat.h.
11973         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11974         stdbool.
11975         * modules/utimensat (Files): Add lib/at-func.c.
11976         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11977         openat-die, openat-h, save-cwd.
11978         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11979         * modules/fdutimensat-tests (Depends-on): Add openat.
11980         * modules/fstatat-tests (Depends-on): Add openat-h.
11981         * modules/readlinkat-tests (Depends-on): Add openat.
11982         * modules/symlinkat-tests (Depends-on): Add openat.
11983
11984 2011-11-05  Bruno Haible  <bruno@clisp.org>
11985
11986         openat: Include <stdbool.h>.
11987         * lib/openat.c: Include <stdbool.h>.
11988
11989 2011-11-04  Bruno Haible  <bruno@clisp.org>
11990
11991         fchownat, renameat, unlinkat: Fix dependencies.
11992         * modules/fchownat (Depends-on): Add fstatat.
11993         * modules/renameat (Depends-on): Likewise.
11994         * modules/unlinkat (Depends-on): Likewise.
11995
11996 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11997
11998         openat: remove direct dependency on dirent
11999         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
12000         and hasn't been needed ever since fdopendir was split into its own
12001         module on 2009-08-31.
12002         * modules/openat (Depends-on): Remove dirent.
12003
12004 2011-11-04  Bruno Haible  <bruno@clisp.org>
12005
12006         renameat: Optimize code size.
12007         * modules/renameat (configure.ac): Don't compile at-func2.c if
12008         REPLACE_RENAMEAT is 1.
12009
12010 2011-11-04  Bruno Haible  <bruno@clisp.org>
12011
12012         openat tests: Fix file list.
12013         * modules/openat-tests (Files): Add tests/test-open.h.
12014
12015 2011-11-04  Bruno Haible  <bruno@clisp.org>
12016
12017         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
12018         * modules/fchmodat (Depends-on): Add openat-die.
12019         * modules/fchownat (Depends-on): Likewise.
12020         * modules/linkat (Depends-on): Likewise.
12021         * modules/renameat (Depends-on): Likewise.
12022         * modules/openat (Depends-on): Add dirent.
12023
12024 2011-11-04  Jim Meyering  <meyering@redhat.com>
12025
12026         at-func*.c: fix comments
12027         * lib/at-func2.c: Correct/improve first-line comment.
12028         * lib/at-func.c: Correct grammar in first-line comment.
12029
12030 2011-11-04  Bruno Haible  <bruno@clisp.org>
12031
12032         New module 'mkdirat', split off from module 'openat'.
12033         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
12034         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
12035         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
12036         * modules/mkdirat: New file, extracted from modules/openat.
12037         * modules/openat (Files): Remove lib/mkdirat.c.
12038         (Depends-on): Remove mkdir.
12039         (configure.ac): Remove AC_LIBOBJ of mkdirat.
12040         (Include): Remove <sys/stat.h>.
12041         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
12042         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
12043         tests/test-mkdir.h.
12044         (Depends-on): Remove ignore-value.
12045         (Makefile.am): Remove rules for test-mkdirat.
12046         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
12047         of module 'openat'.
12048         * NEWS: Mention the change.
12049
12050 2011-11-04  Bruno Haible  <bruno@clisp.org>
12051
12052         closedir: Avoid warning on mingw.
12053         * lib/closedir.c: Include <unistd.h>.
12054
12055 2011-11-04  Bruno Haible  <bruno@clisp.org>
12056
12057         New module 'fstatat', split off from module 'openat'.
12058         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
12059         defined.
12060         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
12061         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
12062         gl_FUNC_FSTATAT.
12063         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
12064         * modules/fstatat: New file, extracted from modules/openat.
12065         * modules/openat (Files): Remove lib/fstatat.c.
12066         (Depends-on): Remove lstat.
12067         (configure.ac): Remove AC_LIBOBJ of fstatat.
12068         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
12069         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
12070         tests/test-lstat.h, tests/test-stat.h.
12071         (Depends-on): Remove getcwd-lgpl.
12072         (Makefile.am): Remove rules for test-fstatat.
12073         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
12074         of module 'openat'.
12075         * NEWS: Mention the change.
12076         * modules/getcwd (Depends-on): Add fstatat.
12077         * modules/linkat (Depends-on): Likewise.
12078         * modules/mkfifoat-tests (Depends-on): Likewise.
12079         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
12080
12081 2011-11-03  Bruno Haible  <bruno@clisp.org>
12082
12083         New module 'unlinkat', split off from module 'openat'.
12084         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
12085         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
12086         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
12087         * modules/unlinkat: New file, extracted from modules/openat. Correct
12088         the dependency conditions.
12089         * modules/openat (Files): Remove lib/unlinkat.c.
12090         (Depends-on): Remove rmdir, unlink.
12091         (configure.ac): Remove AC_LIBOBJ of unlinkat.
12092         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
12093         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
12094         tests/test-rmdir.h, tests/test-unlink.h.
12095         (Depends-on): Remove unlinkdir.
12096         (Makefile.am): Remove rules for test-unlinkat.
12097         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
12098         of module 'openat'.
12099         * NEWS: Mention the change.
12100         * modules/linkat-tests (Depends-on): Add unlinkat.
12101         * modules/mkfifoat-tests (Depends-on): Likewise.
12102         * modules/readlinkat-tests (Depends-on): Likewise.
12103
12104 2011-11-02  Bruno Haible  <bruno@clisp.org>
12105
12106         New module 'fchmodat', split off from module 'openat'.
12107         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
12108         defined.
12109         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
12110         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
12111         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
12112         * modules/fchmodat: New file, extracted from modules/openat.
12113         * modules/openat (Files): Remove lib/fchmodat.c.
12114         (configure.ac): Remove AC_LIBOBJ of fchmodat.
12115         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
12116         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
12117         (Makefile.am): Remove rules for test-fchmodat.
12118         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
12119         of module 'openat'.
12120         * NEWS: Mention the change.
12121
12122 2011-11-02  Jim Meyering  <meyering@redhat.com>
12123
12124         putenv: indent #definition of "environ" to placate cppi
12125         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
12126
12127         gitlog-to-changelog: provide a ChangeLog-repair mechanism
12128         Git logs are often treated as immutable, because editing them
12129         changes the SHA1 checksums of all descendants.  Thus, errors in
12130         git logs tend to stay there forever.  However, when we generate
12131         a ChangeLog file -- typically for distribution -- from that git log,
12132         we can actually make corrections in the generated file.  The key
12133         lies in recording in machine-readable/applicable form the desired
12134         corrections.  See --help for description and an example.
12135         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
12136         (usage): Describe it; alphabetize option descriptions.
12137         (main): Honor the new option, carefully.
12138
12139 2011-11-01  Jim Meyering  <meyering@redhat.com>
12140
12141         gitlog-to-changelog: avoid an infloop
12142         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
12143         that ends up being empty.
12144
12145 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12146
12147         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12148         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12149         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12150         contains (possibly-quoted) backslashes.  This should avoid
12151         all-too-common shell bugs if COMPLICATED contains backslashes in
12152         the "wrong" places.  Reported by David Evans in
12153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12154         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12155         because we want ASCII ranges.  Is there some reason we don't use
12156         the C locale everywhere in this script?
12157         (func_module, top level): Avoid unwanted pathname expansion when
12158         $repo_url_prefix or $repo_url_suffix_repl contain shell
12159         metacharacters like '?' and '*'.
12160
12161 2011-11-01  Bruno Haible  <bruno@clisp.org>
12162
12163         fchownat: Improve description.
12164         * modules/fchownat (Description): Add link to function.
12165
12166 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12167
12168         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12169         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12171         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12172
12173 2011-11-01  Bruno Haible  <bruno@clisp.org>
12174
12175         alignof: Avoid collision with stdalign module.
12176         * lib/alignof.h (alignof): Remove macro.
12177         * NEWS: Mention the change.
12178         Reported by Paul Eggert.
12179
12180 2011-11-01  Bruno Haible  <bruno@clisp.org>
12181
12182         New module 'fchownat', split off from module 'openat'.
12183         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12184         defined.
12185         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12186         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12187         invoke gl_FUNC_FCHOWNAT.
12188         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12189         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12190         * modules/fchownat: New file, extracted from modules/openat.
12191         * modules/openat (Files): Remove lib/fchownat.c.
12192         (Depends-on): Remove lchown.
12193         (configure.ac): Remove AC_LIBOBJ of fchownat.
12194         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12195         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12196         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12197         (Depends-on): Remove mgetgroups, usleep, stat-time.
12198         (configure.ac): Remove test for getegid.
12199         (Makefile.am): Remove rules for test-fchownat.
12200         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12201         of module 'openat'.
12202         * NEWS: Mention the change.
12203
12204 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12205
12206         stdalign: port better to MSVC and to Sun C 5.11
12207         This fixes some of the problems reported by Bruno Haible in
12208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12209         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12210         shortcomings of MSVC and of Sun C 5.11.
12211         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12212         around __declspec arg.
12213         * modules/stdalign-tests (Files): Add tests/macros.h.
12214         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12215         Include macros.h, for ASSERT.
12216         (DECLARE_ALIGNED): Remove.
12217         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12218         to catch bug), and to 1 if not (simplifies the rest of the code).
12219         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12220         (CHECK_AUTO): Remove.
12221         (CHECK_ALIGNED): Check only the alignment of the static vars,
12222         since auto var alignment isn't supported by Sun C 5.11.
12223         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12224         ASSERT failures are easier to diagnose.
12225
12226 2011-10-31  Bruno Haible  <bruno@clisp.org>
12227
12228         doc about some IRIX 5.3 problems.
12229         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12230         on IRIX 5.3.
12231         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12232         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12233         5.3.
12234         * doc/posix-functions/grantpt.texi: Likewise.
12235         * doc/posix-functions/unlockpt.texi: Likewise.
12236         * doc/posix-functions/lgamma.texi: Likewise.
12237         * doc/posix-functions/nextafter.texi: Likewise.
12238         * doc/posix-functions/remainder.texi: Likewise.
12239         * doc/posix-functions/select.texi: Mention misplaced declaration on
12240         IRIX 5.3.
12241         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12242
12243 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12244
12245         gitlog-to-changelog: fix git-log invocation.
12246         git-log mishandles date strings before 1970-01-01 UTC, and there is
12247         no use to specify --since=1970-01-01 by default anyway.
12248         * build-aux/gitlog-to-changelog: By default, when no --since option
12249         was given, do not specify explicit --since option to git-log.
12250
12251 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12252
12253         gitlog-to-changelog: new option --append-dot.
12254         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12255         first non-blank line of each commit message terminated with a dot.
12256
12257 2011-10-30  Bruno Haible  <bruno@clisp.org>
12258
12259         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12260         * lib/ffsl.h: Include <config.h>.
12261         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12262
12263 2011-10-30  Jim Meyering  <meyering@redhat.com>
12264
12265         GNUmakefile: reenable "make syntax-check" for most projects
12266         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12267         build-aux variable", "syntax-check" would do nothing but succeed with
12268         the "No version control files detected..." diagnostic (unless you
12269         happened to override _build-aux via cfg.mk).
12270         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12271         to precede inclusion of maint.mk.  Otherwise, these variables would
12272         be used undefined in any project that does not override the default.
12273
12274 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12275
12276         gitlog-to-changelog: treat a message with only blank lines as empty.
12277         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12278         trailing blank lines before the code that issues a warning about an
12279         empty commit message.
12280
12281 2011-10-30  Jim Meyering  <meyering@redhat.com>
12282
12283         test-parse-datetime.c: avoid new DST-related false positive test failure
12284         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12285         based on the time/date we'll convert, not the current time.
12286         Otherwise, the moment we cross a DST boundary like today's in
12287         Europe, (CEST to CET), that offset ends up being one hour off.
12288
12289 2011-10-27  Bruno Haible  <bruno@clisp.org>
12290
12291         fstat: Tweak documentation.
12292         * modules/fstat (Description): More precise description.
12293
12294 2011-10-27  Bruno Haible  <bruno@clisp.org>
12295
12296         Update documentation regarding 'largefile' module.
12297         * doc/posix-functions/fstat.texi: Tweak wording.
12298         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12299         problems with huge directories and/or small ino_t types.
12300         * doc/posix-functions/readdir.texi: Likewise.
12301         * doc/posix-functions/rewinddir.texi: Likewise.
12302
12303 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12304
12305         maint.mk: don't maintain a second build-aux variable.
12306         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12307         depends on GNUmakefile, which already maintains a cfg.mk
12308         overridable $(_build-aux) for projects with a non-standard
12309         build-aux directory location, although without the $(srcdir)
12310         prefix.  Use that variable consistently instead of introducing a
12311         second one.  Adjust all call sites.
12312
12313 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12314
12315         Add stdalign module and use it in other modules.
12316         This is based on a previous proposal by Bruno Haible
12317         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12318
12319         stdalign: new module
12320         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12321         * modules/stdalign: New files.
12322         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12323         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12324
12325         stdalign-tests: new module
12326         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12327
12328         argp: use stdalign
12329         * lib/argp-parse.c: Include <stdalign.h>.
12330         (alignof): Remove.
12331         * modules/argp (Depends-on): Add stdalign.
12332
12333         crypto libraries: use stdalign
12334         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12335         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12336         Do not include <stdlib.h> twice, in md4.c.
12337         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12338         because we are accessing a pointer's bit-pattern, not a size.
12339         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12340         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12341         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12342         * modules/crypto/sha512: Likewise.
12343
12344         sys_socket: use stdalign, not alignof
12345         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12346         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12347
12348 2011-10-27  Bruno Haible  <bruno@clisp.org>
12349
12350         raise test: Avoid a test failure on Linux/MIPS.
12351         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12352         because 99 is a valid signal on Linux/MIPS.
12353
12354 2011-10-27  Bruno Haible  <bruno@clisp.org>
12355
12356         nonblocking tests: Fix test failure on Linux/MIPS.
12357         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12358         Set to 270000.
12359
12360 2011-10-27  Bruno Haible  <bruno@clisp.org>
12361
12362         utimensat: Work around problem on Linux/hppa.
12363         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12364         values.
12365         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12366
12367 2011-10-25  Jim Meyering  <meyering@redhat.com>
12368
12369         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12370         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12371         after symbols like NULL, size_t, etc.
12372         Reported by Alfred M. Szmidt.
12373
12374         maint.mk: exempt ENODATA from a syntax-check rule
12375         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12376         from the sc_prohibit_always-defined_macros syntax-check rule.
12377         Add a comment.  See this for more details:
12378         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12379
12380 2011-10-23  Jim Meyering  <meyering@redhat.com>
12381
12382         fts: close parent dir FD before returning from post-traversal fts_read
12383         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12384         unlink A, even though an FD open on A remained.  This is suboptimal
12385         (holding a file descriptor open longer than needed), but otherwise not
12386         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12387         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12388         that represents a real problem: it causes the removal of A to fail
12389         with e.g., "rm: cannot remove `A': Device or resource busy"
12390
12391         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12392         directory file descriptors.  After completing the final, FTS_DP,
12393         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12394         cache, but then proceeded to add a new FD to it via the subsequent
12395         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12396         final file descriptor would be closed only via fts_close's call to
12397         fd_ring_clear.  Now, it is usually closed earlier, via the final
12398         FTS_DP-returning fts_read call.
12399         * lib/fts.c (restore_initial_cwd): New function, converted from
12400         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12401         Update callers.
12402         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12403         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12404
12405 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12406             Bruno Haible  <bruno@clisp.org>
12407             Jim Meyering  <jim@meyering.net>
12408
12409         readme-release: improve safety of release prep instructions.
12410         * README-release: Don't git pull all branches when only master
12411         is needed for the release process.
12412         Run make maintainer-clean before changing trees and merging.
12413         Don't try to run ./configure right after git pull in case files
12414         that influence the bootstrap process have changed, move the
12415         ./configure step to after running ./bootstrap.
12416         Don't bootstrap "one last time"... it's the first time!
12417
12418 2011-10-22  Bruno Haible  <bruno@clisp.org>
12419
12420         errno, strerror-override: Support for MSVC 10.
12421         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12422         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12423         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12424         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12425         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12426         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12427         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12428         Assign values compatible with MSVC 10.
12429         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12430         New macros.
12431         (GNULIB_defined_EWINSOCK): New macro.
12432         * lib/strerror-override.c (strerror_override): Update accordingly.
12433         * lib/strerror-override.h: Likewise.
12434         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12435         longer equal to the corresponding errno value.
12436         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12437
12438 2011-10-22  Bruno Haible  <bruno@clisp.org>
12439
12440         perror: Recognize when test program crashes.
12441         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12442         strerror, set gl_cv_func_perror_works to no.
12443         Reported by Daniel Richard G. <skunk@iskunk.org>.
12444
12445         perror: Fix indentation.
12446         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12447
12448 2011-10-22  Bruno Haible  <bruno@clisp.org>
12449
12450         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12451         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12452         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12453         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12454         functions, not as a macro.
12455         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12456         macros.
12457         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12458         absence of macro.
12459         Suggested by Eric Blake.
12460         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12461
12462 2011-10-21  Bruno Haible  <bruno@clisp.org>
12463
12464         relocatable-prog-wrapper: Don't leave object files behind.
12465         * build-aux/install-reloc: Re-synchronize list of .o files to be
12466         removed with list of compilation units.
12467
12468 2011-10-20  Bruno Haible  <bruno@clisp.org>
12469
12470         openpty, posix_openpt: Remove code duplication.
12471         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12472         * lib/openpty.c: Include <stdlib.h>.
12473         (openpty): Use posix_openpt on all platforms except IRIX.
12474         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12475
12476 2011-10-20  Bruno Haible  <bruno@clisp.org>
12477
12478         unlockpt: Detect invalid argument.
12479         * lib/unlockpt.c: Include <fcntl.h>.
12480         (unlockpt): Check whether fd is valid, using fcntl().
12481         * modules/unlockpt (Depends-on): Add fcntl-h.
12482
12483 2011-10-20  Bruno Haible  <bruno@clisp.org>
12484
12485         openpty: Avoid compilation error on AIX 6.1.
12486         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12487
12488 2011-10-20  Bruno Haible  <bruno@clisp.org>
12489
12490         posix_openpt: Support for OpenBSD.
12491         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12492         (posix_openpt) [OpenBSD]: New code.
12493         * lib/grantpt.c: Include <fcntl.h>.
12494         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12495         * modules/grantpt (Depends-on): Add fcntl-h.
12496
12497 2011-10-20  Bruno Haible  <bruno@clisp.org>
12498
12499         posix_openpt test: Coding style.
12500         * tests/test-posix_openpt.c: Use GNU coding style.
12501
12502 2011-10-20  Bruno Haible  <bruno@clisp.org>
12503
12504         grantpt: Support --avoid=pt_chown.
12505         * modules/grantpt (Files): Add lib/pty-private.h.
12506
12507 2011-10-20  Bruno Haible  <bruno@clisp.org>
12508
12509         posix_openpt: Fix autoconf macro.
12510         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12511         unneeded check for _getpty.
12512
12513 2011-10-20  Bruno Haible  <bruno@clisp.org>
12514
12515         openpty: Update comments.
12516         * lib/openpty.c: Add comments about Minix.
12517
12518 2011-10-19  Eric Blake  <eblake@redhat.com>
12519
12520         openpty: relax license
12521         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12522
12523         pt_chown: use configmake to simplify build
12524         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12525
12526         ptsname and others: relax license
12527         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12528         * modules/unlockpt (License): Likewise.
12529         * modules/pt_chown (License): Likewise.
12530         * modules/ptsname (License): Likewise.
12531         * modules/ttyname_r (License): Likewise.
12532
12533 2011-10-19  Jim Meyering  <meyering@redhat.com>
12534
12535         posix_openpt: remove spurious #endif
12536         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12537
12538 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12539
12540         maint.mk: Respect $(build_aux) in web-manual rule.
12541         * top/maint.mk (web-manual): Find gen-announce script in user's
12542         $(build_aux) directory instead of hard-coding 'build-aux'.
12543
12544 2011-10-19  Bruno Haible  <bruno@clisp.org>
12545
12546         posix_openpt: Fix compilation error.
12547         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12548         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12549         Mention the openpty module as an alternative.
12550
12551 2011-10-19  Bruno Haible  <bruno@clisp.org>
12552
12553         Support for old NeXTstep 3.3 frexp().
12554         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12555         execution time of the test to 5 seconds.
12556         Reported by Daniel Richard G. <skunk@iskunk.org>.
12557
12558 2011-10-19  Bruno Haible  <bruno@clisp.org>
12559
12560         Support for old NeXTstep 3.3 sed.
12561         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12562         part, use /.../, not \|...|. Escape periods in the header file name.
12563         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12564         Reported by Daniel Richard G. <skunk@iskunk.org>.
12565
12566 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12567
12568         Support for old NeXTstep 3.3 gcc.
12569         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12570         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12571         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12572         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12573         * lib/regex.h (_Restrict_arr_): Likewise.
12574         * lib/regex_internal.h (re_token_t): Likewise.
12575         * lib/regexec.c (check_node_accept_bytes): Likewise.
12576         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12577
12578 2011-10-18  Eric Blake  <eblake@redhat.com>
12579
12580         posix_openpt: new module
12581         * modules/posix_openpt: New module.
12582         * m4/posix_openpt.m4: New file.
12583         * lib/posix_openpt.c: Likewise.
12584         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12585         (gl_STDLIB_H_DEFAULTS): Set defaults.
12586         * modules/stdlib (Makefile.am): Substitute macros.
12587         * lib/stdlib.in.h (posix_openpt): Declare.
12588         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12589         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12590         * modules/posix_openpt-tests: New test module.
12591         * tests/test-posix_openpt.c: New test.
12592
12593 2011-10-15  Bruno Haible  <bruno@clisp.org>
12594
12595         xstrtoll: Fix compilation failure.
12596         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12597         from lib/strtol.c.
12598         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12599         some platforms.
12600         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12601
12602 2011-10-15  Bruno Haible  <bruno@clisp.org>
12603
12604         vasnprintf: Optimize bit search operation.
12605         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12607         gl_DOUBLE_EXPONENT_LOCATION.
12608         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12609         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12610         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12611         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12612         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12613         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12614         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12615         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12616         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12617
12618 2011-10-15  Bruno Haible  <bruno@clisp.org>
12619
12620         vasnprintf: Fix comments.
12621         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12622
12623 2011-10-14  Bruno Haible  <bruno@clisp.org>
12624
12625         Tests for module 'integer_length_ll'.
12626         * modules/integer_length_ll-tests: New file.
12627         * tests/test-integer_length_ll.c: New file.
12628
12629         New module 'integer_length_ll'.
12630         * lib/integer_length_ll.c: New file.
12631         * modules/integer_length_ll: New file.
12632
12633 2011-10-14  Bruno Haible  <bruno@clisp.org>
12634
12635         Tests for module 'integer_length_l'.
12636         * modules/integer_length_l-tests: New file.
12637         * tests/test-integer_length_l.c: New file.
12638
12639         New module 'integer_length_l'.
12640         * lib/integer_length_l.c: New file.
12641         * modules/integer_length_l: New file.
12642
12643 2011-10-14  Bruno Haible  <bruno@clisp.org>
12644
12645         Tests for module 'integer_length'.
12646         * modules/integer_length-tests: New file.
12647         * tests/test-integer_length.c: New file.
12648
12649         New module 'integer_length'.
12650         * lib/integer_length.h: New file.
12651         * lib/integer_length.c: New file.
12652         * modules/integer_length: New file.
12653
12654 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12655
12656         popen: Fix dependency conditions.
12657         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12658
12659 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12660
12661         perror: Fix autoconf test.
12662         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12663         <stdlib.h> and <string.h>.
12664
12665 2011-10-14  Bruno Haible  <bruno@clisp.org>
12666
12667         ffsl: Optimize on 64-bit platforms.
12668         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12669         unrolling.
12670
12671 2011-10-13  Bruno Haible  <bruno@clisp.org>
12672
12673         ffsl: Optimize on 32-bit platforms.
12674         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12675         use ffs() without a loop.
12676
12677         ffsl, ffsll: Optimize for GCC.
12678         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12679         * lib/ffsl.c (GCC_BUILTIN): New macro.
12680         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12681
12682 2011-10-13  Bruno Haible  <bruno@clisp.org>
12683
12684         ffs, bcopy, memset: Support symbol renaming via config.h.
12685         * lib/ffs.c: Include <config.h>.
12686         * lib/bcopy.c: Likewise.
12687         * lib/memset.c: Likewise.
12688
12689 2011-10-10  Bruno Haible  <bruno@clisp.org>
12690
12691         atanl: Simplify for platforms where 'long double' == 'double'.
12692         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12693         alternative implementation.
12694         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12695         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12696         * modules/atanl (Depends-on): Add atan. Update conditions.
12697
12698 2011-10-10  Bruno Haible  <bruno@clisp.org>
12699
12700         acosl: Simplify for platforms where 'long double' == 'double'.
12701         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12702         alternative implementation.
12703         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12704         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12705         * modules/acosl (Depends-on): Add acos. Update conditions.
12706
12707 2011-10-10  Bruno Haible  <bruno@clisp.org>
12708
12709         asinl: Simplify for platforms where 'long double' == 'double'.
12710         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12711         alternative implementation.
12712         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12713         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12714         * modules/asinl (Depends-on): Add asin. Update conditions.
12715
12716 2011-10-10  Bruno Haible  <bruno@clisp.org>
12717
12718         tanl: Simplify for platforms where 'long double' == 'double'.
12719         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12720         implementation.
12721         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12722         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12723         * modules/tanl (Depends-on): Add tan. Update conditions.
12724         (configure.ac): Don't compile trigl.c if
12725         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12726
12727 2011-10-10  Bruno Haible  <bruno@clisp.org>
12728
12729         cosl: Simplify for platforms where 'long double' == 'double'.
12730         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12731         implementation.
12732         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12733         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12734         * modules/cosl (Depends-on): Add cos. Update conditions.
12735         (configure.ac): Don't compile sincosl.c and trigl.c if
12736         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12737
12738 2011-10-10  Bruno Haible  <bruno@clisp.org>
12739
12740         sinl: Simplify for platforms where 'long double' == 'double'.
12741         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12742         implementation.
12743         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12744         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12745         * modules/sinl (Depends-on): Add sin. Update conditions.
12746         (configure.ac): Don't compile sincosl.c and trigl.c if
12747         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12748
12749 2011-10-10  Bruno Haible  <bruno@clisp.org>
12750
12751         logl: Simplify for platforms where 'long double' == 'double'.
12752         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12753         implementation.
12754         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12755         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12756         * modules/logl (Depends-on): Add log. Update conditions.
12757
12758 2011-10-10  Bruno Haible  <bruno@clisp.org>
12759
12760         expl: Simplify for platforms where 'long double' == 'double'.
12761         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12762         implementation.
12763         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12764         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12765         * modules/expl (Depends-on): Add exp. Update conditions.
12766
12767 2011-10-10  Bruno Haible  <bruno@clisp.org>
12768
12769         sqrtl: Simplify for platforms where 'long double' == 'double'.
12770         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12771         alternative implementation.
12772         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12773         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12774         * modules/sqrtl (Depends-on): Update conditions.
12775
12776 2011-10-10  Bruno Haible  <bruno@clisp.org>
12777
12778         ldexpl: Simplify for platforms where 'long double' == 'double'.
12779         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12780         alternative implementation.
12781         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12782         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12783         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12784
12785 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12786
12787         ffsll: set correct witness
12788         * modules/ffsll (configure.ac): Fix typo.
12789
12790 2011-10-10  Bruno Haible  <bruno@clisp.org>
12791
12792         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12793         * lib/printf-frexpl.c: Include <config.h>.
12794         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12795         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12796         second time.
12797         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12798         gl_LONG_DOUBLE_VS_DOUBLE.
12799         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12800         conditions.
12801
12802 2011-10-10  Bruno Haible  <bruno@clisp.org>
12803
12804         frexpl: Simplify for platforms where 'long double' == 'double'.
12805         * lib/frexpl.c: Include <config.h>.
12806         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12807         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12808         time.
12809         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12810         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12811         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12812         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12813         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12814         conditions.
12815
12816 2011-10-10  Jim Meyering  <meyering@redhat.com>
12817
12818         test-renameat: don't leave behind a temporary file
12819         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12820           ERROR: files left in build directory after distclean:
12821           ./gltests/test-renameat.too
12822           make[1]: *** [distcleancheck] Error 1
12823         Reported by Tom G. Christensen.
12824
12825 2011-10-09  Bruno Haible  <bruno@clisp.org>
12826
12827         rint: Determine RINT_LIBM correctly on AIX 7.
12828         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12829         directly, not only through a function pointer. Also accept an optional
12830         4th argument with extra code.
12831         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12832         rintf() call by gcc when optimizing.
12833
12834         mathfunc.m4: Refactor.
12835         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12836         m4 variable.
12837
12838 2011-10-09  Bruno Haible  <bruno@clisp.org>
12839
12840         rintl: Simplify for platforms where 'long double' == 'double'.
12841         * lib/rintl.c: Include <config.h>.
12842         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12843         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12844         time.
12845         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12846         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12847         * modules/rintl (Depends-on): Add rint. Update conditions.
12848
12849 2011-10-09  Bruno Haible  <bruno@clisp.org>
12850
12851         roundl: Simplify for platforms where 'long double' == 'double'.
12852         * lib/roundl.c: Include <config.h>.
12853         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12854         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12855         time.
12856         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12857         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12858         * modules/roundl (Depends-on): Add round. Update conditions.
12859
12860 2011-10-09  Bruno Haible  <bruno@clisp.org>
12861
12862         truncl: Simplify for platforms where 'long double' == 'double'.
12863         * lib/truncl.c: Include <config.h>.
12864         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12865         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12866         time.
12867         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12868         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12869         * modules/truncl (Depends-on): Add trunc. Update conditions.
12870
12871 2011-10-09  Bruno Haible  <bruno@clisp.org>
12872
12873         ceill: Simplify for platforms where 'long double' == 'double'.
12874         * lib/ceill.c: Include <config.h>.
12875         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12876         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12877         time.
12878         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12879         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12880         * modules/ceill (Depends-on): Add ceil. Update conditions.
12881
12882 2011-10-09  Bruno Haible  <bruno@clisp.org>
12883
12884         floorl: Simplify for platforms where 'long double' == 'double'.
12885         * lib/floorl.c: Include <config.h>.
12886         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12887         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12888         time.
12889         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12890         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12891         * modules/floorl (Depends-on): Add floor. Update conditions.
12892
12893 2011-10-09  Bruno Haible  <bruno@clisp.org>
12894
12895         rint: Fix ordering constraints.
12896         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12897         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12898         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12899
12900 2011-10-09  Bruno Haible  <bruno@clisp.org>
12901
12902         copysignl: Simplify for platforms where 'long double' == 'double'.
12903         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12904         alternative.
12905         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12906         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12907         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12908
12909 2011-10-09  Bruno Haible  <bruno@clisp.org>
12910
12911         Tests for module 'rintl'.
12912         * modules/rintl-tests: New file.
12913         * tests/test-rintl.c: New file.
12914
12915         New module 'rintl'.
12916         * lib/math.in.h (rintl): New declaration.
12917         * lib/rintl.c: New file.
12918         * m4/rintl.m4: New file.
12919         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12921         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12922         * modules/rintl: New file.
12923         * tests/test-math-c++.cc: Check the declaration of rintl.
12924         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12925         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12926         * doc/posix-functions/rintl.texi: Mention the new module.
12927
12928 2011-10-09  Bruno Haible  <bruno@clisp.org>
12929
12930         Tests for module 'rintf'.
12931         * modules/rintf-tests: New file.
12932         * tests/test-rintf.c: New file.
12933
12934         New module 'rintf'.
12935         * lib/math.in.h (rintf): New declaration.
12936         * lib/rintf.c: New file.
12937         * m4/rintf.m4: New file.
12938         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12940         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12941         * modules/rintf: New file.
12942         * tests/test-math-c++.cc: Check the declaration of rintf.
12943         * doc/posix-functions/rintf.texi: Mention the new module.
12944
12945 2011-10-09  Bruno Haible  <bruno@clisp.org>
12946
12947         rint: Support for MSVC.
12948         * lib/math.in.h (rint): New declaration.
12949         * lib/rint.c: New file.
12950         * m4/rint.m4: New file.
12951         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12953         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12954         * modules/rint (Description): Fix.
12955         (Files): Add lib/rint.c, m4/rint.m4.
12956         (Depends-on): Add math.
12957         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12958         gl_MATH_MODULE_INDICATOR.
12959         * tests/test-math-c++.cc: Check the declaration of rint.
12960         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12961         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12962         * doc/posix-functions/rint.texi: Mention the replacement provided by
12963         the module.
12964
12965         rint tests: More tests.
12966         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12967         minus-zero.h, infinity.h, nan.h.
12968         (main): Skip the test if the current rounding mode is not standard. Add
12969         tests for negative numbers, minus zero, infinity, NaN.
12970         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12971         tests/nan.h.
12972         (Depends-on): Add isnand-nolibm.
12973
12974 2011-10-09  Bruno Haible  <bruno@clisp.org>
12975
12976         Tests for module 'copysignl'.
12977         * modules/copysignl-tests: New file.
12978         * tests/test-copysignl.c: New file.
12979
12980         New module 'copysignl'.
12981         * lib/math.in.h (copysignl): New declaration.
12982         * lib/copysignl.c: New file.
12983         * m4/copysignl.m4: New file.
12984         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12986         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12987         HAVE_COPYSIGNL.
12988         * modules/copysignl: New file.
12989         * tests/test-math-c++.cc: Check the declaration of copysignl.
12990         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12991         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12992         * doc/posix-functions/copysignl.texi: Mention the new module.
12993
12994 2011-10-09  Bruno Haible  <bruno@clisp.org>
12995
12996         Tests for module 'copysignf'.
12997         * modules/copysignf-tests: New file.
12998         * tests/test-copysignf.c: New file.
12999
13000         New module 'copysignf'.
13001         * lib/math.in.h (copysignf): New declaration.
13002         * lib/copysignf.c: New file.
13003         * m4/copysignf.m4: New file.
13004         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
13005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
13006         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
13007         HAVE_COPYSIGNF.
13008         * modules/copysignf: New file.
13009         * tests/test-math-c++.cc: Check the declaration of copysignf.
13010         * doc/posix-functions/copysignf.texi: Mention the new module.
13011
13012 2011-10-09  Bruno Haible  <bruno@clisp.org>
13013
13014         Ensure that HAVE_* variables are set to 1 before they are set to 0.
13015         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
13016         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
13017         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13018         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
13019         gl_SIGNAL_H_DEFAULTS.
13020
13021 2011-10-09  Bruno Haible  <bruno@clisp.org>
13022
13023         poll: Make macro safer.
13024         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
13025         ac_cv_header_poll_h is not set.
13026
13027 2011-10-09  Bruno Haible  <bruno@clisp.org>
13028
13029         copysign: Provide replacement.
13030         * lib/math.in.h (copysign): New declaration.
13031         * lib/copysign.c: New file.
13032         * m4/copysign.m4: New file.
13033         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
13034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
13035         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
13036         HAVE_COPYSIGN.
13037         * modules/copysign (Description): Clarify.
13038         (Files): Add lib/copysign.c, m4/copysign.m4.
13039         (Depends-on): Add math, signbit.
13040         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
13041         gl_MATH_MODULE_INDICATOR.
13042         * tests/test-math-c++.cc: Check the declaration of copysign.
13043         * doc/posix-functions/copysign.texi: Mention the effects of the module
13044         on Minix and MSVC.
13045
13046 2011-10-09  Bruno Haible  <bruno@clisp.org>
13047
13048         isinf: Ensure macro on AIX 5.1.
13049         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
13050         macro.
13051         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
13052
13053 2011-10-09  Bruno Haible  <bruno@clisp.org>
13054
13055         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
13056         * modules/snprintf-posix-tests (configure.ac): Require
13057         gl_LONG_DOUBLE_VS_DOUBLE.
13058         * modules/sprintf-posix-tests (configure.ac): Likewise.
13059         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
13060         * modules/vasprintf-posix-tests (configure.ac): Likewise.
13061         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
13062         * modules/vsprintf-posix-tests (configure.ac): Likewise.
13063         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
13064         tests on platforms where 'long double' is the same as 'double'.
13065         * tests/test-sprintf-posix.h (test_function): Likewise.
13066         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13067         * tests/test-vasprintf-posix.c (test_function): Likewise.
13068
13069         *printf: Fix for platforms where 'long double' == 'double'.
13070         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13071         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
13072         * modules/dprintf-posix (Files): Add m4/math_h.m4.
13073         * modules/fprintf-posix (Files): Likewise.
13074         * modules/obstack-printf-posix (Files): Likewise.
13075         * modules/snprintf-posix (Files): Likewise.
13076         * modules/sprintf-posix (Files): Likewise.
13077         * modules/vasnprintf (Files): Likewise.
13078         * modules/vasnprintf-posix (Files): Likewise.
13079         * modules/vasprintf-posix (Files): Likewise.
13080         * modules/vdprintf-posix (Files): Likewise.
13081         * modules/vfprintf-posix (Files): Likewise.
13082         * modules/vsnprintf-posix (Files): Likewise.
13083         * modules/vsprintf-posix (Files): Likewise.
13084         * modules/unistdio/u8-vasnprintf (Files): Likewise.
13085         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
13086         * modules/unistdio/u16-vasnprintf (Files): Likewise.
13087         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
13088         * modules/unistdio/u32-vasnprintf (Files): Likewise.
13089         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
13090         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
13091
13092         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
13093         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
13094         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
13095         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
13096         'long double'.
13097         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
13098
13099         isinf: Fix for platforms where 'long double' == 'double'.
13100         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13101         Don't blindly assume 80-bit 'long double'.
13102
13103         isfinite: Fix for platforms where 'long double' == 'double'.
13104         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13105         Don't blindly assume 80-bit 'long double'.
13106
13107         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
13108         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
13109         * modules/isfinite-tests (configure.ac): Require
13110         gl_LONG_DOUBLE_VS_DOUBLE.
13111         * modules/isinf-tests (configure.ac): Likewise.
13112         * modules/isnan-tests (configure.ac): Likewise.
13113         * modules/isnanl-tests (configure.ac): Likewise.
13114         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
13115         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
13116         tests on platforms where 'long double' is the same as 'double'.
13117         * tests/test-isinf.c (test_isinfl): Likewise.
13118         * tests/test-isnan.c (test_long_double): Likewise.
13119         * tests/test-isnanl.h (main): Likewise.
13120
13121 2011-10-08  Bruno Haible  <bruno@clisp.org>
13122
13123         Tests for module 'tanhf'.
13124         * modules/tanhf-tests: New file.
13125         * tests/test-tanhf.c: New file.
13126
13127         New module 'tanhf'.
13128         * lib/math.in.h (tanhf): New declaration.
13129         * lib/tanhf.c: New file.
13130         * m4/tanhf.m4: New file.
13131         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
13132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
13133         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
13134         * modules/tanhf: New file.
13135         * tests/test-math-c++.cc: Check the declaration of tanhf.
13136         * doc/posix-functions/tanhf.texi: Mention the new module.
13137
13138         tanh: Use a .m4 file.
13139         * m4/tanh.m4: New file.
13140         * modules/tanh (Files): Add it.
13141         (configure.ac): Just invoke gl_FUNC_TANH.
13142
13143 2011-10-08  Bruno Haible  <bruno@clisp.org>
13144
13145         Tests for module 'coshf'.
13146         * modules/coshf-tests: New file.
13147         * tests/test-coshf.c: New file.
13148
13149         New module 'coshf'.
13150         * lib/math.in.h (coshf): New declaration.
13151         * lib/coshf.c: New file.
13152         * m4/coshf.m4: New file.
13153         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13155         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13156         * modules/coshf: New file.
13157         * tests/test-math-c++.cc: Check the declaration of coshf.
13158         * doc/posix-functions/coshf.texi: Mention the new module.
13159
13160         cosh: Use a .m4 file.
13161         * m4/cosh.m4: New file.
13162         * modules/cosh (Files): Add it.
13163         (configure.ac): Just invoke gl_FUNC_COSH.
13164
13165 2011-10-08  Bruno Haible  <bruno@clisp.org>
13166
13167         Tests for module 'sinhf'.
13168         * modules/sinhf-tests: New file.
13169         * tests/test-sinhf.c: New file.
13170
13171         New module 'sinhf'.
13172         * lib/math.in.h (sinhf): New declaration.
13173         * lib/sinhf.c: New file.
13174         * m4/sinhf.m4: New file.
13175         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13177         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13178         * modules/sinhf: New file.
13179         * tests/test-math-c++.cc: Check the declaration of sinhf.
13180         * doc/posix-functions/sinhf.texi: Mention the new module.
13181
13182         sinh: Use a .m4 file.
13183         * m4/sinh.m4: New file.
13184         * modules/sinh (Files): Add it.
13185         (configure.ac): Just invoke gl_FUNC_SINH.
13186
13187 2011-10-08  Bruno Haible  <bruno@clisp.org>
13188
13189         Tests for module 'atan2f'.
13190         * modules/atan2f-tests: New file.
13191         * tests/test-atan2f.c: New file.
13192
13193         New module 'atan2f'.
13194         * lib/math.in.h (atan2f): New declaration.
13195         * lib/atan2f.c: New file.
13196         * m4/atan2f.m4: New file.
13197         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13199         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13200         * modules/atan2f: New file.
13201         * tests/test-math-c++.cc: Check the declaration of atan2f.
13202         * doc/posix-functions/atan2f.texi: Mention the new module.
13203
13204         atan2: Use a .m4 file.
13205         * m4/atan2.m4: New file.
13206         * modules/atan2 (Files): Add it.
13207         (configure.ac): Just invoke gl_FUNC_ATAN2.
13208
13209 2011-10-08  Bruno Haible  <bruno@clisp.org>
13210
13211         Tests for module 'atanf'.
13212         * modules/atanf-tests: New file.
13213         * tests/test-atanf.c: New file.
13214
13215         New module 'atanf'.
13216         * lib/math.in.h (atanf): New declaration.
13217         * lib/atanf.c: New file.
13218         * m4/atanf.m4: New file.
13219         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13221         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13222         * modules/atanf: New file.
13223         * tests/test-math-c++.cc: Check the declaration of atanf.
13224         * doc/posix-functions/atanf.texi: Mention the new module.
13225
13226         atan: Use a .m4 file.
13227         * m4/atan.m4: New file.
13228         * modules/atan (Files): Add it.
13229         (configure.ac): Just invoke gl_FUNC_ATAN.
13230
13231 2011-10-08  Bruno Haible  <bruno@clisp.org>
13232
13233         Tests for module 'acosf'.
13234         * modules/acosf-tests: New file.
13235         * tests/test-acosf.c: New file.
13236
13237         New module 'acosf'.
13238         * lib/math.in.h (acosf): New declaration.
13239         * lib/acosf.c: New file.
13240         * m4/acosf.m4: New file.
13241         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13243         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13244         * modules/acosf: New file.
13245         * tests/test-math-c++.cc: Check the declaration of acosf.
13246         * doc/posix-functions/acosf.texi: Mention the new module.
13247
13248         acos: Use a .m4 file.
13249         * m4/acos.m4: New file.
13250         * modules/acos (Files): Add it.
13251         (configure.ac): Just invoke gl_FUNC_ACOS.
13252
13253 2011-10-08  Bruno Haible  <bruno@clisp.org>
13254
13255         Tests for module 'asinf'.
13256         * modules/asinf-tests: New file.
13257         * tests/test-asinf.c: New file.
13258
13259         New module 'asinf'.
13260         * lib/math.in.h (asinf): New declaration.
13261         * lib/asinf.c: New file.
13262         * m4/asinf.m4: New file.
13263         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13265         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13266         * modules/asinf: New file.
13267         * tests/test-math-c++.cc: Check the declaration of asinf.
13268         * doc/posix-functions/asinf.texi: Mention the new module.
13269
13270         asin: Use a .m4 file.
13271         * m4/asin.m4: New file.
13272         * modules/asin (Files): Add it.
13273         (configure.ac): Just invoke gl_FUNC_ASIN.
13274
13275 2011-10-08  Bruno Haible  <bruno@clisp.org>
13276
13277         Tests for module 'tanf'.
13278         * modules/tanf-tests: New file.
13279         * tests/test-tanf.c: New file.
13280
13281         New module 'tanf'.
13282         * lib/math.in.h (tanf): New declaration.
13283         * lib/tanf.c: New file.
13284         * m4/tanf.m4: New file.
13285         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13287         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13288         * modules/tanf: New file.
13289         * tests/test-math-c++.cc: Check the declaration of tanf.
13290         * doc/posix-functions/tanf.texi: Mention the new module.
13291
13292         tan: Use a .m4 file.
13293         * m4/tan.m4: New file.
13294         * modules/tan (Files): Add it.
13295         (configure.ac): Just invoke gl_FUNC_TAN.
13296
13297 2011-10-08  Bruno Haible  <bruno@clisp.org>
13298
13299         Tests for module 'cosf'.
13300         * modules/cosf-tests: New file.
13301         * tests/test-cosf.c: New file.
13302
13303         New module 'cosf'.
13304         * lib/math.in.h (cosf): New declaration.
13305         * lib/cosf.c: New file.
13306         * m4/cosf.m4: New file.
13307         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13309         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13310         * modules/cosf: New file.
13311         * tests/test-math-c++.cc: Check the declaration of cosf.
13312         * doc/posix-functions/cosf.texi: Mention the new module.
13313
13314         cos: Use a .m4 file.
13315         * m4/cos.m4: New file.
13316         * modules/cos (Files): Add it.
13317         (configure.ac): Just invoke gl_FUNC_COS.
13318
13319 2011-10-08  Bruno Haible  <bruno@clisp.org>
13320
13321         Tests for module 'sinf'.
13322         * modules/sinf-tests: New file.
13323         * tests/test-sinf.c: New file.
13324
13325         New module 'sinf'.
13326         * lib/math.in.h (sinf): New declaration.
13327         * lib/sinf.c: New file.
13328         * m4/sinf.m4: New file.
13329         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13331         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13332         * modules/sinf: New file.
13333         * tests/test-math-c++.cc: Check the declaration of sinf.
13334         * doc/posix-functions/sinf.texi: Mention the new module.
13335
13336         sin: Use a .m4 file.
13337         * m4/sin.m4: New file.
13338         * modules/sin (Files): Add it.
13339         (configure.ac): Just invoke gl_FUNC_SIN.
13340
13341 2011-10-08  Bruno Haible  <bruno@clisp.org>
13342
13343         Tests for module 'powf'.
13344         * modules/powf-tests: New file.
13345         * tests/test-powf.c: New file.
13346
13347         New module 'powf'.
13348         * lib/math.in.h (powf): New declaration.
13349         * lib/powf.c: New file.
13350         * m4/powf.m4: New file.
13351         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13353         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13354         * modules/powf: New file.
13355         * tests/test-math-c++.cc: Check the declaration of powf.
13356         * doc/posix-functions/powf.texi: Mention the new module.
13357
13358         pow: Use a .m4 file.
13359         * m4/pow.m4: New file.
13360         * modules/pow (Files): Add it.
13361         (configure.ac): Just invoke gl_FUNC_POW.
13362
13363 2011-10-08  Bruno Haible  <bruno@clisp.org>
13364
13365         Tests for module 'log10f'.
13366         * modules/log10f-tests: New file.
13367         * tests/test-log10f.c: New file.
13368
13369         New module 'log10f'.
13370         * lib/math.in.h (log10f): New declaration.
13371         * lib/log10f.c: New file.
13372         * m4/log10f.m4: New file.
13373         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13375         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13376         * modules/log10f: New file.
13377         * tests/test-math-c++.cc: Check the declaration of log10f.
13378         * doc/posix-functions/log10f.texi: Mention the new module.
13379
13380         log10: Use a .m4 file.
13381         * m4/log10.m4: New file.
13382         * modules/log10 (Files): Add it.
13383         (configure.ac): Just invoke gl_FUNC_LOG10.
13384
13385 2011-10-08  Bruno Haible  <bruno@clisp.org>
13386
13387         Tests for module 'logf'.
13388         * modules/logf-tests: New file.
13389         * tests/test-logf.c: New file.
13390
13391         New module 'logf'.
13392         * lib/math.in.h (logf): New declaration.
13393         * lib/logf.c: New file.
13394         * m4/logf.m4: New file.
13395         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13397         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13398         * modules/logf: New file.
13399         * tests/test-math-c++.cc: Check the declaration of logf.
13400         * doc/posix-functions/logf.texi: Mention the new module.
13401
13402         log: Use a .m4 file.
13403         * m4/log.m4: New file.
13404         * modules/log (Files): Add it.
13405         (configure.ac): Just invoke gl_FUNC_LOG.
13406
13407 2011-10-08  Bruno Haible  <bruno@clisp.org>
13408
13409         Tests for module 'expf'.
13410         * modules/expf-tests: New file.
13411         * tests/test-expf.c: New file.
13412
13413         New module 'expf'.
13414         * lib/math.in.h (expf): New declaration.
13415         * lib/expf.c: New file.
13416         * m4/expf.m4: New file.
13417         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13419         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13420         * modules/expf: New file.
13421         * tests/test-math-c++.cc: Check the declaration of expf.
13422         * doc/posix-functions/expf.texi: Mention the new module.
13423
13424         exp: Use a .m4 file.
13425         * m4/exp.m4: New file.
13426         * modules/exp (Files): Add it.
13427         (configure.ac): Just invoke gl_FUNC_EXP.
13428
13429 2011-10-08  Bruno Haible  <bruno@clisp.org>
13430
13431         Tests for module 'sqrtf'.
13432         * modules/sqrtf-tests: New file.
13433         * tests/test-sqrtf.c: New file.
13434
13435         New module 'sqrtf'.
13436         * lib/math.in.h (sqrtf): New declaration.
13437         * lib/sqrtf.c: New file.
13438         * m4/sqrtf.m4: New file.
13439         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13441         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13442         * modules/sqrtf: New file.
13443         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13444         * doc/posix-functions/sqrtf.texi: Mention the new module.
13445
13446 2011-10-08  Bruno Haible  <bruno@clisp.org>
13447
13448         Tests: Avoid link failures w.r.t. libintl.
13449         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13450         $(LIBINTL).
13451         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13452         $(LIBINTL).
13453         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13454         against $(LIBINTL).
13455         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13456         $(LIBINTL).
13457         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13458         $(LIBINTL).
13459         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13460
13461 2011-10-08  Bruno Haible  <bruno@clisp.org>
13462
13463         pow tests: Defeat compiler optimizations.
13464         * tests/test-pow.c (main): Assign arguments to x and y before use.
13465
13466 2011-10-08  Bruno Haible  <bruno@clisp.org>
13467
13468         gnulib-tool: Improve last commit.
13469         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13470         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13471         ignore dependencies that are not among the modules list.
13472
13473 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13474
13475         gnulib-tool: don't follow dependencies to avoided modules
13476         This fixes a bug that is related to the previous one.
13477         * gnulib-tool (func_modules_transitive_closure)
13478         (func_emit_autoconf_snippets):
13479         Check whether a dependency is acceptable before using it.
13480         (--extract-dependencies): Report an error if --avoid is also used,
13481         since this combination of options is not yet supported.
13482
13483         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13484         Problem reported by Peter Dyballa in
13485         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13486         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13487         when echoing "$condition".
13488
13489 2011-10-07  Bruno Haible  <bruno@clisp.org>
13490
13491         Fix documentation about math functions on MacOS X.
13492         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13493         MacOS X 10.5.
13494         * doc/posix-functions/fdim.texi: Likewise.
13495         * doc/posix-functions/feclearexcept.texi: Likewise.
13496         * doc/posix-functions/fegetenv.texi: Likewise.
13497         * doc/posix-functions/fegetround.texi: Likewise.
13498         * doc/posix-functions/feholdexcept.texi: Likewise.
13499         * doc/posix-functions/feraiseexcept.texi: Likewise.
13500         * doc/posix-functions/fesetenv.texi: Likewise.
13501         * doc/posix-functions/fesetround.texi: Likewise.
13502         * doc/posix-functions/fetestexcept.texi: Likewise.
13503         * doc/posix-functions/feupdateenv.texi: Likewise.
13504         * doc/posix-functions/fmax.texi: Likewise.
13505         * doc/posix-functions/fmin.texi: Likewise.
13506         * doc/posix-functions/log2.texi: Likewise.
13507         * doc/posix-functions/modff.texi: Likewise.
13508         * doc/posix-functions/nan.texi: Likewise.
13509         * doc/posix-functions/nanf.texi: Likewise.
13510         * doc/posix-functions/nextafterf.texi: Likewise.
13511         * doc/posix-functions/remquo.texi: Likewise.
13512
13513 2011-10-07  Bruno Haible  <bruno@clisp.org>
13514
13515         modff: Drop assumption about library that defines modff.
13516         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13517         AC_CHECK_FUNCS.
13518         * modules/modff (Files): Add m4/mathfunc.m4.
13519
13520 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13521
13522         raise tests: Avoid a GCC warning.
13523         * tests/test-raise.c (handler): Use _Noreturn.
13524
13525 2011-10-07  Bruno Haible  <bruno@clisp.org>
13526
13527         Tests for module 'ldexpf'.
13528         * modules/ldexpf-tests: New file.
13529         * tests/test-ldexpf.c: New file.
13530
13531         New module 'ldexpf'.
13532         * lib/math.in.h (ldexpf): New declaration.
13533         * lib/ldexpf.c: New file.
13534         * m4/ldexpf.m4: New file.
13535         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13537         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13538         * modules/ldexpf: New file.
13539         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13540         * doc/posix-functions/ldexpf.texi: Mention the new module.
13541
13542 2011-10-06  Bruno Haible  <bruno@clisp.org>
13543
13544         frexpf: Work around problems on IRIX and mingw.
13545         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13547         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13548         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13549         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13550         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13551         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13552
13553 2011-10-06  Bruno Haible  <bruno@clisp.org>
13554
13555         fabsf: Drop assumption about library that defines fabsf.
13556         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13557         AC_CHECK_FUNCS.
13558         * modules/fabsf (Files): Add m4/mathfunc.m4.
13559
13560 2011-10-06  Bruno Haible  <bruno@clisp.org>
13561
13562         frexpf: Drop assumption about library that defines frexpf.
13563         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13564         'int *', 'float *', 'long double *', 'float', 'long double'.
13565         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13566         AC_CHECK_FUNCS.
13567         * modules/frexpf (Files): Add m4/mathfunc.m4.
13568
13569         Tests for module 'frexpf'.
13570         * modules/frexpf-tests: New file.
13571         * tests/test-frexpf.c: New file.
13572
13573         New module 'frexpf'.
13574         * lib/math.in.h (frexpf): New declaration.
13575         * lib/frexpf.c: New file.
13576         * m4/frexpf.m4: New file.
13577         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13578         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13579         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13580         * modules/frexpf: New file.
13581         * tests/test-math-c++.cc: Check the declaration of frexpf.
13582         * doc/posix-functions/frexpf.texi: Mention the new module.
13583
13584 2011-10-06  Bruno Haible  <bruno@clisp.org>
13585
13586         math: Sort function declarations of math.in.h.
13587         * lib/math.in.h (frexp, logb): Move declarations.
13588
13589 2011-10-05  Bruno Haible  <bruno@clisp.org>
13590
13591         Tests for module 'modff'.
13592         * modules/modff-tests: New file.
13593         * tests/test-modff.c: New file.
13594
13595         New module 'modff'.
13596         * lib/math.in.h (modff): New declaration.
13597         * lib/modff.c: New file.
13598         * m4/modff.m4: New file.
13599         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13601         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13602         * modules/modff: New file.
13603         * tests/test-math-c++.cc: Check the declaration of modff.
13604         * doc/posix-functions/modff.texi: Mention the new module.
13605
13606         modf tests: Make test sharper.
13607         * tests/test-modf.c (main): Strengthen upper bound.
13608
13609         modf: Use a .m4 file.
13610         * m4/modf.m4: New file.
13611         * modules/modf (Files): Add it.
13612         (configure.ac): Just invoke gl_FUNC_MODF.
13613
13614 2011-10-05  Bruno Haible  <bruno@clisp.org>
13615
13616         Tests for module 'fmodf'.
13617         * modules/fmodf-tests: New file.
13618         * tests/test-fmodf.c: New file.
13619
13620         New module 'fmodf'.
13621         * lib/math.in.h (fmodf): New declaration.
13622         * lib/fmodf.c: New file.
13623         * m4/fmodf.m4: New file.
13624         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13626         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13627         * modules/fmodf: New file.
13628         * tests/test-math-c++.cc: Check the declaration of fmodf.
13629         * doc/posix-functions/fmodf.texi: Mention the new module.
13630
13631         fmod: Use a .m4 file.
13632         * m4/fmod.m4: New file.
13633         * modules/fmod (Files): Add it.
13634         (configure.ac): Just invoke gl_FUNC_FMOD.
13635
13636 2011-10-05  Bruno Haible  <bruno@clisp.org>
13637
13638         Tests for module 'fabsf'.
13639         * modules/fabsf-tests: New file.
13640         * tests/test-fabsf.c: New file.
13641
13642         New module 'fabsf'.
13643         * lib/math.in.h (fabsf): New declaration.
13644         * lib/fabsf.c: New file.
13645         * m4/fabsf.m4: New file.
13646         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13648         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13649         * modules/fabsf: New file.
13650         * tests/test-math-c++.cc: Check the declaration of fabsf.
13651         * doc/posix-functions/fabsf.texi: Mention the new module.
13652
13653         fabs: Use a .m4 file.
13654         * m4/fabs.m4: New file.
13655         * modules/fabs (Files): Add it.
13656         (configure.ac): Just invoke gl_FUNC_FABS.
13657
13658 2011-10-05  Jim Meyering  <meyering@redhat.com>
13659
13660         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13661         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13662         ls -lL regression introduced in coreutils-8.12, it does so at the
13663         cost of an additional stat call in the common case.  Besides, now
13664         that the kernel change that prompted commit 95f7c57f has been reverted
13665         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13666         we have no use for commit 95f7c57f, "file-has-acl: use
13667         acl_extended_file_nofollow if available".
13668
13669 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13670
13671         file-has-acl: revert unintended change in behavior of ls -L
13672         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13673         derived from...
13674         (file_has_acl): ...code here.  Call it.
13675         This problem was introduced with 2011-07-22 commit 95f7c57f,
13676         "file-has-acl: use acl_extended_file_nofollow if available".
13677         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13678
13679 2011-10-03  Bruno Haible  <bruno@clisp.org>
13680
13681         poll: Avoid link errors on MSVC.
13682         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13683         * modules/poll (Depends-on): Add sockets.
13684         (Link): New section.
13685         * NEWS: Mention the change.
13686         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13687         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13688         $(LIB_POLL) instead of $(LIBSOCKET).
13689
13690 2011-10-03  Bruno Haible  <bruno@clisp.org>
13691
13692         sys_select tests: Fix link error on MSVC 9.
13693         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13694         with $(LIB_SELECT) instead of $(LIBSOCKET).
13695
13696 2011-10-03  Bruno Haible  <bruno@clisp.org>
13697
13698         sys_select: Fix compilation error on mingw.
13699         * lib/sys_select.in.h: On native Windows, include <io.h>.
13700
13701 2011-10-03  Bruno Haible  <bruno@clisp.org>
13702
13703         wmemset: Support for MSVC.
13704         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13705         whether wmemset() exists.
13706
13707 2011-10-03  Bruno Haible  <bruno@clisp.org>
13708
13709         wmemmove: Support for MSVC.
13710         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13711         whether wmemmove() exists.
13712
13713 2011-10-03  Bruno Haible  <bruno@clisp.org>
13714
13715         wmemcpy: Support for MSVC.
13716         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13717         whether wmemcpy() exists.
13718
13719 2011-10-03  Bruno Haible  <bruno@clisp.org>
13720
13721         wmemcmp: Support for MSVC.
13722         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13723         whether wmemcmp() exists.
13724
13725 2011-10-03  Bruno Haible  <bruno@clisp.org>
13726
13727         wmemchr: Support for MSVC.
13728         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13729         whether wmemchr() exists.
13730
13731 2011-10-03  Bruno Haible  <bruno@clisp.org>
13732
13733         glthread/*, strsignal: Support for MSVC.
13734         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13735         including <winsock.h> on MSVC 9.
13736         * lib/glthread/lock.h: Likewise.
13737         * lib/glthread/thread.h: Likewise.
13738         * lib/glthread/tls.h: Likewise.
13739         * lib/glthread/yield.h: Likewise.
13740         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13741         if HAVE_UNISTD_H is false.
13742         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13743
13744 2011-10-03  Bruno Haible  <bruno@clisp.org>
13745
13746         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13747         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13748         Set to 100000.
13749
13750 2011-10-03  Bruno Haible  <bruno@clisp.org>
13751
13752         acl: Fix specification.
13753         * lib/file-has-acl.c (file_has_acl): Fix specification.
13754
13755 2011-10-03  Bruno Haible  <bruno@clisp.org>
13756
13757         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13758         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13759         (compute_curr_prefix, shared_library_fullname,
13760         find_shared_library_fullname, get_shared_library_fullname, relocate):
13761         Use it together with PIC && INSTALLDIR.
13762         Reported by <jojelino@gmail.com>
13763         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13764
13765 2011-10-01  Jim Meyering  <meyering@redhat.com>
13766
13767         maint.mk: adjust a release-related rule not to require use of gzip
13768         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13769         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13770         projects that build only .tar.xz files.  Also fix an erroneous test.
13771
13772         test-linkat: don't leave behind a temporary file
13773         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13774         Otherwise, coreutils' "make distcheck" would fail with this:
13775           Only in /c/cu/tests/torture/coreutils/test/\
13776             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13777           make[2]: *** [my-distcheck] Error 1
13778
13779         float, math: add omitted file
13780         * lib/itold.c: Add file, required for yesterday's float change.
13781
13782 2011-10-01  Bruno Haible  <bruno@clisp.org>
13783
13784         isinf: Fix for OpenBSD/x86.
13785         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13786         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13787         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13788
13789 2011-10-01  Bruno Haible  <bruno@clisp.org>
13790
13791         isfinite: Fix syntax error in configure test.
13792         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13793
13794         isfinite: Fix typo.
13795         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13796         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13797
13798 2011-10-01  Bruno Haible  <bruno@clisp.org>
13799
13800         nonblocking tests: Fix test failure on Linux/IA-64.
13801         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13802         Set to 270000.
13803
13804 2011-10-01  Bruno Haible  <bruno@clisp.org>
13805
13806         mkfifoat tests: Fix a test failure on mingw.
13807         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13808         with error ENOSYS.
13809
13810 2011-09-30  Bruno Haible  <bruno@clisp.org>
13811
13812         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13813         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13814         'long double'. Set REPLACE_ITOLD.
13815         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13816         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13817         * lib/itold.c: New file.
13818         * modules/float (Files): Add lib/itold.c.
13819         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13820         (Makefile.am): Substitute REPLACE_ITOLD.
13821         * modules/math (Depends-on): Add float.
13822         (Makefile.am): Substitute REPLACE_ITOLD.
13823         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13824         * doc/posix-headers/math.texi: Likewise.
13825         * doc/posix-functions/logl.texi: Likewise.
13826
13827 2011-09-30  Bruno Haible  <bruno@clisp.org>
13828
13829         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13830         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13831         Set to 140000.
13832
13833 2011-09-30  Bruno Haible  <bruno@clisp.org>
13834
13835         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13836         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13837         invocation, say "right after AC_PROG_CC_STDC", not "right after
13838         AC_PROG_CC".
13839         Reported by Gary V. Vaughan <gary@gnu.org>.
13840
13841 2011-09-30  Bruno Haible  <bruno@clisp.org>
13842
13843         Centralize C99 requirement.
13844         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13845         * modules/stdarg (configure.ac-early): Invoke it instead of
13846         AC_PROG_CC_STDC.
13847         Reported by Gary V. Vaughan and Paul Eggert.
13848
13849 2011-09-29  Bruno Haible  <bruno@clisp.org>
13850
13851         float: Fix LDBL_MAX value on Linux/PowerPC.
13852         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13853         on Linux/PowerPC.
13854         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13855         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13856         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13857         platform.
13858         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13859
13860 2011-09-29  Bruno Haible  <bruno@clisp.org>
13861
13862         doc: Improve doc about gl_EARLY.
13863         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13864         AC_PROG_CC_STDC invocation.
13865         Reported by Gary V. Vaughan <gary@gnu.org>.
13866
13867 2011-09-28  Bruno Haible  <bruno@clisp.org>
13868
13869         fgetc, fputc, fread, fwrite tests: Fix link error.
13870         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13871         on non-MSVC platforms.
13872         * tests/test-fputc.c (main): Likewise.
13873         * tests/test-fread.c (main): Likewise.
13874         * tests/test-fwrite.c (main): Likewise.
13875         Reported by Jim Meyering.
13876
13877 2011-09-27  Bruno Haible  <bruno@clisp.org>
13878
13879         fputc, fwrite tests: Avoid test failure on MSVC.
13880         * tests/test-fgetc.c: Include msvc-inval.h.
13881         (main): Invoke gl_msvc_inval_ensure_handler.
13882         * tests/test-fputc.c: Include msvc-inval.h.
13883         (main): Invoke gl_msvc_inval_ensure_handler.
13884         * tests/test-fread.c: Include msvc-inval.h.
13885         (main): Invoke gl_msvc_inval_ensure_handler.
13886         * tests/test-fwrite.c: Include msvc-inval.h.
13887         (main): Invoke gl_msvc_inval_ensure_handler.
13888         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13889         * modules/fputc-tests (Depends-on): Likewise.
13890         * modules/fread-tests (Depends-on): Likewise.
13891         * modules/fwrite-tests (Depends-on): Likewise.
13892
13893 2011-09-27  Bruno Haible  <bruno@clisp.org>
13894
13895         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13896         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13897         (raise): Remove older, duplicated declaration.
13898         (_gl_raise_SIGPIPE): New declaration.
13899         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13900         (rpl_raise): Remove function.
13901         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13902         a gnulib-defined SIGPIPE here.
13903         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13904         'sigprocmask' has detected missing signal-blocking and the module
13905         'sigpipe' is enabled.
13906         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13907
13908 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13909
13910         base64-tests: avoid memory leak
13911         * tests/test-base64.c (main): Plug memory leak.
13912
13913         base32: new module
13914         * modules/base32: New module.
13915         * lib/base32.c: New file.
13916         * lib/base32.h: Likewise.
13917         * m4/base32.m4: Likewise.
13918         * modules/base32-tests: New test.
13919         * tests/test-base32.c: Likewise.
13920         * MODULES.html.sh (Misc): Mention it.
13921
13922 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         gnulib: use more-standard license notice wording
13925         * gnulib-tool (func_emit_copyright_notice): When emitting a
13926         license notice into a file, use the standard wording as suggested
13927         by the current information for GNU maintainers, except say "file"
13928         rather than "program".  The new wording gives a license version
13929         number, which addresses an issue raised by Glenn Morris in
13930         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13931         * m4/onceonly.m4: Use that same wording here, too.
13932
13933         dup2: minor simplification
13934         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13935         as lib/dup2.c no longer uses 'inline'.
13936
13937 2011-09-25  Bruno Haible  <bruno@clisp.org>
13938
13939         strings: Fix compilation error on MSVC.
13940         * lib/strings.in.h: Include <stddef.h> for size_t.
13941
13942 2011-09-25  Bruno Haible  <bruno@clisp.org>
13943
13944         fflush et al.: Document limitation on MSVC.
13945         * doc/posix-functions/fflush.texi: Document possible crash in handling
13946         mode other than DEFAULT_HANDLING.
13947         * doc/posix-functions/fgetc.texi: Likewise.
13948         * doc/posix-functions/fputc.texi: Likewise.
13949         * doc/posix-functions/fread.texi: Likewise.
13950         * doc/posix-functions/fwrite.texi: Likewise.
13951
13952 2011-09-25  Bruno Haible  <bruno@clisp.org>
13953
13954         msvc-inval: Allow three invalid parameter handling modes.
13955         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13956         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13957         macros.
13958         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13959         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13960         SANE_LIBRARY_HANDLING as a no-op.
13961         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13962         <stdlib.h>.
13963         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13964
13965 2011-09-25  Bruno Haible  <bruno@clisp.org>
13966
13967         msvc-inval: Make handler multithread-safe.
13968         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13969         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13970         declarations.
13971         (gl_msvc_inval_current): New declaration.
13972         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13973         Operate on the structure returned by gl_msvc_inval_current().
13974         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13975         Remove varaiables.
13976         (tls_index, tls_initialized): New variables.
13977         (not_per_thread): New variable.
13978         (gl_msvc_inval_current): New function.
13979         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13980         returned by gl_msvc_inval_current().
13981
13982 2011-09-25  Bruno Haible  <bruno@clisp.org>
13983
13984         msvc-inval: Install handler globally.
13985         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13986         !_MSC_VER.
13987         (gl_msvc_invalid_parameter_handler): Remove declaration.
13988         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13989         declarations.
13990         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13991         Install the handler globally, don't uninstall it.
13992         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13993         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13994         currently valid, call RaiseException instead.
13995         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13996         for !_MSC_VER.
13997
13998 2011-09-25  Bruno Haible  <bruno@clisp.org>
13999
14000         strerror_r-posix: Fix for MSVC 9.
14001         * lib/strerror_r.c (local_snprintf): New function.
14002         (snprintf): Define to local_snprintf, not to _snprintf.
14003
14004 2011-09-25  Bruno Haible  <bruno@clisp.org>
14005
14006         ftruncate: Support for MSVC 9.
14007         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
14008         (chsize_nothrow): New function.
14009         (chsize): Redefine as a macro.
14010         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
14011         * modules/ftruncate (Depends-on): Add msvc-inval.
14012
14013 2011-09-25  Bruno Haible  <bruno@clisp.org>
14014
14015         New module 'fstat'.
14016         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
14017         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
14018         * lib/fchdir.c (rpl_fstat): Remove function.
14019         * m4/fstat.m4: New file.
14020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
14021         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
14022         declared.
14023         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
14024         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
14025         * modules/fstat: New file.
14026         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
14027         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
14028         is set.
14029         * doc/posix-functions/fstat.texi: Mention the new module and the
14030         problem on MSVC.
14031         * NEWS: Mention the change.
14032         * modules/acl (Depends-on): Add fstat.
14033         * modules/chdir-safer (Depends-on): Likewise.
14034         * modules/chown (Depends-on): Likewise.
14035         * modules/copy-file (Depends-on): Likewise.
14036         * modules/fchdir (Depends-on): Likewise.
14037         * modules/fdopendir (Depends-on): Likewise.
14038         * modules/fopen (Depends-on): Likewise.
14039         * modules/fts (Depends-on): Likewise.
14040         * modules/getcwd (Depends-on): Likewise.
14041         * modules/isapipe (Depends-on): Likewise.
14042         * modules/linkat (Depends-on): Likewise.
14043         * modules/lseek (Depends-on): Likewise.
14044         * modules/mkdir-p (Depends-on): Likewise.
14045         * modules/open (Depends-on): Likewise.
14046         * modules/openat (Depends-on): Likewise.
14047         * modules/read-file (Depends-on): Likewise.
14048         * modules/renameat (Depends-on): Likewise.
14049         * modules/utimens (Depends-on): Likewise.
14050
14051 2011-09-25  Bruno Haible  <bruno@clisp.org>
14052
14053         linkat: Fix compilation on MSVC 9.
14054         * lib/linkat.c: Don't include <stdint.h>.
14055
14056 2011-09-25  Bruno Haible  <bruno@clisp.org>
14057
14058         fclose: Support for MSVC 9.
14059         * lib/fclose.c: Include msvc-inval.h.
14060         (fclose_nothrow): New function.
14061         (rpl_fclose): Use it.
14062         * modules/fclose (Depends-on): Add msvc-inval.
14063         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
14064
14065 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14066
14067         dup2: minor simplifications
14068         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
14069         that it's a performance win.
14070         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
14071         ! defined __CYGWIN__)" to "ifdef F_GETFL".
14072
14073 2011-09-24  Jim Meyering  <meyering@redhat.com>
14074
14075         test-futimens: avoid a warning from gcc -Wshadow
14076         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
14077         to avoid a shadowing warning.
14078
14079 2011-09-24  Bruno Haible  <bruno@clisp.org>
14080
14081         fdopen: Support for MSVC 9.
14082         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
14083         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
14084         * lib/fdopen.c: Include msvc-inval.h.
14085         (fdopen_nothrow): New function.
14086         (rpl_fdopen): Use it.
14087         * modules/fdopen (Depends-on): Add msvc-inval.
14088         * modules/fclose-tests (Depends-on): Add fdopen.
14089         * modules/fflush-tests (Depends-on): Likewise.
14090         * modules/fgetc-tests (Depends-on): Likewise.
14091         * modules/fputc-tests (Depends-on): Likewise.
14092         * modules/fread-tests (Depends-on): Likewise.
14093         * modules/freopen-tests (Depends-on): Likewise.
14094         * modules/fseeko-tests (Depends-on): Likewise.
14095         * modules/ftello-tests (Depends-on): Likewise.
14096         * modules/fwrite-tests  (Depends-on): Likewise.
14097         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
14098
14099 2011-09-24  Bruno Haible  <bruno@clisp.org>
14100
14101         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
14102         * modules/fgetc-tests (Depends-on): Add unistd.
14103         * modules/fputc-tests (Depends-on): Likewise.
14104         * modules/fread-tests (Depends-on): Likewise.
14105         * modules/fwrite-tests (Depends-on): Likewise.
14106
14107 2011-09-24  Bruno Haible  <bruno@clisp.org>
14108
14109         dup: Simplify autoconf test.
14110         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
14111         on gl_MSVC_INVAL's result.
14112
14113 2011-09-24  Bruno Haible  <bruno@clisp.org>
14114
14115         Tests for function fwrite().
14116         * modules/fwrite-tests: New file.
14117         * tests/test-fwrite.c: New file.
14118         * modules/stdio-tests (Depends-on): Add fwrite-tests.
14119
14120         Tests for function fread().
14121         * modules/fread-tests: New file.
14122         * tests/test-fread.c: New file.
14123         * modules/stdio-tests (Depends-on): Add fread-tests.
14124
14125         Activate fputc tests.
14126         * modules/stdio-tests (Depends-on): Add fputc-tests.
14127
14128         Enhance fgetc, fputc tests.
14129         * tests/test-fgetc.c (main): Also test the stream's error indicator.
14130         * tests/test-fputc.c (main): Likewise.
14131
14132 2011-09-24  Bruno Haible  <bruno@clisp.org>
14133
14134         write: Support for MSVC 9.
14135         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14136         is not 1.
14137         * lib/write.c (write_nothrow): New function.
14138         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
14139         not 1. Use write_nothrow.
14140         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
14141         invalid parameter handler.
14142         (gl_PREREQ_WRITE): New macro.
14143         * modules/write (Depends-on): Add msvc-inval.
14144         (configure.ac): Invoke gl_PREREQ_WRITE.
14145         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14146
14147 2011-09-24  Bruno Haible  <bruno@clisp.org>
14148
14149         read: Fix last commit.
14150         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14151
14152 2011-09-24  Bruno Haible  <bruno@clisp.org>
14153
14154         dup2: Fix last commit.
14155         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14156         (rpl_dup2): Disable fcntl workaround on native Windows.
14157
14158         sigprocmask: Make code safer.
14159         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14160         section that changes macro definitions for this compilation unit.
14161
14162 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14163
14164         dup2: clarify by coalescing Windows-specific material
14165         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14166         "msvc-nothrow.h"' to the Windows-specific section, so that the
14167         Emacs source need not contain these include files.
14168         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14169         Windows-specific fixes into this function rather than just the
14170         nothrow fix, as this shortens and clarifies the code.  Always
14171         define as a function, as that's a bit cleaner than having it be
14172         sometimes a function and sometimes a macro.
14173         (rpl_dup2): Move the Windows-specific stuff out of here and into
14174         ms_windows_dup2.  Don't protect the Haiku-related fix with
14175         "#if !defined __linux__", as the same code also works around
14176         a Linux kernel bug, and it doesn't add any system calls on any
14177         platform.  Add comment about FreeBSD 6.1.
14178
14179         sigprocmask: move #include directive
14180         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14181         Windows-specific section, so that the Emacs source need not
14182         contain msvc-inval.h.
14183
14184 2011-09-23  Bruno Haible  <bruno@clisp.org>
14185
14186         read: Support for MSVC 9.
14187         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14188         is not 1.
14189         * lib/read.c (read_nothrow): New function.
14190         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14191         read_nothrow.
14192         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14193         invalid parameter handler.
14194         (gl_PREREQ_READ): New macro.
14195         * modules/read (Depends-on): Add msvc-inval.
14196         (configure.ac): Invoke gl_PREREQ_READ.
14197         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14198
14199 2011-09-23  Bruno Haible  <bruno@clisp.org>
14200
14201         close: Support for MSVC 9.
14202         * lib/close.c: Include <errno.h>, msvc-inval.h.
14203         (close_nothrow): New function.
14204         (rpl_close): Use it.
14205         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14206         invalid parameter handler.
14207         * modules/close (Depends-on): Add msvc-inval.
14208         * modules/dup2-tests (Depends-on): Add close.
14209         * modules/dup3-tests (Depends-on): Likewise.
14210         * modules/fcntl-tests (Depends-on): Likewise.
14211         * modules/spawn-pipe-tests (Depends-on): Likewise.
14212         * modules/unistd-safer-tests (Depends-on): Likewise.
14213         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14214
14215 2011-09-23  Bruno Haible  <bruno@clisp.org>
14216
14217         New module 'dup'.
14218         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14219         Allow replacement.
14220         * lib/dup.c: New file.
14221         * lib/fchdir.c (rpl_dup): Remove function.
14222         * m4/dup.m4: New file.
14223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14224         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14225         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14226         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14227         * modules/dup: New file.
14228         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14229         'dup' module is in use.
14230         * modules/fdopendir (Depends-on): Add dup.
14231         * modules/fdutimensat-tests (Depends-on): Likewise.
14232         * modules/fts (Depends-on): Likewise.
14233         * modules/futimens-tests (Depends-on): Likewise.
14234         * modules/posix_spawnp-tests (Depends-on): Likewise.
14235         * modules/unistd-safer-tests (Depends-on): Likewise.
14236         * modules/utimens-tests (Depends-on): Likewise.
14237         * doc/posix-functions/dup.texi: Mention the new module and the problem
14238         on MSVC.
14239
14240 2011-09-23  Bruno Haible  <bruno@clisp.org>
14241
14242         getdtablesize: Support for MSVC 9.
14243         * lib/getdtablesize.c: Include msvc-inval.h.
14244         (_setmaxstdio_nothrow): New function.
14245         (_setmaxstdio): Redefine it.
14246         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14247         * modules/getdtablesize (Depends-on): Add msvc-inval.
14248         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14249
14250 2011-09-23  Bruno Haible  <bruno@clisp.org>
14251
14252         signal-h: Rename from signal.
14253         * modules/signal-h: Renamed from modules/signal.
14254         * modules/pthread_sigmask (Depends-on): Update.
14255         * modules/raise (Depends-on): Likewise.
14256         * modules/sigaction (Depends-on): Likewise.
14257         * modules/sigpipe (Depends-on): Likewise.
14258         * modules/sigprocmask (Depends-on): Likewise.
14259         * modules/sys_select (Depends-on): Likewise.
14260         * modules/signal-h-tests: Renamed from modules/signal-tests.
14261         (Files, Depends-on, Makefile.am): Update.
14262         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14263         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14264         (Files, Makefile.am): Update.
14265         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14266         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14267         * modules/signal: New placeholder file.
14268         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14269         * doc/posix-headers/signal.texi: Update.
14270         * NEWS: Mention the change.
14271
14272 2011-09-23  Bruno Haible  <bruno@clisp.org>
14273
14274         sigprocmask: Avoid crashes through signal() on MSVC 9.
14275         * lib/sigprocmask.c: Include msvc-inval.h.
14276         (signal_nothrow): New function.
14277         (signal): Redefine it.
14278         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14279         * modules/sigprocmask (Depends-on): Add msvc-inval.
14280         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14281
14282 2011-09-23  Bruno Haible  <bruno@clisp.org>
14283
14284         Tests for module 'raise'.
14285         * modules/raise-tests: New file.
14286         * tests/test-raise.c: New file.
14287
14288         raise: Support for MSVC.
14289         * lib/signal.in.h (raise): New declaration.
14290         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14291         for native Windows platforms.
14292         * m4/raise.m4: New file.
14293         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14294         HAVE_RAISE, REPLACE_RAISE.
14295         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14296         REPLACE_RAISE.
14297         * modules/raise (Status, Notice): Remove fields.
14298         (Files): Add m4/raise.m4.
14299         (Depends-on): Add signal, msvc-inval.
14300         (configure.ac): Use the common idioms.
14301         (Maintainer): Add me.
14302         * tests/test-signal-c++.cc: Check the signature of raise.
14303         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14304
14305 2011-09-23  Bruno Haible  <bruno@clisp.org>
14306
14307         pipe2: Fix compilation on pre-C99 compilers.
14308         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14309
14310 2011-09-23  Bruno Haible  <bruno@clisp.org>
14311
14312         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14313         * lib/msvc-nothrow.h: New file.
14314         * lib/msvc-nothrow.c: New file.
14315         * m4/msvc-nothrow.m4: New file.
14316         * modules/msvc-nothrow: New file.
14317         * lib/dup2.c: Include msvc-nothrow.h.
14318         (rpl_dup2): No need to protect _get_osfhandle call here.
14319         * lib/accept4.c: Include msvc-nothrow.h.
14320         * lib/error.c: Likewise.
14321         * lib/fcntl.c: Likewise.
14322         * lib/lseek.c: Likewise.
14323         * lib/nonblocking.c: Likewise.
14324         * lib/poll.c: Likewise.
14325         * lib/read.c: Likewise.
14326         * lib/select.c: Likewise.
14327         * lib/sockets.h: Likewise.
14328         * lib/sockets.c: Likewise.
14329         * lib/stdio-read.c: Likewise.
14330         * lib/stdio-write.c: Likewise.
14331         * lib/write.c: Likewise.
14332         * lib/w32sock.h: Likewise.
14333         * lib/w32spawn.h: Likewise.
14334         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14335         * lib/fsync.c: Likewise.
14336         * lib/isapipe.c: Likewise.
14337         * modules/dup2 (Depends-on): Add msvc-nothrow.
14338         * modules/accept4 (Depends-on): Likewise.
14339         * modules/error (Depends-on): Likewise.
14340         * modules/fcntl (Depends-on): Likewise.
14341         * modules/lseek (Depends-on): Likewise.
14342         * modules/nonblocking (Depends-on): Likewise.
14343         * modules/poll (Depends-on): Likewise.
14344         * modules/read (Depends-on): Likewise.
14345         * modules/select (Depends-on): Likewise.
14346         * modules/sockets (Depends-on): Likewise.
14347         * modules/sigpipe (Depends-on): Likewise.
14348         * modules/write (Depends-on): Likewise.
14349         * modules/accept (Depends-on): Likewise.
14350         * modules/bind (Depends-on): Likewise.
14351         * modules/connect (Depends-on): Likewise.
14352         * modules/gethostname (Depends-on): Likewise.
14353         * modules/getpeername (Depends-on): Likewise.
14354         * modules/getsockname (Depends-on): Likewise.
14355         * modules/getsockopt (Depends-on): Likewise.
14356         * modules/ioctl (Depends-on): Likewise.
14357         * modules/listen (Depends-on): Likewise.
14358         * modules/recv (Depends-on): Likewise.
14359         * modules/recvfrom (Depends-on): Likewise.
14360         * modules/send (Depends-on): Likewise.
14361         * modules/sendto (Depends-on): Likewise.
14362         * modules/setsockopt (Depends-on): Likewise.
14363         * modules/shutdown (Depends-on): Likewise.
14364         * modules/socket (Depends-on): Likewise.
14365         * modules/execute (Depends-on): Likewise.
14366         * modules/spawn-pipe (Depends-on): Likewise.
14367         * modules/flock (Depends-on): Likewise.
14368         * modules/fsync (Depends-on): Likewise.
14369         * modules/isapipe (Depends-on): Likewise.
14370         * tests/test-cloexec.c: Include msvc-nothrow.h.
14371         * tests/test-dup-safer.c: Likewise.
14372         * tests/test-dup2.c: Likewise.
14373         * tests/test-dup3.c: Likewise.
14374         * tests/test-fcntl.c: Likewise.
14375         * tests/test-pipe.c: Likewise.
14376         * tests/test-pipe2.c: Likewise.
14377         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14378         * modules/unistd-safer-tests (Depends-on): Likewise.
14379         * modules/dup2-tests (Depends-on): Likewise.
14380         * modules/dup3-tests (Depends-on): Likewise.
14381         * modules/fcntl-tests (Depends-on): Likewise.
14382         * modules/pipe-posix-tests (Depends-on): Likewise.
14383         * modules/pipe2-tests (Depends-on): Likewise.
14384
14385 2011-09-23  Bruno Haible  <bruno@clisp.org>
14386
14387         dup2: Make code more maintainable.
14388         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14389         (rpl_dup2): Use it.
14390         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14391         * modules/dup2 (configure.ac): Invoke it.
14392         Reported by Paul Eggert.
14393
14394 2011-09-23  Bruno Haible  <bruno@clisp.org>
14395
14396         msvc-inval: Fix compilation error.
14397         * lib/msvc-inval.h: Include <excpt.h>.
14398
14399 2011-09-23  Bruno Haible  <bruno@clisp.org>
14400
14401         mkdir: Tweak for MSVC 9.
14402         * lib/sys_stat.in.h: Update comments.
14403         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14404
14405         Tests for module 'chdir'.
14406         * modules/chdir-tests: New file.
14407         * tests/test-chdir.c: New file.
14408
14409         New module 'chdir'.
14410         * modules/chdir: New file.
14411         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14412         (chdir): New declaration.
14413         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14414         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14415         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14416         * tests/test-unistd-c++.cc: Check signature of chdir.
14417         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14418         * modules/chdir-long (Depends-on): Add chdir.
14419         * modules/fchdir (Depends-on): Likewise.
14420         * modules/rename (Depends-on): Likewise.
14421         * modules/savewd (Depends-on): Likewise.
14422
14423         rmdir: Support for mingw, MSVC 9.
14424         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14425         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14426
14427         getcwd: Tweak for MSVC 9.
14428         * lib/unistd.in.h: Update comments.
14429         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14430
14431 2011-09-22  Bruno Haible  <bruno@clisp.org>
14432
14433         strerror_r-posix: Avoid a link error on MSVC.
14434         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14435         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14436
14437 2011-09-22  Bruno Haible  <bruno@clisp.org>
14438
14439         select: Avoid link errors on MSVC.
14440         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14441         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14442         * modules/pselect (Link): Likewise.
14443         * NEWS: Mention the change.
14444         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14445         test-select-stdin against $(LIB_SELECT).
14446         * modules/pselect-tests (Makefile.am): Link test-pselect against
14447         $(LIB_SELECT).
14448
14449 2011-09-22  Bruno Haible  <bruno@clisp.org>
14450
14451         select: Avoid compilation error on MSVC.
14452         * lib/select.c: Don't include <stdbool.h>.
14453
14454 2011-09-21  Bruno Haible  <bruno@clisp.org>
14455
14456         Consolidate all uses of PATH_MAX in *.m4 files.
14457         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14458         macros.
14459         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14460         and gl_PATHMAX_SNIPPET.
14461         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14462         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14463         * modules/chdir-long (Files): Add m4/pathmax.m4.
14464         * modules/getcwd (Files): Likewise.
14465
14466 2011-09-21  Bruno Haible  <bruno@clisp.org>
14467
14468         ftruncate: Un-deprecate, concentrate on Win32 support.
14469         * modules/ftruncate (Status, Notice): Remove sections.
14470         (Depends-on): Add largefile.
14471         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14472         non-mingw platforms.
14473         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14474         include <io.h>.
14475         * modules/perror-tests (Depends-on): Add ftruncate.
14476         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14477         'ftruncate' module.
14478
14479 2011-09-21  Bruno Haible  <bruno@clisp.org>
14480
14481         Add dependencies to new dirent related modules.
14482         * modules/opendir (Depends-on): Add closedir.
14483         * modules/getcwd (Depends-on): Add opendir, closedir.
14484         * modules/dirent-safer-tests (Depends-on): Likewise.
14485         * modules/fdopendir-tests (Depends-on): Likewise.
14486         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14487         * modules/renameat-tests (Depends-on): Likewise.
14488
14489 2011-09-21  Bruno Haible  <bruno@clisp.org>
14490
14491         opendir: Avoid compilation error on mingw.
14492         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14493         * modules/opendir (Depends-on): Add unistd.
14494
14495 2011-09-21  Bruno Haible  <bruno@clisp.org>
14496
14497         ftruncate tests: Avoid a test failure on mingw.
14498         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14499
14500 2011-09-21  Bruno Haible  <bruno@clisp.org>
14501
14502         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14503         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14504         native Windows.
14505
14506 2011-09-21  Bruno Haible  <bruno@clisp.org>
14507
14508         New module 'fdopen'.
14509         * lib/stdio.in.h (fdopen): New declaration.
14510         * lib/fdopen.c: New file.
14511         * m4/fdopen.m4: New file.
14512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14513         REPLACE_FDOPEN.
14514         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14515         REPLACE_FDOPEN.
14516         * modules/fdopen: New file.
14517         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14518         * tests/test-stdio-c++.cc: Check signature of fdopen.
14519         * doc/posix-functions/fdopen.texi: Mention the new module.
14520
14521 2011-09-21  Bruno Haible  <bruno@clisp.org>
14522
14523         unlockpt tests: Avoid test failure on NetBSD 5.1.
14524         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14525         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14526
14527 2011-09-21  Bruno Haible  <bruno@clisp.org>
14528
14529         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14530         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14531         * tests/test-getlogin_r.c (main): Likewise.
14532
14533 2011-09-20  Bruno Haible  <bruno@clisp.org>
14534
14535         time tests: Don't require pid_t.
14536         * doc/posix-headers/time.texi: Revert last change.
14537         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14538         * tests/test-time.c: Comment out the check for pid_t.
14539
14540 2011-09-20  Bruno Haible  <bruno@clisp.org>
14541
14542         fsync tests: Avoid a test failure on mingw.
14543         * tests/test-fsync.c (main): Allow a failure with EIO.
14544
14545 2011-09-20  Bruno Haible  <bruno@clisp.org>
14546
14547         euidaccess: Update comments.
14548         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14549
14550 2011-09-20  Bruno Haible  <bruno@clisp.org>
14551
14552         Ensure EBADF returns for socket functions on mingw.
14553         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14554         descriptor is invalid.
14555         * lib/bind.c (rpl_bind): Likewise.
14556         * lib/connect.c (rpl_connect): Likewise.
14557         * lib/getpeername.c (rpl_getpeername): Likewise.
14558         * lib/getsockname.c (rpl_getsockname): Likewise.
14559         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14560         * lib/listen.c (rpl_listen): Likewise.
14561         * lib/recv.c (rpl_recv): Likewise.
14562         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14563         * lib/send.c (rpl_send): Likewise.
14564         * lib/sendto.c (rpl_sendto): Likewise.
14565         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14566         * lib/shutdown.c (rpl_shutdown): Likewise.
14567
14568 2011-09-20  Bruno Haible  <bruno@clisp.org>
14569
14570         select tests: EBADF tests.
14571         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14572         test_bad_fd): New functions.
14573         (test_function): Invoke also test_bad_fd.
14574
14575 2011-09-20  Bruno Haible  <bruno@clisp.org>
14576
14577         Tests for module 'posix_spawn_file_actions_addopen.
14578         * modules/posix_spawn_file_actions_addopen-tests: New file.
14579         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14580
14581         Tests for module 'posix_spawn_file_actions_adddup2'.
14582         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14583         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14584
14585         Tests for module 'posix_spawn_file_actions_addclose'.
14586         * modules/posix_spawn_file_actions_addclose-tests: New file.
14587         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14588
14589 2011-09-20  Bruno Haible  <bruno@clisp.org>
14590
14591         Tests for module 'unlockpt'.
14592         * modules/unlockpt-tests: New file.
14593         * tests/test-unlockpt.c: New file.
14594         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14595
14596         Tests for module 'grantpt'.
14597         * modules/grantpt-tests: New file.
14598         * tests/test-grantpt.c: New file.
14599         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14600
14601 2011-09-20  Bruno Haible  <bruno@clisp.org>
14602
14603         freopen tests: EBADF tests.
14604         * tests/test-freopen.c: Include errno.h, unistd.h.
14605         (main): Add tests for EBADF, commented out for the moment.
14606
14607         fclose tests: EBADF tests.
14608         * tests/test-fclose.c (main): Add tests for EBADF.
14609
14610         fflush tests: EBADF tests.
14611         * tests/test-fflush.c: Include errno.h, macros.h.
14612         (main): Add tests for EBADF.
14613
14614         ftello tests: EBADF tests.
14615         * tests/test-ftello4.sh: New file.
14616         * tests/test-ftello4.c: New file.
14617         * modules/ftello-tests (Files): Add them.
14618         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14619
14620         fseeko tests: EBADF tests.
14621         * tests/test-fseeko4.sh: New file.
14622         * tests/test-fseeko4.c: New file.
14623         * modules/fseeko-tests (Files): Add them.
14624         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14625
14626         Tests for function fputc().
14627         * modules/fputc-tests: New file.
14628         * tests/test-fputc.c: New file.
14629         * modules/stdio-tests (Depends-on): Add fputc-tests.
14630
14631         Tests for function fgetc().
14632         * modules/fgetc-tests: New file.
14633         * tests/test-fgetc.c: New file.
14634         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14635
14636         Tests for function fdopen().
14637         * modules/fdopen-tests: New file.
14638         * tests/test-fdopen.c: New file.
14639         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14640
14641         Tests for module 'vdprintf'.
14642         * modules/vdprintf-tests: New file.
14643         * tests/test-vdprintf.c: New file.
14644
14645         Tests for module 'dprintf'.
14646         * modules/dprintf-tests: New file.
14647         * tests/test-dprintf.c: New file.
14648
14649 2011-09-20  Bruno Haible  <bruno@clisp.org>
14650
14651         Tests for module 'ioctl'.
14652         * modules/ioctl-tests: New file.
14653         * tests/test-ioctl.c: New file.
14654
14655 2011-09-20  Bruno Haible  <bruno@clisp.org>
14656
14657         fcntl tests: EBADF tests.
14658         * tests/test-fcntl.c (main): Add more tests for EBADF.
14659
14660 2011-09-20  Bruno Haible  <bruno@clisp.org>
14661
14662         utimensat tests: EBADF tests.
14663         * tests/test-utimensat.c (main): Add tests for EBADF.
14664
14665         renameat tests: EBADF tests.
14666         * tests/test-renameat.c (main): Add tests for EBADF.
14667
14668         mkfifoat tests: EBADF tests.
14669         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14670
14671         readlinkat tests: EBADF tests.
14672         * tests/test-readlinkat.c (main): Add tests for EBADF.
14673
14674         symlinkat tests: EBADF tests.
14675         * tests/test-symlinkat.c (main): Add tests for EBADF.
14676
14677         linkat tests: EBADF tests.
14678         * tests/test-linkat.c (main): Add tests for EBADF.
14679
14680         Tests for module 'faccessat'.
14681         * modules/faccessat-tests: New file.
14682         * tests/test-faccessat.c: New file.
14683
14684         fdopendir tests: EBADF tests.
14685         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14686
14687         openat tests: EBADF tests.
14688         * tests/test-fchownat.c (main): Add tests for EBADF.
14689         * tests/test-fstatat.c (main): Likewise.
14690         * tests/test-mkdirat.c (main): Likewise.
14691         * tests/test-openat.c (main): Likewise.
14692         * tests/test-unlinkat.c (main): Likewise.
14693         * tests/test-fchmodat.c: New file.
14694         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14695         (Makefile.am): Also run 'test-fchmodat'.
14696
14697 2011-09-20  Bruno Haible  <bruno@clisp.org>
14698
14699         utimens, futimens, fdutimensat tests: EBADF tests.
14700         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14701
14702         Tests for function fstat().
14703         * modules/fstat-tests: New file.
14704         * tests/test-fstat.c: New file.
14705         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14706
14707 2011-09-20  Bruno Haible  <bruno@clisp.org>
14708
14709         test-ttyname_r tests: EBADF tests.
14710         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14711
14712         Tests for module 'isatty'.
14713         * modules/isatty-tests: New file.
14714         * tests/test-isatty.c: New file.
14715
14716         Tests for module 'write'.
14717         * modules/write-tests: New file.
14718         * tests/test-write.c: New file.
14719
14720         Tests for module 'read'.
14721         * modules/read-tests: New file.
14722         * tests/test-read.c: New file.
14723
14724         pwrite tests: EBADF tests.
14725         * tests/test-pwrite.c (main): Add tests for EBADF.
14726
14727         pread tests: EBADF tests.
14728         * tests/test-pread.c (main): Add tests for EBADF.
14729
14730         lseek tests: EBADF tests.
14731         * tests/test-lseek.c (main): Add more tests for EBADF.
14732
14733         Tests for module 'ftruncate'.
14734         * modules/ftruncate-tests: New file.
14735         * tests/test-ftruncate.sh: New file.
14736         * tests/test-ftruncate.c: New file.
14737
14738         fsync tests: EBADF tests.
14739         * tests/test-fsync.c (main): Add more tests for EBADF.
14740
14741         fdatasync tests: EBADF tests.
14742         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14743
14744         Tests for module 'fchown'.
14745         * modules/fchown-tests: New file.
14746         * tests/test-fchown.c: New file.
14747
14748         Tests for module 'fchmod'.
14749         * modules/fchmod-tests: New file.
14750         * tests/test-fchmod.c: New file.
14751
14752         fchdir tests: EBADF tests.
14753         * tests/test-fchdir.c (main): Add more tests for EBADF.
14754
14755         dup2 tests: EBADF tests.
14756         * tests/test-dup2.c (main): Add more tests for EBADF.
14757
14758         Tests for module 'dup'.
14759         * modules/dup-tests: New file.
14760         * tests/test-dup.c: New file.
14761
14762         Tests for module 'close'.
14763         * modules/close-tests: New file.
14764         * tests/test-close.c: New file.
14765
14766 2011-09-20  Bruno Haible  <bruno@clisp.org>
14767
14768         Tests for module 'shutdown'.
14769         * modules/shutdown-tests: New file.
14770         * tests/test-shutdown.c: New file.
14771
14772         Tests for module 'setsockopt'.
14773         * modules/setsockopt-tests: New file.
14774         * tests/test-setsockopt.c: New file.
14775
14776         Tests for module 'sendto'.
14777         * modules/sendto-tests: New file.
14778         * tests/test-sendto.c: New file.
14779
14780         Tests for module 'send'.
14781         * modules/send-tests: New file.
14782         * tests/test-send.c: New file.
14783
14784         Tests for module 'recvfrom'.
14785         * modules/recvfrom-tests: New file.
14786         * tests/test-recvfrom.c: New file.
14787
14788         Tests for module 'recv'.
14789         * modules/recv-tests: New file.
14790         * tests/test-recv.c: New file.
14791
14792         Tests for module 'listen'.
14793         * modules/listen-tests: New file.
14794         * tests/test-listen.c: New file.
14795
14796         Tests for module 'getsockopt'.
14797         * modules/getsockopt-tests: New file.
14798         * tests/test-getsockopt.c: New file.
14799
14800         Tests for module 'getsockname'.
14801         * modules/getsockname-tests: New file.
14802         * tests/test-getsockname.c: New file.
14803
14804         Tests for module 'getpeername'.
14805         * modules/getpeername-tests: New file.
14806         * tests/test-getpeername.c: New file.
14807
14808         Tests for module 'connect'.
14809         * modules/connect-tests: New file.
14810         * tests/test-connect.c: New file.
14811
14812         Tests for module 'bind'.
14813         * modules/bind-tests: New file.
14814         * tests/test-bind.c: New file.
14815
14816         accept4 tests: Fix for native Windows.
14817         * tests/test-accept4.c: Include sockets.h.
14818         (main): Invoke gl_sockets_startup.
14819         * modules/accept4-tests (Depends-on): Add sockets.
14820
14821         accept tests: Fix for native Windows.
14822         * tests/test-accept.c: Include sockets.h.
14823         (main): Invoke gl_sockets_startup.
14824         * modules/accept-tests (Depends-on): Add sockets.
14825
14826 2011-09-19  Bruno Haible  <bruno@clisp.org>
14827
14828         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14829         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14830         do...while(0).
14831         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14832         Suggested by Paul Eggert.
14833
14834 2011-09-19  Bruno Haible  <bruno@clisp.org>
14835
14836         sched: Ensure pid_t is defined.
14837         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14838         not define pid_t.
14839         * lib/sched.in.h: Include <sys/types.h>.
14840         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14841         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14842
14843 2011-09-19  Bruno Haible  <bruno@clisp.org>
14844
14845         msvc-inval: Ensure the entire expansion is a single statement.
14846         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14847         of braces.
14848
14849 2011-09-19  Jim Meyering  <meyering@redhat.com>
14850
14851         tests: use printf, not echo in init.sh's warn_ function
14852         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14853         misbehave when given strings containing a backslash or starting
14854         with e.g., -n.  James Youngman suggested setting IFS.
14855
14856 2011-09-19  Eric Blake  <eblake@redhat.com>
14857
14858         futimens: enhance test
14859         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14860         closed non-negative fd.
14861
14862         date: accept 'hence' as opposite of 'ago'
14863         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14864         * tests/test-parse-datetime.c (main): Enhance test.
14865         Suggested by Jesse Wilson.
14866
14867 2011-09-19  Jim Meyering  <meyering@redhat.com>
14868
14869         getcwd: don't fail in a deep directory on a system without openat
14870         Before this change, getcwd would fail when called from a directory
14871         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14872         the non-openat implementation used "..", "../..", "../../..", etc.
14873         to access ancestor directories.  With too many, that string would
14874         be longer than PATH_MAX.
14875         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14876         using gnulib's openat replacement.
14877         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14878         we're using the replacement function.
14879
14880 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14881
14882         maint.mk: avoid warnings from perl about missing files
14883         * top/maint.mk (def_sym_regex): Ignore files listed in
14884         $(gl_other_headers_) that do not exist, say because a project
14885         does not use a corresponding module.
14886
14887 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14888
14889         stat: use pathmax.h only if needed
14890         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14891         This is better for Emacs, which does not have a mingw port and
14892         therefore can avoid the pathmax module.
14893
14894         utimens: remove dependency on dup2
14895         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14896         to work around the Linux kernel bug.
14897         * modules/utimens (Depends-on): Remove dup2.
14898
14899 2011-09-18  Bruno Haible  <bruno@clisp.org>
14900
14901         inet_ntop, inet_pton: Look for it also in libresolv.
14902         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14903         libnsl, search for it in libresolv.
14904         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14905         Needed on Solaris 7.
14906
14907 2011-09-18  Bruno Haible  <bruno@clisp.org>
14908
14909         accept, accept4 tests: Avoid link error on Solaris.
14910         * modules/accept-tests (Makefile.am): Link test-accept against
14911         $(LIBSOCKET).
14912         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14913         $(LIBSOCKET).
14914
14915         accept4: Avoid link error on Solaris.
14916         * modules/accept4 (Link): New section.
14917
14918         socket functions: Avoid link errors on Solaris.
14919         * modules/accept (Depends-on): Add socketlib.
14920         (Link): New section.
14921         * modules/bind (Depends-on): Add socketlib.
14922         (Link): New section.
14923         * modules/connect (Depends-on): Add socketlib.
14924         (Link): New section.
14925         * modules/getpeername (Depends-on): Add socketlib.
14926         (Link): New section.
14927         * modules/getsockname (Depends-on): Add socketlib.
14928         (Link): New section.
14929         * modules/getsockopt (Depends-on): Add socketlib.
14930         (Link): New section.
14931         * modules/listen (Depends-on): Add socketlib.
14932         (Link): New section.
14933         * modules/recv (Depends-on): Add socketlib.
14934         (Link): New section.
14935         * modules/recvfrom (Depends-on): Add socketlib.
14936         (Link): New section.
14937         * modules/send (Depends-on): Add socketlib.
14938         (Link): New section.
14939         * modules/sendto (Depends-on): Add socketlib.
14940         (Link): New section.
14941         * modules/setsockopt (Depends-on): Add socketlib.
14942         (Link): New section.
14943         * modules/shutdown (Depends-on): Add socketlib.
14944         (Link): New section.
14945         * modules/socket (Depends-on): Add socketlib.
14946         (Link): New section.
14947
14948 2011-09-18  Bruno Haible  <bruno@clisp.org>
14949
14950         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14951         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14952         than 5 seconds.
14953         * modules/ptsname-tests (configure.ac): Test for alarm.
14954
14955 2011-09-18  Bruno Haible  <bruno@clisp.org>
14956
14957         posix_spawn_file_actions_add*: Fix module dependencies.
14958         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14959         posix_spawn_file_actions_init.
14960         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14961         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14962
14963 2011-09-18  Bruno Haible  <bruno@clisp.org>
14964
14965         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14966         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14967         * tests/test-renameat.c (main): Likewise.
14968
14969 2011-09-18  Bruno Haible  <bruno@clisp.org>
14970
14971         Tests for module 'accept4'.
14972         * modules/accept4-tests: New file.
14973         * tests/test-accept4.c: New file.
14974
14975 2011-09-18  Bruno Haible  <bruno@clisp.org>
14976
14977         Tests for module 'accept'.
14978         * modules/accept-tests: New file.
14979         * tests/test-accept.c: New file.
14980
14981 2011-09-18  Bruno Haible  <bruno@clisp.org>
14982
14983         dup2: Support for MSVC.
14984         * lib/dup2.c: Include msvc-inval.h.
14985         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14986         _get_osfhandle calls.
14987         * modules/dup2 (Depends-on): Add msvc-inval.
14988         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14989
14990         New module 'msvc-inval'.
14991         * lib/msvc-inval.h: New file.
14992         * lib/msvc-inval.c: New file.
14993         * m4/msvc-inval.m4: New file.
14994         * modules/msvc-inval: New file.
14995
14996 2011-09-17  Bruno Haible  <bruno@clisp.org>
14997
14998         Tests for module 'pclose'.
14999         * modules/pclose-tests: New file.
15000
15001         New module 'pclose'.
15002         * lib/stdio.in.h (pclose): New declaration.
15003         * lib/pclose.c: New file.
15004         * m4/pclose.m4: New file.
15005         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
15006         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
15007         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
15008         * modules/pclose: New file.
15009         * modules/popen-tests (Depends-on): Add pclose.
15010         * modules/popen-safer-tests (Depends-on): Likewise.
15011         * doc/posix-functions/pclose.texi: Mention the new module.
15012
15013 2011-09-17  Bruno Haible  <bruno@clisp.org>
15014
15015         popen: Support for MSVC.
15016         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
15017         * lib/popen.c (popen): Provide alternate definition for native Windows.
15018         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
15019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
15020         * modules/popen (Depends-on, configure.ac): Update condition.
15021         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
15022         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
15023         fixed.
15024
15025 2011-09-17  Bruno Haible  <bruno@clisp.org>
15026
15027         isnanl, isnand, isnanf: Work around MSVC bug.
15028         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
15029
15030 2011-09-17  Bruno Haible  <bruno@clisp.org>
15031
15032         sys_socket tests: Fix recent mistake.
15033         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
15034
15035 2011-09-17  Bruno Haible  <bruno@clisp.org>
15036
15037         putenv: Support for MSVC.
15038         * modules/putenv (Depends-on): Add environ.
15039         * lib/putenv.c (environ): Disable declaration.
15040         * lib/unistd.in.h: Update comment.
15041
15042 2011-09-17  Bruno Haible  <bruno@clisp.org>
15043
15044         math: Avoid macro redefinition warnings on MSVC.
15045         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
15046         Undefine before redefining.
15047
15048 2011-09-17  Bruno Haible  <bruno@clisp.org>
15049
15050         doc: Mention functions which are declared as macros.
15051         * doc/posix-functions/*[fl].texi: Mention that some functions are
15052         defined as macros with arguments only.
15053
15054 2011-09-17  Bruno Haible  <bruno@clisp.org>
15055
15056         Add dependencies to new dirent related modules.
15057         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
15058         * modules/fts (Depends-on): Likewise.
15059         * modules/glob (Depends-on): Likewise.
15060         * modules/savedir (Depends-on): Likewise.
15061         * modules/scandir (Depends-on): Likewise.
15062         * modules/dirent-safer (Depends-on): Add opendir, closedir.
15063         * modules/fdopendir (Depends-on): Add opendir.
15064
15065 2011-09-17  Bruno Haible  <bruno@clisp.org>
15066
15067         inet_pton: Support for MSVC on Windows Vista or newer.
15068         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
15069         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
15070         HAVE_DECL_INET_PTON is defined.
15071         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
15072         On platforms with <winsock2.h>, test whether inet_pton is declared in
15073         <ws2tcpip.h>. If so, arrange to replace it.
15074         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
15075         REPLACE_INET_PTON.
15076         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
15077         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
15078         (Depends-on, configure.ac): Update condition.
15079         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
15080
15081 2011-09-17  Bruno Haible  <bruno@clisp.org>
15082
15083         inet_ntop: Support for MSVC on Windows Vista or newer.
15084         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
15085         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
15086         HAVE_DECL_INET_NTOP is defined.
15087         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
15088         On platforms with <winsock2.h>, test whether inet_ntop is declared in
15089         <ws2tcpip.h>. If so, arrange to replace it.
15090         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
15091         REPLACE_INET_NTOP.
15092         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
15093         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
15094         (Depends-on, configure.ac): Update condition.
15095         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
15096
15097 2011-09-16  Eric Blake  <eblake@redhat.com>
15098
15099         test-fsync: yet another enhancement
15100         * tests/test-fsync.c (main): Also test behavior on read-only text
15101         file.
15102
15103 2011-09-16  Bruno Haible  <bruno@clisp.org>
15104
15105         Enhance fsync, fdatasync tests.
15106         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
15107         * tests/test-fdatasync.c (main): Likewise.
15108
15109 2011-09-16  Bruno Haible  <bruno@clisp.org>
15110
15111         Support for MSVC compiler: Ensure mode_t gets defined.
15112         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
15113         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15114         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15115         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
15116         * tests/test-fcntl-h.c: Check that mode_t is defined.
15117         * tests/test-sys_stat.c: Likewise.
15118         * tests/test-sys_types.c: Likewise.
15119         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
15120         * doc/posix-headers/sys_stat.texi: Likewise.
15121         * doc/posix-headers/sys_types.texi: Likewise.
15122
15123 2011-09-16  Bruno Haible  <bruno@clisp.org>
15124
15125         sys_stat: Support for MSVC.
15126         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
15127         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
15128         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
15129         MSVC.
15130
15131 2011-09-16  Bruno Haible  <bruno@clisp.org>
15132
15133         Support for MSVC compiler: Ensure off_t gets defined.
15134         * lib/unistd.in.h: Include <sys/types.h>.
15135         * tests/test-fcntl-h.c: Check that off_t is defined.
15136         * tests/test-sys_stat.c: Likewise.
15137         * tests/test-sys_types.c: Likewise.
15138
15139 2011-09-16  Eric Blake  <eblake@redhat.com>
15140
15141         fdatasync: port to Solaris
15142         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
15143         * modules/fdatasync (Link): Document it.
15144         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15145
15146         fdatasync: port to MacOS X 10.7
15147         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15148         declared.
15149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15150         * modules/unistd (Makefile.am): Substitute it.
15151         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15152         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15153
15154         fdatasync: minor improvements
15155         * modules/fdatasync (Depends-on): Add condition for fsync.
15156         * lib/fdatasync.c (fdatasync): Add comment.
15157         * tests/test-unistd-c++.cc: Test fdatasync.
15158
15159         unistd: update refs to newer POSIX
15160         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15161         Suggested by Bruno Haible.
15162
15163         fdatasync: new module
15164         * modules/fsync (Description): Document difference to fdatasync.
15165         * modules/fdatasync: New module.
15166         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15167         * lib/fdatasync.c (fdatasync): Likewise.
15168         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15169         defaults.
15170         * modules/unistd (Makefile.am): Set witnesses.
15171         * lib/unistd.in.h (fdatasync): Declare.
15172         * MODULES.html.sh: Document it.
15173         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15174         * modules/fdatasync-tests: New test.
15175         * tests/test-fdatasync.c: Likewise.
15176
15177 2011-09-16  Eric Blake  <eblake@redhat.com>
15178
15179         test-fsync: enhance tests
15180         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15181         * tests/test-fsync.c (main): Enhance test.
15182
15183 2011-09-15  Bruno Haible  <bruno@clisp.org>
15184
15185         Support for MSVC compiler: Ensure ssize_t gets defined.
15186         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15187         * doc/posix-headers/stdio.texi: Likewise.
15188         * modules/stdio (Depends-on): Add ssize_t.
15189         * modules/sys_socket (Depends-on): Likewise.
15190         * modules/sys_types (Depends-on): Likewise.
15191         * modules/sys_uio (Depends-on): Likewise.
15192         * modules/unistd (Depends-on): Likewise.
15193         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15194         * tests/test-sys_types.c: Check that ssize_t is defined.
15195
15196 2011-09-14  Bruno Haible  <bruno@clisp.org>
15197
15198         Avoid using #, the m4 comment starter character, near brackets.
15199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15200         delimiter character in sed expressions.
15201         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15202         Suggested by Eric Blake.
15203
15204         Properly quote AC_CHECK_DECLS' 4th argument.
15205         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15206         argument.
15207         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15208         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15209         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15210         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15211         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15212         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15213         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15214         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15215         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15216         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15217         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15218         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15219         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15220         * m4/isinf.m4 (gl_ISINF): Likewise.
15221         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15222         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15223         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15224         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15225         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15226         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15227         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15228         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15229         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15230         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15231         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15232         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15234         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15236         Reported by Eric Blake.
15237
15238         Properly quote AC_CHECK_DECL's 4th argument.
15239         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15240         argument.
15241         * m4/argp.m4 (gl_ARGP): Likewise.
15242         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15243         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15244         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15245         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15246         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15247         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15248         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15249         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15250         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15251         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15252         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15253         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15254         Reported by Eric Blake.
15255
15256 2011-09-14  Eric Blake  <eblake@redhat.com>
15257
15258         opendir: avoid compile warning
15259         * lib/opendir.c (includes): Always include errno.h.
15260         Reported by Tatsuro MATSUOKA.
15261
15262 2011-09-14  Jim Meyering  <meyering@redhat.com>
15263
15264         maint.mk: sc_tight_scope: propagate failure from sub-make
15265         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15266         Reported by Martin von Gagern.
15267
15268 2011-09-13  Bruno Haible  <bruno@clisp.org>
15269
15270         tempname: Support for MSVC.
15271         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15272         MSVC.
15273         * modules/tempname (Depends-on): Add fcntl-h.
15274
15275 2011-09-13  Bruno Haible  <bruno@clisp.org>
15276
15277         sys_time: Support for MSVC.
15278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15279         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15280         include <winsock2.h>.
15281         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15282         function declarations that collide with POSIX.
15283         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15284         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15285
15286 2011-09-13  Bruno Haible  <bruno@clisp.org>
15287
15288         stat: Support for MSVC.
15289         * lib/stat.c: Include pathmax.h.
15290         * modules/stat (Depends-on): Add pathmax.
15291
15292         pathmax: Support for native Windows.
15293         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15294
15295 2011-09-12  Bruno Haible  <bruno@clisp.org>
15296
15297         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15298         * lib/dirent.in.h (struct dirent): New type.
15299         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15300         DT_WHT): New macros.
15301         (DIR): New type.
15302         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15303         (readdir, rewinddir): New declarations.
15304         * lib/dirent-private.h: New file.
15305         * lib/opendir.c: New file.
15306         * lib/readdir.c: New file.
15307         * lib/rewinddir.c: New file.
15308         * lib/closedir.c: New file.
15309         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15310         * m4/opendir.m4: New file.
15311         * m4/readdir.m4: New file.
15312         * m4/rewinddir.m4: New file.
15313         * m4/closedir.m4: New file.
15314         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15315         REPLACE_CLOSEDIR here.
15316         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15317         readdir, rewinddir are declared.
15318         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15319         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15320         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15321         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15322         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15323         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15324         * modules/opendir: New file.
15325         * modules/readdir: New file.
15326         * modules/rewinddir: New file.
15327         * modules/closedir: New file.
15328         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15329         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15330         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15331         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15332         * NEWS: Mention the 'fchdir' change.
15333
15334 2011-09-11  Bruno Haible  <bruno@clisp.org>
15335
15336         asm-underscore.m4: Support for MSVC.
15337         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15338         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15339
15340 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15341
15342         Doc about crypt functions.
15343         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15344         needing for _GNU_SOURCE to get crypt.
15345         * doc/posix-functions/encrypt.texi: Likewise.
15346         * doc/posix-functions/setkey.texi: Likewise.
15347
15348 2011-09-11  Bruno Haible  <bruno@clisp.org>
15349
15350         doc: Update regarding MSVC 9.
15351         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15352         tested".
15353         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15354         * doc/posix-headers/*.texi: Likewise.
15355         * doc/pastposix-functions/*.texi: Likewise.
15356         * doc/glibc-functions/*.texi: Likewise.
15357         * doc/glibc-headers/*.texi: Likewise.
15358
15359 2011-09-11  Bruno Haible  <bruno@clisp.org>
15360
15361         unistd et al.: Don't assume <unistd.h> exists.
15362         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15363         does not exist.
15364         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15365         exist. But include <stdlib.h>.
15366         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15367         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15368         symlink() does not exist.
15369         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15370         include <io.h> instead.
15371         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15372         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15373         include <direct.h> instead.
15374         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15375         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15376         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15377         <io.h> instead.
15378         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15379         correctly if the system does not have hard links.
15380         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15381         <direct.h> instead.
15382         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15383         it when looking for function declarations.
15384         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15385         <direct.h> and <io.h> instead.
15386         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15387
15388 2011-09-11  Bruno Haible  <bruno@clisp.org>
15389
15390         strcase: Support for MSVC.
15391         * modules/strcase (Status, Notice): Remove obsoletion mark.
15392         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15393         * doc/posix-functions/strncasecmp.texi: Likewise.
15394
15395         strings: Don't assume <strings.h> exists.
15396         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15397         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15398         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15399         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15400
15401 2011-09-11  Bruno Haible  <bruno@clisp.org>
15402
15403         dirent: Don't assume <dirent.h> exists.
15404         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15405         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15406         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15407         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15408
15409 2011-09-11  Bruno Haible  <bruno@clisp.org>
15410
15411         Fix wint_t on MSVC.
15412         * lib/wchar.in.h (wint_t): On MSVC, override it.
15413         * lib/wctype.in.h (wint_t): Likewise.
15414         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15415         MSVC.
15416         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15417         * doc/posix-headers/wctype.texi: Likewise.
15418
15419 2011-09-11  Bruno Haible  <bruno@clisp.org>
15420
15421         sys_types: Fix typo.
15422         * lib/sys_types.in.h: Fix typo in comment.
15423         Reported by Paul Eggert.
15424
15425         Support for MSVC compiler: Ensure size_t gets defined.
15426         * modules/strings (Depends-on): Add 'sys_types'.
15427         * modules/sys_uio (Depends-on): Likewise.
15428         * lib/sys_uio.in.h: Update comment.
15429
15430         C++ tests for module 'sys_types'.
15431         * modules/sys_types-c++-tests: New file.
15432         * tests/test-sys_types-c++.cc: New file.
15433
15434         Tests for module 'sys_types'.
15435         * modules/sys_types-tests: New file.
15436         * tests/test-sys_types.c: New file.
15437
15438         New module 'sys_types'.
15439         * lib/sys_types.in.h: New file.
15440         * m4/sys_types_h.m4: New file.
15441         * modules/sys_types: New file.
15442         * doc/posix-headers/sys_types.texi: Mention the new module and the
15443         size_t problem on MSVC 9.
15444
15445 2011-09-11  Bruno Haible  <bruno@clisp.org>
15446
15447         Support for MSVC compiler: Avoid division by a literal 0.
15448         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15450         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15451         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15452         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15453         * tests/infinity.h: New file.
15454         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15455         on MSVC.
15456         * tests/test-ceilf1.c: Include infinity.h.
15457         (main): Use Infinityf.
15458         * tests/test-ceil1.c: Include infinity.h.
15459         (main): Use Infinityd.
15460         * tests/test-ceill.c: Include infinity.h.
15461         (main): Use Infinityl.
15462         * tests/test-dprintf-posix.c: Include infinity.h.
15463         (test_function): Use Infinityd.
15464         * tests/test-floorf1.c: Include infinity.h.
15465         (main): Use Infinityf.
15466         * tests/test-floor1.c: Include infinity.h.
15467         (main): Use Infinityd.
15468         * tests/test-floorl.c: Include infinity.h.
15469         (main): Use Infinityl.
15470         * tests/test-fprintf-posix.c: Include infinity.h.
15471         (test_function): Use Infinityd.
15472         * tests/test-frexp.c: Include infinity.h.
15473         (main): Use Infinityd.
15474         * tests/test-frexpl.c: Include infinity.h.
15475         (main): Use Infinityl.
15476         * tests/test-isfinite.c: Include infinity.h.
15477         (test_isfinitef): Use Infinityf.
15478         (test_isfinited): Use Infinityd.
15479         (test_isfinitel): Use Infinityl.
15480         * tests/test-isinf.c: Include infinity.h.
15481         (test_isinff): Use Infinityf.
15482         (test_isinfd): Use Infinityd.
15483         (test_isinfl): Use Infinityl.
15484         * tests/test-isnan.c: Include infinity.h.
15485         (test_float): Use Infinityf.
15486         (test_double): Use Infinityd.
15487         (test_long_double): Use Infinityl.
15488         * tests/test-isnanf.h: Include infinity.h.
15489         (main): Use Infinityf.
15490         * tests/test-isnand.h: Include infinity.h.
15491         (main): Use Infinityd.
15492         * tests/test-isnanl.h: Include infinity.h.
15493         (main): Use Infinityl.
15494         * tests/test-ldexpl.c: Include infinity.h.
15495         (main): Use Infinityl.
15496         * tests/test-printf-posix.h: Include infinity.h.
15497         (test_function): Use Infinityd.
15498         * tests/test-roundf1.c: Include infinity.h.
15499         (main): Use Infinityf.
15500         * tests/test-round1.c: Include infinity.h.
15501         (main): Use Infinityd.
15502         * tests/test-roundl.c: Include infinity.h.
15503         (main): Use Infinityl.
15504         * tests/test-signbit.c: Include infinity.h.
15505         (test_signbitf): Use Infinityf.
15506         (test_signbitd): Use Infinityd.
15507         (test_signbitl): Use Infinityl.
15508         * tests/test-snprintf-posix.h: Include infinity.h.
15509         (test_function): Use Infinityd, Infinityl.
15510         * tests/test-sprintf-posix.h: Include infinity.h.
15511         (test_function): Use Infinityd, Infinityl.
15512         * tests/test-truncf1.c: Include infinity.h.
15513         (main): Use Infinityf.
15514         * tests/test-trunc1.c: Include infinity.h.
15515         (main): Use Infinityd.
15516         * tests/test-truncl.c: Include infinity.h.
15517         (main): Use Infinityl.
15518         * tests/test-vasnprintf-posix.c: Include infinity.h.
15519         (test_function): Use Infinityd, Infinityl.
15520         * tests/test-vasprintf-posix.c: Include infinity.h.
15521         (test_function): Use Infinityd, Infinityl.
15522         * modules/ceilf-tests (Files): Add tests/infinity.h.
15523         * modules/ceil-tests (Files): Likewise.
15524         * modules/ceill-tests (Files): Likewise.
15525         * modules/dprintf-posix-tests (Files): Likewise.
15526         * modules/floorf-tests (Files): Likewise.
15527         * modules/floor-tests (Files): Likewise.
15528         * modules/floorl-tests (Files): Likewise.
15529         * modules/fprintf-posix-tests (Files): Likewise.
15530         * modules/frexp-tests (Files): Likewise.
15531         * modules/frexp-nolibm-tests (Files): Likewise.
15532         * modules/frexpl-tests (Files): Likewise.
15533         * modules/frexpl-nolibm-tests (Files): Likewise.
15534         * modules/isfinite-tests (Files): Likewise.
15535         * modules/isinf-tests (Files): Likewise.
15536         * modules/isnan-tests (Files): Likewise.
15537         * modules/isnanf-tests (Files): Likewise.
15538         * modules/isnanf-nolibm-tests (Files): Likewise.
15539         * modules/isnand-tests (Files): Likewise.
15540         * modules/isnand-nolibm-tests (Files): Likewise.
15541         * modules/isnanl-tests (Files): Likewise.
15542         * modules/isnanl-nolibm-tests (Files): Likewise.
15543         * modules/ldexpl-tests (Files): Likewise.
15544         * modules/printf-posix-tests (Files): Likewise.
15545         * modules/roundf-tests (Files): Likewise.
15546         * modules/round-tests (Files): Likewise.
15547         * modules/roundl-tests (Files): Likewise.
15548         * modules/signbit-tests (Files): Likewise.
15549         * modules/snprintf-posix-tests (Files): Likewise.
15550         * modules/sprintf-posix-tests (Files): Likewise.
15551         * modules/truncf-tests (Files): Likewise.
15552         * modules/trunc-tests (Files): Likewise.
15553         * modules/truncl-tests (Files): Likewise.
15554         * modules/vasnprintf-posix-tests (Files): Likewise.
15555         * modules/vasprintf-posix-tests (Files): Likewise.
15556         * modules/vdprintf-posix-tests (Files): Likewise.
15557         * modules/vfprintf-posix-tests (Files): Likewise.
15558         * modules/vprintf-posix-tests (Files): Likewise.
15559         * modules/vsnprintf-posix-tests (Files): Likewise.
15560         * modules/vsprintf-posix-tests (Files): Likewise.
15561         * modules/xprintf-posix-tests (Files): Likewise.
15562
15563 2011-09-11  Bruno Haible  <bruno@clisp.org>
15564
15565         Ensure pid_t gets defined.
15566         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15567         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15568         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15569         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15570         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15571         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15572         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15573         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15574         * tests/test-fcntl-h.c: Check that pid_t is defined.
15575         * tests/test-sched.c: Likewise.
15576         * tests/test-termios.c: Likewise.
15577         * tests/test-time.c: Likewise.
15578         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15579         * doc/posix-headers/signal.texi: Likewise.
15580         * doc/posix-headers/sys_types.texi: Likewise.
15581         * doc/posix-headers/time.texi: Likewise.
15582
15583 2011-09-11  Bruno Haible  <bruno@clisp.org>
15584
15585         acl: Fix compilation on Solaris 10 (older version).
15586         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15587         of ACE_EVERYONE.
15588         * lib/set-mode-acl.c (qset_acl): Likewise.
15589         Reported by Christian Jullien <eligis@orange.fr>.
15590
15591 2011-09-10  Bruno Haible  <bruno@clisp.org>
15592
15593         iconv, unsetenv: Add support for MSVC compiler.
15594         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15595         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15596
15597 2011-09-10  Bruno Haible  <bruno@clisp.org>
15598
15599         *printf: Add support for MSVC compiler.
15600         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15601         handles the exception caused by the %n directive. When cross-compiling,
15602         guess no on native Windows.
15603         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15604         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15605         emulate it through vsnprintf.
15606         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15607         * doc/posix-functions/dprintf.texi: Update documentation regarding
15608         MSVC 9.
15609         * doc/posix-functions/fprintf.texi: Likewise.
15610         * doc/posix-functions/printf.texi: Likewise.
15611         * doc/posix-functions/snprintf.texi: Likewise.
15612         * doc/posix-functions/sprintf.texi: Likewise.
15613         * doc/posix-functions/swprintf.texi: Likewise.
15614         * doc/posix-functions/vdprintf.texi: Likewise.
15615         * doc/posix-functions/vfprintf.texi: Likewise.
15616         * doc/posix-functions/vprintf.texi: Likewise.
15617         * doc/posix-functions/vsnprintf.texi: Likewise.
15618         * doc/posix-functions/vsprintf.texi: Likewise.
15619         * doc/glibc-functions/asprintf.texi: Likewise.
15620         * doc/glibc-functions/obstack_printf.texi: Likewise.
15621         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15622         * doc/glibc-functions/vasprintf.texi: Likewise.
15623
15624 2011-09-10  Bruno Haible  <bruno@clisp.org>
15625
15626         nocrash: Add support for native Windows.
15627         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15628
15629 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15630             Bruno Haible  <bruno@clisp.org>
15631
15632         absolute-header, include-next: Add support for MSVC compiler.
15633         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15634         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15635         directory separator in #line directives.
15636         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15637         recognize also backslash as directory separator in #line directives.
15638
15639 2011-09-08  Jim Meyering  <meyering@redhat.com>
15640
15641         maint.mk: mark the post-release commit log with "maint: " prefix
15642         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15643         one-line commit-log summary.
15644
15645 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15646             Bruno Haible  <bruno@clisp.org>
15647
15648         Doc about crypt functions.
15649         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15650         systems.
15651         * doc/posix-functions/encrypt.texi: Likewise.
15652         * doc/posix-functions/setkey.texi: Likewise.
15653
15654 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15655
15656         * lib/gc.h: Fix copyright header.
15657
15658 2011-09-07  Bruno Haible  <bruno@clisp.org>
15659
15660         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15661         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15662         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15663
15664 2011-09-07  Bruno Haible  <bruno@clisp.org>
15665
15666         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15667         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15668         * lib/freopen.c: Likewise.
15669         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15670         * lib/lstat.c: Likewise.
15671         * lib/stat.c: Likewise.
15672         * lib/open.c: Use different syntax for include of <fcntl.h>.
15673         * lib/openat.c: Include fcntl.h again, explicitly.
15674
15675 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15676
15677         parse-datetime: document the newly accepted format
15678         * doc/parse-datetime.texi (Combined date and time of day items):
15679         New section.
15680
15681 2011-09-06  Bruno Haible  <bruno@clisp.org>
15682
15683         acl: Fix a test failure on newer Solaris 10 with ZFS.
15684         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15685         ENOSYS as no ACL.
15686         Reported by Jim Meyering.
15687
15688 2011-09-06  Bruno Haible  <bruno@clisp.org>
15689
15690         acl: Update for AIX >= 5.3 with NFS.
15691         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15692         ENOSYS as no ACL.
15693
15694         acl: Fix a test failure on AIX >= 5.3 with NFS.
15695         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15696         as no ACL.
15697
15698 2011-09-06  Bruno Haible  <bruno@clisp.org>
15699
15700         acl: Fix a test failure on IRIX 6.5 with NFS.
15701         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15702         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15703         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15704         * lib/copy-acl.c (qcopy_acl): Likewise.
15705
15706 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         openat: port to AIX 7.1 with large files
15709         AIX 7.1 does a "#define openat open64at" if large files are in use,
15710         so we can't simply #undef openat.  Use the orig_openat trick (similar
15711         to orig_open in lib/open.c) to work around the problem.  Problem
15712         reported by Kevin Brott for GNU tar, in the thread containing
15713         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15714         * lib/openat.c (__need_system_fcntl_h): Define first.
15715         Include <fcntl.h> and <sys/types.h> before undefining.
15716         (orig_openat) [HAVE_OPENAT]: New inline function.
15717         (openat) [HAVE_OPENAT]: Do not undef.
15718         (rpl_openat): Use orig_openat, not openat.
15719
15720 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15721             Bruno Haible  <bruno@clisp.org>
15722
15723         acl: Avoid errors on NonStop Kernel.
15724         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15725         ENOTSUP errors.
15726
15727 2011-09-05  Bruno Haible  <bruno@clisp.org>
15728
15729         acl: Clean up Solaris code.
15730         * lib/acl-internal.h: Remove no-op #if.
15731         * lib/file-has-acl.c: Likewise.
15732         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15733         * lib/copy-acl.c (qcopy_acl): Likewise.
15734
15735 2011-09-05  Bruno Haible  <bruno@clisp.org>
15736
15737         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15738         binaries built on the original Solaris 10.
15739         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15740         trivial.
15741
15742 2011-09-05  Bruno Haible  <bruno@clisp.org>
15743
15744         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15745         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15746         10.
15747         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15748         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15749         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15750         instead of acl_get, facl_get, acl_set, facl_set.
15751
15752 2011-09-05  Bruno Haible  <bruno@clisp.org>
15753
15754         copy-file: Try unit tests on more file systems.
15755         * tests/test-copy-file-1.sh: New file.
15756         * tests/test-copy-file-2.sh: New file.
15757         * modules/copy-file-tests (Files): Add them.
15758         (Makefile.am): Add them to TESTS.
15759
15760         acl: Try unit tests on more file systems.
15761         * tests/test-file-has-acl-1.sh: New file.
15762         * tests/test-file-has-acl-2.sh: New file.
15763         * tests/test-set-mode-acl-1.sh: New file.
15764         * tests/test-set-mode-acl-2.sh: New file.
15765         * tests/test-copy-acl-1.sh: New file.
15766         * tests/test-copy-acl-2.sh: New file.
15767         * modules/acl-tests (Files): Add them.
15768         (Makefile.am): Add them to TESTS.
15769
15770 2011-09-04  Bruno Haible  <bruno@clisp.org>
15771
15772         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15773         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15774         10.
15775         (OLD_ALLOW, OLD_DENY): New macros.
15776         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15777         ACE_ACCESS_ALLOWED_ACE_TYPE.
15778         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15779         ACE_ACCESS_DENIED_ACE_TYPE.
15780         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15781         (NEW_ACE_EXECUTE): Fix value.
15782         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15783         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15784         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15785         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15786         NEW_ACE_SYNCHRONIZE): New macros.
15787         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15788         instead of acl_fromtext, acl_set, facl_set.
15789         Fixes a coreutils/tests/cp/perm failure.
15790
15791 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         openat: test for fstatat (..., 0) bug
15794         Further testing with tar suggests that fstatat (..., 0)
15795         does not work in general, on AIX 7.1; see
15796         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15797         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15798         replacement fstatat (which is what older AIX releases were using
15799         anyway).
15800         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15801         use is now changed to orig_fstatat.  This was probably the right
15802         thing to do anyway.
15803         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15804         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15805         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15806         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15807         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15808         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15809         if the bug is found.
15810
15811         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15812         This tests for another fstatat bug on AIX 7.1:
15813         fstatat (AT_FDCWD, ..., 0) does not work.  See
15814         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15815         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15816         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15817         (rpl_fstatat): Adjust so that it works around either (or both)
15818         bugs if present.
15819         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15820
15821 2011-09-03  Karl Berry  <karl@gnu.org>
15822
15823         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15824         in index entries.
15825
15826 2011-09-02  Bruno Haible  <bruno@clisp.org>
15827
15828         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15829         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15830         values of AR, ARFLAGS, RANLIB.
15831         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15832
15833 2011-09-02  Bruno Haible  <bruno@clisp.org>
15834
15835         Find 'ar' program that fits with --host argument.
15836         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15837
15838 2011-09-02  Bruno Haible  <bruno@clisp.org>
15839
15840         tests: init.sh: Support any non-GNU diff.
15841         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15842         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15843         Solaris 8.
15844
15845 2011-09-02  Bruno Haible  <bruno@clisp.org>
15846
15847         tests: init.sh: work also with any non-GNU diff that supports -u
15848         * tests/init.sh: Relax check for diff -u support.
15849         Rather than checking for GNU diff via --version, simply check
15850         for support for -u itself.  Useful at least on OpenBSD 4.9,
15851         AIX 7.1, IRIX 6.5, and Solaris 10.
15852
15853 2011-09-01  Bruno Haible  <bruno@clisp.org>
15854
15855         strtoimax, strtoumax: Document problem on HP-UX 11.
15856         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15857         * doc/posix-functions/strtoumax.texi: Likewise.
15858
15859 2011-09-01  Bruno Haible  <bruno@clisp.org>
15860
15861         strtoumax: Avoid link error on OSF/1 with DTK cc.
15862         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15863         defined as a function.
15864         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15865         strtoumax is defined, not whether it is declared.
15866
15867 2011-09-01  Bruno Haible  <bruno@clisp.org>
15868
15869         strtoimax: Avoid link error on OSF/1 with DTK cc.
15870         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15871         defined as a function.
15872         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15873         strtoimax is defined, not whether it is declared.
15874
15875 2011-09-01  Bruno Haible  <bruno@clisp.org>
15876
15877         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15878         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15879         as a function.
15880         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15881         whether it is declared.
15882
15883 2011-09-01  Bruno Haible  <bruno@clisp.org>
15884
15885         imaxabs: Avoid link error on OSF/1 with DTK cc.
15886         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15887         as a function.
15888         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15889         whether it is declared.
15890
15891 2011-09-01  Bruno Haible  <bruno@clisp.org>
15892
15893         Tests for module 'strtoumax'.
15894         * modules/strtoumax-tests: New file.
15895         * tests/test-strtoumax.c: New file.
15896
15897         Tests for module 'strtoimax'.
15898         * modules/strtoimax-tests: New file.
15899         * tests/test-strtoimax.c: New file.
15900
15901         Tests for module 'imaxdiv'.
15902         * modules/imaxdiv-tests: New file.
15903         * tests/test-imaxdiv.c: New file.
15904
15905         Tests for module 'imaxabs'.
15906         * modules/imaxabs-tests: New file.
15907         * tests/test-imaxabs.c: New file.
15908
15909 2011-09-01  Bruno Haible  <bruno@clisp.org>
15910
15911         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15912         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15913         pthread_create.
15914
15915 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15916
15917         openat: work around AIX 7.1 fstatat issue
15918         This should fix the problem that was not properly fixed
15919         in the previous change, dated 2011-08-30.
15920         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15921         __need_system_stat_h defined.
15922         (orig_fstatat) [HAVE_FSTATAT]: New function.
15923         (rpl_fstatat): Go back to the old way of doing things,
15924         except call orig_fstatat instead of fstatat.
15925         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15926         Remove unnecessary check whether fstatat fills in st_size etc.
15927
15928 2011-09-01  Bruno Haible  <bruno@clisp.org>
15929
15930         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15931         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15932         just include the system's header.
15933
15934 2011-08-31  Jim Meyering  <meyering@redhat.com>
15935
15936         tests: avoid spurious assertion failure in test-float.c on ppc64
15937         * tests/test-float.c (test_long_double): Comment out an assertion,
15938         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15939         with gcc-4.4.4.
15940
15941         maint: indent with spaces, not TABs
15942         I need to get in the habit of running gnulib's "make check".
15943         Both of these would have been caught.
15944         * m4/largefile.m4: Indent with spaces, not TABs.
15945         * lib/parse-datetime.y (iso_8601_time): Likewise.
15946         Spotted by Pádraig Brady.
15947
15948         test-parse-datetime.c: accommodate a relatively strict gcc warning
15949         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15950         to avoid a warning from gcc's -Werror=missing-declarations.
15951         Insert a few spaces-before-funcall-parenthesis.
15952
15953 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15954
15955         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15956         The parser now accepts ISO 8601 date-time strings with "T" as the
15957         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15958         with a space between the date and time strings.  Now it also parses
15959         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15960         variants like "2004-02-29T16:21:42.333-07:00"
15961         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15962         of day representation using the 'T' separator character.
15963         * doc/parse-datetime.texi (General date syntax): replace use of
15964         deprecated --iso-8601 option with --rfc-3339 in example of date
15965         command output formats that can be parsed.
15966         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15967         lib/parse-datetime.y.
15968         (gmt_offset): New function.
15969         (main): Add additional test cases to validate ISO8601 extended
15970         date and time of day parsing.
15971
15972 2011-08-31  Bruno Haible  <bruno@clisp.org>
15973
15974         freopen: Documentation.
15975         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15976         name.
15977         Reported by Claudio Bley <claudio.bley@gmail.com>.
15978
15979 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15980
15981         freopen: Don't crash if the filename argument is NULL.
15982         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15983         NULL.
15984
15985 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15986
15987         openat: work around AIX 7.1 fstatat bug
15988         Problem reported by Kevin Brott for GNU tar, in the thread containing
15989         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15990         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15991         FSTATAT_ST_SIZE_ETC_BROKEN.
15992         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15993         rpl_fstatat.
15994         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15995         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15996         AC_CHECK_FUNCS_ONCE for fstatat.
15997         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15998         fchmodat, mkdirat, openat and unlinkat.
15999
16000 2011-08-30  Bruno Haible  <bruno@clisp.org>
16001
16002         Avoid endless recursions if config.h includes some header files.
16003         * lib/fopen.c (__need_FILE): Define already before including config.h.
16004         * lib/freopen.c (__need_FILE): Likewise.
16005         * lib/open.c (__need_system_fcntl_h): Likewise.
16006         * lib/stat.c (__need_system_sys_stat_h): Likewise.
16007         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
16008         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
16009
16010 2011-08-25  Karl Berry  <karl@gnu.org>
16011
16012         * config/srclist.txt (ylwrap): new try.
16013         * build-aux/ylwrap: new file.
16014
16015 2011-08-23  Bruno Haible  <bruno@clisp.org>
16016
16017         tmpdir: Use a good default directory on native Windows.
16018         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
16019         (P_tmpdir): Default to _P_tmpdir on native Windows.
16020         (path_search): On native Windows, try the value returned by GetTempPath
16021         before trying P_tmpdir.
16022         * modules/tmpdir (Depends-on): Add pathmax.
16023         Suggested by John Darrington <john@darrington.wattle.id.au>.
16024
16025 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
16026
16027         doc: fix typo in README-release
16028         * top/README-release: Capitalize first word of a sentence.
16029
16030 2011-08-19  Jim Meyering  <meyering@redhat.com>
16031
16032         fts: do not exhaust memory when processing million-entry directories
16033         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
16034         directory would require about 256*N bytes of memory.  Thus, it was
16035         easy to construct a directory too large to be processed by any of
16036         those tools.  With this change, fts' maximum memory utilization is
16037         now limited to around 30MB.
16038         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
16039         (fts_read): When we've processed the final entry (i.e., when
16040         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
16041         using the parent entry to read any remaining entries.  Dispatch
16042         depending on what fts_build returns:
16043         - NULL+stop, aka failure: stop
16044         - NULL otherwise: move up in the dir hierarchy
16045         - non-NULL: handle this new entry
16046         (fts_build): Declare and use new local, continue_readdir.
16047         Prepare to be called from fts_read, when the entries
16048         from a partially-read directory have just been exhausted.
16049         In that case, we'll skip the opendir and instead use the parent's
16050         fts_dirp and derive dir_fd from that.
16051         Finally, in the readdir loop, if we read max_entries entries,
16052         exit the loop ensuring *not* to call closedir.  This is required
16053         so that fts_dirp can be reused on a subsequent call.
16054         Prompted by Ben England's report of memory exhaustion in find
16055         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
16056
16057         maint: fts: move decl of `dp' down into while loop; split a long line
16058         * lib/fts.c (fts_build): No semantic change.
16059
16060         fts: add/use new struct member, fts_dirp
16061         We are about to use this to manage any directory with
16062         too many entries to read all of them into memory at once.
16063         To do that, we'll need to save the DIR* pointer in each
16064         affected FTSENT struct.
16065         * lib/fts_.h: Include <dirent.h>.
16066         (struct FTSENT) [fts_dirp]: New member.
16067         * lib/fts.c (closedir_and_clear): Define.
16068         Use it in place of closedir so that we are sure to
16069         clear the new fts_dirp member when done with it.
16070         (fts_alloc): Initialize the new member.
16071         (fts_lfree): Free, if needed.
16072
16073         maint: fts: give __opendir2 a new parameter and rename
16074         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
16075         than surreptitiously using sole caller's "dir_fd".
16076         (fts_opendir): Rename from __opendir2.
16077
16078         maint: fts.c: remove __opendir2's now-unused parameter, oflag
16079         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
16080
16081         maint: fts.c: correct off-by-one indentation
16082         * lib/fts.c (fts_build): Correct indentation, change style
16083         of a couple of block comments, and bracing style.
16084
16085         maint: fts.c: move __opendir2 #define "up" out of function body
16086         * lib/fts.c (__opendir2): Move "up".  No semantic change.
16087
16088         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
16089         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
16090         out for a long time and besides was useful only on BSD systems.
16091
16092 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16093
16094         regex: port to Stratus OpenVOS
16095         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
16096         define to empty, rather than attempting nonportable optimizations.
16097         Problem reported by Paul Green in:
16098         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
16099         and fix suggested by Eric Blake in:
16100         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
16101
16102 2011-08-17  Eric Blake  <eblake@redhat.com>
16103
16104         getcwd: fix test failures on mingw
16105         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
16106         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
16107         test if long directory cannot be created, and allow mingw errno.
16108
16109         getcwd-lgpl: fix m4 to match relaxed test for BSD
16110         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
16111         (gl_FUNC_GETCWD_SIGNATURE): New macro.
16112         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
16113         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
16114         signature problem.
16115
16116         getcwd: fix compilation on mingw64
16117         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
16118         getcwd.
16119         Reported by Marc-André Lureau.
16120
16121         pipe2: silence compiler warning
16122         * lib/pipe2.c (pipe2): Hide label if it is not used.
16123
16124 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
16125
16126         relocatable-prog: fix link error
16127         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
16128         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
16129         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
16130         into modules/relocatable-lib without noticing that
16131         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
16132         also needs to build relocatable.c.
16133
16134 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16135
16136         getaddrinfo: fix sh typo in gai_strerrorA decl checking
16137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
16138         shell code: it contained a 'break' that was not in a loop.
16139         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
16140         via a shell-language loop; this may have been true in old Autoconf
16141         versions, but it's not true in Autoconf 2.68.  I found this bug
16142         when testing coreutils git on Solaris 8, whose shell complains
16143         about the syntax error.
16144
16145 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16146
16147         * lib/base64.c: Fix comment to reference RFC 4648.
16148         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16149         <gvtulder@gmail.com>.
16150
16151 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16152
16153         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16154
16155         po/Makefile.in.in: fix make -q problem
16156         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16157         rule, since there's no file named 'check-macro-version' and its
16158         use as a file breaks make -q.
16159         (all): Don't depend on check-macro-version.
16160         (CHECK_MACRO_VERSION): New macro.
16161         (stamp-po): Use it.
16162
16163         configmake: fix make -q problem
16164         * modules/configmake (configmake.h): Update configmake.h's time stamp
16165         even if the file does not change.  Otherwise, 'make -q' fails.
16166         Problem reported by Simon Josefsson in
16167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16168
16169 2011-08-11  Jim Meyering  <meyering@redhat.com>
16170
16171         git-version-gen: correct the advice in a comment
16172         * build-aux/git-version-gen: Correct comment.
16173         Don't recommend to list .tarball-version in .gitignore.
16174
16175 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         base64: fix off-by-one buffer size bug
16178         Problem and (trivial) fix reported by Gijs van Tulder in
16179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16180         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16181         * tests/test-base64.c (main): Catch the bug.
16182
16183 2011-08-10  Eric Blake  <eblake@redhat.com>
16184
16185         closein: correct comments
16186         * lib/closein.c (close_stdin): Improve comments.
16187
16188 2011-08-09  Bruno Haible  <bruno@clisp.org>
16189
16190         More tests for 'fseeko'.
16191         * tests/test-fseeko3.c: New file, from Eric Blake.
16192         * tests/test-fseeko3.sh: New file.
16193         * modules/fseeko-tests (Files): Add them.
16194         (TESTS): Add test-fseeko3.sh.
16195         (check_PROGRAMS): Add test-fseeko3.
16196
16197 2011-08-09  Eric Blake  <eblake@redhat.com>
16198
16199         fseeko: remove unneeded hack
16200         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16201
16202         fseeko: fix bug on glibc
16203         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16204         Reported by John W. Eaton.
16205
16206 2011-08-08  Bruno Haible  <bruno@clisp.org>
16207
16208         unictype/base: Fix interoperability with preinstalled libunistring.
16209         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16210         Reported by Simon Josefsson.
16211
16212 2011-08-08  Bruno Haible  <bruno@clisp.org>
16213
16214         iswblank: Detect declaration correctly.
16215         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16216         AC_CHECK_DECLS invocation.
16217
16218 2011-08-08  Bruno Haible  <bruno@clisp.org>
16219
16220         tcgetsid: Detect declaration correctly.
16221         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16222         AC_CHECK_DECLS invocation.
16223         Reported by Simon Josefsson.
16224
16225 2011-08-08  Eric Blake  <eblake@redhat.com>
16226
16227         largefile: fix typo that regressed large file support
16228         * modules/largefile (configure.ac-early): Fix section name.
16229
16230 2011-08-06  Karl Berry  <karl@gnu.org>
16231
16232         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16233         a separate module.
16234
16235 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16236
16237         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16238         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16239         get prototype for free.
16240
16241 2011-08-04  Bruno Haible  <bruno@clisp.org>
16242
16243         Tests for module 'pathmax'.
16244         * modules/pathmax-tests: New file.
16245         * tests/test-pathmax.c: New file.
16246
16247         canonicalize-lgpl: Support larger filenames on the Hurd.
16248         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16249         Reported by Paul Eggert.
16250
16251         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16252         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16253         * lib/chdir-long.h: Include pathmax.h.
16254         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16255         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16256         (PATH_MAX): Remove code that is done by pathmax.h.
16257         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16258         * lib/tmpfile.c: Add a comment.
16259         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16260         * modules/chdir-long (Depends-on): Add pathmax.
16261         * modules/getcwd (Depends-on): Add pathmax.
16262         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16263         is not defined.
16264         * doc/posix-headers/limits.texi: Mention the pathmax module.
16265         * NEWS: Mention the change.
16266
16267 2011-08-02  Bruno Haible  <bruno@clisp.org>
16268
16269         pthread_sigmask: Actually use results of gl_THREADLIB.
16270         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16271         gl_THREADLIB, not gl_[]THREADLIB.
16272         Reported by Eric Blake.
16273
16274 2011-08-02  Jim Meyering  <meyering@redhat.com>
16275
16276         maint.mk: relax the default _gl_TS_function_match regexp
16277         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16278         space between function name and "(" in an "extern" declaration.
16279         That would fail to match a decl with no space there: extern void foo();
16280
16281 2011-07-31  Iain Nicol  <iain@thenicols.net>
16282
16283         git-version-gen: document that EXTRA_DIST must include .version
16284         * build-aux/git-version-gen: In the how-to-use comment, document
16285         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16286         will fail when run from an unpacked distribution tarball.
16287
16288 2011-08-01  Bruno Haible  <bruno@clisp.org>
16289
16290         wctype-h: Fix last change.
16291         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16292         REPLACE_TOWLOWER to 0.
16293         Reported by Sam Steingold <sds@gnu.org>.
16294
16295 2011-07-31  Bruno Haible  <bruno@clisp.org>
16296
16297         frexpl: Update autoconf test.
16298         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16299         according to changes of 2011-06-20.
16300
16301 2011-07-31  Bruno Haible  <bruno@clisp.org>
16302
16303         sys_utsname: Add support for Minix.
16304         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16305         <sys/utsname.h>.
16306         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16307         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16308
16309 2011-07-31  Bruno Haible  <bruno@clisp.org>
16310
16311         strings: Add support for Minix.
16312         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16313         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16314         * doc/posix-headers/strings.texi: Document the Minix problem.
16315
16316 2011-07-31  Bruno Haible  <bruno@clisp.org>
16317
16318         wctype-h: Add support for Minix.
16319         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16320         REPLACE_TOWLOWER.
16321         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16322         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16323         REPLACE_ISWCNTRL.
16324
16325 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16326
16327         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16328         This is a performance improvement for 64-bit hosts: it causes the
16329         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16330
16331 2011-07-31  Bruno Haible  <bruno@clisp.org>
16332
16333         stdioext: Add support for Minix.
16334         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16335         * lib/fpurge.c (fpurge): Likewise.
16336         * lib/freadahead.c (freadahead): Likewise.
16337         * lib/freadable.c (freadable): Likewise.
16338         * lib/freading.c (freading): Likewise.
16339         * lib/freadptr.c (freadptr): Likewise.
16340         * lib/freadseek.c (freadptrinc): Likewise.
16341         * lib/fseeko.c (rpl_fseeko): Likewise.
16342         * lib/fseterr.c (fseterr): Likewise.
16343         * lib/fwritable.c (fwritable): Likewise.
16344         * lib/fwriting.c (fwriting): Likewise.
16345         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16346         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16347
16348 2011-07-31  Bruno Haible  <bruno@clisp.org>
16349
16350         errno: Port to Minix.
16351         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16352         ECONNABORTED are defined.
16353         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16354         GNULIB_defined_ECONNABORTED): New macros.
16355         * lib/strerror-override.h (strerror_override): Test also
16356         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16357         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16358         ECONNABORTED.
16359         * doc/posix-headers/errno.texi: Mention the Minix problem.
16360
16361 2011-07-31  Bruno Haible  <bruno@clisp.org>
16362
16363         Work around declaration collisions on Minix.
16364         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16365         defined, set REPLACE_MBSINIT.
16366         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16367         defined, set REPLACE_MBRTOWC.
16368         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16369         set REPLACE_MBRLEN.
16370         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16371         defined, set REPLACE_MBSRTOWCS.
16372         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16373         defined, set REPLACE_WCRTOMB.
16374         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16375         defined, set REPLACE_WCSRTOMBS.
16376
16377 2011-07-31  Bruno Haible  <bruno@clisp.org>
16378
16379         Add support for Minix with ACK compiler.
16380         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16381         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16382         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16383
16384 2011-07-31  Bruno Haible  <bruno@clisp.org>
16385
16386         Documentation about Minix.
16387         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16388         * doc/glibc-headers/*.texi: Likewise.
16389         * doc/posix-functions/*.texi: Likewise.
16390         * doc/glibc-functions/*.texi: Likewise.
16391
16392 2011-07-31  Bruno Haible  <bruno@clisp.org>
16393
16394         snippet/warn-on-use: Fix indentation.
16395         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16396
16397 2011-07-25  Jim Meyering  <meyering@redhat.com>
16398
16399         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16400         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16401         commands.
16402
16403 2011-07-27  Jim Meyering  <meyering@redhat.com>
16404
16405         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16406         * top/maint.mk (gl_extract_significant_defines_): Now that
16407         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16408         gnulib/lib/signal.in.h, and now that we recommend to
16409         define-if-undefined those two symbols in application code,
16410         we must filter them out of the "significant" list.
16411         This avoids a "make syntax-check" failure in coreutils.
16412
16413 2011-07-26  Eric Blake  <eblake@redhat.com>
16414
16415         warnings: add comments about previous patch
16416         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16417         * m4/include_next.m4: Likewise.
16418         * m4/warn-on-use.m4: Likewise.
16419         * m4/warnings.m4: Likewise, and simplify use.
16420         Suggested by Stefano Lattarini.
16421
16422         include-next, warnings: support older autoconf
16423         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16424         AS_VAR_PUSHDEF in a way that works with older autoconf.
16425         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16426         Reported by Daniel P. Berrange.
16427
16428 2011-07-25  Bruno Haible  <bruno@clisp.org>
16429
16430         fseek, ftell: Fix doc.
16431         * doc/posix-functions/fseek.texi: Reword statement about
16432         AC_SYS_LARGEFILE.
16433         * doc/posix-functions/ftell.texi: Likewise.
16434
16435 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16436             Bruno Haible  <bruno@clisp.org>
16437
16438         Add dependencies to the 'largefile' module.
16439         * modules/fopen (Depends-on): Add 'largefile'.
16440         * modules/freopen (Depends-on): Likewise.
16441         * modules/fseeko (Depends-on): Likewise.
16442         * modules/ftello (Depends-on): Likewise.
16443         * modules/glob (Depends-on): Likewise.
16444         * modules/lseek (Depends-on): Likewise.
16445         * modules/lstat (Depends-on): Likewise.
16446         * modules/mkostemp (Depends-on): Likewise.
16447         * modules/mkostemps (Depends-on): Likewise.
16448         * modules/mkstemp (Depends-on): Likewise.
16449         * modules/mkstemps (Depends-on): Likewise.
16450         * modules/open (Depends-on): Likewise.
16451         * modules/openat (Depends-on): Likewise.
16452         * modules/pread (Depends-on): Likewise.
16453         * modules/pwrite (Depends-on): Likewise.
16454         * modules/scandir (Depends-on): Likewise.
16455         * modules/stat (Depends-on): Likewise.
16456         * modules/tmpfile (Depends-on): Likewise.
16457         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16458         since the containing module now depends on the largefile module.
16459         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16460         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16461         off_t is fixed by gnulib.
16462         * doc/posix-functions/freopen.texi: Likewise.
16463         * doc/posix-functions/fseeko.texi: Likewise.
16464         * doc/posix-functions/fstatat.texi: Likewise.
16465         * doc/posix-functions/ftello.texi: Likewise.
16466         * doc/posix-functions/glob.texi: Likewise.
16467         * doc/posix-functions/lseek.texi: Likewise.
16468         * doc/posix-functions/lstat.texi: Likewise.
16469         * doc/posix-functions/mkstemp.texi: Likewise.
16470         * doc/posix-functions/open.texi: Likewise.
16471         * doc/posix-functions/openat.texi: Likewise.
16472         * doc/posix-functions/pread.texi: Likewise.
16473         * doc/posix-functions/pwrite.texi: Likewise.
16474         * doc/posix-functions/scandir.texi: Likewise.
16475         * doc/posix-functions/stat.texi: Likewise.
16476         * doc/posix-functions/tmpfile.texi: Likewise.
16477         * doc/glibc-functions/mkostemp.texi: Likewise.
16478         * doc/glibc-functions/mkostemps.texi: Likewise.
16479         * doc/glibc-functions/mkstemps.texi: Likewise.
16480
16481 2011-07-25  Bruno Haible  <bruno@clisp.org>
16482
16483         fcntl: Move AC_LIBOBJ invocation to module description.
16484         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16485         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16486
16487         fcntl: Remove call-in from fchdir.m4.
16488         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16490
16491         dup3: Remove potential call-in from fchdir.m4.
16492         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16494
16495         dup2: Move AC_LIBOBJ invocation to module description.
16496         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16497         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16498         Don't invoke AC_LIBOBJ.
16499         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16500
16501         dup2: Remove call-in from fchdir.m4.
16502         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16504
16505         fclose: Move AC_LIBOBJ invocation to module description.
16506         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16507         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16508         to 1.
16509         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16510
16511         fclose: Remove call-in from close.m4.
16512         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16513         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16514
16515         close: Move AC_LIBOBJ invocation to module description.
16516         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16517         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16518         1.
16519         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16520
16521         close: Remove call-in from fchdir.m4.
16522         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16523         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16524
16525         open: Move AC_LIBOBJ invocation to module description.
16526         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16527         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16528         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16529
16530         open: Remove call-in from fchdir.m4.
16531         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16532         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16533
16534         fchdir: Start to remove gl_REPLACE_* idiom.
16535         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16536         (gl_FUNC_FCHDIR): Invoke it.
16537
16538 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16539
16540         * lib/ftell.c (ftell): Comment out cast.
16541
16542         close: use gl_REPLACE_FCLOSE only if defined
16543         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16544         is defined.  The close module doesn't depend on the fclose module
16545         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16547         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16548
16549 2011-07-24  Jim Meyering  <meyering@redhat.com>
16550
16551         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16552         * tests/test-select.h (test_function): Declare as "static".
16553
16554 2011-07-24  Bruno Haible  <bruno@clisp.org>
16555
16556         doc: Mention the effects of AC_SYS_LARGEFILE.
16557         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16558         on this function.
16559         * doc/posix-functions/aio_error.texi: Likewise.
16560         * doc/posix-functions/aio_fsync.texi: Likewise.
16561         * doc/posix-functions/aio_read.texi: Likewise.
16562         * doc/posix-functions/aio_return.texi: Likewise.
16563         * doc/posix-functions/aio_suspend.texi: Likewise.
16564         * doc/posix-functions/aio_write.texi: Likewise.
16565         * doc/posix-functions/fgetpos.texi: Likewise.
16566         * doc/posix-functions/fopen.texi: Likewise.
16567         * doc/posix-functions/freopen.texi: Likewise.
16568         * doc/posix-functions/fsetpos.texi: Likewise.
16569         * doc/posix-functions/fstatvfs.texi: Likewise.
16570         * doc/posix-functions/ftruncate.texi: Likewise.
16571         * doc/posix-functions/ftw.texi: Likewise.
16572         * doc/posix-functions/getrlimit.texi: Likewise.
16573         * doc/posix-functions/glob.texi: Likewise.
16574         * doc/posix-functions/lio_listio.texi: Likewise.
16575         * doc/posix-functions/lockf.texi: Likewise.
16576         * doc/posix-functions/mkstemp.texi: Likewise.
16577         * doc/posix-functions/mmap.texi: Likewise.
16578         * doc/posix-functions/nftw.texi: Likewise.
16579         * doc/posix-functions/openat.texi: Likewise.
16580         * doc/posix-functions/opendir.texi: Likewise.
16581         * doc/posix-functions/posix_fadvise.texi: Likewise.
16582         * doc/posix-functions/posix_fallocate.texi: Likewise.
16583         * doc/posix-functions/pread.texi: Likewise.
16584         * doc/posix-functions/pwrite.texi: Likewise.
16585         * doc/posix-functions/readdir.texi: Likewise.
16586         * doc/posix-functions/readdir_r.texi: Likewise.
16587         * doc/posix-functions/rewinddir.texi: Likewise.
16588         * doc/posix-functions/scandir.texi: Likewise.
16589         * doc/posix-functions/seekdir.texi: Likewise.
16590         * doc/posix-functions/setrlimit.texi: Likewise.
16591         * doc/posix-functions/statvfs.texi: Likewise.
16592         * doc/posix-functions/telldir.texi: Likewise.
16593         * doc/posix-functions/tmpfile.texi: Likewise.
16594         * doc/posix-functions/truncate.texi: Likewise.
16595         * doc/glibc-functions/fallocate.texi: Likewise.
16596         * doc/glibc-functions/fstatfs.texi: Likewise.
16597         * doc/glibc-functions/fts_children.texi: Likewise.
16598         * doc/glibc-functions/fts_read.texi: Likewise.
16599         * doc/glibc-functions/getdirentries.texi: Likewise.
16600         * doc/glibc-functions/mkostemp.texi: Likewise.
16601         * doc/glibc-functions/mkostemps.texi: Likewise.
16602         * doc/glibc-functions/mkstemps.texi: Likewise.
16603         * doc/glibc-functions/preadv.texi: Likewise.
16604         * doc/glibc-functions/pwritev.texi: Likewise.
16605         * doc/glibc-functions/sendfile.texi: Likewise.
16606         * doc/glibc-functions/statfs.texi: Likewise.
16607
16608 2011-07-24  Bruno Haible  <bruno@clisp.org>
16609
16610         doc: Fix typo.
16611         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16612
16613 2011-07-24  Bruno Haible  <bruno@clisp.org>
16614
16615         doc: Mention fsusage.
16616         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16617
16618 2011-07-24  Bruno Haible  <bruno@clisp.org>
16619
16620         doc: Mention new glibc headers and functions.
16621         * doc/glibc-headers/gshadow.texi: New file.
16622         * doc/glibc-functions/endsgent.texi: New file.
16623         * doc/glibc-functions/fgetsgent.texi: New file.
16624         * doc/glibc-functions/fgetsgent_r.texi: New file.
16625         * doc/glibc-functions/getsgent.texi: New file.
16626         * doc/glibc-functions/getsgent_r.texi: New file.
16627         * doc/glibc-functions/getsgnam.texi: New file.
16628         * doc/glibc-functions/getsgnam_r.texi: New file.
16629         * doc/glibc-functions/putsgent.texi: New file.
16630         * doc/glibc-functions/setsgent.texi: New file.
16631         * doc/glibc-functions/sgetsgent.texi: New file.
16632         * doc/glibc-functions/sgetsgent_r.texi: New file.
16633         * doc/glibc-functions/malloc_info.texi: New file.
16634         * doc/glibc-functions/preadv.texi: New file.
16635         * doc/glibc-functions/pwritev.texi: New file.
16636         * doc/glibc-functions/register_printf_modifier.texi: New file.
16637         * doc/glibc-functions/register_printf_specifier.texi: New file.
16638         * doc/glibc-functions/register_printf_type.texi: New file.
16639         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16640         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16641         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16642         * doc/glibc-functions/pthread_getname_np.texi: New file.
16643         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16644         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16645         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16646         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16647         * doc/glibc-functions/pthread_setname_np.texi: New file.
16648         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16649         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16650         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16651         * doc/glibc-functions/qsort_r.texi: New file.
16652         * doc/glibc-functions/quick_exit.texi: New file.
16653         * doc/glibc-functions/syncfs.texi: New file.
16654         * doc/gnulib.texi: Include them.
16655         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16656         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16657         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16658         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16659         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16660         * doc/glibc-functions/execvpe.texi: Likewise.
16661
16662 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16663
16664         ftell: don't include <unistd.h>
16665         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16666         guaranteed to define off_t, and the ftell module depends on the
16667         stdio module.
16668
16669         ftell: do not assume wraparound signed arithmetic
16670         * lib/ftell.c: Include <limits.h>.
16671         (ftell): Don't assume wraparound signed arithmetic.
16672
16673 2011-07-24  Bruno Haible  <bruno@clisp.org>
16674
16675         close: No longer depend on module 'fclose'.
16676         * modules/close (Depends-on): Remove fclose.
16677         * NEWS: Mention the change.
16678         Suggested by Sam Steingold <sds@gnu.org>.
16679
16680 2011-07-24  Bruno Haible  <bruno@clisp.org>
16681
16682         fsusage: Enable large volume support on AIX >= 5.2.
16683         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16684         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16685         instead of STAT_STATVFS.
16686         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16687
16688         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16689         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16690         f_blocks field only on MacOS X.
16691
16692         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16694         * modules/fsusage (Depends-on): Add largefile.
16695
16696 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16697
16698         * README: Modernize discussion of signed integers.
16699         Assuming overflow wraparound is no longer safe.
16700         Mention ones' complement and signed magnitude.
16701
16702 2011-07-22  Bruno Haible  <bruno@clisp.org>
16703
16704         select tests, pselect tests: Refactor.
16705         * tests/test-select.h: New file, extracted from tests/test-select.c.
16706         (select_fn): New type.
16707         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16708         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16709         test_pipe): Add my_select argument.
16710         (test_function): Renamed from main. Add my_select argument.
16711         * tests/test-select.c: Move most code to tests/test-select.h. Include
16712         test-select.h.
16713         * modules/select-tests (Files): Add tests/test-select.h.
16714         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16715         (my_select, main): New functions.
16716         * modules/pselect-tests (Files): Add tests/test-select.h,
16717         tests/macros.h, tests/signature.h.
16718         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16719         (configure.ac): Check for <sys/wait.h>.
16720
16721 2011-07-22  Bruno Haible  <bruno@clisp.org>
16722
16723         sys_select tests: Check the signature of FD_*.
16724         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16725         signature tests from here...
16726         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16727         here.
16728         * modules/sys_select-tests (Files): Add tests/signature.h.
16729
16730 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16731
16732         largefile: new module, replacing large-inode
16733         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16734         * MODULES.html.sh: Add largefile, remove large-inode.
16735         * modules/largefile, m4/largefile.m4: New files.
16736         * modules/large-inode, m4/large-inode.m4: Remove.
16737
16738         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16739         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16740         implementations that use only 32 bits to count blocks.
16741         On typical hosts with 1024-byte blocks, this fails with file
16742         systems as small as 4 TiB.  Problem reported by Herb Wartens
16743         <http://debbugs.gnu.org/9140> and this should also fix a similar
16744         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16745
16746         large-inode: New module
16747         * MODULES.html.sh: Add it.
16748         * modules/large-inode, m4/large-inode.m4: New files.
16749
16750         extensions: Enable extensions on MacOS X 10.5 and later.
16751         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16752
16753 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16754
16755         file-has-acl: use acl_extended_file_nofollow if available
16756         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16757         (acl_extended_file): New macro.
16758         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16759         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16760
16761 2011-07-21  Bruno Haible  <bruno@clisp.org>
16762
16763         Declare system functions in a way that works with C++.
16764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16765         declare fdopendir as extern "C".
16766         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16767         declare frexpl as extern "C".
16768         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16769         declare gai_strerror as extern "C".
16770         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16771         programs, declare gai_strerror as extern "C".
16772         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16773         declare getlogin_r as extern "C".
16774         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16775         as extern "C".
16776         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16777         declare ldexpl as extern "C".
16778         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16779         as extern "C".
16780         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16781         program, declare getmntinfo as extern "C".
16782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16783         stpncpy as extern "C".
16784         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16785         program, declare __xpg_strerror_r as extern "C".
16786         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16787         strndup as extern "C".
16788         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16789         declare memset and bzero as extern "C".
16790         Reported by Sam Steingold <sds@gnu.org>.
16791
16792 2011-07-12  Jim Meyering  <meyering@redhat.com>
16793
16794         maint.mk: prohibit inclusion of "verify.h" without use
16795         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16796
16797 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16798
16799         timer-time: A new module to check for timer_settime()
16800         * m4/timer_time.m4: Check for the posix function.
16801         * modules/timer-time: Add the new module.
16802         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16803         Mention it.
16804
16805 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16806             Bruno Haible  <bruno@clisp.org>
16807
16808         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16809         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16810         not defined, assume POSIX threads and look for pthread_sigmask in
16811         $LIBS, without changing $CPPFLAGS.
16812
16813 2011-07-19  Bruno Haible  <bruno@clisp.org>
16814
16815         strstr: Update cross-compilation guess.
16816         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16817         CPUs, guess no, in view of glibc
16818         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16819         Suggested by Eric Blake. Reported by Reuben Thomas.
16820
16821 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16822
16823         getopt-gnu: suppress core dumps from detection code
16824         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16825         to suppress core dumps that may well occur on glibc systems.
16826         * modules/getopt-gnu: Depend on nocrash.
16827
16828 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16829
16830         pthread_sigmask: ensure usleep is declared
16831         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16832         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16833
16834 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16835
16836         doc: Document NonStop portability issues.
16837         * doc/posix-functions/sigaction.texi (sigaction):
16838         * doc/posix-headers/signal.texi (signal.h):
16839         Document NonStop.  See Joachim Schmitz in
16840         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16841
16842 2011-07-15  Bruno Haible  <bruno@clisp.org>
16843
16844         ffsl, ffsll: Avoid unportable behaviour.
16845         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16846
16847 2011-07-15  Bruno Haible  <bruno@clisp.org>
16848
16849         ffs: More tests.
16850         * tests/test-ffs.c (NBITS): New macro.
16851         (main): Add more tests.
16852         * tests/test-ffsl.c (NBITS): New macro.
16853         (main): Add more tests.
16854         * tests/test-ffsll.c (NBITS): New macro.
16855         (main): Add more tests.
16856
16857 2011-07-15  Eric Blake  <eblake@redhat.com>
16858
16859         ffsl, ffsll: new modules
16860         * modules/ffsl: New file.
16861         * modules/ffsll: Likewise.
16862         * m4/ffsl.m4: Likewise.
16863         * m4/ffsll.m4: Likewise.
16864         * lib/ffsl.c: Likewise.
16865         * lib/ffsl.h: Likewise.
16866         * lib/ffsll.c: Likewise.
16867         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16868         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16869         * modules/string (Makefile.am): Substitute witnesses.
16870         * lib/strings.in.h (ffsl, ffsll): Declare.
16871         * modules/ffsl-tests: New test file.
16872         * modules/ffsll-tests: Likewise.
16873         * tests/test-ffsl.c: Likewise.
16874         * tests/test-ffsll.c: Likewise.
16875         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16876         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16877         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16878
16879         ffs: fix m4 prerequisite
16880         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16881
16882         ffs: avoid undefined behavior
16883         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16884         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16885         Reported by Bruno Haible.
16886
16887 2011-07-12  Bruno Haible  <bruno@clisp.org>
16888
16889         pthread_sigmask: Rely on module 'threadlib'.
16890         * modules/pthread_sigmask (Depends-on): Add threadlib.
16891         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16892         is defined.
16893
16894 2011-07-12  Bruno Haible  <bruno@clisp.org>
16895
16896         regex: Depend on module 'strcase'.
16897         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16898
16899 2011-07-12  Jim Meyering  <meyering@redhat.com>
16900
16901         warn-on-use: fix typo in file name
16902         * modules/snippet/warn-on-use (Files): Correct file name:
16903         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16904
16905 2011-07-12  Bruno Haible  <bruno@clisp.org>
16906
16907         strings: Document module.
16908         * doc/posix-headers/strings.texi: Mention module 'strings'.
16909
16910 2011-07-12  Bruno Haible  <bruno@clisp.org>
16911
16912         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16913         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16914         (Files, Makefile.am): Update.
16915         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16916         * modules/stdlib (Depends-on): Update.
16917
16918 2011-07-12  Bruno Haible  <bruno@clisp.org>
16919
16920         * NEWS: Mention the changes.
16921
16922         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16923         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16924         (Files, Makefile.am): Update.
16925         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16926         * modules/arpa_inet (Depends-on): Update.
16927         * modules/ctype (Depends-on): Update.
16928         * modules/dirent (Depends-on): Update.
16929         * modules/fcntl-h (Depends-on): Update.
16930         * modules/glob (Depends-on): Update.
16931         * modules/iconv-h (Depends-on): Update.
16932         * modules/inttypes-incomplete (Depends-on): Update.
16933         * modules/langinfo (Depends-on): Update.
16934         * modules/locale (Depends-on): Update.
16935         * modules/math (Depends-on): Update.
16936         * modules/netdb (Depends-on): Update.
16937         * modules/poll-h (Depends-on): Update.
16938         * modules/pty (Depends-on): Update.
16939         * modules/search (Depends-on): Update.
16940         * modules/signal (Depends-on): Update.
16941         * modules/spawn (Depends-on): Update.
16942         * modules/stdio (Depends-on): Update.
16943         * modules/stdlib (Depends-on): Update.
16944         * modules/string (Depends-on): Update.
16945         * modules/strings (Depends-on): Update.
16946         * modules/sys_file (Depends-on): Update.
16947         * modules/sys_ioctl (Depends-on): Update.
16948         * modules/sys_select (Depends-on): Update.
16949         * modules/sys_socket (Depends-on): Update.
16950         * modules/sys_stat (Depends-on): Update.
16951         * modules/sys_time (Depends-on): Update.
16952         * modules/sys_times (Depends-on): Update.
16953         * modules/sys_utsname (Depends-on): Update.
16954         * modules/sys_wait (Depends-on): Update.
16955         * modules/termios (Depends-on): Update.
16956         * modules/time (Depends-on): Update.
16957         * modules/unistd (Depends-on): Update.
16958         * modules/wchar (Depends-on): Update.
16959         * modules/wctype-h (Depends-on): Update.
16960         * MODULES.html.sh (Support for building libraries and executables):
16961         Update.
16962
16963         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16964         * modules/snippet/unused-parameter: Renamed from
16965         modules/unused-parameter.
16966         (Files, Makefile.am): Update.
16967         * build-aux/snippet/unused-parameter.h: Renamed from
16968         build-aux/unused-parameter.h.
16969         * modules/selinux-h (Depends-on): Update.
16970         * modules/unistr/base (Depends-on): Update.
16971         * MODULES.html.sh (Core language properties): Update.
16972
16973         Rename module 'link-warning' to 'snippet/link-warning'.
16974         * modules/snippet/link-warning: Renamed from modules/link-warning.
16975         (Files, Makefile.am): Update.
16976         * build-aux/snippet/link-warning.h: Renamed from
16977         build-aux/link-warning.h.
16978         * MODULES.html.sh (Support for building libraries and executables):
16979         Update.
16980
16981         Rename module 'c++defs' to 'snippet/c++defs'.
16982         * modules/snippet/c++defs: Renamed from modules/c++defs.
16983         (Files, Makefile.am): Update.
16984         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16985         * modules/arpa_inet (Depends-on): Update.
16986         * modules/ctype (Depends-on): Update.
16987         * modules/dirent (Depends-on): Update.
16988         * modules/fcntl-h (Depends-on): Update.
16989         * modules/glob (Depends-on): Update.
16990         * modules/iconv-h (Depends-on): Update.
16991         * modules/langinfo (Depends-on): Update.
16992         * modules/locale (Depends-on): Update.
16993         * modules/math (Depends-on): Update.
16994         * modules/netdb (Depends-on): Update.
16995         * modules/poll-h (Depends-on): Update.
16996         * modules/pty (Depends-on): Update.
16997         * modules/search (Depends-on): Update.
16998         * modules/signal (Depends-on): Update.
16999         * modules/spawn (Depends-on): Update.
17000         * modules/stdio (Depends-on): Update.
17001         * modules/stdlib (Depends-on): Update.
17002         * modules/string (Depends-on): Update.
17003         * modules/strings (Depends-on): Update.
17004         * modules/sys_ioctl (Depends-on): Update.
17005         * modules/sys_select (Depends-on): Update.
17006         * modules/sys_socket (Depends-on): Update.
17007         * modules/sys_stat (Depends-on): Update.
17008         * modules/sys_time (Depends-on): Update.
17009         * modules/sys_wait (Depends-on): Update.
17010         * modules/termios (Depends-on): Update.
17011         * modules/time (Depends-on): Update.
17012         * modules/unistd (Depends-on): Update.
17013         * modules/wchar (Depends-on): Update.
17014         * modules/wctype-h (Depends-on): Update.
17015
17016         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
17017         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
17018         (Files, Makefile.am): Update.
17019         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
17020         * modules/argv-iter (Depends-on): Update.
17021         * modules/arpa_inet (Depends-on): Update.
17022         * modules/dirent (Depends-on): Update.
17023         * modules/fcntl-h (Depends-on): Update.
17024         * modules/fnmatch (Depends-on): Update.
17025         * modules/getopt-posix (Depends-on): Update.
17026         * modules/glob (Depends-on): Update.
17027         * modules/iconv-h (Depends-on): Update.
17028         * modules/inttypes-incomplete (Depends-on): Update.
17029         * modules/locale (Depends-on): Update.
17030         * modules/math (Depends-on): Update.
17031         * modules/netdb (Depends-on): Update.
17032         * modules/search (Depends-on): Update.
17033         * modules/signal (Depends-on): Update.
17034         * modules/spawn (Depends-on): Update.
17035         * modules/stdio (Depends-on): Update.
17036         * modules/stdlib (Depends-on): Update.
17037         * modules/string (Depends-on): Update.
17038         * modules/strings (Depends-on): Update.
17039         * modules/sys_socket (Depends-on): Update.
17040         * modules/sys_stat (Depends-on): Update.
17041         * modules/sys_time (Depends-on): Update.
17042         * modules/sys_times (Depends-on): Update.
17043         * modules/sys_utsname (Depends-on): Update.
17044         * modules/time (Depends-on): Update.
17045         * modules/unistd (Depends-on): Update.
17046         * modules/wchar (Depends-on): Update.
17047         * MODULES.html.sh (Support for building libraries and executables):
17048         Update.
17049
17050 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
17051
17052         Improvements on _Noreturn and related modules.
17053
17054         modules/_Exit-tests: test _Noreturn too
17055         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
17056         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
17057         (main): Use them.
17058
17059         stdnoreturn, stdnoreturn-tests: remove modules
17060         They're not needed here and a bit premature for use elsewhere.  See
17061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
17062         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
17063         * tests/test-stdnoreturn.c: Remove files.
17064         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
17065         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
17066         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
17067         and using noreturn.
17068         * modules/openat, modules/sigpipe-die, modules/xalloc:
17069         * modules/xmemdup0, modules/xstrtol:
17070         Remove dependency on stdnoreturn.
17071
17072         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
17073         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
17074         Reparenthesize to avoid GCC warning.
17075         Support Microsoft's syntax.
17076         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
17077
17078         _Noreturn-tests: remove module
17079         * modules/_Noreturn-tests: Remove.
17080         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
17081         * tests/test-_Noreturn.c: Remove.
17082         * tests/test-stdnoreturn.c: Merge from the old
17083         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
17084
17085 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
17086
17087         _Noreturn, stdnoreturn, and related modules.
17088
17089         * top/maint.mk: Adjust to new noreturn support.
17090         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
17091         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
17092
17093         xalloc: use stdnoreturn.h
17094         * lib/xalloc.h: Include <stdnoreturn.h>.
17095         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17096         * modules/xalloc (Depends-on): Add stdnoreturn.
17097
17098         xstrtol: use stdnoreturn.h
17099         * lib/xstrtol.h: Include <stdnoreturn.h>.
17100         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17101         * modules/xstrtol (Depends-on): Add stdnoreturn.
17102
17103         xmemdup0: use stdnoreturn.h
17104         * lib/xmemdup0.h: Include <stdnoreturn.h>.
17105         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17106         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
17107
17108         sigpipe-die: use stdnoreturn.h
17109         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
17110         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17111         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
17112
17113         openat: use stdnoreturn.h
17114         * lib/openat.h: Include <stdnoreturn.h>.
17115         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17116         * modules/openat (Depends-on): Add stdnoreturn.
17117
17118         * lib/openat-die.c (openat_save_fail): Modernize comment.
17119
17120         * lib/xalloc-die.c (xalloc_die): Modernize comment.
17121
17122         * lib/glthread/thread.h: Modernize comment.
17123
17124         obstack: use _Noreturn
17125         * lib/obstack.c (__attribute__): Remove macro.
17126         (print_and_abort): Use _Noreturn.
17127
17128         c-stack: use _Noreturn
17129         * lib/c-stack.c (die, overflow_handler, segv_handler):
17130         Use _Noreturn rather than __attribute__((noreturn)).
17131
17132         argmatch-tests, exclude_tests: use _Noreturn
17133         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
17134         Remove.
17135         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
17136
17137         stdlib: use _Noreturn
17138         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
17139         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
17140         * modules/stdlib (Depends-on): Add _Noreturn.
17141         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
17142
17143         stdnoreturn-tests: new module
17144         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17145
17146         stdnoreturn: new module
17147         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17148         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17149
17150         _Noreturn-tests: new module
17151         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17152
17153         _Noreturn: new module
17154         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17155         New section, mentioning it.
17156         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17157
17158         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17159
17160 2011-07-11  Eric Blake  <eblake@redhat.com>
17161
17162         ffs: new module
17163         * modules/ffs: New file.
17164         * m4/ffs.m4: Likewise.
17165         * lib/ffs.c: Likewise.
17166         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17167         * modules/strings (Makefile.am): Substitute witness.
17168         (Depends-on): Add c++defs.
17169         * lib/strings.in.h (ffs): Declare.
17170         * modules/ffs-tests: New test file.
17171         * tests/test-ffs.c: Test new module.
17172         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17173         * doc/posix-functions/ffs.texi (ffs): Likewise.
17174
17175         regex: avoid compiler warning
17176         * lib/regex.c (includes): Include <strings.h>, for use of
17177         strcasecmp in regcomp.c.
17178         Reported by Joachim Schmitz.
17179
17180 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17181
17182         stdint: respect system's intmax_t if INTMAX_MAX
17183         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17184         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17185         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17186         long but int64_t is long long, and where we will clash with the
17187         system intmax_t if we override it.  See
17188         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17189         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17190         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17191         similarly for UINTMAX_C.
17192
17193 2011-07-08  Bruno Haible  <bruno@clisp.org>
17194
17195         pthread_sigmask tests: Avoid a compiler warning.
17196         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17197         non-zero.
17198
17199         sigprocmask tests: A better way to avoid a compiler warning.
17200         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17201         (main): Complain if system() returns non-zero.
17202         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17203
17204 2011-07-08  Bruno Haible  <bruno@clisp.org>
17205
17206         pthread_sigmask: Work around IRIX bug.
17207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17208         bug.
17209         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17210         there may be unblocked pending signals.
17211         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17212
17213 2011-07-08  Bruno Haible  <bruno@clisp.org>
17214
17215         pthread_sigmask: Work around Cygwin bug.
17216         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17217         bug.
17218         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17219         the system's pthread_sigmask function.
17220         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17221
17222 2011-07-08  Bruno Haible  <bruno@clisp.org>
17223
17224         pthread_sigmask: Work around bug in single-threaded implementation.
17225         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17226         FreeBSD, HP-UX, Solaris bug.
17227         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17228         * lib/pthread_sigmask.c: Include <stddef.h>.
17229         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17230         the system's pthread_sigmask function.
17231         * modules/pthread_sigmask (configure.ac): Invoke
17232         gl_PREREQ_PTHREAD_SIGMASK.
17233         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17234         HP-UX, Solaris.
17235
17236 2011-07-08  Eric Blake  <eblake@redhat.com>
17237
17238         test-sigprocmask: avoid compiler warning
17239         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17240         * tests/test-sigprocmask.c (main): Use it to silence warning.
17241         Reported by Jim Meyering.
17242
17243         test-snprintf: avoid compiler warning
17244         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17245         * tests/test-vsnprintf.c (main): Likewise.
17246         Reported by Jim Meyering.
17247
17248 2011-07-08  Bruno Haible  <bruno@clisp.org>
17249
17250         Tests for module 'pthread_sigmask'.
17251         * modules/pthread_sigmask-tests: New file.
17252         * tests/test-pthread_sigmask1.c: New file, based on
17253         tests/test-sigprocmask.c.
17254         * tests/test-pthread_sigmask2.c: New file.
17255
17256 2011-07-08  Jim Meyering  <meyering@redhat.com>
17257
17258         test-getopt.h: avoid warning about an unused variable
17259         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17260
17261 2011-07-07  Jim Meyering  <meyering@redhat.com>
17262
17263         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17264         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17265         now that it no longer contains leading TABs.
17266         Remove unused "url=FIXME" statement.
17267
17268 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17269
17270         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17271         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17272         When gl_THREADLIB is not in use, assume that the POSIX sematics
17273         are desired.  This is better for Emacs, which uses POSIX semantics
17274         on GNUish and/or POSIXish platforms, and does not use threads at
17275         all otherwise.
17276
17277         pthread_sigmask: fix typo when testing for libraries
17278         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17279         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17280
17281 2011-07-08  Eric Blake  <eblake@redhat.com>
17282
17283         fts: introduce FTS_NOATIME
17284         * lib/fts_.h (FTS_NOATIME): New bit flag.
17285         (FTS_OPTIONMASK): Adjust.
17286         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17287         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17288
17289 2011-07-08  Bruno Haible  <bruno@clisp.org>
17290
17291         Tests for module 'thread'.
17292         * modules/thread-tests: New file.
17293         * tests/test-thread_self.c: New file.
17294         * tests/test-thread_create.cc: New file.
17295
17296 2011-07-08  Bruno Haible  <bruno@clisp.org>
17297
17298         thread: Avoid gcc warnings when using gl_thread_self().
17299         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17300         'void *'.
17301         (gl_thread_self_pointer): Update.
17302
17303 2011-07-07  Bruno Haible  <bruno@clisp.org>
17304
17305         signal-c++-tests: Check declaration of pthread_sigmask.
17306         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17307         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17308         $(LIB_PTHREAD_SIGMASK).
17309
17310 2011-07-07  Bruno Haible  <bruno@clisp.org>
17311
17312         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17313         * lib/signal.in.h (pthread_sigmask): Override if
17314         REPLACE_PTHREAD_SIGMASK is 1.
17315         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17316         REPLACE_PTHREAD_SIGMASK.
17317         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17318         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17319         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17320         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17321         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17322
17323 2011-07-07  Bruno Haible  <bruno@clisp.org>
17324
17325         pthread_sigmask: Ensure declaration in <signal.h>.
17326         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17327         include <pthread.h>.
17328         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17329         problem.
17330
17331 2011-07-07  Bruno Haible  <bruno@clisp.org>
17332
17333         pthread_sigmask: Document the module.
17334         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17335
17336 2011-07-07  Bruno Haible  <bruno@clisp.org>
17337
17338         pthread_sigmask: Follow gnulib conventions.
17339         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17340         gl_PTHREAD_SIGMASK.
17341         * modules/pthread_sigmask (configure.ac): Update.
17342
17343 2011-07-07  Bruno Haible  <bruno@clisp.org>
17344
17345         pthread_sigmask: Make declaration C++ safe.
17346         * lib/signal.in.h: In two special conditions, just do an #include_next.
17347         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17348         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17349         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17350         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17351         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17352         not REPLACE_PTHREAD_MASK.
17353         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17354         not REPLACE_PTHREAD_MASK.
17355         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17356
17357 2011-07-07  Bruno Haible  <bruno@clisp.org>
17358
17359         pthread_sigmask: Fix return value.
17360         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17361         * lib/pthread_sigmask.c: New file.
17362         * modules/pthread_sigmask (Files): Add it.
17363         (configure.ac): Invoke AC_LIBOBJ.
17364
17365 2011-07-07  Eric Blake  <eblake@redhat.com>
17366
17367         getopt: more portable argv creation
17368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17369         const, use char arrays rather than strings.
17370         Suggested by Paul Eggert.
17371
17372 2011-07-07  Bruno Haible  <bruno@clisp.org>
17373
17374         Tests for module 'sigprocmask'.
17375         * modules/sigprocmask-tests: New file.
17376         * tests/test-sigprocmask.c: New file.
17377
17378 2011-07-07  Bruno Haible  <bruno@clisp.org>
17379
17380         float tests: Tweak.
17381         * tests/test-float.c (main): Tweak skip message.
17382
17383 2011-07-07  Eric Blake  <eblake@redhat.com>
17384
17385         getopt: avoid compiler warning during configure
17386         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17387         assigning string literals to non-const pointer.
17388
17389         getopt-gnu: avoid crash in glibc getopt
17390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17391         * tests/test-getopt.h (test_getopt): Enhance test.
17392         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17393         * doc/posix-functions/getopt.texi (getopt): Document it.
17394         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17395         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17396         Likewise.
17397
17398 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17399
17400         getopt: handle W; without long options in getopt [BZ #12922]
17401         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17402         but no long options are defined, just return 'W'.
17403
17404 2011-07-07  Bruno Haible  <bruno@clisp.org>
17405
17406         Avoid literal tabs.
17407         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17408         variable containing a tab instead of a literal tab.
17409         Reported by Jim Meyering.
17410
17411 2011-07-07  Bruno Haible  <bruno@clisp.org>
17412
17413         Comments.
17414         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17415
17416 2011-07-06  Bruno Haible  <bruno@clisp.org>
17417
17418         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17419         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17420         <winsock2.h>.
17421         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17422         lib/sys_socket.in.h.
17423         (close, gethostname): Hide declarations from <winsock2.h>.
17424         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17425         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17426         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17427         (select): Don't override if gnulib's <sys/select.h> was already
17428         included.
17429         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17430         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17431         setsockopt, shutdown, select): Tweak indentation.
17432
17433 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17434
17435         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17436         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17437         in an application that does not use the sys_select module.
17438
17439 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17440
17441         poll: do not return 0 on timeout=-1
17442         * lib/poll.c: Loop with yield if no events occurred.
17443
17444 2011-07-06  Eric Blake  <eblake@redhat.com>
17445
17446         pthread_sigmask: always replace when not using pthread
17447         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17448         replacement when using some threading other than pthread.  Fix
17449         logic bug.
17450
17451 2011-07-06  Bruno Haible  <bruno@clisp.org>
17452
17453         Comments.
17454         * m4/printf.m4: Update comments about mingw.
17455
17456 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17457
17458         sys_select: define sigset_t more portably
17459         * lib/sys_select.in.h: Always include <sys/types.h>, since
17460         we now need sigset_t and mingw defines it there.
17461         Include <signal.h> before split inclusion guard, to avoid
17462         mishaps on Solaris, whose <signal.h> eventually includes us.
17463         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17464         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17465         which come from ...
17466         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17467         gl_CHECK_TYPE_SIGSET_T.
17468         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17469         does the real work.
17470         * modules/sys_select (Depends-on): Add 'signal'.
17471
17472         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17473         Suggested by Bruno Haible.
17474
17475         pselect: Use pthread_sigmask, not sigprocmask.
17476         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17477         multithreaded apps better than sigprocmask does.
17478         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17479         sigprocmask directly.
17480
17481 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17482
17483         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17484         Don't #undef,  since we don't need any underlying pselect.
17485         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17486         (Depends-on): Add select.
17487         (Link): Add $(LIBSOCKET).
17488         These changes suggested by Bruno Haible.
17489
17490         pselect: document better
17491         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17492         * doc/posix-functions/pselect.texi (pselect): Document new module.
17493
17494         pthread_sigmask: new module
17495         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17496         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17497         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17498         This is done only as a macro; I don't know how well that'll
17499         work for C++.  Move <sys/types.h> include before the include_next,
17500         to avoid mishap on Solaris.
17501         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17502         * modules/signal (Makefile.am): Substitute the check's results.
17503         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17504
17505         test-pselect: new module
17506         * modules/pselect-tests, tests/test-pselect.c: New files.
17507         * tests/test-select.c, tests/test-sys_select-c++.cc:
17508         If TEST_PSELECT is defined, test pselect instead of testing select.
17509
17510         * tests/test-sys_select.c (sigset_t): Test for it, too.
17511         Suggested by Bruno Haible.
17512
17513 2011-07-05  Eric Blake  <eblake@redhat.com>
17514
17515         snprintf: guarantee %1$d, for libintl
17516         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17517         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17518         * doc/posix-functions/snprintf.texi (snprintf): Update.
17519         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17520         * tests/test-snprintf.c (main): Enhance test.
17521         * tests/test-vsnprintf.c (main): Likewise.
17522
17523 2011-07-05  Jim Meyering  <meyering@redhat.com>
17524
17525         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17526         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17527         per Bruno's request, to accommodate this idiom (no space after "#")
17528         even when the function is inside an #if block:
17529         char *
17530         gets (char *s)
17531         #undef gets
17532         {
17533           ...
17534         }
17535
17536 2011-07-04  Jim Meyering  <meyering@redhat.com>
17537
17538         maint: indent with spaces, not TABs, and add a rule to check this
17539         * tests/test-userspec.c: Indent with spaces, not TABs.
17540         * tests/test-argp.c: Likewise.
17541         * tests/test-c-stack2.sh: Likewise.
17542         * tests/test-parse-duration.sh: Likewise
17543         * m4/strtod.m4: Likewise.
17544         * m4/alloca.m4: Likewise.
17545         * m4/pselect.m4: Likewise.
17546         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17547
17548 2011-07-03  Jim Meyering  <meyering@redhat.com>
17549
17550         maint.mk: correct omissions in prohibit_argmatch_without_use check
17551         This rule would mistakenly report that argmatch.h is included without
17552         use even when both the argmatch and invalid_arg macro were used.
17553         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17554         of argmatch and invalid_arg.
17555
17556 2011-07-03  Bruno Haible  <bruno@clisp.org>
17557
17558         Comments about EINTR.
17559         * lib/safe-read.h: Explain the purpose of this module.
17560         * lib/safe-write.h: Likewise.
17561         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17562         module.
17563         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17564         module.
17565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17566
17567 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17568
17569         xnanosleep: Rewrite to use new dtotimespec module.
17570         It has the conversion code that used to be in xnanosleep.
17571         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17572         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17573         (TIME_T_MAX): Remove.
17574         (xnanosleep): Rewrite in terms of dtotimespec.
17575         * modules/xnanosleep (Depends-on): Add dtotimespec.
17576         Remove intprops, stdbool.
17577
17578         timespec-add, timespec-sub: new modules
17579         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17580         * lib/timespec-add.c, lib/timespec-sub.c:
17581         * modules/timespec-add, modules/timespec-sub: New files.
17582
17583         dtotimespec: new module
17584         * lib/timespec.h (dtotimespec): New decl.
17585         * lib/dtotimespec.c, modules/dtotimespec: New files.
17586
17587         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17588
17589         pselect: new module
17590         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17591         (pselect): New decls.
17592         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17593         since the standard pselect decl uses 'restrict'.
17594         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17595         HAVE_PSELECT, REPLACE_PSELECT.
17596         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17597         HAVE_PSELECT, REPLACE_PSELECT.
17598         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17599
17600         sys_select: don't depend on sys_socket
17601         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17603         This fix works on GNU and GNU-like platforms, but has not been tested
17604         on native Windows.
17605         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17606         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17607         gl_HEADER_SYS_SOCKET.
17608         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17609         gl_PREREQ_SYS_H_WINSOCK2.
17610
17611 2011-06-29  Eric Blake  <eblake@redhat.com>
17612
17613         pipe2: fix C89 compile problem
17614         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17615         Reported by Bruno Haible.
17616
17617         pipe, pipe2: don't corrupt fd on error
17618         * lib/pipe.c (pipe): Leave fd unchanged on error.
17619         * lib/pipe2.c (pipe2): Likewise.
17620         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17621         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17622
17623 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17624
17625         mmap-anon: do not use regular expressions inadvertently
17626         * m4/mmap-anon.m4: Remove trailing period from strings sought
17627         in the output.
17628
17629 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17630
17631         nanosleep: fix integer overflow problem
17632         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17633         arithmetic wraps around on overflow.
17634
17635         nanosleep: simplify carrying
17636         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17637         first call to the underyling nanosleep, not for the last one.
17638         This doesn't fix any bugs, but it simplifies the computation of
17639         the remaining delay.  Found while auditing integer overflow issues.
17640
17641         dup2: remove test for existence of fcntl
17642         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17643         "#if HAVE_FCNTL", in the configure-time test program.
17644         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17645         and therefore speeds up "configure" a bit.  Found while
17646         adding the dup2 module to Emacs.
17647
17648 2011-06-24  Eric Blake  <eblake@redhat.com>
17649
17650         maint.mk: enhance useless header checks
17651         * top/maint.mk (_sc_header_without_use): Check both include
17652         styles.
17653         (sc_prohibit_assert_without_use)
17654         (sc_prohibit_close_stream_without_use)
17655         (sc_prohibit_getopt_without_use)
17656         (sc_prohibit_quotearg_without_use)
17657         (sc_prohibit_quote_without_use)
17658         (sc_prohibit_long_options_without_use)
17659         (sc_prohibit_inttostr_without_use)
17660         (sc_prohibit_ignore_value_without_use)
17661         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17662         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17663         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17664         (sc_prohibit_hash_pjw_without_use)
17665         (sc_prohibit_safe_read_without_use)
17666         (sc_prohibit_argmatch_without_use)
17667         (sc_prohibit_canonicalize_without_use)
17668         (sc_prohibit_root_dev_ino_without_use)
17669         (sc_prohibit_openat_without_use)
17670         (sc_prohibit_c_ctype_without_use)
17671         (sc_prohibit_signal_without_use)
17672         (sc_prohibit_stdio--_without_use)
17673         (sc_prohibit_stdio-safer_without_use)
17674         (sc_prohibit_strings_without_use)
17675         (sc_prohibit_intprops_without_use)
17676         (sc_prohibit_stddef_without_use)
17677         (sc_prohibit_xfreopen_without_use): Update clients.
17678
17679 2011-06-24  Jim Meyering  <meyering@redhat.com>
17680
17681         syntax-check: keep one maint.mk rule in sync with its header
17682         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17683         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17684         I prefer to avoid temporary files here, so use <(...), but that
17685         is not supported by /bin/sh, so...
17686         (SHELL): Define to /bin/bash.
17687
17688 2011-06-24  Eric Blake  <eblake@redhat.com>
17689
17690         maint.mk: update sc_prohibit_intprops_without_use
17691         * top/maint.mk (_intprops_names): Match recent changes.
17692
17693 2011-06-24  Bruno Haible  <bruno@clisp.org>
17694
17695         strerror-override: No-op tweak.
17696         * lib/strerror-override.h (strerror_override): Reorder conditions,
17697         for consistency with lib/strerror-override.c.
17698
17699 2011-06-23  Eric Blake  <eblake@redhat.com>
17700
17701         maint.mk: test further PATH_MAX issues
17702         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17703         (sc_prohibit_path_max_allocation): ...and also test alloca.
17704         Suggested by Jim Meyering.
17705
17706 2011-06-22  Eric Blake  <eblake@redhat.com>
17707
17708         maint.mk: add syntax-check to avoid char[PATH_MAX]
17709         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17710
17711         stat: be robust to PATH_MAX definition
17712         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17713         * modules/stat (Depends-on): Add verify.
17714
17715         link: work around IRIX bug
17716         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17717         * lib/link.c (rpl_link): Work around it.
17718         * tests/test-link.h (test_link): Enhance test.
17719         * doc/posix-functions/link.texi (link): Document the bug.
17720
17721         getopt: silence clang warning
17722         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17723         dereference.
17724         Reported by Gustavo Martin Domato.
17725
17726 2011-06-22  Jim Meyering  <meyering@redhat.com>
17727
17728         bootstrap: do not insert a blank line into each .gitignore file
17729         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17730
17731 2011-06-21  Eric Blake  <eblake@redhat.com>
17732
17733         perror: test for output mismatch
17734         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17735         perror on IRIX.
17736
17737         strerror_r: fix OpenBSD behavior on out-of-range
17738         * lib/strerror_r.c (strerror_r): Always use maximal string.
17739         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17740
17741         strerror_r: fix OpenBSD behavior on 0
17742         * lib/strerror-override.c (strerror_override): Also override 0
17743         when needed.
17744         * lib/strerror-override.h (strerror_override): Likewise.
17745         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17746         earlier.
17747         * lib/strerror_r.c (strerror_r): Likewise.
17748         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17749         behavior...
17750         (gl_FUNC_STRERROR_0): ...into new macro.
17751         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17752         is overridden.
17753         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17754         * modules/strerror-override (Files): Add strerror.m4.
17755         (configure.ac): Also provide override for 0 when needed.
17756         * doc/posix-functions/strerror.texi (strerror): Document this.
17757         * doc/posix-functions/perror.texi (perror): Likewise.
17758
17759         perror: adjust array size
17760         * modules/perror (Depends-on): Add strerror-override.
17761         * lib/perror.c (perror): Use it to avoid magic number.
17762
17763         strerror-override: reduce size
17764         * lib/strerror-override.c (strerror_override): Use fewer lines.
17765
17766 2011-06-20  Bruno Haible  <bruno@clisp.org>
17767
17768         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17769         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17770
17771 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17772
17773         alloca: port to compilers that can optimize like GCC 4.6.0
17774         * lib/alloca.c (find_stack_direction): New signature, taken from
17775         Autoconf git.  This works with GCC 4.6.0.  This code should never
17776         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17777         be used with other compilers that optimize as well as GCC 4.6.0 does.
17778         (alloca): Adjust to new signature.
17779         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17780         New macro, which patches Autoconf in a similar way.
17781
17782         c-stack: stop worrying about stack direction
17783         * lib/c-stack.c (find_stack_direction): Remove.
17784         (segv_handler): Don't worry about stack direction growth, as it's
17785         too much of a pain to configure this correctly, given how compilers
17786         are optimizing-away our stack-growth detection code.  Instead, assume
17787         that any access to just before or just after the stack is OK.
17788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17789         Don't require AC_FUNC_ALLOCA; no longer needed.
17790
17791 2011-06-20  Eric Blake  <eblake@redhat.com>
17792
17793         test-stat: don't allocate PATH_MAX bytes
17794         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17795         PATH_MAX-sized buffer.
17796         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17797         * modules/stat-tests (Depends-on): Likewise.
17798         * tests/test-fstatat.c (includes): Drop pathmax.h.
17799         * tests/test-stat.c (includes): Likewise.
17800         Reported by Bruno Haible.
17801
17802 2011-06-20  Bruno Haible  <bruno@clisp.org>
17803
17804         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17805         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17806         * lib/float.c: New file.
17807         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17808         REPLACE_FLOAT_LDBL.
17809         * modules/float (Files): Add lib/float.c.
17810         (configure.ac): Invoke AC_LIBOBJ.
17811         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17812
17813 2011-06-20  Bruno Haible  <bruno@clisp.org>
17814
17815         Tests for module 'float'.
17816         * modules/float-tests: New file.
17817         * tests/test-float.c: New file.
17818
17819 2011-06-19  Bruno Haible  <bruno@clisp.org>
17820
17821         isinf: Coding style.
17822         * lib/isinf.c: Use GNU coding style.
17823
17824 2011-06-19  Bruno Haible  <bruno@clisp.org>
17825
17826         linkat test: Avoid test failure on AIX 7.1.
17827         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17828         * tests/test-link.h (test_link): Likewise.
17829
17830 2011-06-19  Bruno Haible  <bruno@clisp.org>
17831
17832         pread test: Avoid test failure on OpenBSD 4.9.
17833         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17834
17835 2011-06-19  Bruno Haible  <bruno@clisp.org>
17836
17837         sprintf-posix: Fix test failure on AIX 7.1.
17838         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17839         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17840         on AIX.
17841         * doc/posix-functions/fprintf.texi: Likewise.
17842         * doc/posix-functions/printf.texi: Likewise.
17843         * doc/posix-functions/snprintf.texi: Likewise.
17844         * doc/posix-functions/sprintf.texi: Likewise.
17845         * doc/posix-functions/vdprintf.texi: Likewise.
17846         * doc/posix-functions/vfprintf.texi: Likewise.
17847         * doc/posix-functions/vprintf.texi: Likewise.
17848         * doc/posix-functions/vsnprintf.texi: Likewise.
17849         * doc/posix-functions/vsprintf.texi: Likewise.
17850
17851 2011-06-19  Bruno Haible  <bruno@clisp.org>
17852
17853         roundl-ieee: Fix test failure on AIX 7.1.
17854         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17855         * doc/posix-functions/roundl.texi: Mention problem with negative
17856         arguments.
17857
17858 2011-06-19  Bruno Haible  <bruno@clisp.org>
17859
17860         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17861         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17862         * doc/posix-functions/round.texi: Mention problem with negative
17863         arguments.
17864         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17865
17866 2011-06-19  Bruno Haible  <bruno@clisp.org>
17867
17868         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17869         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17870         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17871         * doc/posix-functions/roundf.texi: Mention problem with negative
17872         arguments.
17873         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17874
17875 2011-06-19  Bruno Haible  <bruno@clisp.org>
17876
17877         ceilf-ieee: Work around bug on MacOS X 10.5.
17878         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17879
17880         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17881         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17882         IEEE compliant, avoid compiler optimizations.
17883         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17884         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17885         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17886         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17887         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17888         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17889         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17890         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17891         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17892         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17893
17894 2011-06-19  Bruno Haible  <bruno@clisp.org>
17895
17896         ceilf-ieee: Work around bug on AIX 7.1.
17897         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17898         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17899
17900 2011-06-19  Bruno Haible  <bruno@clisp.org>
17901
17902         ceil-ieee: Work around bug on AIX 7.1.
17903         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17904         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17905
17906 2011-06-18  Bruno Haible  <bruno@clisp.org>
17907
17908         fsync test: Avoid test failure on MacOS X and AIX.
17909         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17910         EINVAL.
17911
17912 2011-06-18  Bruno Haible  <bruno@clisp.org>
17913
17914         openat, fdopendir tests: Fix link errors.
17915         * modules/openat-tests (Depends-on): Add progname.
17916         * modules/fdopendir-tests (Depends-on): Likewise.
17917         * tests/test-fchownat.c: Include progname.h.
17918         (main): Call set_program_name.
17919         * tests/test-fstatat.c: Include progname.h.
17920         (main): Call set_program_name.
17921         * tests/test-mkdirat.c: Include progname.h.
17922         (main): Call set_program_name.
17923         * tests/test-openat.c: Include progname.h.
17924         (main): Call set_program_name.
17925         * tests/test-unlinkat.c: Include progname.h.
17926         (main): Call set_program_name.
17927         * tests/test-fdopendir.c: Include progname.h.
17928         (main): Call set_program_name.
17929
17930 2011-06-18  Bruno Haible  <bruno@clisp.org>
17931
17932         Doc update.
17933         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17934         HP-UX.
17935         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17936
17937 2011-06-18  Bruno Haible  <bruno@clisp.org>
17938
17939         getcwd tests: Avoid compilation error on HP-UX 11.31.
17940         * modules/getcwd-tests (Depends-on): Add pathmax.
17941         * tests/test-getcwd.c: Include pathmax.h.
17942
17943 2011-06-18  Bruno Haible  <bruno@clisp.org>
17944
17945         isfinite, isinf: Fix link error on AIX 6 and 7.
17946         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17947         needed, also test the macro with a 'float' argument.
17948         * m4/isinf.m4 (gl_ISINF): Likewise.
17949
17950 2011-06-18  Bruno Haible  <bruno@clisp.org>
17951
17952         getloadavg: Don't clobber LIBS. Regression from previous commit.
17953         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17954         AC_CHECK_LIB from here...
17955         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17956         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17957         gl_func_getloadavg_done.
17958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17959
17960 2011-06-18  Bruno Haible  <bruno@clisp.org>
17961
17962         clean-temp: Improve documentation.
17963         * lib/clean-temp.h: Explain better how to use this module.
17964         Reported by John Darrington <john@darrington.wattle.id.au>.
17965
17966 2011-06-17  Bruno Haible  <bruno@clisp.org>
17967
17968         pread, pwrite: Avoid cc warning on AIX.
17969         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17970         (pwrite): Likewise.
17971
17972 2011-06-17  Bruno Haible  <bruno@clisp.org>
17973
17974         spawn-pipe tests: Fix link error.
17975         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17976         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17977
17978 2011-06-17  Bruno Haible  <bruno@clisp.org>
17979
17980         Tests: Remove unnecessary dependency.
17981         * modules/canonicalize-tests (Depends-on): Remove progname.
17982         * modules/chown-tests (Depends-on): Likewise.
17983         * modules/dirname-tests (Depends-on): Likewise.
17984         * modules/fdopendir-tests (Depends-on): Likewise.
17985         * modules/fdutimensat-tests (Depends-on): Likewise.
17986         * modules/hash-tests (Depends-on): Likewise.
17987         * modules/lchown-tests (Depends-on): Likewise.
17988         * modules/linkat-tests (Depends-on): Likewise.
17989         * modules/renameat-tests (Depends-on): Likewise.
17990         * modules/spawn-pipe-tests (Depends-on): Likewise.
17991         * modules/utimensat-tests (Depends-on): Likewise.
17992
17993 2011-06-17  Bruno Haible  <bruno@clisp.org>
17994
17995         spawn-pipe tests: Fix link error.
17996         * tests/test-spawn-pipe-child.c: Undefine fflush.
17997
17998 2011-06-17  Bruno Haible  <bruno@clisp.org>
17999
18000         Fix tests link errors.
18001         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
18002         * modules/chown-tests (Makefile.am): Don't link test-chown with
18003         LIBINTL.
18004         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
18005         LIBINTL.
18006         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
18007         LIBINTL.
18008         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
18009         LIBINTL.
18010
18011 2011-06-16  Bruno Haible  <bruno@clisp.org>
18012
18013         crypto/gc-sha1: Fix recent regression.
18014         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
18015         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
18016
18017         crypto/gc-md5: Fix recent regression.
18018         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
18019
18020         crypto/gc-md4: Fix recent regression.
18021         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
18022         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
18023
18024         crypto/gc-arctwo: Fix recent regression.
18025         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
18026         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
18027
18028         crypto/gc-rijndael: Fix recent regression.
18029         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
18030         (configure.ac): Invoke AC_LIBOBJ here.
18031         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
18032         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18033
18034         crypto/gc-hmac-sha1: Fix recent regression.
18035         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
18036         (configure.ac): Invoke AC_LIBOBJ here.
18037         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
18038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18039
18040         crypto/gc-hmac-md5: Fix recent regression.
18041         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
18042         (configure.ac): Invoke AC_LIBOBJ here.
18043         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
18044         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18045
18046         crypto/gc-des: Fix recent regression.
18047         * modules/crypto/gc-des (Files): Remove m4/des.m4.
18048         (configure.ac): Invoke AC_LIBOBJ here.
18049         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
18050         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18051
18052         crypto/gc-arcfour: Fix recent regression.
18053         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
18054         (configure.ac): Invoke AC_LIBOBJ here.
18055         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
18056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18057
18058 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
18059
18060         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
18061         After the 2011-05-21 change, this macro requires
18062         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
18063         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18064
18065 2011-06-16  Bruno Haible  <bruno@clisp.org>
18066
18067         fprintftime: Move AC_LIBOBJ invocations to module description.
18068         * m4/fprintftime.m4: Remove file.
18069         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
18070         (configure.ac): Remove gl_FPRINTFTIME call.
18071         (Makefile.am): Augment lib_SOURCES.
18072         Reported by Jim Meyering.
18073
18074 2011-06-16  Bruno Haible  <bruno@clisp.org>
18075
18076         tmpfile-safer: Finish 2011-05-23 commit.
18077         * m4/stdio-safer.m4: Really remove file.
18078         Reported by Jim Meyering.
18079
18080 2011-06-16  Bruno Haible  <bruno@clisp.org>
18081
18082         syntax-check: Fix typo.
18083         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
18084         printf-posix.m4.
18085         Reported by Jim Meyering.
18086
18087 2011-06-13  Jim Meyering  <meyering@redhat.com>
18088
18089         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
18090         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
18091
18092 2011-05-23  Bruno Haible  <bruno@clisp.org>
18093
18094         yesno: Move AC_LIBOBJ invocations to module description.
18095         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
18096         * modules/yesno (Makefile.am): Augment lib_SOURCES.
18097
18098 2011-05-23  Bruno Haible  <bruno@clisp.org>
18099
18100         xstrtol: Move AC_LIBOBJ invocations to module description.
18101         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
18102         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
18103
18104 2011-05-23  Bruno Haible  <bruno@clisp.org>
18105
18106         xstrtold: Move AC_LIBOBJ invocations to module description.
18107         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
18108         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
18109
18110 2011-05-23  Bruno Haible  <bruno@clisp.org>
18111
18112         xstrtod: Move AC_LIBOBJ invocations to module description.
18113         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
18114         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
18115
18116 2011-05-23  Bruno Haible  <bruno@clisp.org>
18117
18118         xnanosleep: Move AC_LIBOBJ invocations to module description.
18119         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
18120         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
18121
18122 2011-05-23  Bruno Haible  <bruno@clisp.org>
18123
18124         xgetcwd: Move AC_LIBOBJ invocations to module description.
18125         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
18126         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
18127
18128 2011-05-23  Bruno Haible  <bruno@clisp.org>
18129
18130         xalloc: Move AC_LIBOBJ invocations to module description.
18131         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
18132         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
18133
18134 2011-05-23  Bruno Haible  <bruno@clisp.org>
18135
18136         write-any-file: Move AC_LIBOBJ invocations to module description.
18137         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
18138         invocation.
18139         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
18140
18141 2011-05-23  Bruno Haible  <bruno@clisp.org>
18142
18143         utimens: Move AC_LIBOBJ invocations to module description.
18144         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18145         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18146
18147 2011-05-23  Bruno Haible  <bruno@clisp.org>
18148
18149         utimecmp: Move AC_LIBOBJ invocations to module description.
18150         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18151         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18152
18153 2011-05-23  Bruno Haible  <bruno@clisp.org>
18154
18155         userspec: Move AC_LIBOBJ invocations to module description.
18156         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18157         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18158
18159 2011-05-23  Bruno Haible  <bruno@clisp.org>
18160
18161         unlinkdir: Move AC_LIBOBJ invocations to module description.
18162         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18163         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18164
18165 2011-05-23  Bruno Haible  <bruno@clisp.org>
18166
18167         unistd-safer: Move AC_LIBOBJ invocations to module description.
18168         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18169         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18170
18171 2011-05-23  Bruno Haible  <bruno@clisp.org>
18172
18173         tempname: Move AC_LIBOBJ invocations to module description.
18174         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18175         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18176
18177 2011-05-23  Bruno Haible  <bruno@clisp.org>
18178
18179         strftime: Move AC_LIBOBJ invocations to module description.
18180         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18181         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18182
18183 2011-05-23  Bruno Haible  <bruno@clisp.org>
18184
18185         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18186         * m4/stdlib-safer.m4: Remove file.
18187         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18188         (configure.ac): Remove gl_STDLIB_SAFER call.
18189         (Makefile.am): Augment lib_SOURCES.
18190
18191 2011-05-23  Bruno Haible  <bruno@clisp.org>
18192
18193         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18194         * m4/stdio-safer.m4: Remove file.
18195         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18196         (configure.ac): Remove gl_TMPFILE_SAFER call.
18197         (Makefile.am): Augment lib_SOURCES.
18198
18199 2011-05-23  Bruno Haible  <bruno@clisp.org>
18200
18201         popen-safer: Move AC_LIBOBJ invocations to module description.
18202         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18203         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18204         (configure.ac): Remove gl_POPEN_SAFER call.
18205         (Makefile.am): Augment lib_SOURCES.
18206
18207 2011-05-23  Bruno Haible  <bruno@clisp.org>
18208
18209         freopen-safer: Move AC_LIBOBJ invocations to module description.
18210         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18211         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18212         (configure.ac): Remove gl_FREOPEN_SAFER call.
18213         (Makefile.am): Augment lib_SOURCES.
18214
18215 2011-05-23  Bruno Haible  <bruno@clisp.org>
18216
18217         fopen-safer: Move AC_LIBOBJ invocations to module description.
18218         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18219         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18220         (configure.ac): Remove gl_FOPEN_SAFER call.
18221         (Makefile.am): Augment lib_SOURCES.
18222
18223 2011-05-23  Bruno Haible  <bruno@clisp.org>
18224
18225         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18226         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18227         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18228
18229 2011-05-23  Bruno Haible  <bruno@clisp.org>
18230
18231         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18232         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18233         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18234
18235 2011-05-23  Bruno Haible  <bruno@clisp.org>
18236
18237         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18238         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18239         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18240
18241 2011-05-23  Bruno Haible  <bruno@clisp.org>
18242
18243         settime: Move AC_LIBOBJ invocations to module description.
18244         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18245         * modules/settime (Makefile.am): Augment lib_SOURCES.
18246
18247 2011-05-23  Bruno Haible  <bruno@clisp.org>
18248
18249         savedir: Move AC_LIBOBJ invocations to module description.
18250         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18251         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18252
18253 2011-05-23  Bruno Haible  <bruno@clisp.org>
18254
18255         save-cwd: Move AC_LIBOBJ invocations to module description.
18256         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18257         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18258
18259 2011-05-23  Bruno Haible  <bruno@clisp.org>
18260
18261         same: Move AC_LIBOBJ invocations to module description.
18262         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18263         * modules/same (Makefile.am): Augment lib_SOURCES.
18264
18265 2011-05-23  Bruno Haible  <bruno@clisp.org>
18266
18267         safe-write: Move AC_LIBOBJ invocations to module description.
18268         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18269         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18270         instead of gl_SAFE_WRITE.
18271         (Makefile.am): Augment lib_SOURCES.
18272
18273 2011-05-23  Bruno Haible  <bruno@clisp.org>
18274
18275         safe-read: Move AC_LIBOBJ invocations to module description.
18276         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18277         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18278         of gl_SAFE_READ.
18279         (Makefile.am): Augment lib_SOURCES.
18280
18281 2011-05-23  Bruno Haible  <bruno@clisp.org>
18282
18283         safe-alloc: Move AC_LIBOBJ invocations to module description.
18284         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18285         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18286
18287 2011-05-23  Bruno Haible  <bruno@clisp.org>
18288
18289         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18290         * m4/rijndael.m4: Remove file.
18291         * modules/crypto/rijndael (Files): Remove it.
18292         (configure.ac): Remove gl_RIJNDAEL call.
18293         (Makefile.am): Augment lib_SOURCES.
18294
18295 2011-05-23  Bruno Haible  <bruno@clisp.org>
18296
18297         readtokens: Move AC_LIBOBJ invocations to module description.
18298         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18299         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18300
18301 2011-05-23  Bruno Haible  <bruno@clisp.org>
18302
18303         read-file: Move AC_LIBOBJ invocations to module description.
18304         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18305         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18306         of gl_FUNC_READ_FILE.
18307         (Makefile.am): Augment lib_SOURCES.
18308
18309 2011-05-23  Bruno Haible  <bruno@clisp.org>
18310
18311         quotearg: Move AC_LIBOBJ invocations to module description.
18312         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18313         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18314
18315 2011-05-23  Bruno Haible  <bruno@clisp.org>
18316
18317         quote: Move AC_LIBOBJ invocations to module description.
18318         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18319         * modules/quote (Makefile.am): Augment lib_SOURCES.
18320
18321 2011-05-23  Bruno Haible  <bruno@clisp.org>
18322
18323         posixver: Move AC_LIBOBJ invocations to module description.
18324         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18325         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18326
18327 2011-05-23  Bruno Haible  <bruno@clisp.org>
18328
18329         posixtm: Move AC_LIBOBJ invocations to module description.
18330         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18331         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18332
18333 2011-05-23  Bruno Haible  <bruno@clisp.org>
18334
18335         physmem: Move AC_LIBOBJ invocations to module description.
18336         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18337         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18338
18339 2011-05-23  Bruno Haible  <bruno@clisp.org>
18340
18341         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18342         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18343         invocation.
18344         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18345
18346 2011-05-23  Bruno Haible  <bruno@clisp.org>
18347
18348         mpsort: Move AC_LIBOBJ invocations to module description.
18349         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18350         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18351
18352 2011-05-23  Bruno Haible  <bruno@clisp.org>
18353
18354         modechange: Move AC_LIBOBJ invocations to module description.
18355         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18356         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18357
18358 2011-05-23  Bruno Haible  <bruno@clisp.org>
18359
18360         mkdir-p: Move AC_LIBOBJ invocations to module description.
18361         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18362         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18363
18364 2011-05-23  Bruno Haible  <bruno@clisp.org>
18365
18366         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18367         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18368         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18369
18370 2011-05-23  Bruno Haible  <bruno@clisp.org>
18371
18372         mgetgroups: Move AC_LIBOBJ invocations to module description.
18373         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18374         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18375
18376 2011-05-23  Bruno Haible  <bruno@clisp.org>
18377
18378         memxor: Move AC_LIBOBJ invocations to module description.
18379         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18380         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18381
18382 2011-05-23  Bruno Haible  <bruno@clisp.org>
18383
18384         memcoll: Move AC_LIBOBJ invocations to module description.
18385         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18386         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18387
18388 2011-05-23  Bruno Haible  <bruno@clisp.org>
18389
18390         memcasecmp: Move AC_LIBOBJ invocations to module description.
18391         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18392         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18393
18394 2011-05-23  Bruno Haible  <bruno@clisp.org>
18395
18396         crypto/md5: Move AC_LIBOBJ invocations to module description.
18397         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18398         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18399
18400 2011-05-23  Bruno Haible  <bruno@clisp.org>
18401
18402         crypto/md4: Move AC_LIBOBJ invocations to module description.
18403         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18404         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18405
18406 2011-05-23  Bruno Haible  <bruno@clisp.org>
18407
18408         crypto/md2: Move AC_LIBOBJ invocations to module description.
18409         * m4/md2.m4: Remove file.
18410         * modules/crypto/md2 (Files): Remove it.
18411         (configure.ac): Remove gl_MD2 call.
18412         (Makefile.am): Augment lib_SOURCES.
18413
18414 2011-05-23  Bruno Haible  <bruno@clisp.org>
18415
18416         long-options: Move AC_LIBOBJ invocations to module description.
18417         * m4/long-options.m4: Remove file.
18418         * modules/long-options (Files): Remove it.
18419         (configure.ac): Remove gl_LONG_OPTIONS call.
18420         (Makefile.am): Augment lib_SOURCES.
18421
18422 2011-05-23  Bruno Haible  <bruno@clisp.org>
18423
18424         i-ring: Move AC_LIBOBJ invocations to module description.
18425         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18426         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18427
18428 2011-05-23  Bruno Haible  <bruno@clisp.org>
18429
18430         idcache: Move AC_LIBOBJ invocations to module description.
18431         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18432         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18433
18434 2011-05-23  Bruno Haible  <bruno@clisp.org>
18435
18436         human: Move AC_LIBOBJ invocations to module description.
18437         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18438         * modules/human (Makefile.am): Augment lib_SOURCES.
18439
18440 2011-05-23  Bruno Haible  <bruno@clisp.org>
18441
18442         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18443         * m4/hmac-sha1.m4: Remove file.
18444         * modules/crypto/hmac-sha1 (Files): Remove it.
18445         (configure.ac): Remove gl_HMAC_SHA1 call.
18446         (Makefile.am): Augment lib_SOURCES.
18447
18448 2011-05-23  Bruno Haible  <bruno@clisp.org>
18449
18450         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18451         * m4/hmac-md5.m4: Remove file.
18452         * modules/crypto/hmac-md5 (Files): Remove it.
18453         (configure.ac): Remove gl_HMAC_MD5 call.
18454         (Makefile.am): Augment lib_SOURCES.
18455
18456 2011-05-23  Bruno Haible  <bruno@clisp.org>
18457
18458         hash: Move AC_LIBOBJ invocations to module description.
18459         * m4/hash.m4: Remove file.
18460         * modules/hash (Files): Remove it.
18461         (configure.ac): Remove gl_HASH call.
18462         (Makefile.am): Augment lib_SOURCES.
18463
18464 2011-05-23  Bruno Haible  <bruno@clisp.org>
18465
18466         hard-locale: Move AC_LIBOBJ invocations to module description.
18467         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18468         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18469
18470 2011-05-23  Bruno Haible  <bruno@clisp.org>
18471
18472         getugroups: Move AC_LIBOBJ invocations to module description.
18473         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18474         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18475
18476 2011-05-23  Bruno Haible  <bruno@clisp.org>
18477
18478         gettime: Move AC_LIBOBJ invocations to module description.
18479         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18480         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18481
18482 2011-05-23  Bruno Haible  <bruno@clisp.org>
18483
18484         getndelim2: Move AC_LIBOBJ invocations to module description.
18485         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18486         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18487
18488 2011-05-23  Bruno Haible  <bruno@clisp.org>
18489
18490         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18491         * m4/gc-pbkdf2-sha1.m4: Remove file.
18492         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18493         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18494         (Makefile.am): Augment lib_SOURCES.
18495
18496 2011-05-23  Bruno Haible  <bruno@clisp.org>
18497
18498         fts: Move AC_LIBOBJ invocations to module description.
18499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18500         * modules/fts (configure.ac): ... to here.
18501
18502 2011-05-23  Bruno Haible  <bruno@clisp.org>
18503
18504         file-type: Move AC_LIBOBJ invocations to module description.
18505         * m4/file-type.m4: Remove file.
18506         * modules/file-type (Files): Remove it.
18507         (configure.ac): Remove gl_FILE_TYPE call.
18508         (Makefile.am): Augment lib_SOURCES.
18509
18510 2011-05-23  Bruno Haible  <bruno@clisp.org>
18511
18512         filenamecat*: Respect rules for use of AC_LIBOBJ.
18513         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18514         Remove AC_LIBOBJ invocation.
18515         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18516         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18517
18518 2011-05-23  Bruno Haible  <bruno@clisp.org>
18519
18520         filemode: Move AC_LIBOBJ invocations to module description.
18521         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18522         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18523
18524 2011-05-23  Bruno Haible  <bruno@clisp.org>
18525
18526         openat-safer: Move AC_LIBOBJ invocations to module description.
18527         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18528         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18529
18530 2011-05-23  Bruno Haible  <bruno@clisp.org>
18531
18532         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18533         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18534         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18535
18536 2011-05-23  Bruno Haible  <bruno@clisp.org>
18537
18538         exclude: Move AC_LIBOBJ invocations to module description.
18539         * m4/exclude.m4: Remove file.
18540         * modules/exclude (Files): Remove it.
18541         (configure.ac): Remove gl_EXCLUDE call.
18542         (Makefile.am): Augment lib_SOURCES.
18543
18544 2011-05-23  Bruno Haible  <bruno@clisp.org>
18545
18546         dirname*: Respect rules for use of AC_LIBOBJ.
18547         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18548         invocations.
18549         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18550         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18551
18552 2011-05-23  Bruno Haible  <bruno@clisp.org>
18553
18554         dirent-safer: Move AC_LIBOBJ invocations to module description.
18555         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18556         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18557
18558 2011-05-23  Bruno Haible  <bruno@clisp.org>
18559
18560         crypto/des: Move AC_LIBOBJ invocations to module description.
18561         * m4/des.m4: Remove file.
18562         * modules/crypto/des (Files): Remove it.
18563         (configure.ac): Remove gl_DES call.
18564         (Makefile.am): Augment lib_SOURCES.
18565
18566 2011-05-23  Bruno Haible  <bruno@clisp.org>
18567
18568         cycle-check: Move AC_LIBOBJ invocations to module description.
18569         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18570         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18571
18572 2011-05-23  Bruno Haible  <bruno@clisp.org>
18573
18574         c-strtold: Move AC_LIBOBJ invocations to module description.
18575         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18576         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18577
18578 2011-05-23  Bruno Haible  <bruno@clisp.org>
18579
18580         c-strtod: Move AC_LIBOBJ invocations to module description.
18581         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18582         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18583
18584 2011-05-23  Bruno Haible  <bruno@clisp.org>
18585
18586         crc: Move AC_LIBOBJ invocations to module description.
18587         * m4/crc.m4: Remove file.
18588         * modules/crc (Files): Remove it.
18589         (configure.ac): Remove gl_CRC call.
18590         (Makefile.am): Augment lib_SOURCES.
18591
18592 2011-05-23  Bruno Haible  <bruno@clisp.org>
18593
18594         close-stream: Move AC_LIBOBJ invocations to module description.
18595         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18596         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18597
18598 2011-05-23  Bruno Haible  <bruno@clisp.org>
18599
18600         closeout: Move AC_LIBOBJ invocations to module description.
18601         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18602         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18603
18604 2011-05-23  Bruno Haible  <bruno@clisp.org>
18605
18606         closein: Move AC_LIBOBJ invocations to module description.
18607         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18608         * modules/closein (Makefile.am): Augment lib_SOURCES.
18609
18610 2011-05-23  Bruno Haible  <bruno@clisp.org>
18611
18612         cloexec: Move AC_LIBOBJ invocations to module description.
18613         * m4/cloexec.m4: Remove file.
18614         * modules/cloexec (Files): Remove it.
18615         (configure.ac): Remove gl_CLOEXEC call.
18616         (Makefile.am): Augment lib_SOURCES.
18617
18618 2011-05-23  Bruno Haible  <bruno@clisp.org>
18619
18620         check-version: Move AC_LIBOBJ invocations to module description.
18621         * m4/check-version.m4: Remove file.
18622         * modules/check-version (Files): Remove it.
18623         (configure.ac): Remove gl_CHECK_VERSION call.
18624         (Makefile.am): Augment lib_SOURCES.
18625
18626 2011-05-23  Bruno Haible  <bruno@clisp.org>
18627
18628         chdir-safer: Move AC_LIBOBJ invocations to module description.
18629         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18630         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18631
18632 2011-05-23  Bruno Haible  <bruno@clisp.org>
18633
18634         canonicalize: Move AC_LIBOBJ invocations to module description.
18635         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18636         AC_LIBOBJ invocation.
18637         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18638
18639 2011-05-23  Bruno Haible  <bruno@clisp.org>
18640
18641         canon-host: Move AC_LIBOBJ invocations to module description.
18642         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18643         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18644         instead of gl_CANON_HOST.
18645         (Makefile.am): Augment lib_SOURCES.
18646
18647 2011-05-23  Bruno Haible  <bruno@clisp.org>
18648
18649         backupfile: Move AC_LIBOBJ invocations to module description.
18650         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18651         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18652
18653 2011-05-23  Bruno Haible  <bruno@clisp.org>
18654
18655         argmatch: Move AC_LIBOBJ invocations to module description.
18656         * m4/argmatch.m4: Remove file.
18657         * modules/argmatch (Files): Remove it.
18658         (configure.ac): Remove gl_ARGMATCH call.
18659         (Makefile.am): Augment lib_SOURCES.
18660
18661 2011-05-23  Bruno Haible  <bruno@clisp.org>
18662
18663         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18664         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18665         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18666
18667 2011-05-23  Bruno Haible  <bruno@clisp.org>
18668
18669         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18670         * m4/arcfour.m4: Remove file.
18671         * modules/crypto/arcfour (Files): Remove it.
18672         (configure.ac): Remove gl_ARCFOUR call.
18673         (Makefile.am): Augment lib_SOURCES.
18674
18675 2011-05-22  Bruno Haible  <bruno@clisp.org>
18676
18677         write: Move AC_LIBOBJ invocations to module description.
18678         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18679         * modules/write (configure.ac): ... to here.
18680
18681 2011-05-22  Bruno Haible  <bruno@clisp.org>
18682
18683         wmemset: Move AC_LIBOBJ invocations to module description.
18684         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18685         here...
18686         * modules/wmemset (configure.ac): ... to here.
18687
18688 2011-05-22  Bruno Haible  <bruno@clisp.org>
18689
18690         wmemmove: Move AC_LIBOBJ invocations to module description.
18691         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18692         here...
18693         * modules/wmemmove (configure.ac): ... to here.
18694
18695 2011-05-22  Bruno Haible  <bruno@clisp.org>
18696
18697         wmemcpy: Move AC_LIBOBJ invocations to module description.
18698         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18699         here...
18700         * modules/wmemcpy (configure.ac): ... to here.
18701
18702 2011-05-22  Bruno Haible  <bruno@clisp.org>
18703
18704         wmemcmp: Move AC_LIBOBJ invocations to module description.
18705         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18706         here...
18707         * modules/wmemcmp (configure.ac): ... to here.
18708
18709 2011-05-22  Bruno Haible  <bruno@clisp.org>
18710
18711         wmemchr: Move AC_LIBOBJ invocations to module description.
18712         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18713         here...
18714         * modules/wmemchr (configure.ac): ... to here.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         wcswidth: Move AC_LIBOBJ invocations to module description.
18719         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18720         here...
18721         * modules/wcswidth (configure.ac): ... to here.
18722
18723 2011-05-22  Bruno Haible  <bruno@clisp.org>
18724
18725         wcwidth: Respect rules for use of AC_LIBOBJ.
18726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18727         invocation from here...
18728         * modules/wcwidth (configure.ac): ... to here.
18729         (Depends-on): Update conditions.
18730
18731 2011-05-22  Bruno Haible  <bruno@clisp.org>
18732
18733         wctype: Move AC_LIBOBJ invocations to module description.
18734         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18735         invocation from here...
18736         * modules/wctype (configure.ac): ... to here.
18737         (Depends-on): Update conditions.
18738
18739 2011-05-22  Bruno Haible  <bruno@clisp.org>
18740
18741         wctrans: Move AC_LIBOBJ invocations to module description.
18742         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18743         invocation from here...
18744         * modules/wctrans (configure.ac): ... to here.
18745
18746 2011-05-22  Bruno Haible  <bruno@clisp.org>
18747
18748         wctomb: Move AC_LIBOBJ invocations to module description.
18749         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18750         invocations from here...
18751         * modules/wctomb (configure.ac): ... to here.
18752
18753 2011-05-22  Bruno Haible  <bruno@clisp.org>
18754
18755         wctob: Move AC_LIBOBJ invocations to module description.
18756         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18757         gl_PREREQ_WCTOB invocations from here...
18758         * modules/wctob (configure.ac): ... to here.
18759         (Depends-on): Update conditions.
18760
18761 2011-05-22  Bruno Haible  <bruno@clisp.org>
18762
18763         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18764         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18765         here...
18766         * modules/wcsxfrm (configure.ac): ... to here.
18767
18768 2011-05-22  Bruno Haible  <bruno@clisp.org>
18769
18770         wcstok: Move AC_LIBOBJ invocations to module description.
18771         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18772         * modules/wcstok (configure.ac): ... to here.
18773
18774 2011-05-22  Bruno Haible  <bruno@clisp.org>
18775
18776         wcsstr: Move AC_LIBOBJ invocations to module description.
18777         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18778         * modules/wcsstr (configure.ac): ... to here.
18779
18780 2011-05-22  Bruno Haible  <bruno@clisp.org>
18781
18782         wcsspn: Move AC_LIBOBJ invocations to module description.
18783         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18784         * modules/wcsspn (configure.ac): ... to here.
18785
18786 2011-05-22  Bruno Haible  <bruno@clisp.org>
18787
18788         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18789         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18790         gl_PREREQ_WCSRTOMBS invocations from here...
18791         * modules/wcsrtombs (configure.ac): ... to here.
18792
18793 2011-05-22  Bruno Haible  <bruno@clisp.org>
18794
18795         wcsrchr: Move AC_LIBOBJ invocations to module description.
18796         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18797         here...
18798         * modules/wcsrchr (configure.ac): ... to here.
18799
18800 2011-05-22  Bruno Haible  <bruno@clisp.org>
18801
18802         wcspbrk: Move AC_LIBOBJ invocations to module description.
18803         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18804         here...
18805         * modules/wcspbrk (configure.ac): ... to here.
18806
18807 2011-05-22  Bruno Haible  <bruno@clisp.org>
18808
18809         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18810         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18811         gl_PREREQ_WCSNRTOMBS invocations from here...
18812         * modules/wcsnrtombs (configure.ac): ... to here.
18813
18814 2011-05-22  Bruno Haible  <bruno@clisp.org>
18815
18816         wcsnlen: Move AC_LIBOBJ invocations to module description.
18817         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18818         here...
18819         * modules/wcsnlen (configure.ac): ... to here.
18820
18821 2011-05-22  Bruno Haible  <bruno@clisp.org>
18822
18823         wcsncpy: Move AC_LIBOBJ invocations to module description.
18824         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18825         here...
18826         * modules/wcsncpy (configure.ac): ... to here.
18827
18828 2011-05-22  Bruno Haible  <bruno@clisp.org>
18829
18830         wcsncmp: Move AC_LIBOBJ invocations to module description.
18831         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18832         here...
18833         * modules/wcsncmp (configure.ac): ... to here.
18834
18835 2011-05-22  Bruno Haible  <bruno@clisp.org>
18836
18837         wcsncat: Move AC_LIBOBJ invocations to module description.
18838         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18839         here...
18840         * modules/wcsncat (configure.ac): ... to here.
18841
18842 2011-05-22  Bruno Haible  <bruno@clisp.org>
18843
18844         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18845         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18846         from here...
18847         * modules/wcsncasecmp (configure.ac): ... to here.
18848
18849 2011-05-22  Bruno Haible  <bruno@clisp.org>
18850
18851         wcslen: Move AC_LIBOBJ invocations to module description.
18852         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18853         * modules/wcslen (configure.ac): ... to here.
18854
18855 2011-05-22  Bruno Haible  <bruno@clisp.org>
18856
18857         wcsdup: Move AC_LIBOBJ invocations to module description.
18858         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18859         * modules/wcsdup (configure.ac): ... to here.
18860
18861 2011-05-22  Bruno Haible  <bruno@clisp.org>
18862
18863         wcscspn: Move AC_LIBOBJ invocations to module description.
18864         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18865         here...
18866         * modules/wcscspn (configure.ac): ... to here.
18867
18868 2011-05-22  Bruno Haible  <bruno@clisp.org>
18869
18870         wcscpy: Move AC_LIBOBJ invocations to module description.
18871         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18872         * modules/wcscpy (configure.ac): ... to here.
18873
18874 2011-05-22  Bruno Haible  <bruno@clisp.org>
18875
18876         wcscoll: Move AC_LIBOBJ invocations to module description.
18877         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18878         here...
18879         * modules/wcscoll (configure.ac): ... to here.
18880
18881 2011-05-22  Bruno Haible  <bruno@clisp.org>
18882
18883         wcscmp: Move AC_LIBOBJ invocations to module description.
18884         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18885         * modules/wcscmp (configure.ac): ... to here.
18886
18887 2011-05-22  Bruno Haible  <bruno@clisp.org>
18888
18889         wcschr: Move AC_LIBOBJ invocations to module description.
18890         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18891         * modules/wcschr (configure.ac): ... to here.
18892
18893 2011-05-22  Bruno Haible  <bruno@clisp.org>
18894
18895         wcscat: Move AC_LIBOBJ invocations to module description.
18896         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18897         * modules/wcscat (configure.ac): ... to here.
18898
18899 2011-05-22  Bruno Haible  <bruno@clisp.org>
18900
18901         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18902         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18903         here...
18904         * modules/wcscasecmp (configure.ac): ... to here.
18905
18906 2011-05-22  Bruno Haible  <bruno@clisp.org>
18907
18908         wcrtomb: Move AC_LIBOBJ invocations to module description.
18909         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18910         invocations from here...
18911         * modules/wcrtomb (configure.ac): ... to here.
18912
18913 2011-05-22  Bruno Haible  <bruno@clisp.org>
18914
18915         wcpncpy: Move AC_LIBOBJ invocations to module description.
18916         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18917         here...
18918         * modules/wcpncpy (configure.ac): ... to here.
18919
18920 2011-05-22  Bruno Haible  <bruno@clisp.org>
18921
18922         wcpcpy: Move AC_LIBOBJ invocations to module description.
18923         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18924         * modules/wcpcpy (configure.ac): ... to here.
18925
18926 2011-05-22  Bruno Haible  <bruno@clisp.org>
18927
18928         waitpid: Move AC_LIBOBJ invocations to module description.
18929         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18930         invocation from here...
18931         * modules/waitpid (configure.ac): ... to here.
18932
18933 2011-05-22  Bruno Haible  <bruno@clisp.org>
18934
18935         utimensat: Move AC_LIBOBJ invocations to module description.
18936         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18937         here...
18938         * modules/utimensat (configure.ac): ... to here.
18939
18940 2011-05-22  Bruno Haible  <bruno@clisp.org>
18941
18942         usleep: Move AC_LIBOBJ invocations to module description.
18943         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18944         here...
18945         * modules/usleep (configure.ac): ... to here.
18946
18947 2011-05-22  Bruno Haible  <bruno@clisp.org>
18948
18949         unlockpt: Move AC_LIBOBJ invocations to module description.
18950         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18951         gl_PREREQ_UNLOCKPT invocations from here...
18952         * modules/unlockpt (configure.ac): ... to here.
18953
18954 2011-05-22  Bruno Haible  <bruno@clisp.org>
18955
18956         unlink: Respect rules for use of AC_LIBOBJ.
18957         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18958         * modules/unlink (configure.ac): ... to here.
18959
18960 2011-05-22  Bruno Haible  <bruno@clisp.org>
18961
18962         uname: Move AC_LIBOBJ invocations to module description.
18963         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18965         here...
18966         * modules/uname (configure.ac): ... to here.
18967
18968 2011-05-22  Bruno Haible  <bruno@clisp.org>
18969
18970         ttyname_r: Move AC_LIBOBJ invocations to module description.
18971         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18972         gl_PREREQ_TTYNAME_R invocations from here...
18973         * modules/ttyname_r (configure.ac): ... to here.
18974
18975 2011-05-22  Bruno Haible  <bruno@clisp.org>
18976
18977         tsearch: Move AC_LIBOBJ invocations to module description.
18978         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18979         invocations from here...
18980         * modules/tsearch (configure.ac): ... to here.
18981
18982 2011-05-22  Bruno Haible  <bruno@clisp.org>
18983
18984         towctrans: Move AC_LIBOBJ invocations to module description.
18985         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18986         AC_LIBOBJ invocation from here...
18987         * modules/towctrans (configure.ac): ... to here.
18988
18989 2011-05-22  Bruno Haible  <bruno@clisp.org>
18990
18991         tmpfile: Move AC_LIBOBJ invocations to module description.
18992         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18993         invocations from here...
18994         * modules/tmpfile (configure.ac): ... to here.
18995
18996 2011-05-22  Bruno Haible  <bruno@clisp.org>
18997
18998         times: Move AC_LIBOBJ invocations to module description.
18999         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
19000         * modules/times (configure.ac): ... to here.
19001
19002 2011-05-22  Bruno Haible  <bruno@clisp.org>
19003
19004         time_r: Move AC_LIBOBJ invocations to module description.
19005         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
19006         invocations from here...
19007         * modules/time_r (configure.ac): ... to here.
19008
19009 2011-05-22  Bruno Haible  <bruno@clisp.org>
19010
19011         timegm: Move AC_LIBOBJ invocations to module description.
19012         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
19013         invocations from here...
19014         * modules/timegm (configure.ac): ... to here.
19015
19016 2011-05-22  Bruno Haible  <bruno@clisp.org>
19017
19018         tcgetsid: Move AC_LIBOBJ invocations to module description.
19019         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
19020         and gl_PREREQ_TCGETSID invocations from here...
19021         * modules/tcgetsid (configure.ac): ... to here.
19022         (Depends-on): Update conditions.
19023
19024 2011-05-22  Bruno Haible  <bruno@clisp.org>
19025
19026         symlinkat: Move AC_LIBOBJ invocations to module description.
19027         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
19028         here...
19029         * modules/symlinkat (configure.ac): ... to here.
19030
19031 2011-05-22  Bruno Haible  <bruno@clisp.org>
19032
19033         symlink: Move AC_LIBOBJ invocations to module description.
19034         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
19035         here...
19036         * modules/symlink (configure.ac): ... to here.
19037
19038 2011-05-22  Bruno Haible  <bruno@clisp.org>
19039
19040         strverscmp: Move AC_LIBOBJ invocations to module description.
19041         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
19042         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
19043         from here...
19044         * modules/strverscmp (configure.ac): ... to here.
19045
19046 2011-05-22  Bruno Haible  <bruno@clisp.org>
19047
19048         strtok_r: Move AC_LIBOBJ invocations to module description.
19049         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
19050         and gl_PREREQ_STRTOK_R invocations from here...
19051         * modules/strtok_r (configure.ac): ... to here.
19052         (Depends-on): Update conditions.
19053
19054 2011-05-22  Bruno Haible  <bruno@clisp.org>
19055
19056         strtoumax: Move AC_LIBOBJ invocations to module description.
19057         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
19058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
19059         from here...
19060         * modules/strtoumax (configure.ac): ... to here.
19061
19062 2011-05-22  Bruno Haible  <bruno@clisp.org>
19063
19064         strtoimax: Move AC_LIBOBJ invocations to module description.
19065         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
19066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
19067         from here...
19068         * modules/strtoimax (configure.ac): ... to here.
19069
19070 2011-05-22  Bruno Haible  <bruno@clisp.org>
19071
19072         strtoull: Move AC_LIBOBJ invocations to module description.
19073         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
19074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
19075         from here...
19076         * modules/strtoull (configure.ac): ... to here.
19077
19078 2011-05-22  Bruno Haible  <bruno@clisp.org>
19079
19080         strtoll: Move AC_LIBOBJ invocations to module description.
19081         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
19082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
19083         here...
19084         * modules/strtoll (configure.ac): ... to here.
19085
19086 2011-05-22  Bruno Haible  <bruno@clisp.org>
19087
19088         strtoul: Move AC_LIBOBJ invocations to module description.
19089         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
19090         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
19091         * modules/strtoul (configure.ac): ... to here.
19092
19093 2011-05-22  Bruno Haible  <bruno@clisp.org>
19094
19095         strtol: Move AC_LIBOBJ invocations to module description.
19096         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
19097         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
19098         * modules/strtol (configure.ac): ... to here.
19099
19100 2011-05-22  Bruno Haible  <bruno@clisp.org>
19101
19102         strtod: Move AC_LIBOBJ invocations to module description.
19103         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
19104         invocations from here...
19105         * modules/strtod (configure.ac): ... to here.
19106
19107 2011-05-22  Bruno Haible  <bruno@clisp.org>
19108
19109         strstr*: Move AC_LIBOBJ invocations to module description.
19110         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
19111         invocations from here...
19112         * modules/strstr-simple (configure.ac): ... to here.
19113         * modules/strstr (configure.ac): ... and here.
19114
19115 2011-05-22  Bruno Haible  <bruno@clisp.org>
19116
19117         strsignal: Move AC_LIBOBJ invocations to module description.
19118         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
19119         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
19120         * modules/strsignal (configure.ac): ... to here.
19121         (Depends-on): Update conditions.
19122
19123 2011-05-22  Bruno Haible  <bruno@clisp.org>
19124
19125         strsep: Move AC_LIBOBJ invocations to module description.
19126         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
19127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
19128         here...
19129         * modules/strsep (configure.ac): ... to here.
19130
19131 2011-05-22  Bruno Haible  <bruno@clisp.org>
19132
19133         strptime: Move AC_LIBOBJ invocations to module description.
19134         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
19135         gl_PREREQ_STRPTIME invocations from here...
19136         * modules/strptime (configure.ac): ... to here.
19137
19138 2011-05-22  Bruno Haible  <bruno@clisp.org>
19139
19140         strpbrk: Move AC_LIBOBJ invocations to module description.
19141         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
19142         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
19143         here...
19144         * modules/strpbrk (configure.ac): ... to here.
19145
19146 2011-05-22  Bruno Haible  <bruno@clisp.org>
19147
19148         strnlen: Move AC_LIBOBJ invocations to module description.
19149         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19150         invocations from here...
19151         * modules/strnlen (configure.ac): ... to here.
19152
19153 2011-05-22  Bruno Haible  <bruno@clisp.org>
19154
19155         strndup: Move AC_LIBOBJ invocations to module description.
19156         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19157         invocations from here...
19158         * modules/strndup (configure.ac): ... to here.
19159         (Depends-on): Update conditions.
19160
19161 2011-05-22  Bruno Haible  <bruno@clisp.org>
19162
19163         strncat: Move AC_LIBOBJ invocations to module description.
19164         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19165         invocations from here...
19166         * modules/strncat (configure.ac): ... to here.
19167
19168 2011-05-22  Bruno Haible  <bruno@clisp.org>
19169
19170         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19171         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19172         invocations from here...
19173         * modules/strdup (configure.ac): ... to here.
19174         * modules/strdup-posix (configure.ac): ... and here.
19175
19176 2011-05-22  Bruno Haible  <bruno@clisp.org>
19177
19178         strcspn: Move AC_LIBOBJ invocations to module description.
19179         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19181         here...
19182         * modules/strcspn (configure.ac): ... to here.
19183
19184 2011-05-22  Bruno Haible  <bruno@clisp.org>
19185
19186         strchrnul: Move AC_LIBOBJ invocations to module description.
19187         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19188         gl_PREREQ_STRCHRNUL invocations from here...
19189         * modules/strchrnul (configure.ac): ... to here.
19190
19191 2011-05-22  Bruno Haible  <bruno@clisp.org>
19192
19193         strcasestr*: Move AC_LIBOBJ invocations to module description.
19194         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19195         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19196         * modules/strcasestr-simple (configure.ac): ... to here.
19197         * modules/strcasestr (configure.ac): ... and here.
19198
19199 2011-05-22  Bruno Haible  <bruno@clisp.org>
19200
19201         strcase: Move AC_LIBOBJ invocations to module description.
19202         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19203         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19204         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19205         gl_PREREQ_STRNCASECMP invocations from here...
19206         * modules/strcase (configure.ac): ... to here.
19207
19208 2011-05-22  Bruno Haible  <bruno@clisp.org>
19209
19210         stpncpy: Move AC_LIBOBJ invocations to module description.
19211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19212         here...
19213         * modules/stpncpy (configure.ac): ... to here.
19214
19215 2011-05-22  Bruno Haible  <bruno@clisp.org>
19216
19217         stpcpy: Move AC_LIBOBJ invocations to module description.
19218         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19219         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19220         here...
19221         * modules/stpcpy (configure.ac): ... to here.
19222
19223 2011-05-21  Bruno Haible  <bruno@clisp.org>
19224
19225         stat: Move AC_LIBOBJ invocations to module description.
19226         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19227         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19228         here...
19229         * modules/stat (configure.ac): ... to here.
19230
19231 2011-05-21  Bruno Haible  <bruno@clisp.org>
19232
19233         sleep: Move AC_LIBOBJ invocations to module description.
19234         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19235         * modules/sleep (configure.ac): ... to here.
19236
19237 2011-05-21  Bruno Haible  <bruno@clisp.org>
19238
19239         signbit: Move AC_LIBOBJ invocations to module description.
19240         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19241         * modules/signbit (configure.ac): ... to here.
19242
19243 2011-05-21  Bruno Haible  <bruno@clisp.org>
19244
19245         sigprocmask: Move AC_LIBOBJ invocations to module description.
19246         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19247         gl_PREREQ_SIGPROMASK invocations from here...
19248         * modules/sigprocmask (configure.ac): ... to here.
19249
19250 2011-05-21  Bruno Haible  <bruno@clisp.org>
19251
19252         sigaction: Move AC_LIBOBJ invocations to module description.
19253         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19254         gl_PREREQ_SIGACTION invocations from here...
19255         * modules/sigaction (configure.ac): ... to here.
19256
19257 2011-05-21  Bruno Haible  <bruno@clisp.org>
19258
19259         sig2str: Move AC_LIBOBJ invocations to module description.
19260         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19262         here...
19263         * modules/sig2str (configure.ac): ... to here.
19264
19265 2011-05-21  Bruno Haible  <bruno@clisp.org>
19266
19267         setlocale: Move AC_LIBOBJ invocations to module description.
19268         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19269         gl_PREREQ_SETLOCALE invocations from here...
19270         * modules/setlocale (configure.ac): ... to here.
19271
19272 2011-05-21  Bruno Haible  <bruno@clisp.org>
19273
19274         unsetenv: Move AC_LIBOBJ invocations to module description.
19275         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19276         and gl_PREREQ_UNSETENV invocations from here...
19277         * modules/unsetenv (configure.ac): ... to here.
19278         (Depends-on): Update.
19279
19280 2011-05-21  Bruno Haible  <bruno@clisp.org>
19281
19282         setenv: Move AC_LIBOBJ invocations to module description.
19283         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19284         here...
19285         * modules/setenv (configure.ac): ... to here.
19286
19287 2011-05-21  Bruno Haible  <bruno@clisp.org>
19288
19289         selinux-h: Move AC_LIBOBJ invocations to module description.
19290         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19291         AC_LIBOBJ invocation from here...
19292         * modules/selinux-h (configure.ac): ... to here.
19293
19294 2011-05-21  Bruno Haible  <bruno@clisp.org>
19295
19296         select: Respect rules for use of AC_LIBOBJ.
19297         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19298         here...
19299         * modules/select (configure.ac): ... to here.
19300
19301 2011-05-21  Bruno Haible  <bruno@clisp.org>
19302
19303         scandir: Move AC_LIBOBJ invocations to module description.
19304         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19305         invocations from here...
19306         * modules/scandir (configure.ac): ... to here.
19307
19308 2011-05-21  Bruno Haible  <bruno@clisp.org>
19309
19310         rpmatch: Move AC_LIBOBJ invocations to module description.
19311         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19312         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19313         here...
19314         * modules/rpmatch (configure.ac): ... to here.
19315
19316 2011-05-21  Bruno Haible  <bruno@clisp.org>
19317
19318         rmdir: Respect rules for use of AC_LIBOBJ.
19319         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19320         * modules/rmdir (configure.ac): ... to here.
19321
19322 2011-05-21  Bruno Haible  <bruno@clisp.org>
19323
19324         renameat: Move AC_LIBOBJ invocations to module description.
19325         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19326         here...
19327         * modules/renameat (configure.ac): ... to here.
19328
19329 2011-05-21  Bruno Haible  <bruno@clisp.org>
19330
19331         rename: Respect rules for use of AC_LIBOBJ.
19332         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19333         here...
19334         * modules/rename (configure.ac): ... to here.
19335
19336 2011-05-21  Bruno Haible  <bruno@clisp.org>
19337
19338         remove: Move AC_LIBOBJ invocations to module description.
19339         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19340         here...
19341         * modules/remove (configure.ac): ... to here.
19342
19343 2011-05-21  Bruno Haible  <bruno@clisp.org>
19344
19345         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19346         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19347         macro.
19348         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19349         * modules/relocatable-lib (configure.ac): ... to here.
19350         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19351         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19352
19353 2011-05-21  Bruno Haible  <bruno@clisp.org>
19354
19355         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19356         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19357         here...
19358         * modules/relocatable-prog (configure.ac): ... to here.
19359
19360 2011-05-21  Bruno Haible  <bruno@clisp.org>
19361
19362         regex: Move AC_LIBOBJ invocations to module description.
19363         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19364         invocations from here...
19365         * modules/regex (configure.ac): ... to here.
19366
19367 2011-05-21  Bruno Haible  <bruno@clisp.org>
19368
19369         realloc-*: Move AC_LIBOBJ invocations to module description.
19370         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19371         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19372         AC_LIBOBJ invocations from here...
19373         * modules/realloc-gnu (configure.ac): ... to here.
19374         * modules/realloc-posix (configure.ac): ... and here.
19375
19376 2011-05-21  Bruno Haible  <bruno@clisp.org>
19377
19378         readutmp: Move AC_LIBOBJ invocations to module description.
19379         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19380         * modules/readutmp (configure.ac): ... to here.
19381
19382 2011-05-21  Bruno Haible  <bruno@clisp.org>
19383
19384         readlinkat: Move AC_LIBOBJ invocations to module description.
19385         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19386         here...
19387         * modules/readlinkat (configure.ac): ... to here.
19388
19389 2011-05-21  Bruno Haible  <bruno@clisp.org>
19390
19391         readlink: Move AC_LIBOBJ invocations to module description.
19392         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19393         gl_PREREQ_READLINK invocations from here...
19394         * modules/readlink (configure.ac): ... to here.
19395
19396 2011-05-21  Bruno Haible  <bruno@clisp.org>
19397
19398         readline: Move AC_LIBOBJ invocations to module description.
19399         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19400         gl_PREREQ_READLINE invocations from here...
19401         * modules/readline (configure.ac): ... to here.
19402
19403 2011-05-21  Bruno Haible  <bruno@clisp.org>
19404
19405         read: Move AC_LIBOBJ invocations to module description.
19406         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19407         * modules/read (configure.ac): ... to here.
19408
19409 2011-05-21  Bruno Haible  <bruno@clisp.org>
19410
19411         rawmemchr: Move AC_LIBOBJ invocations to module description.
19412         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19414         from here...
19415         * modules/rawmemchr (configure.ac): ... to here.
19416
19417 2011-05-21  Bruno Haible  <bruno@clisp.org>
19418
19419         random_r: Move AC_LIBOBJ invocations to module description.
19420         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19421         gl_PREREQ_RANDOM_R invocations from here...
19422         * modules/random_r (configure.ac): ... to here.
19423
19424 2011-05-21  Bruno Haible  <bruno@clisp.org>
19425
19426         pwrite: Move AC_LIBOBJ invocations to module description.
19427         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19428         * modules/pwrite (configure.ac): ... to here.
19429
19430 2011-05-21  Bruno Haible  <bruno@clisp.org>
19431
19432         putenv: Move AC_LIBOBJ invocations to module description.
19433         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19434         * modules/putenv (configure.ac): ... to here.
19435
19436 2011-05-21  Bruno Haible  <bruno@clisp.org>
19437
19438         login_tty: Move AC_LIBOBJ invocations to module description.
19439         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19440         * modules/login_tty (configure.ac): ... to here.
19441
19442 2011-05-21  Bruno Haible  <bruno@clisp.org>
19443
19444         openpty: Move AC_LIBOBJ invocations to module description.
19445         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19446         * modules/openpty (configure.ac): ... to here.
19447
19448 2011-05-21  Bruno Haible  <bruno@clisp.org>
19449
19450         forkpty: Move AC_LIBOBJ invocations to module description.
19451         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19452         * modules/forkpty (configure.ac): ... to here.
19453
19454 2011-05-21  Bruno Haible  <bruno@clisp.org>
19455
19456         ptsname: Move AC_LIBOBJ invocations to module description.
19457         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19458         invocations from here...
19459         * modules/ptsname (configure.ac): ... to here.
19460
19461 2011-05-21  Bruno Haible  <bruno@clisp.org>
19462
19463         pread: Move AC_LIBOBJ invocations to module description.
19464         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19465         * modules/pread (configure.ac): ... to here.
19466
19467 2011-05-21  Bruno Haible  <bruno@clisp.org>
19468
19469         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19470         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19471         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19472         * modules/posix_spawn (configure.ac): ... to here.
19473         * modules/posix_spawnp (configure.ac): ... and here.
19474
19475 2011-05-21  Bruno Haible  <bruno@clisp.org>
19476
19477         popen: Move AC_LIBOBJ invocations to module description.
19478         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19479         invocations from here...
19480         * modules/popen (configure.ac): ... to here.
19481
19482 2011-05-21  Bruno Haible  <bruno@clisp.org>
19483
19484         poll: Move AC_LIBOBJ invocations to module description.
19485         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19486         invocations from here...
19487         * modules/poll (configure.ac): ... to here.
19488
19489 2011-05-21  Bruno Haible  <bruno@clisp.org>
19490
19491         pipe-posix: Move AC_LIBOBJ invocations to module description.
19492         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19493         * modules/pipe-posix (configure.ac): ... to here.
19494
19495 2011-05-21  Bruno Haible  <bruno@clisp.org>
19496
19497         openat: Respect rules for use of AC_LIBOBJ.
19498         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19499         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19500         * modules/openat (configure.ac): ... to here.
19501
19502 2011-05-21  Bruno Haible  <bruno@clisp.org>
19503
19504         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19505         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19506         invocation from here...
19507         * modules/obstack-printf (configure.ac): ... to here.
19508         * modules/obstack-printf-posix (configure.ac): ... and here.
19509
19510 2011-05-21  Bruno Haible  <bruno@clisp.org>
19511
19512         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19513         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19514         from here...
19515         * modules/nl_langinfo (configure.ac): ... to here.
19516
19517 2011-05-21  Bruno Haible  <bruno@clisp.org>
19518
19519         nanosleep: Move AC_LIBOBJ invocations to module description.
19520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19521         gl_PREREQ_NANOSLEEP invocations from here...
19522         * modules/nanosleep (configure.ac): ... to here.
19523
19524 2011-05-21  Bruno Haible  <bruno@clisp.org>
19525
19526         mountlist: Move AC_LIBOBJ invocations to module description.
19527         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19528         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19529         * modules/mountlist (configure.ac): ... to here.
19530
19531 2011-05-21  Bruno Haible  <bruno@clisp.org>
19532
19533         mktime: Respect rules for use of AC_LIBOBJ.
19534         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19535         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19536         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19537         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19538         * modules/mktime (configure.ac): ... to here.
19539         * modules/mktime-internal (configure.ac): ... and here.
19540         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19541
19542 2011-05-21  Bruno Haible  <bruno@clisp.org>
19543
19544         mkstemps: Move AC_LIBOBJ invocations to module description.
19545         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19546         here...
19547         * modules/mkstemps (configure.ac): ... to here.
19548
19549 2011-05-21  Bruno Haible  <bruno@clisp.org>
19550
19551         mkstemp: Move AC_LIBOBJ invocations to module description.
19552         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19553         gl_PREREQ_MKSTEMP invocations from here...
19554         * modules/mkstemp (configure.ac): ... to here.
19555
19556 2011-05-21  Bruno Haible  <bruno@clisp.org>
19557
19558         mkostemps: Move AC_LIBOBJ invocations to module description.
19559         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19560         here...
19561         * modules/mkostemps (configure.ac): ... to here.
19562
19563 2011-05-21  Bruno Haible  <bruno@clisp.org>
19564
19565         mkostemp: Move AC_LIBOBJ invocations to module description.
19566         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19567         gl_PREREQ_MKOSTEMP invocations from here...
19568         * modules/mkostemp (configure.ac): ... to here.
19569
19570 2011-05-21  Bruno Haible  <bruno@clisp.org>
19571
19572         mknod: Move AC_LIBOBJ invocations to module description.
19573         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19574         * modules/mknod (configure.ac): ... to here.
19575
19576 2011-05-21  Bruno Haible  <bruno@clisp.org>
19577
19578         mkfifoat: Move AC_LIBOBJ invocations to module description.
19579         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19580         here...
19581         * modules/mkfifoat (configure.ac): ... to here.
19582
19583 2011-05-21  Bruno Haible  <bruno@clisp.org>
19584
19585         mkfifo: Respect rules for use of AC_LIBOBJ.
19586         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19587         here...
19588         * modules/mkfifo (configure.ac): ... to here.
19589
19590 2011-05-21  Bruno Haible  <bruno@clisp.org>
19591
19592         mkdtemp: Move AC_LIBOBJ invocations to module description.
19593         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19594         invocations from here...
19595         * modules/mkdtemp (configure.ac): ... to here.
19596
19597 2011-05-21  Bruno Haible  <bruno@clisp.org>
19598
19599         mkdir: Move AC_LIBOBJ invocations to module description.
19600         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19601         * modules/mkdir (configure.ac): ... to here.
19602
19603 2011-05-21  Bruno Haible  <bruno@clisp.org>
19604
19605         memset: Move AC_LIBOBJ invocations to module description.
19606         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19607         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19608         here...
19609         * modules/memset (configure.ac): ... to here.
19610
19611 2011-05-21  Bruno Haible  <bruno@clisp.org>
19612
19613         memrchr: Move AC_LIBOBJ invocations to module description.
19614         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19616         here...
19617         * modules/memrchr (configure.ac): ... to here.
19618
19619 2011-05-21  Bruno Haible  <bruno@clisp.org>
19620
19621         mempcpy: Move AC_LIBOBJ invocations to module description.
19622         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19624         here...
19625         * modules/mempcpy (configure.ac): ... to here.
19626
19627 2011-05-21  Bruno Haible  <bruno@clisp.org>
19628
19629         memmove: Move AC_LIBOBJ invocations to module description.
19630         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19632         here...
19633         * modules/memmove (configure.ac): ... to here.
19634
19635 2011-05-21  Bruno Haible  <bruno@clisp.org>
19636
19637         memmem*: Move AC_LIBOBJ invocations to module description.
19638         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19639         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19640         here...
19641         (gl_FUNC_MEMMEM): ... and here...
19642         * modules/memmem-simple (configure.ac): ... to here.
19643         * modules/memmem (configure.ac): ... and here.
19644
19645 2011-05-21  Bruno Haible  <bruno@clisp.org>
19646
19647         memcpy: Move AC_LIBOBJ invocations to module description.
19648         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19649         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19650         here...
19651         * modules/memcpy (configure.ac): ... to here.
19652
19653 2011-05-21  Bruno Haible  <bruno@clisp.org>
19654
19655         memcmp: Simplify autoconf macro.
19656         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19657         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19658         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19659
19660 2011-05-21  Bruno Haible  <bruno@clisp.org>
19661
19662         memcmp: Move AC_LIBOBJ invocations to module description.
19663         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19664         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19665         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19666         * modules/memcmp (configure.ac): ... to here.
19667         (Depends-on): Update conditions.
19668
19669 2011-05-21  Bruno Haible  <bruno@clisp.org>
19670
19671         memchr: Respect rules for use of AC_LIBOBJ.
19672         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19673         invocations from here...
19674         * modules/memchr (configure.ac): ... to here.
19675
19676 2011-05-21  Bruno Haible  <bruno@clisp.org>
19677
19678         mbtowc: Move AC_LIBOBJ invocations to module description.
19679         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19680         invocations from here...
19681         * modules/mbtowc (configure.ac): ... to here.
19682
19683 2011-05-21  Bruno Haible  <bruno@clisp.org>
19684
19685         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19686         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19687         gl_PREREQ_MBSRTOWCS invocations from here...
19688         * modules/mbsrtowcs (configure.ac): ... to here.
19689
19690 2011-05-21  Bruno Haible  <bruno@clisp.org>
19691
19692         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19693         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19694         gl_PREREQ_MBSNRTOWCS invocations from here...
19695         * modules/mbsnrtowcs (configure.ac): ... to here.
19696
19697 2011-05-21  Bruno Haible  <bruno@clisp.org>
19698
19699         mbsinit: Move AC_LIBOBJ invocations to module description.
19700         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19701         invocations from here...
19702         * modules/mbsinit (configure.ac): ... to here.
19703
19704 2011-05-21  Bruno Haible  <bruno@clisp.org>
19705
19706         mbrlen: Move AC_LIBOBJ invocations to module description.
19707         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19708         invocations from here...
19709         * modules/mbrlen (configure.ac): ... to here.
19710
19711 2011-05-21  Bruno Haible  <bruno@clisp.org>
19712
19713         mbrtowc: Respect rules for use of AC_LIBOBJ.
19714         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19715         invocations from here...
19716         * modules/mbrtowc (configure.ac): ... to here.
19717
19718 2011-05-21  Bruno Haible  <bruno@clisp.org>
19719
19720         malloc-*: Move AC_LIBOBJ invocations to module description.
19721         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19722         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19723         AC_LIBOBJ invocations from here...
19724         * modules/malloc-gnu (configure.ac): ... to here.
19725         * modules/malloc-posix (configure.ac): ... and here.
19726
19727 2011-05-21  Bruno Haible  <bruno@clisp.org>
19728
19729         lstat, openat: Respect rules for use of AC_LIBOBJ.
19730         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19731         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19732         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19733         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19734         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19735         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19736         here.
19737         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19738
19739 2011-05-21  Bruno Haible  <bruno@clisp.org>
19740
19741         lseek: Move AC_LIBOBJ invocations to module description.
19742         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19743         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19744         * modules/lseek (configure.ac): ... to here.
19745
19746 2011-05-21  Bruno Haible  <bruno@clisp.org>
19747
19748         linkat: Move AC_LIBOBJ invocations to module description.
19749         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19750         here...
19751         * modules/linkat (configure.ac): ... to here.
19752
19753 2011-05-21  Bruno Haible  <bruno@clisp.org>
19754
19755         link: Respect rules for use of AC_LIBOBJ.
19756         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19757         * modules/link (configure.ac): ... to here.
19758
19759 2011-05-21  Bruno Haible  <bruno@clisp.org>
19760
19761         lchown: Move AC_LIBOBJ invocations to module description.
19762         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19763         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19764         * modules/lchown (configure.ac): ... to here.
19765
19766 2011-05-21  Bruno Haible  <bruno@clisp.org>
19767
19768         iswctype: Move AC_LIBOBJ invocations to module description.
19769         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19770         here...
19771         * modules/iswctype (configure.ac): ... to here.
19772
19773 2011-05-21  Bruno Haible  <bruno@clisp.org>
19774
19775         iswblank: Move AC_LIBOBJ invocations to module description.
19776         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19777         here...
19778         * modules/iswblank (configure.ac): ... to here.
19779
19780 2011-05-21  Bruno Haible  <bruno@clisp.org>
19781
19782         atanl: Move AC_LIBOBJ invocations to module description.
19783         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19784         * modules/atanl (configure.ac): ... to here.
19785
19786 2011-05-21  Bruno Haible  <bruno@clisp.org>
19787
19788         acosl: Move AC_LIBOBJ invocations to module description.
19789         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19790         * modules/acosl (configure.ac): ... to here.
19791
19792 2011-05-21  Bruno Haible  <bruno@clisp.org>
19793
19794         asinl: Respect rules for use of AC_LIBOBJ.
19795         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19796         * modules/asinl (configure.ac): ... to here.
19797
19798 2011-05-21  Bruno Haible  <bruno@clisp.org>
19799
19800         tanl: Move AC_LIBOBJ invocations to module description.
19801         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19802         * modules/tanl (configure.ac): ... to here.
19803
19804 2011-05-21  Bruno Haible  <bruno@clisp.org>
19805
19806         cosl: Move AC_LIBOBJ invocations to module description.
19807         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19808         * modules/cosl (configure.ac): ... to here.
19809
19810 2011-05-21  Bruno Haible  <bruno@clisp.org>
19811
19812         sinl: Move AC_LIBOBJ invocations to module description.
19813         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19814         * modules/sinl (configure.ac): ... to here.
19815
19816 2011-05-21  Bruno Haible  <bruno@clisp.org>
19817
19818         logl: Move AC_LIBOBJ invocations to module description.
19819         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19820         * modules/logl (configure.ac): ... to here.
19821
19822 2011-05-21  Bruno Haible  <bruno@clisp.org>
19823
19824         expl: Move AC_LIBOBJ invocations to module description.
19825         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19826         * modules/expl (configure.ac): ... to here.
19827
19828 2011-05-21  Bruno Haible  <bruno@clisp.org>
19829
19830         roundl: Move AC_LIBOBJ invocations to module description.
19831         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19832         * modules/roundl (configure.ac): ... to here.
19833
19834 2011-05-21  Bruno Haible  <bruno@clisp.org>
19835
19836         round: Move AC_LIBOBJ invocations to module description.
19837         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19838         * modules/round (configure.ac): ... to here.
19839
19840 2011-05-21  Bruno Haible  <bruno@clisp.org>
19841
19842         roundf: Move AC_LIBOBJ invocations to module description.
19843         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19844         * modules/roundf (configure.ac): ... to here.
19845
19846 2011-05-21  Bruno Haible  <bruno@clisp.org>
19847
19848         truncl: Move AC_LIBOBJ invocations to module description.
19849         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19850         * modules/truncl (configure.ac): ... to here.
19851
19852 2011-05-21  Bruno Haible  <bruno@clisp.org>
19853
19854         trunc: Move AC_LIBOBJ invocations to module description.
19855         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19856         * modules/trunc (configure.ac): ... to here.
19857
19858 2011-05-21  Bruno Haible  <bruno@clisp.org>
19859
19860         truncf: Move AC_LIBOBJ invocations to module description.
19861         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19862         * modules/truncf (configure.ac): ... to here.
19863
19864 2011-05-21  Bruno Haible  <bruno@clisp.org>
19865
19866         ceill: Move AC_LIBOBJ invocations to module description.
19867         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19868         * modules/ceill (configure.ac): ... to here.
19869
19870 2011-05-21  Bruno Haible  <bruno@clisp.org>
19871
19872         ceil: Move AC_LIBOBJ invocations to module description.
19873         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19874         * modules/ceil (configure.ac): ... to here.
19875
19876 2011-05-21  Bruno Haible  <bruno@clisp.org>
19877
19878         ceilf: Move AC_LIBOBJ invocations to module description.
19879         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19880         * modules/ceilf (configure.ac): ... to here.
19881
19882 2011-05-21  Bruno Haible  <bruno@clisp.org>
19883
19884         floorl: Respect rules for use of AC_LIBOBJ.
19885         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19886         * modules/floorl (configure.ac): ... to here.
19887
19888 2011-05-21  Bruno Haible  <bruno@clisp.org>
19889
19890         floor: Respect rules for use of AC_LIBOBJ.
19891         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19892         * modules/floor (configure.ac): ... to here.
19893
19894 2011-05-21  Bruno Haible  <bruno@clisp.org>
19895
19896         floorf: Move AC_LIBOBJ invocations to module description.
19897         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19898         * modules/floorf (configure.ac): ... to here.
19899
19900 2011-05-20  Bruno Haible  <bruno@clisp.org>
19901
19902         sqrtl: Respect rules for use of AC_LIBOBJ.
19903         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19904         * modules/sqrtl (configure.ac): ... to here.
19905
19906 2011-05-20  Bruno Haible  <bruno@clisp.org>
19907
19908         ldexpl: Respect rules for use of AC_LIBOBJ.
19909         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19910         * modules/ldexpl (configure.ac): ... to here.
19911
19912 2011-05-20  Bruno Haible  <bruno@clisp.org>
19913
19914         frexpl*: Respect rules for use of AC_LIBOBJ.
19915         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19916         invocation from here...
19917         * modules/frexpl (configure.ac): ... to here.
19918         * modules/frexpl-nolibm (configure.ac): ... and here.
19919
19920 2011-05-20  Bruno Haible  <bruno@clisp.org>
19921
19922         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19923         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19924         invocation from here...
19925         * modules/frexp (configure.ac): ... to here.
19926         * modules/frexp-nolibm (configure.ac): ... and here.
19927
19928 2011-05-20  Bruno Haible  <bruno@clisp.org>
19929
19930         isnan: Respect rules for use of AC_LIBOBJ.
19931         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19932         invocations here.
19933         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19934         REPLACE_ISNAN.
19935         * modules/isnand (configure.ac): Likewise.
19936         * modules/isnanl (configure.ac): Likewise.
19937
19938 2011-05-20  Bruno Haible  <bruno@clisp.org>
19939
19940         isnanl*: Respect rules for use of AC_LIBOBJ.
19941         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19942         invocation from here...
19943         * modules/isnanl (configure.ac): ... to here.
19944         * modules/isnanl-nolibm (configure.ac): ... and here.
19945
19946 2011-05-20  Bruno Haible  <bruno@clisp.org>
19947
19948         isnand*: Move AC_LIBOBJ invocations to module description.
19949         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19950         invocation from here...
19951         * modules/isnand (configure.ac): ... to here.
19952         * modules/isnand-nolibm (configure.ac): ... and here.
19953
19954 2011-05-20  Bruno Haible  <bruno@clisp.org>
19955
19956         isnanf*: Move AC_LIBOBJ invocations to module description.
19957         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19958         invocation from here...
19959         * modules/isnanf (configure.ac): ... to here.
19960         * modules/isnanf-nolibm (configure.ac): ... and here.
19961
19962 2011-05-20  Bruno Haible  <bruno@clisp.org>
19963
19964         isnan*: Separate the AC_LIBOBJ invocations.
19965         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19966         AC_LIBOBJ invocation.
19967         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19968         here.
19969         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19970         AC_LIBOBJ invocation.
19971         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19972         here.
19973         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19974         AC_LIBOBJ invocation.
19975         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19976         here.
19977         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19978
19979 2011-05-08  Bruno Haible  <bruno@clisp.org>
19980
19981         isinf: Move AC_LIBOBJ invocations to module description.
19982         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19983         * modules/isinf (configure.ac): ... to here.
19984
19985 2011-05-08  Bruno Haible  <bruno@clisp.org>
19986
19987         isfinite: Move AC_LIBOBJ invocations to module description.
19988         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19989         * modules/isfinite (configure.ac): ... to here.
19990
19991 2011-05-08  Bruno Haible  <bruno@clisp.org>
19992
19993         isblank: Move AC_LIBOBJ invocations to module description.
19994         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19995         here...
19996         * modules/isblank (configure.ac): ... to here.
19997
19998 2011-05-08  Bruno Haible  <bruno@clisp.org>
19999
20000         isapipe: Move AC_LIBOBJ invocations to module description.
20001         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
20002         gl_PREREQ_ISAPIPE invocations from here...
20003         * modules/isapipe (configure.ac): ... to here.
20004         (Depends-on): Update condition.
20005
20006 2011-05-08  Bruno Haible  <bruno@clisp.org>
20007
20008         ioctl: Move AC_LIBOBJ invocations to module description.
20009         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
20010         invocations from here...
20011         * modules/ioctl (configure.ac): ... to here.
20012         (Depends-on): Update condition.
20013
20014 2011-05-08  Bruno Haible  <bruno@clisp.org>
20015
20016         imaxdiv: Move AC_LIBOBJ invocations to module description.
20017         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
20018         invocations from here...
20019         * modules/imaxdiv (configure.ac): ... to here.
20020
20021 2011-05-08  Bruno Haible  <bruno@clisp.org>
20022
20023         imaxabs: Move AC_LIBOBJ invocations to module description.
20024         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
20025         invocations from here...
20026         * modules/imaxabs (configure.ac): ... to here.
20027
20028 2011-05-08  Bruno Haible  <bruno@clisp.org>
20029
20030         getaddrinfo: Move AC_LIBOBJ invocations to module description.
20031         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
20032         AC_LIBOBJ invocations from here...
20033         * modules/getaddrinfo (configure.ac): ... to here.
20034         (Depends-on): Add conditions.
20035
20036 2011-05-08  Bruno Haible  <bruno@clisp.org>
20037
20038         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
20039         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
20040         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
20041         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
20042         (gl_PREREQ_INET_PTON): ... from here.
20043         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
20044         gl_PREREQ_INET_PTON here.
20045         (Depends-on): Update condition.
20046
20047 2011-05-08  Bruno Haible  <bruno@clisp.org>
20048
20049         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
20050         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
20051         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
20052         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
20053         (gl_PREREQ_INET_NTOP): ... from here.
20054         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
20055         gl_PREREQ_INET_NTOP here.
20056         (Depends-on): Update condition.
20057
20058 2011-05-08  Bruno Haible  <bruno@clisp.org>
20059
20060         iconv_open: Move AC_LIBOBJ invocations to module description.
20061         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
20062         AC_LIBOBJ invocations from here...
20063         * modules/iconv_open (configure.ac): ... to here.
20064
20065 2011-05-08  Bruno Haible  <bruno@clisp.org>
20066
20067         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
20068         If module 'iconv_open' is among the main modules and module
20069         'iconv_open-utf' is among the tests dependencies, then
20070         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
20071         return the special iconv_t values. Therefore iconv() and iconv_close()
20072         must support these special iconv_t values, already in lib, not only in
20073         tests.
20074         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
20075         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
20076         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
20077         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
20078         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
20079         (Depends-on): Add the dependencies of iconv_open-utf.
20080         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
20081         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
20082         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
20083
20084 2011-05-08  Bruno Haible  <bruno@clisp.org>
20085
20086         group-member: Move AC_LIBOBJ invocations to module description.
20087         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
20088         gl_PREREQ_GROUP_MEMBER invocations from here...
20089         * modules/group-member (configure.ac): ... to here.
20090
20091 2011-05-08  Bruno Haible  <bruno@clisp.org>
20092
20093         grantpt: Move AC_LIBOBJ invocations to module description.
20094         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
20095         invocations from here...
20096         * modules/grantpt (configure.ac): ... to here.
20097
20098 2011-05-08  Bruno Haible  <bruno@clisp.org>
20099
20100         glob: Move AC_LIBOBJ invocations to module description.
20101         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
20102         from here...
20103         * modules/glob (configure.ac): ... to here.
20104
20105 2011-05-08  Bruno Haible  <bruno@clisp.org>
20106
20107         getusershell: Move AC_LIBOBJ invocations to module description.
20108         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
20109         Move AC_LIBOBJ invocation from here...
20110         * modules/getusershell (configure.ac): ... to here.
20111         (Depends-on): Update condition.
20112
20113 2011-05-08  Bruno Haible  <bruno@clisp.org>
20114
20115         gettimeofday: Move AC_LIBOBJ invocations to module description.
20116         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20117         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
20118         gl_PREREQ_GETTIMEOFDAY invocations from here...
20119         * modules/gettimeofday (configure.ac): ... to here.
20120
20121 2011-05-08  Bruno Haible  <bruno@clisp.org>
20122
20123         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
20124         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
20125         just gl_FUNC_TZSET.
20126         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
20127         (gl_FUNC_TZSET_CLOBBER): Remove actions.
20128         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
20129         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
20130
20131 2011-05-08  Bruno Haible  <bruno@clisp.org>
20132
20133         getsubopt: Move AC_LIBOBJ invocations to module description.
20134         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
20135         gl_PREREQ_GETSUBOPT invocations from here...
20136         * modules/getsubopt (configure.ac): ... to here.
20137
20138 2011-05-08  Bruno Haible  <bruno@clisp.org>
20139
20140         getpass-gnu: Move AC_LIBOBJ invocations to module description.
20141         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
20142         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
20143         * modules/getpass-gnu (configure.ac): ... to here.
20144
20145 2011-05-08  Bruno Haible  <bruno@clisp.org>
20146
20147         getpass: Move AC_LIBOBJ invocations to module description.
20148         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20149         gl_PREREQ_GETPASS invocations from here...
20150         * modules/getpass (configure.ac): ... to here.
20151
20152 2011-05-08  Bruno Haible  <bruno@clisp.org>
20153
20154         getpagesize: Move AC_LIBOBJ invocations to module description.
20155         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20156         from here...
20157         * modules/getpagesize (configure.ac): ... to here.
20158
20159 2011-05-08  Bruno Haible  <bruno@clisp.org>
20160
20161         getopt: Move AC_LIBOBJ invocations to module description.
20162         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20163         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20164         invocations from here...
20165         * modules/getopt-gnu (configure.ac): ... to here.
20166         * modules/getopt-posix (configure.ac): ... and here.
20167         (Depends-on): Update condition.
20168
20169 2011-05-08  Bruno Haible  <bruno@clisp.org>
20170
20171         getopt, argp: Respect rules for use of AC_LIBOBJ.
20172         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20173         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20174         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20175         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20176
20177 2011-05-08  Bruno Haible  <bruno@clisp.org>
20178
20179         getlogin_r: Move AC_LIBOBJ invocations to module description.
20180         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20181         gl_PREREQ_GETLOGIN_R invocations from here...
20182         * modules/getlogin_r (configure.ac): ... to here.
20183
20184 2011-05-08  Bruno Haible  <bruno@clisp.org>
20185
20186         getlogin: Move AC_LIBOBJ invocations to module description.
20187         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20188         here...
20189         * modules/getlogin (configure.ac): ... to here.
20190
20191 2011-05-08  Bruno Haible  <bruno@clisp.org>
20192
20193         getloadavg: Move AC_LIBOBJ invocations to module description.
20194         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20195         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20196         * modules/getloadavg (configure.ac): ... to here.
20197
20198 2011-05-08  Bruno Haible  <bruno@clisp.org>
20199
20200         gethrxtime: Move AC_LIBOBJ invocations to module description.
20201         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20202         LIB_GETHRXTIME from here...
20203         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20204         invocations from here...
20205         * modules/gethrxtime (configure.ac): ... to here.
20206
20207 2011-05-08  Bruno Haible  <bruno@clisp.org>
20208
20209         gethostname: Move AC_LIBOBJ invocations to module description.
20210         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20211         gl_PREREQ_GETHOSTNAME invocations from here...
20212         * modules/gethostname (configure.ac): ... to here.
20213
20214 2011-05-08  Bruno Haible  <bruno@clisp.org>
20215
20216         getgroups: Move AC_LIBOBJ invocations to module description.
20217         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20218         here...
20219         * modules/getgroups (configure.ac): ... to here.
20220
20221 2011-05-08  Bruno Haible  <bruno@clisp.org>
20222
20223         getdtablesize: Move AC_LIBOBJ invocations to module description.
20224         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20225         invocation from here...
20226         * modules/getdtablesize (configure.ac): ... to here.
20227
20228 2011-05-08  Bruno Haible  <bruno@clisp.org>
20229
20230         getdomainname: Move AC_LIBOBJ invocations to module description.
20231         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20232         gl_PREREQ_GETDOMAINNAME invocations from here...
20233         * modules/getdomainname (configure.ac): ... to here.
20234
20235 2011-05-08  Bruno Haible  <bruno@clisp.org>
20236
20237         getline: Move AC_LIBOBJ invocations to module description.
20238         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20239         invocations from here...
20240         * modules/getline (configure.ac): ... to here.
20241
20242 2011-05-08  Bruno Haible  <bruno@clisp.org>
20243
20244         getline: Simplify.
20245         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20246         It's already handled through the module dependency.
20247
20248 2011-05-08  Bruno Haible  <bruno@clisp.org>
20249
20250         getdelim: Move AC_LIBOBJ invocations to module description.
20251         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20252         and gl_PREREQ_GETDELIM invocations from here...
20253         * modules/getdelim (configure.ac): ... to here.
20254         (Depends-on): Fix condition.
20255
20256 2011-05-08  Bruno Haible  <bruno@clisp.org>
20257
20258         getcwd: Move AC_LIBOBJ invocations to module description.
20259         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20260         invocations from here...
20261         * modules/getcwd (configure.ac): ... to here.
20262
20263 2011-05-08  Bruno Haible  <bruno@clisp.org>
20264
20265         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20266         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20267         here...
20268         * modules/getcwd-lgpl (configure.ac): ... to here.
20269
20270 2011-05-07  Bruno Haible  <bruno@clisp.org>
20271
20272         crypto/gc: Move AC_LIBOBJ invocations to module description.
20273         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20274         * modules/crypto/gc (configure.ac): ... to here.
20275
20276 2011-05-07  Bruno Haible  <bruno@clisp.org>
20277
20278         fwriting: Move AC_LIBOBJ invocations to module description.
20279         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20280         here...
20281         * modules/fwriting (configure.ac): ... to here.
20282
20283 2011-05-07  Bruno Haible  <bruno@clisp.org>
20284
20285         fwritable: Move AC_LIBOBJ invocations to module description.
20286         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20287         here...
20288         * modules/fwritable (configure.ac): ... to here.
20289
20290 2011-05-07  Bruno Haible  <bruno@clisp.org>
20291
20292         futimens: Move AC_LIBOBJ invocations to module description.
20293         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20294         here...
20295         * modules/futimens (configure.ac): ... to here.
20296
20297 2011-05-07  Bruno Haible  <bruno@clisp.org>
20298
20299         ftruncate: Move AC_LIBOBJ invocations to module description.
20300         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20301         gl_PREREQ_FTRUNCATE invocations from here...
20302         * modules/ftruncate (configure.ac): ... to here.
20303
20304 2011-05-07  Bruno Haible  <bruno@clisp.org>
20305
20306         fsync: Move AC_LIBOBJ invocations to module description.
20307         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20308         invocations from here...
20309         * modules/fsync (configure.ac): ... to here.
20310
20311 2011-05-07  Bruno Haible  <bruno@clisp.org>
20312
20313         fsusage: Move AC_LIBOBJ invocations to module description.
20314         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20315         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20316         * modules/fsusage (configure.ac): ... to here.
20317
20318 2011-05-07  Bruno Haible  <bruno@clisp.org>
20319
20320         freopen: Move AC_LIBOBJ invocations to module description.
20321         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20322         invocations from here...
20323         * modules/freopen (configure.ac): ... to here.
20324
20325 2011-05-07  Bruno Haible  <bruno@clisp.org>
20326
20327         free: Move AC_LIBOBJ invocations to module description.
20328         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20329         invocations from here...
20330         * modules/free (configure.ac): ... to here.
20331
20332 2011-05-07  Bruno Haible  <bruno@clisp.org>
20333
20334         freadable: Move AC_LIBOBJ invocations to module description.
20335         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20336         here...
20337         * modules/freadable (configure.ac): ... to here.
20338
20339 2011-05-07  Bruno Haible  <bruno@clisp.org>
20340
20341         fpurge: Move AC_LIBOBJ invocations to module description.
20342         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20343         invocations from here...
20344         * modules/fpurge (configure.ac): ... to here.
20345
20346 2011-05-07  Bruno Haible  <bruno@clisp.org>
20347
20348         fpending: Move AC_LIBOBJ invocations to module description.
20349         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20350         gl_FUNC_FPENDING.
20351         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20352         invocations from here...
20353         * modules/fpending (configure.ac): ... to here.
20354
20355 2011-05-07  Bruno Haible  <bruno@clisp.org>
20356
20357         fopen: Move AC_LIBOBJ invocations to module description.
20358         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20359         invocations from here...
20360         * modules/fopen (configure.ac): ... to here.
20361
20362 2011-05-07  Bruno Haible  <bruno@clisp.org>
20363
20364         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20365         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20366         gl_FUNC_FNMATCH_POSIX.
20367         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20368         invocations from here...
20369         * modules/fnmatch (configure.ac): ... to here.
20370         * modules/fnmatch-gnu (configure.ac): ... and here.
20371
20372 2011-05-07  Bruno Haible  <bruno@clisp.org>
20373
20374         flock: Move AC_LIBOBJ invocations to module description.
20375         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20376         invocations from here...
20377         * modules/flock (configure.ac): ... to here.
20378
20379 2011-05-07  Bruno Haible  <bruno@clisp.org>
20380
20381         fileblocks: Move AC_LIBOBJ invocations to module description.
20382         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20383         gl_PREREQ_FILEBLOCKS invocations from here...
20384         * modules/fileblocks (configure.ac): ... to here.
20385
20386 2011-05-06  Bruno Haible  <bruno@clisp.org>
20387
20388         fflush: Move AC_LIBOBJ invocations to module description.
20389         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20390         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20391         invocations from here...
20392         * modules/fflush (configure.ac): ... to here.
20393
20394 2011-05-06  Bruno Haible  <bruno@clisp.org>
20395
20396         fdopendir: Move AC_LIBOBJ invocations to module description.
20397         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20398         here...
20399         * modules/fdopendir (configure.ac): ... to here.
20400         (Depends-on): Improve conditions.
20401
20402 2011-05-06  Bruno Haible  <bruno@clisp.org>
20403
20404         _Exit: Move AC_LIBOBJ invocations to module description.
20405         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20406         invocations from here...
20407         * modules/_Exit (configure.ac): ... to here.
20408
20409 2011-05-21  Bruno Haible  <bruno@clisp.org>
20410
20411         euidaccess: Respect rules for use of AC_LIBOBJ.
20412         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20413         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20414         from here...
20415         * modules/euidaccess (configure.ac): ... to here.
20416
20417 2011-05-06  Bruno Haible  <bruno@clisp.org>
20418
20419         error: Move AC_LIBOBJ invocations to module description.
20420         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20421         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20422         invocations from here...
20423         * modules/error (configure.ac): ... to here.
20424
20425 2011-05-06  Bruno Haible  <bruno@clisp.org>
20426
20427         duplocale: Move AC_LIBOBJ invocations to module description.
20428         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20429         gl_PREREQ_DUPLOCALE invocations from here...
20430         * modules/duplocale (configure.ac): ... to here.
20431
20432 2011-05-05  Bruno Haible  <bruno@clisp.org>
20433
20434         dirfd: Move AC_LIBOBJ invocations to module description.
20435         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20436         gl_FUNC_DIRFD.
20437         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20438         here...
20439         * modules/dirfd (configure.ac): ... to here.
20440         (Depends-on): Fix condition.
20441
20442 2011-05-05  Bruno Haible  <bruno@clisp.org>
20443
20444         chown: Respect rules for use of AC_LIBOBJ.
20445         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20446         * modules/chown (configure.ac): ... to here.
20447
20448 2011-05-05  Bruno Haible  <bruno@clisp.org>
20449
20450         chdir-long: Move AC_LIBOBJ invocations to module description.
20451         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20452         gl_PREREQ_CHDIR_LONG invocations from here...
20453         * modules/chdir-long (configure.ac): ... to here.
20454
20455 2011-05-05  Bruno Haible  <bruno@clisp.org>
20456
20457         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20458         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20459         from here...
20460         * modules/canonicalize-lgpl (configure.ac): ... to here.
20461
20462 2011-05-05  Bruno Haible  <bruno@clisp.org>
20463
20464         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20465         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20466         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20467         REPLACE_CALLOC.
20468         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20469         * modules/calloc-gnu (configure.ac): Likewise.
20470
20471 2011-05-05  Bruno Haible  <bruno@clisp.org>
20472
20473         btowc: Move AC_LIBOBJ invocations to module description.
20474         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20475         invocations from here...
20476         * modules/btowc (configure.ac): ... to here.
20477
20478 2011-05-21  Bruno Haible  <bruno@clisp.org>
20479
20480         atexit: Move AC_LIBOBJ invocations to module description.
20481         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20482         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20483         here...
20484         * modules/atexit (configure.ac): ... to here.
20485
20486 2011-05-05  Bruno Haible  <bruno@clisp.org>
20487
20488         atoll: Move AC_LIBOBJ invocations to module description.
20489         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20490         invocations from here...
20491         * modules/atoll (configure.ac): ... to here.
20492
20493 2011-05-05  Bruno Haible  <bruno@clisp.org>
20494
20495         argz: Move AC_LIBOBJ invocations to module description.
20496         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20497         * modules/argz (configure.ac): ... to here.
20498
20499 2011-05-05  Bruno Haible  <bruno@clisp.org>
20500
20501         alphasort: Move AC_LIBOBJ invocations to module description.
20502         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20503         gl_PREREQ_ALPHASORT invocations from here...
20504         * modules/alphasort (configure.ac): ... to here.
20505
20506 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20507
20508         verify: new macro verify_expr; verify_true deprecated
20509         * NEWS: Mention this.
20510         * doc/verify.texi (Compile-time Assertions): Document this.
20511         * lib/verify.h (verify_true): Deprecate.
20512         (verify_expr): New macro.
20513         * tests/test-verify.c (function): Test verify_expr.
20514
20515 2011-06-14  Jim Meyering  <meyering@redhat.com>
20516
20517         init.sh: give more portable redirection-related advice in a comment
20518         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20519         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20520         for lots of discussion.  Stefano Lattarini suggested the solution
20521         of putting "9>&2" after the command.  Reported by Bruno Haible.
20522
20523 2011-06-13  Bruno Haible  <bruno@clisp.org>
20524
20525         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20526         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20527         'none'.
20528
20529 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20530
20531         ftoastr: use strtof only if HAVE_STRTOF
20532         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20534         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20535         * modules/ftoastr (configure.ac): Check for strtof.
20536
20537 2011-06-13  Bruno Haible  <bruno@clisp.org>
20538
20539         gnulib-tool: Addendum to 2011-06-08 commit.
20540         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20541         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20542
20543 2011-06-13  Bruno Haible  <bruno@clisp.org>
20544
20545         fseeko: Provide a non-inline replacement of fseek().
20546         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20547         * modules/fseeko (Depends-on): Add fseek.
20548         * modules/fseek (License): Change to LGPLv2+.
20549
20550 2011-06-13  Bruno Haible  <bruno@clisp.org>
20551
20552         ftello: Provide a non-inline replacement of ftell().
20553         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20554         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20555         not have ftello() (such as on mingw).
20556         * modules/ftello (Depends-on): Add ftell.
20557         * modules/ftell (License): Change to LGPLv2+.
20558
20559 2011-05-07  Bruno Haible  <bruno@clisp.org>
20560
20561         ftell: Move AC_LIBOBJ invocations to module description.
20562         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20563         * modules/ftell (configure.ac): ... to here.
20564
20565 2011-05-07  Bruno Haible  <bruno@clisp.org>
20566
20567         ftello: Respect rules for use of AC_LIBOBJ.
20568         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20569         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20570         here...
20571         * modules/ftello (configure.ac): ... to here.
20572
20573 2011-05-07  Bruno Haible  <bruno@clisp.org>
20574
20575         fseeko: Simplify.
20576         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20577         (gl_FUNC_FSEEKO): Inline it here.
20578
20579 2011-05-07  Bruno Haible  <bruno@clisp.org>
20580
20581         fseek: Move AC_LIBOBJ invocations to module description.
20582         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20583         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20584         * modules/fseek (configure.ac): ... to here.
20585
20586 2011-05-07  Bruno Haible  <bruno@clisp.org>
20587
20588         fseek: Respect rules for use of AC_LIBOBJ.
20589         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20590         here...
20591         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20592
20593 2011-05-07  Bruno Haible  <bruno@clisp.org>
20594
20595         fseeko: Respect rules for use of AC_LIBOBJ.
20596         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20597         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20598         here...
20599         * modules/fseeko (configure.ac): ... to here.
20600
20601 2011-06-13  Bruno Haible  <bruno@clisp.org>
20602
20603         gnulib-tool: Allow comments in the 'Depends-on' section.
20604         * doc/gnulib.texi (Module description): Mention comment syntax in the
20605         Depends-on section.
20606         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20607
20608 2011-06-13  Bruno Haible  <bruno@clisp.org>
20609
20610         file-set.h: guard __attibute__ use, now that it's not always defined
20611         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20612         versions that support it.  This fixes a coreutils build failure with
20613         the vendor cc on HP-UX 11.31.
20614
20615 2011-06-12  Bruno Haible  <bruno@clisp.org>
20616
20617         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20618         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20619         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20620         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20621         (acl, aclsort): New declarations.
20622         (aclv_nontrivial): New declaration.
20623         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20624         (file_has_acl): Read also the second kind of HP-UX ACLs.
20625         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20626         kind of HP-UX ACLs if the first kind fails.
20627         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20628         second kind of HP-UX ACLs.
20629         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20630         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20631         agree.
20632         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20633         hpuxjfs.
20634         Handle hpuxjfs.
20635         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20636         hpuxjfs.
20637         Handle hpuxjfs.
20638         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20639         (func_test_same_acls): Use both lsacl and getacl.
20640         Handle hpuxjfs.
20641         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20642         (func_test_same_acls): Use both lsacl and getacl.
20643         Handle hpuxjfs.
20644
20645 2011-06-12  Bruno Haible  <bruno@clisp.org>
20646
20647         acl: Complete the 2010-08-10 fix.
20648         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20649         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20650         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20651         explicitly.
20652         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20653         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20654
20655 2011-06-12  Bruno Haible  <bruno@clisp.org>
20656
20657         spawn-pipe tests: Comments.
20658         * tests/test-spawn-pipe-child.c (main): Update comment.
20659         Reported by James Youngman <jay@gnu.org>.
20660
20661 2011-06-11  James Youngman  <jay@gnu.org>
20662
20663         New module 'stat-size'.
20664         * modules/stat-size: New module.  Provides macros for accessing
20665         file size information in instances of struct stat.  Depends on the
20666         fileblocks module because it calls st_blocks.
20667         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20668         * doc/gnulib.texi: Include stat-size.texi.
20669         * doc/stat-size.texi: Documentation for this module.
20670         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20671         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20672         AC_STRUCT_ST_BLOCKS.
20673
20674 2011-06-09  Bruno Haible  <bruno@clisp.org>
20675
20676         thread: Support pthreads-win32.
20677         * lib/glthread/thread.h (gl_thread_self): Define differently on
20678         pthreads-win32.
20679         (gl_null_thread): New declaration.
20680         (gl_thread_self_pointer): New macro.
20681         * lib/glthread/thread.c (gl_null_thread): New constant.
20682         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20683         gl_thread_self.
20684         * tests/test-tls.c: Likewise.
20685         Suggested by Paul Eggert. Reported by Eric Blake.
20686
20687 2011-06-09  Bruno Haible  <bruno@clisp.org>
20688
20689         thread: Fix confusion between NULL and 0.
20690         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20691         Reported by Paul Eggert.
20692
20693 2011-06-09  Bruno Haible  <bruno@clisp.org>
20694
20695         spawn-pipe tests: Avoid test failure on HP-UX 11.
20696         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20697         is closed.
20698
20699 2011-06-09  Bruno Haible  <bruno@clisp.org>
20700
20701         acl tests: Fix compilation error on HP-UX 11.
20702         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20703
20704 2011-06-09  Bruno Haible  <bruno@clisp.org>
20705
20706         rmdir: Avoid test failure on HP-UX 10.20.
20707         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20708         EEXIST.
20709
20710 2011-06-08  Eric Blake  <eblake@redhat.com>
20711
20712         perror: fix test on mingw
20713         * modules/perror-tests (Depends-on): Add dup2.
20714
20715         strerror_r-posix: fix on MacOS
20716         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20717         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20718         logic bug.
20719         * lib/strerror_r.c (strerror_r): Fix the bug.
20720         * lib/strerror.c (strerror): Likewise.
20721         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20722         problem.
20723         * doc/posix-functions/strerror.texi (strerror): Likewise.
20724         * doc/posix-functions/perror.texi (perror): Likewise.
20725         * tests/test-strerror.c (main): Enhance test.
20726         * tests/test-strerror_r.c (main): Likewise.
20727
20728 2011-06-08  Bruno Haible  <bruno@clisp.org>
20729
20730         gnulib-tool: Better isolation between different gnulib-tool invocations.
20731         * gnulib-tool: New option --witness-c-macro.
20732         (witness_c_macro): New variable.
20733         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20734         AM_CPPFLAGS define it as a C macro.
20735         (func_emit_tests_Makefile_am): Likewise.
20736         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20737         read it from there.
20738         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20739         m4_define, not AC_DEFUN.
20740         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20741         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20742         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20743         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20744         s|...|...|, to substitute the values of the GNULIB_* module indicator
20745         variables.
20746         * modules/dirent (Makefile.am): Likewise.
20747         * modules/fcntl-h (Makefile.am): Likewise.
20748         * modules/iconv-h (Makefile.am): Likewise.
20749         * modules/langinfo (Makefile.am): Likewise.
20750         * modules/locale (Makefile.am): Likewise.
20751         * modules/math (Makefile.am): Likewise.
20752         * modules/netdb (Makefile.am): Likewise.
20753         * modules/poll-h (Makefile.am): Likewise.
20754         * modules/pty (Makefile.am): Likewise.
20755         * modules/search (Makefile.am): Likewise.
20756         * modules/signal (Makefile.am): Likewise.
20757         * modules/spawn (Makefile.am): Likewise.
20758         * modules/stdio (Makefile.am): Likewise.
20759         * modules/stdlib (Makefile.am): Likewise.
20760         * modules/string (Makefile.am): Likewise.
20761         * modules/sys_ioctl (Makefile.am): Likewise.
20762         * modules/sys_select (Makefile.am): Likewise.
20763         * modules/sys_socket (Makefile.am): Likewise.
20764         * modules/sys_stat (Makefile.am): Likewise.
20765         * modules/sys_times (Makefile.am): Likewise.
20766         * modules/sys_utsname (Makefile.am): Likewise.
20767         * modules/sys_wait (Makefile.am): Likewise.
20768         * modules/termios (Makefile.am): Likewise.
20769         * modules/time (Makefile.am): Likewise.
20770         * modules/unistd (Makefile.am): Likewise.
20771         * modules/wchar (Makefile.am): Likewise.
20772
20773 2011-06-08  Eric Blake  <eblake@redhat.com>
20774
20775         strerror: simplify replacement
20776         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20777         * modules/strerror (configure.ac): No prereqs needed here...
20778         * modules/strerror-override (configure.ac): ...but this needs it.
20779         (Files): Add file for needed prereq macro.
20780
20781 2011-06-08  Bruno Haible  <bruno@clisp.org>
20782
20783         strerror_r-posix: Tweaks.
20784         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20785         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20787         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20788         (gl_FUNC_STRERROR_R): ... to here.
20789         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20790
20791 2011-06-07  Eric Blake  <eblake@redhat.com>
20792
20793         perror: document fixed bugs
20794         * doc/posix-functions/perror.texi (perror): Document recent
20795         patches.
20796
20797 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20798
20799         stat-time: get_stat_birthtime failure is better-defined
20800         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20801         return a timestamp whose tv_sec and tv_nsec values are both -1.
20802         Previously, the spec said only that the tv_nsec value was negative.
20803         This upward-compatible change simplifies GNU tar a bit.
20804
20805 2011-06-07  Eric Blake  <eblake@redhat.com>
20806
20807         strerror_r-posix: work around cygwin 1.7.9
20808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20809         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20810         bug without replacing strerror_r.
20811         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20812         strerror_r is buggy, but without requiring strerror_r compilation.
20813         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20814
20815         test-perror: relax test to ignore cygwin bug
20816         * tests/test-perror2.c (main): Relax test on requiring detection
20817         of stream errors, and use unbuffered stream.
20818         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20819         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20820         * doc/posix-functions/fputc.texi (fputc): Likewise.
20821         * doc/posix-functions/fputs.texi (fputs): Likewise.
20822         * doc/posix-functions/fputws.texi (fputws): Likewise.
20823         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20824         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20825         * doc/posix-functions/getopt.texi (getopt): Likewise.
20826         * doc/posix-functions/perror.texi (perror): Likewise.
20827         * doc/posix-functions/printf.texi (printf): Likewise.
20828         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20829         * doc/posix-functions/psignal.texi (psignal): Likewise.
20830         * doc/posix-functions/putc.texi (putc): Likewise.
20831         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20832         Likewise.
20833         * doc/posix-functions/putchar.texi (putchar): Likewise.
20834         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20835         Likewise.
20836         * doc/posix-functions/puts.texi (puts): Likewise.
20837         * doc/posix-functions/putwc.texi (putwc): Likewise.
20838         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20839         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20840         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20841         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20842         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20843         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20844         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20845         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20846
20847 2011-05-22  Bruno Haible  <bruno@clisp.org>
20848
20849         strerror: Move AC_LIBOBJ invocations to module description.
20850         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20851         gl_PREREQ_STRERROR invocations from here...
20852         * modules/strerror (configure.ac): ... to here.
20853
20854 2011-05-21  Bruno Haible  <bruno@clisp.org>
20855
20856         perror: Use common idiom.
20857         * modules/perror (configure.ac): Reorder statements.
20858
20859 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20860
20861         tests: fix usage message in 'mktempd_'
20862         * tests/init.sh (mktempd_): In the usage message, use literal
20863         'mktempd_', not '$ME' (which is even undefined), as the name of
20864         the subroutine.
20865
20866 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20867
20868         tests init: new function 'fatal_', for hard errors
20869         Before this patch, the only way offered by tests/init.sh to
20870         properly signal a hard error was the `framework_failure_'
20871         function.  But the error message issued by that function,
20872         as its name would suggest, refers to a set-up failure in the
20873         testsuite, while hard errors can obviously also be due to
20874         other reasons.  The best way to fix this inconsistency is to
20875         introduce a new function with a more general error message.
20876         * tests/init.sh (fatal_): New function.
20877
20878 2011-06-06  Eric Blake  <eblake@redhat.com>
20879
20880         canonicalize-lgpl: use common idiom
20881         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20882         over newer POSIX -Rf.
20883         Reported by Bruno Haible.
20884
20885         canonicalize-lgpl: work around AIX realpath bug
20886         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20887         * doc/posix-functions/realpath.texi (realpath): Document it.
20888         Reported by Bruno Haible.
20889
20890         strerror: work around FreeBSD bug
20891         * lib/strerror.c (strerror): Special case 0.
20892         Reported by Bruno Haible.
20893
20894         strerror-override: avoid bloating errno module
20895         * modules/errno (Files, configure.ac): Move replacement strings...
20896         * modules/strerror-override: ...to new module.
20897         * modules/strerror (Depends-on): Add strerror-override.
20898         * modules/strerror_r-posix (Depends-on): Likewise.
20899         * MODULES.html.sh: Document new module.
20900         Reported by Bruno Haible.
20901
20902 2011-06-06  Bruno Haible  <bruno@clisp.org>
20903
20904         spawn-pipe tests: Rename program.
20905         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20906         * tests/test-spawn-pipe-child.c: Update comment.
20907         * tests/test-spawn-pipe.sh: Update.
20908         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20909
20910         spawn-pipe tests: Link the child program only against libc.
20911         * tests/test-spawn-pipe-child.c: New file, extracted from
20912         tests/test-spawn-pipe.c.
20913         (main): Expect only one argument.
20914         (is_open): New function, copied from tests/test-pipe.c.
20915         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20916         (child_main): Remove function.
20917         (test_pipe): Pass only one argument to the child program.
20918         (main): Remove child process code. Expect the child program's name as
20919         first argument.
20920         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20921         argument.
20922         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20923         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20924         test-spawn-pipe-child against no libraries.
20925
20926 2011-06-06  Bruno Haible  <bruno@clisp.org>
20927
20928         careadlinkat: Avoid mismatch between ssize_t and int.
20929         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20930         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20931
20932 2011-06-06  Jim Meyering  <meyering@redhat.com>
20933
20934         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20935         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20936         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20937
20938 2011-06-05  Bruno Haible  <bruno@clisp.org>
20939
20940         ansi-c++-opt: Interoperability with libtool.
20941         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20942         set the variable to "no", not to ":".
20943         * NEWS: Mention the change.
20944
20945 2011-06-05  Bruno Haible  <bruno@clisp.org>
20946
20947         acl: Fix test failure on AIX 7.
20948         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20949         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20950
20951 2011-06-05  Bruno Haible  <bruno@clisp.org>
20952
20953         pipe-filter-ii: Fix test failure on AIX and IRIX.
20954         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20955         with EAGAIN, retry with a smaller buffer size.
20956
20957 2011-06-05  Bruno Haible  <bruno@clisp.org>
20958
20959         localename: Fix link dependencies.
20960         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20961         * modules/localename-tests (Makefile.am): Link test-localename with
20962         $(LIBTHREAD).
20963
20964 2011-06-05  Bruno Haible  <bruno@clisp.org>
20965
20966         error: Avoid gcc warning.
20967         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20968
20969 2011-06-05  Bruno Haible  <bruno@clisp.org>
20970
20971         unsetenv: Avoid gcc warning.
20972         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20973
20974 2011-06-05  Bruno Haible  <bruno@clisp.org>
20975
20976         setenv: Avoid gcc warning.
20977         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20978
20979 2011-06-05  Bruno Haible  <bruno@clisp.org>
20980
20981         sys_select: Ensure memset is declared also on AIX 7.
20982         * lib/sys_select.in.h: Include <string.h> also on AIX.
20983         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20984         self-contained also on AIX 7.1.
20985
20986 2011-06-04  Jim Meyering  <meyering@redhat.com>
20987
20988         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20989         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20990         function name, "error".
20991         (_gl_translatable_diag_func_re): New configurable variable.
20992
20993 2011-06-04  Bruno Haible  <bruno@clisp.org>
20994
20995         getopt: Avoid gcc warning.
20996         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20997
20998 2011-06-04  Bruno Haible  <bruno@clisp.org>
20999
21000         strerror_r: Fix comments.
21001         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
21002         commit.
21003
21004 2011-06-04  Bruno Haible  <bruno@clisp.org>
21005
21006         perror: Fix compilation error.
21007         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
21008         Undefine fprintf, not sprintf.
21009         * modules/perror (Depends-on): Remove intprops, verify.
21010
21011 2011-06-04  Bruno Haible  <bruno@clisp.org>
21012
21013         setlocale: Enable replacement on Cygwin 1.5.
21014         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
21015         Cygwin 1.5.x.
21016         * doc/posix-functions/setlocale.texi: Mention that the problem with the
21017         LC_CTYPE category also exists on Cygwin 1.5.x.
21018
21019 2011-06-04  Bruno Haible  <bruno@clisp.org>
21020
21021         strerror-override: Don't disable symbol renamings.
21022         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
21023         * lib/strerror-override.c: Include config.h.
21024         (strerror_override): Don't undefine.
21025
21026 2011-06-03  Bruno Haible  <bruno@clisp.org>
21027
21028         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
21029         * lib/localename.h: Update copyright header.
21030         * lib/localename.c: Likewise.
21031         * lib/relocatable.h: Likewise.
21032         * lib/relocatable.c: Likewise.
21033
21034 2011-06-02  Bruno Haible  <bruno@clisp.org>
21035
21036         doc: Fix a module name.
21037         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
21038
21039 2011-06-02  Bruno Haible  <bruno@clisp.org>
21040
21041         pipe2: Remove dependency on 'nonblocking' module.
21042         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
21043         O_NONBLOCK is defined by gnulib.
21044         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
21045         is zero.
21046         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
21047         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
21048         defined by gnulib.
21049         (get_nonblocking_flag): New function.
21050         (main): Test O_NONBLOCK flag only if it is nonzero.
21051         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
21052
21053 2011-06-03  Jim Meyering  <meyering@redhat.com>
21054
21055         maint: three new prohibit-header-without-use rules
21056         Prohibit use of cloexec.h, posixver.h, same.h without use.
21057         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
21058         (sc_prohibit_posixver_without_use): Likewise.
21059         (sc_prohibit_same_without_use): Likewise.
21060
21061 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21062
21063         allocator: 'die' routine is now given requested size
21064         * lib/allocator.h (struct allocator.die): New size arg.
21065         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
21066         If the actual problem is an ssize_t limitation, not a size_t or
21067         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
21068
21069 2011-06-01  Eric Blake  <eblake@redhat.com>
21070
21071         strerror: drop strerror_r dependency
21072         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
21073         * lib/strerror-override.c (strerror_override): ...to new file.
21074         * lib/strerror-override.h: Add prototype.
21075         * lib/strerror-impl.h: Delete.
21076         * lib/strerror.c (strerror): New implementation.
21077         * modules/errno (Files): Add new files.
21078         (configure.ac): Compile new file as appropriate.
21079         * modules/strerror (Files): Drop unused file.
21080         (Depends-on): Drop strerror_r-posix.
21081         * MODULES.html.sh: Document strerror_r-posix.
21082         Requested by Sam Steingold.
21083
21084         perror: call strerror_r directly
21085         * modules/perror (Files): Drop strerror-impl.h.
21086         * lib/perror.c (perror): Use our own stack buffer, rather than
21087         calling a wrapper that uses static storage.
21088         * doc/posix-functions/perror.texi (perror): Document a limitation
21089         of our replacement.
21090
21091         strerror_r: fix includes for FreeBSD
21092         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
21093         since we use abort on some platforms.
21094         Reported by Matthias Bolte.
21095
21096 2011-05-31  Bruno Haible  <bruno@clisp.org>
21097
21098         Fix link errors in tests: openat-die uses gettext-h.
21099         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
21100         against $(LIBINTL).
21101         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
21102         against $(LIBINTL).
21103         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
21104         $(LIBINTL).
21105         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
21106         against $(LIBINTL).
21107         * modules/linkat-tests (Makefile.am): Link test-linkat against
21108         $(LIBINTL).
21109         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
21110         $(LIBINTL).
21111         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
21112         against $(LIBINTL).
21113         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
21114         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
21115         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
21116         $(LIBINTL).
21117         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
21118         $(LIBINTL).
21119         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
21120         $(LIBINTL).
21121         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21122
21123 2011-05-31  Bruno Haible  <bruno@clisp.org>
21124
21125         Fix link errors in tests: wait-process uses gettext-h.
21126         * modules/nonblocking-pipe-tests (Makefile.am): Set
21127         test_nonblocking_pipe_main_LDADD.
21128         * modules/nonblocking-socket-tests (Makefile.am): Link
21129         test-nonblocking-socket-main against $(LIBINTL).
21130         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21131
21132 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21133
21134         assert-h: work around 'verify' incompatibility
21135         * lib/verify.h: Use @...@ directives, not ifdef.
21136         * modules/assert-h (assert.h): Implement the directives.
21137         (assert.h): Substitute the symbol-prefix more consistently.
21138
21139 2011-05-29  Jim Meyering  <meyering@redhat.com>
21140
21141         trim: remove three superfluous assignments
21142         * lib/trim.c (trim2): Remove three superfluous assignments
21143         and correct brace positioning.
21144
21145 2011-05-29  Bruno Haible  <bruno@clisp.org>
21146
21147         wctype-h: Avoid namespace pollution on Solaris 2.6.
21148         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21149         identifiers.
21150         * doc/posix-headers/wctype.texi: Mention the problem.
21151         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21152
21153 2011-05-28  Jim Meyering  <meyering@redhat.com>
21154
21155         parse-datetime.y: accommodate -Wstrict-overflow
21156         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21157         placate -Wstrict-overflow.
21158
21159         trim: avoid a warning from -O2 -Wstrict-overflow
21160         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21161
21162 2011-05-29  Bruno Haible  <bruno@clisp.org>
21163
21164         gnulib-tool: Fix bug in yesterday's commit.
21165         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21166         twice.
21167
21168 2011-05-29  Bruno Haible  <bruno@clisp.org>
21169
21170         Allow multiple gnulib generated include files to be combined.
21171         * gnulib-tool (func_compute_include_guard_prefix): New function.
21172         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21173         ${gl_include_guard_prefix} references.
21174         (func_import, func_create_testdir): Invoke
21175         func_compute_include_guard_prefix.
21176         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21177         * lib/ctype.in.h: Likewise.
21178         * lib/dirent.in.h: Likewise.
21179         * lib/errno.in.h: Likewise.
21180         * lib/fcntl.in.h: Likewise.
21181         * lib/float.in.h: Likewise.
21182         * lib/getopt.in.h: Likewise.
21183         * lib/iconv.in.h: Likewise.
21184         * lib/langinfo.in.h: Likewise.
21185         * lib/locale.in.h: Likewise.
21186         * lib/math.in.h: Likewise.
21187         * lib/netdb.in.h: Likewise.
21188         * lib/netinet_in.in.h: Likewise.
21189         * lib/poll.in.h: Likewise.
21190         * lib/pthread.in.h: Likewise.
21191         * lib/pty.in.h: Likewise.
21192         * lib/sched.in.h: Likewise.
21193         * lib/se-selinux.in.h: Likewise.
21194         * lib/search.in.h: Likewise.
21195         * lib/signal.in.h: Likewise.
21196         * lib/spawn.in.h: Likewise.
21197         * lib/stdarg.in.h: Likewise.
21198         * lib/stddef.in.h: Likewise.
21199         * lib/stdint.in.h: Likewise.
21200         * lib/stdio.in.h: Likewise.
21201         * lib/stdlib.in.h: Likewise.
21202         * lib/string.in.h: Likewise.
21203         * lib/strings.in.h: Likewise.
21204         * lib/sys_file.in.h: Likewise.
21205         * lib/sys_ioctl.in.h: Likewise.
21206         * lib/sys_select.in.h: Likewise.
21207         * lib/sys_socket.in.h: Likewise.
21208         * lib/sys_stat.in.h: Likewise.
21209         * lib/sys_time.in.h: Likewise.
21210         * lib/sys_times.in.h: Likewise.
21211         * lib/sys_uio.in.h: Likewise.
21212         * lib/sys_utsname.in.h: Likewise.
21213         * lib/sys_wait.in.h: Likewise.
21214         * lib/sysexits.in.h: Likewise.
21215         * lib/termios.in.h: Likewise.
21216         * lib/time.in.h: Likewise.
21217         * lib/unistd.in.h: Likewise.
21218         * lib/wchar.in.h: Likewise.
21219         * lib/wctype.in.h: Likewise.
21220         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21221         * modules/ctype (Makefile.am): Likewise.
21222         * modules/dirent (Makefile.am): Likewise.
21223         * modules/errno (Makefile.am): Likewise.
21224         * modules/fcntl-h (Makefile.am): Likewise.
21225         * modules/float (Makefile.am): Likewise.
21226         * modules/getopt-posix (Makefile.am): Likewise.
21227         * modules/iconv-h (Makefile.am): Likewise.
21228         * modules/langinfo (Makefile.am): Likewise.
21229         * modules/locale (Makefile.am): Likewise.
21230         * modules/math (Makefile.am): Likewise.
21231         * modules/netdb (Makefile.am): Likewise.
21232         * modules/netinet_in (Makefile.am): Likewise.
21233         * modules/poll-h (Makefile.am): Likewise.
21234         * modules/pthread (Makefile.am): Likewise.
21235         * modules/pty (Makefile.am): Likewise.
21236         * modules/sched (Makefile.am): Likewise.
21237         * modules/search (Makefile.am): Likewise.
21238         * modules/selinux-h (Makefile.am): Likewise.
21239         * modules/signal (Makefile.am): Likewise.
21240         * modules/spawn (Makefile.am): Likewise.
21241         * modules/stdarg (Makefile.am): Likewise.
21242         * modules/stddef (Makefile.am): Likewise.
21243         * modules/stdint (Makefile.am): Likewise.
21244         * modules/stdio (Makefile.am): Likewise.
21245         * modules/stdlib (Makefile.am): Likewise.
21246         * modules/string (Makefile.am): Likewise.
21247         * modules/strings (Makefile.am): Likewise.
21248         * modules/sys_file (Makefile.am): Likewise.
21249         * modules/sys_ioctl (Makefile.am): Likewise.
21250         * modules/sys_select (Makefile.am): Likewise.
21251         * modules/sys_socket (Makefile.am): Likewise.
21252         * modules/sys_stat (Makefile.am): Likewise.
21253         * modules/sys_time (Makefile.am): Likewise.
21254         * modules/sys_times (Makefile.am): Likewise.
21255         * modules/sys_uio (Makefile.am): Likewise.
21256         * modules/sys_utsname (Makefile.am): Likewise.
21257         * modules/sys_wait (Makefile.am): Likewise.
21258         * modules/sysexits (Makefile.am): Likewise.
21259         * modules/termios (Makefile.am): Likewise.
21260         * modules/time (Makefile.am): Likewise.
21261         * modules/unistd (Makefile.am): Likewise.
21262         * modules/wchar (Makefile.am): Likewise.
21263         * modules/wctype-h (Makefile.am): Likewise.
21264         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21265
21266 2011-05-29  Bruno Haible  <bruno@clisp.org>
21267
21268         assert-h: Allow multiple gnulib generated replacements to coexist.
21269         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21270
21271 2011-05-29  Bruno Haible  <bruno@clisp.org>
21272
21273         argp: Allow coexistence with strerror_r-posix module.
21274         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21275         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21276         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21277         not the glibc signature.
21278
21279 2011-05-28  Bruno Haible  <bruno@clisp.org>
21280
21281         gnulib-tool: Alternative structure of testdirs, similar to --import.
21282         * gnulib-tool: New option --single-configure.
21283         (func_usage): Document it.
21284         (single_configure): New variable.
21285         (func_modules_transitive_closure_separately,
21286         func_modules_transitive_closure_separately,
21287         func_determine_use_libtests, func_modules_add_dummy_separately,
21288         func_modules_to_filelist_separately): New functions, extracted from
21289         func_import.
21290         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21291         (func_import): Use the new functions.
21292         (func_create_testdir): Set final_modules. Handle $single_configure =
21293         true case.
21294
21295 2011-05-28  Bruno Haible  <bruno@clisp.org>
21296
21297         getloadavg: Remove an unreliable safety check.
21298         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21299         getloadavg.c is in place.
21300         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21301         Reported by Sam Steingold <sds@gnu.org>.
21302
21303 2011-05-28  Bruno Haible  <bruno@clisp.org>
21304
21305         doc: Cleanup yet another file produced by texinfo.tex.
21306         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21307
21308 2011-05-28  Bruno Haible  <bruno@clisp.org>
21309
21310         Finish the conditional dependencies mechanism.
21311         * gnulib-tool: New option --no-conditional-dependencies.
21312         (func_usage): Document it. Don't mark --conditional-dependencies as
21313         experimental.
21314         (cond_dependencies): The possible values can now be true, false, empty.
21315         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21316         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21317         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21318
21319 2011-05-28  Bruno Haible  <bruno@clisp.org>
21320
21321         doc: Use a recent texinfo.tex.
21322         * doc/Makefile (tex_opts): New variable.
21323         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21324
21325 2011-05-28  Jim Meyering  <meyering@redhat.com>
21326
21327         intprops.h: adjust comment to match code change
21328         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21329         only once, it *may* have side effects.  Also fix an unrelated typo.
21330         (_GL_INT_SIGNED): Likewise.
21331
21332 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21333
21334         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21335
21336 2011-05-26  Bruno Haible  <bruno@clisp.org>
21337
21338         mbsrchr: Avoid collision with system function on Interix.
21339         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21340         Reported by Markus Duft <mduft@gentoo.org>.
21341
21342 2011-05-15  James Youngman  <jay@gnu.org>
21343
21344         getopt: for ambiguous options, enumerate the possibilities.
21345         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21346         the ambiguous options when an ambiguous prefix is given. This was
21347         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21348         glibc change was
21349         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21350
21351 2011-05-25  Eric Blake  <eblake@redhat.com>
21352
21353         getcwd: work around mingw bug
21354         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21355         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21356         Reported by Matthias Bolte.
21357
21358 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21359
21360         test-intprops: disable -Wtype-limits diagnostics
21361         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21362         diagnostics.  Otherwise, the integer overflow macros generate many
21363         diagnostics.  Reported by Jim Meyering in
21364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21365
21366         intprops: shorten, to pacify gcc -Woverlength-strings
21367         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21368         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21369         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21370         likely to run afoul of C compiler limits for string constant lengths.
21371         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21372
21373 2011-05-24  Eric Blake  <eblake@redhat.com>
21374
21375         docs: document recently fixed glibc printf bug
21376         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21377         * doc/posix-functions/printf.texi (printf): Likewise.
21378         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21379         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21380
21381         closein-tests: convert to init.sh
21382         * modules/closein-tests (Files): Add init.sh
21383         * tests/test-closein.sh Use it.
21384
21385         yesno-tests: convert to init.sh
21386         * modules/yesno-tests (Files): Add init.sh.
21387         * tests/test-yesno.sh: Use it.
21388
21389         atexit-tests: ensure reliable exit status
21390         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21391         Reported by Bruno Haible.
21392
21393 2011-05-24  Bruno Haible  <bruno@clisp.org>
21394
21395         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21396         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21397         gl_PREREQ_STRERROR_R invocations from here...
21398         * modules/strerror_r-posix (configure.ac): ... to here.
21399
21400 2011-05-24  Eric Blake  <eblake@redhat.com>
21401
21402         strerror_r: fix missing header
21403         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21404
21405         strerror_r: fix AIX test failures
21406         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21407         ERANGE failure.
21408
21409         strerror_r: fix Solaris test failures
21410         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21411         failures.
21412         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21413
21414         strerror_r: enforce POSIX recommendations
21415         * lib/strerror_r.c (safe_copy): New helper method.
21416         (strerror_r): Guarantee a non-empty string.
21417         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21418         recent POSIX rulings and to match our strerror guarantees.
21419         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21420
21421 2011-05-24  Jim Meyering  <meyering@redhat.com>
21422
21423         test-perror2.c: avoid warning about unused variable
21424         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21425
21426 2011-05-24  Eric Blake  <eblake@redhat.com>
21427
21428         perror: avoid spurious test failure on HP-UX
21429         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21430
21431         tests: fix logic bug in init.sh
21432         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21433         shell.
21434
21435 2011-05-24  Jim Meyering  <meyering@redhat.com>
21436
21437         utimensat: do not reference an out-of-scope buffer
21438         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21439         declared in an inner scope, yet "times" would be dereferenced outside
21440         the scope in which "ts" was valid.
21441         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21442         of ts[2] "out/up", so that the use of aliased "times" (via
21443         "times = ts;") does not end up referencing an out-of-scope "ts"
21444
21445         opendir-safer.c: don't clobber errno; don't close negative FD
21446         * lib/opendir-safer.c (opendir_safer):
21447         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21448         file descriptor, and more importantly, don't clobber the
21449         offending errno value with EINVAL.  Before, upon failure
21450         of dup_safer, we would pass the negative file descriptor to
21451         fdopendir, which would clobber errno.
21452
21453 2011-05-23  Bruno Haible  <bruno@clisp.org>
21454
21455         idcache: Fix module description.
21456         * modules/idcache (Include): Set to "idcache.h".
21457
21458 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         gnulib-tool: fix portability problem with MacOS sed
21461         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21462         before the "}".  Problem reported by Leo in
21463         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21464         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21465         sed_extract_condition1, sed_extract_condition2.
21466
21467 2011-05-23  Bruno Haible  <bruno@clisp.org>
21468
21469         hash: Simplify autoconf macro.
21470         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21471
21472 2011-05-23  Bruno Haible  <bruno@clisp.org>
21473
21474         getugroups: Fix module description.
21475         * modules/getugroups (Include): Set to "getugroups.h".
21476
21477 2011-05-23  Bruno Haible  <bruno@clisp.org>
21478
21479         linkat: Simplify autoconf macro.
21480         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21481
21482 2011-05-23  Bruno Haible  <bruno@clisp.org>
21483             Eric Blake  <eblake@redhat.com>
21484
21485         linkat, renameat: Update dependencies.
21486         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21487         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21488         symlinkat.
21489
21490 2011-05-23  Jim Meyering  <meyering@redhat.com>
21491
21492         maint.mk: more tight_scope improvements
21493         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21494         (_gl_TS_headers): Define only in if-0'd block.
21495         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21496         sometimes we must *not* use it.  Adjust uses accordingly.
21497         (sc_tight_scope): Use much simpler grep-based test to determine
21498         whether we skip this rule.
21499
21500         maint.mk: generalize/improve the tight-scope rule
21501         * top/maint.mk: Emit a warning when the test is skipped.
21502         (_gl_TS_dir): Add $(srcdir)/ prefix.
21503         (_gl_TS_function_match): Simplify, rather than trying
21504         to enumerate common types.  Otherwise, it would fail to match an
21505         "extern unsigned char const *" declaration in idutils.
21506         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21507         a way to support use of that type of macro.
21508         (_gl_TS_var_match): Simplify regexp.
21509         (_gl_TS_obj_files): New configurable variable.
21510         (_gl_TS_headers): Likewise.
21511
21512 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21513
21514         verify: fix bug when gnulib <assert.h> is also included
21515         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21516         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21517         Perhaps there's a better way, but this fixes the immediate problem.
21518         Problem reported by Bruno Haible in
21519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21520
21521 2011-05-22  Bruno Haible  <bruno@clisp.org>
21522
21523         xgetcwd: Simplify autoconf macro.
21524         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21525
21526 2011-05-22  Bruno Haible  <bruno@clisp.org>
21527
21528         New module 'mktime-internal'.
21529         * modules/mktime-internal: New file.
21530         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21531         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21532         mktime_internal as a C macro if libc has __mktime_internal.
21533         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21534         conditions.
21535         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21536
21537 2011-05-22  Bruno Haible  <bruno@clisp.org>
21538
21539         timegm: Correct mktime replacement statements.
21540         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21541         defining mktime as a C macro. This completes a 2009-07-28 commit.
21542
21543 2011-05-22  Bruno Haible  <bruno@clisp.org>
21544
21545         timegm: Simplify autoconf macro.
21546         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21547
21548 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21549
21550         clock-time: change to LGPLv2+.
21551         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21552         BSD-like but we have no mark for that; this is good enough for now.
21553
21554 2011-05-21  Bruno Haible  <bruno@clisp.org>
21555
21556         strerror_r: Fix comments.
21557         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21558
21559 2011-05-21  Bruno Haible  <bruno@clisp.org>
21560
21561         relocatable-prog-wrapper: Fix possible link error.
21562         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21563         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21564         (gl_FUNC_SETENV): ... to here.
21565         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21566         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21567
21568 2011-05-21  Bruno Haible  <bruno@clisp.org>
21569
21570         relocatable-prog-wrapper: Assume strerror() exists.
21571         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21572         m4/strerror.m4.
21573         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21574         * lib/relocwrapper.c: Remove mention of strerror module.
21575         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21576         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21577         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21578         C macro.
21579
21580 2011-05-21  Bruno Haible  <bruno@clisp.org>
21581
21582         select: Simplify replacement idiom.
21583         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21584         Win32 platforms.
21585         * lib/sys_select.in.h (select): Simplify accordingly.
21586         * modules/select (Depends-on): Likewise.
21587
21588 2011-05-21  Bruno Haible  <bruno@clisp.org>
21589
21590         mkdir-p: Simplify autoconf macro.
21591         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21592         gl_FUNC_LCHOWN.
21593
21594 2011-05-21  Eric Blake  <eblake@redhat.com>
21595
21596         strerror_r: avoid clobbering strerror on cygwin
21597         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21598         fall back instead to sys_errlist.
21599         * modules/strerror (configure.ac): Add witness.
21600         * tests/test-strerror_r.c (main): Enhance test.
21601         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21602         * tests/test-perror2.c (main): Free memory before exit.
21603
21604 2011-05-21  Bruno Haible  <bruno@clisp.org>
21605
21606         mkdtemp: Use gnulib naming conventions.
21607         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21608         * modules/mkdtemp (configure.ac): Update.
21609
21610 2011-05-20  Eric Blake  <eblake@redhat.com>
21611
21612         strerror_r: avoid corrupting errno on Solaris
21613         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21614         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21615
21616         strerror_r: avoid compiler warning
21617         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21618
21619         strerror_r: simplify AIX code
21620         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21621
21622         test-perror: avoid spurious failure on FreeBSD
21623         * modules/perror-tests (Depends-on): Add strerror, now that
21624         strerror_r no longer pulls it in.
21625
21626 2011-05-20  Bruno Haible  <bruno@clisp.org>
21627
21628         strerror_r-posix: Remove unused dependencies.
21629         * modules/strerror_r-posix (Depends-on): Remove strerror.
21630         Reported by Eric Blake.
21631
21632 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21633
21634         intprops: remove assumption about A|B representation
21635         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21636         is a valid integer if both A and B are.  Although this is true for
21637         all known practical hosts, the C standard doesn't guarantee it,
21638         and the code need not assume it.  Also, this change may work around
21639         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21641
21642 2011-05-20  Eric Blake  <eblake@redhat.com>
21643
21644         perror: work around FreeBSD bug
21645         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21646         is broken.  Move AC_LIBOBJ...
21647         * modules/perror (configure.ac): Here.
21648         * doc/posix-functions/perror.texi (perror): Document this.
21649         * tests/test-perror2.c (main): Enhance test.
21650
21651         test-perror: check for strerror interactions
21652         * tests/macros.h (STREQ): Add macro.
21653         * modules/perror-tests (Files): Add second test.
21654         * tests/test-perror2.c (main): New file.
21655         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21656
21657         test-perror: rewrite to use init script
21658         * modules/perror-tests (Files): Add init.sh.
21659         * tests/test-perror.sh: Use temporary directory.
21660
21661 2011-05-20  Jim Meyering  <meyering@redhat.com>
21662
21663         maint: replace misused "a" with "an"
21664         * doc/intprops.texi: "a integer"
21665         * doc/regex.texi: "a explanation"
21666         * lib/alignof.h: "a object"
21667         * lib/argmatch.h: "a explanation"
21668         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21669         * lib/stdint.in.h: "a integer"
21670         * lib/userspec.c: "a owner"
21671         * doc/gnulib.texi: Fix "a idea", and reword.
21672
21673 2011-05-19  Jim Meyering  <meyering@redhat.com>
21674
21675         maint: correct misuse of "a" and "an"
21676         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21677         * lib/argp-help.c: "an docum...": s/an/a/
21678         * lib/argp-parse.c: "An vector": s/An/A/
21679         * lib/execute.c: "an native": s/an/a/
21680         * lib/spawn-pipe.c: Likewise.
21681         * lib/gc.h: "an Gc_rc": s/an/a/
21682         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21683         * lib/fts.c: "an stat.st_dev": s/an/a/
21684
21685 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21686
21687         intprops-tests: work around HP-UX 11.23 cc bug with constants
21688         * tests/test-intprops.c (VERIFY): New macro.
21689         (main): Use it, instead of verify, to work around the compiler bug; see
21690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21691
21692         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21693         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21694         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21695         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21696         (_GL_REMAINDER_OVERFLOW): Use it.
21697
21698         intprops-tests: revert unsigned part of previous change
21699         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21700         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21701         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21702         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21703
21704 2011-05-19  Bruno Haible  <bruno@clisp.org>
21705
21706         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21707         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21708         strerror_r() returned without filling the buffer.
21709         Reported by Eric Blake.
21710
21711 2011-05-19  Eric Blake  <eblake@redhat.com>
21712
21713         strerror_r: guarantee unchanged errno
21714         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21715         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21716         failure.
21717         * tests/test-strerror_r.c (main): Enhance test.
21718
21719 2011-05-19  Bruno Haible  <bruno@clisp.org>
21720
21721         strerror_r: Reorder #if blocks.
21722         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21723         for consistency with the previous commit.
21724
21725 2011-05-19  Bruno Haible  <bruno@clisp.org>
21726
21727         perror: Avoid clobbering the strerror buffer when possible.
21728         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21729         * lib/strerror.c: Include it.
21730         * modules/strerror (Files): Add lib/strerror-impl.h.
21731         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21732         (my_strerror): New function, defined through lib/strerror-impl.h.
21733         (perror): Use it instead of strerror.
21734         * modules/perror (Files): Add lib/strerror-impl.h.
21735         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21736
21737 2011-05-19  Eric Blake  <eblake@redhat.com>
21738
21739         strerror_r: fix on newer cygwin
21740         * lib/strerror_r.c (strerror_r): Cygwin now has
21741         __xpg_strerror_r, use it.
21742
21743 2011-05-19  Bruno Haible  <bruno@clisp.org>
21744
21745         strerror_r: Avoid clobbering the strerror buffer when possible.
21746         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21747         (sys_nerr, sys_errlist): New declarations.
21748         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21749         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21750         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21751
21752 2011-05-19  Bruno Haible  <bruno@clisp.org>
21753
21754         strerror_r: Fix test failure on mingw.
21755         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21756         EXTEND_STRERROR_R.
21757         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21758         macros from errno.in.h instead.
21759
21760 2011-05-19  Eric Blake  <eblake@redhat.com>
21761
21762         strerror: relax test for Solaris
21763         * tests/test-strerror.c (main): Permit Solaris behavior.
21764         * tests/test-strerror_r.c (main): Likewise.
21765
21766         strerror: enforce POSIX ruling on strerror(0)
21767         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21768         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21769         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21770         * doc/posix-functions/strerror.texi (strerror): Document it.
21771         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21772         * tests/test-strerror.c (main): Strengthen test.
21773         * tests/test-strerror_r.c (main): Likewise.
21774
21775 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21776
21777         intprop-tests: port to older and more-pedantic compilers
21778         * modules/intprops-tests (Files): Add tests/macros.h.
21779         * tests/test-intprops.c: Include macros.h.
21780         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21781         it's no longer documented to expand to an integer constant expression.
21782         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21783         argument is floating point, as it's no longer documented to expand
21784         to an integer constant expression in that case.
21785         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21786         compiler bugs reported by Bruno Haible.  See
21787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21788         (U0, U1): New constants, to work around the same bugs.  Also,
21789         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21790
21791         intprops: work around C compiler bugs
21792         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21793         bug in Sun C 5.11 2010/08/13 and other compilers; see
21794         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21795
21796         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21797         * doc/intprops.texi (Integer Type Determination): Fix
21798         documentation for TYPE_IS_INTEGER: it returns an constant
21799         expression, not an integer constant expression.  Fix doc for
21800         TYPE_SIGNED: it returns an integer constant expression only if its
21801         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21802         hardly worth documented that way....)
21803
21804 2011-05-18  Bruno Haible  <bruno@clisp.org>
21805
21806         strerror_r: Avoid clobbering the strerror buffer when possible.
21807         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21808         Handle gnulib defined errno values here. When strerror() returns NULL
21809         or an empty string, return EINVAL.
21810         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21811         gnulib defined errno values here.
21812         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21813
21814 2011-05-18  Eric Blake  <eblake@redhat.com>
21815
21816         fnmatch: avoid compiler warning
21817         * lib/fnmatch_loop.c (FCT): Use correct type.
21818         Reported by Matthias Bolte.
21819
21820 2011-05-13  Jim Meyering  <meyering@redhat.com>
21821
21822         maint.mk: three new prohibit_<HDR>_without_use rules
21823         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21824         (sc_prohibit_stdio-safer_without_use): Likewise.
21825         (sc_prohibit_xfreopen_without_use): Likewise.
21826
21827 2011-05-17  Jim Meyering  <meyering@redhat.com>
21828
21829         announce-gen: fail if the NEWS delta is empty
21830         If there's nothing noteworthy in NEWS, then either you forgot
21831         or you shouldn't be releasing.
21832         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21833
21834 2011-05-17  Pádraig Brady <P@draigBrady.com>
21835
21836         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21837         reserved symbols starting with double underscore from the check.
21838
21839 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21840
21841         intprops: add doc
21842         * doc/intprops.texi: New file, documenting intprops.
21843         * doc/gnulib.texi (Particular Modules): Include it.
21844
21845         verify: add doc to gnulib manual and fix example
21846         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21847         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21848         (Compile-time Assertions): Fix example so it can't overflow.
21849
21850 2011-05-17  Jim Meyering  <meyering@redhat.com>
21851
21852         warnings.m4: don't usurp save_CPPFLAGS variable name
21853         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21854
21855         doc: fix typo
21856         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21857
21858 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21859             Bruno Haible  <bruno@clisp.org>
21860
21861         doc: Tweak recent change.
21862         * README (Portability guidelines): Tweak new text.
21863         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21864         Interix 6.1.
21865
21866 2011-05-16  Eric Blake  <eblake@redhat.com>
21867
21868         inttypes: avoid autoconf warning
21869         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21870         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21871
21872 2011-05-16  Sam Steingold <sds@gnu.org>
21873         and Eric Blake  <eblake@redhat.com>
21874
21875         vc-list-files: accept multiple directory operands
21876         * build-aux/vc-list-files: Iterate over all remaining operands.
21877
21878 2011-05-16  Bruno Haible  <bruno@clisp.org>
21879
21880         Fix confusion regarding deprecated modules.
21881         * modules/calloc (Status, Notice): Mark module as deprecated, not
21882         obsolete.
21883         * modules/fnmatch-posix (Status, Notice): Likewise.
21884         * modules/getdate (Status, Notice): Likewise.
21885         * modules/getopt (Status, Notice): Likewise.
21886         * modules/malloc (Status, Notice): Likewise.
21887         * modules/pipe (Status, Notice): Likewise.
21888         * modules/realloc (Status, Notice): Likewise.
21889         * modules/rename-dest-slash (Status, Notice): Likewise.
21890         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21891         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21892         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21893         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21894         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21895
21896 2011-05-16  Bruno Haible  <bruno@clisp.org>
21897
21898         doc: List the target platforms.
21899         * doc/gnulib-intro.texi (Target Platforms): New section.
21900         * doc/gnulib.texi (Introduction): Update menu.
21901         * README (Portability guidelines): Refer to the new section. Update
21902         statement about oldest supported environment. Remove rationale why
21903         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21904         unportable C89 function.
21905         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21906         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21907
21908 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21909
21910         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21911
21912 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21913
21914         intprops-tests: new module
21915         * modules/intprops-tests, tests/test-intprops.c: New files.
21916
21917         intprops: add safe, portable integer overflow checking
21918         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21919         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21920         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21921         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21922         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21923         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21924         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21925         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21926         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21927         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21928         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21929
21930 2011-05-12  James Youngman  <jay@gnu.org>
21931
21932         Add a test for glibc's Bugzilla bug #12378.
21933         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21934         doesn't allow the literal matching of a lone "[" (which is
21935         required by POSIX).
21936         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21937
21938 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21939
21940         Sync glibc change fixing Bugzilla bug #12378.
21941         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21942         beginning and fall back to matching as normal character if the
21943         string ends before the matching ']' is found.  This is what POSIX
21944         requires.
21945
21946 2011-05-13  Eric Blake  <eblake@redhat.com>
21947
21948         getcwd-lgpl: relax test for FreeBSD
21949         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21950         issue.
21951         * tests/test-getcwd-lgpl.c (main): Relax test.
21952         Reported by Matthias Bolte.
21953
21954 2011-05-11  Eric Blake  <eblake@redhat.com>
21955
21956         test-fflush: silence compiler warning
21957         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21958
21959 2011-05-11  Bruno Haible  <bruno@clisp.org>
21960
21961         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21962         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21963         * modules/canonicalize (Depends-on): Add 'nocrash'.
21964         * modules/canonicalize-lgpl (Depends-on): Likewise.
21965         * doc/posix-functions/realpath.texi: Update platforms list.
21966         Reported by Ryan Schmidt <ryandesign@macports.org>.
21967
21968 2011-05-11  Bruno Haible  <bruno@clisp.org>
21969
21970         group-member: Declare function in <unistd.h>.
21971         * lib/unistd.in.h (group_member): New declaration.
21972         * lib/group-member.h: Remove file.
21973         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21974         * tests/test-unistd-c++.cc: Check signature of group_member.
21975         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21976         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21977         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21978         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21979         HAVE_GROUP_MEMBER.
21980         * modules/group-member (Files): Remove lib/group-member.h.
21981         (Depends-on): Add unistd. Specify conditions.
21982         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21983         (Include): Change to <unistd.h>.
21984         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21985         HAVE_GROUP_MEMBER.
21986         * NEWS: Mention the change.
21987         * lib/euidaccess.c: Don't include group-member.h.
21988
21989 2011-05-11  Bruno Haible  <bruno@clisp.org>
21990
21991         group-member: Document module.
21992         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21993         module.
21994
21995 2011-05-11  Bruno Haible  <bruno@clisp.org>
21996
21997         fclose: Fix mistake earlier today.
21998         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21999
22000 2011-05-11  Eric Blake  <eblake@redhat.com>
22001
22002         fclose: preserve fflush errors
22003         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
22004         Reported by Jim Meyering.
22005
22006         bootstrap: support a prereq of 'rpcgen -' on RHEL5
22007         * build-aux/bootstrap (check_versions): When no specific version
22008         is required, merely check that the app produces an exit status
22009         that indicates its existence.
22010
22011         maint.mk: drop redundant check
22012         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
22013         the same but better.
22014
22015 2011-05-11  Bruno Haible  <bruno@clisp.org>
22016
22017         fclose: Fix possible link error.
22018         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
22019         unregister_shadow_fd. Improve comments.
22020         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
22021         Eric Blake.
22022
22023 2011-05-11  Jim Meyering  <meyering@redhat.com>
22024
22025         maint.mk: improve "can not" detection and generalize rule name
22026         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
22027         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
22028         Use the same technique as in sc_prohibit_doubled_word, so that
22029         we recognize "can not" also when the words are separated by a newline.
22030         Suggested by Eric Blake.
22031         (perl_filename_lineno_text_): Define.  Factored out of...
22032         (prohibit_doubled_word_): ...here.  Use the new definition.
22033         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
22034         (prohibit_undesirable_word_seq_RE_): New overridable variable.
22035         (ignore_undesirable_word_sequence_RE_): New overridable variable.
22036
22037 2011-05-10  Eric Blake  <eblake@redhat.com>
22038
22039         fclose: avoid double close race when possible
22040         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
22041         all but WINDOWS_SOCKETS.
22042
22043 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
22044
22045         openat: correct new comment
22046         * lib/openat-proc.c (openat_proc_name): Correct the comment.
22047
22048 2011-05-10  Jim Meyering  <meyering@redhat.com>
22049
22050         openat: add comments
22051         * lib/openat-proc.c (openat_proc_name): Add comments,
22052         mostly from Eric Blake.
22053
22054 2011-05-09  Eric Blake  <eblake@redhat.com>
22055
22056         openat: reduce syscalls in first probe of /proc
22057         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
22058         be a directory.  Simplify the probe for .. bugs.
22059         * modules/openat (Depends-on): Drop same-inode.
22060         Reported by Bastien ROUCARIES.
22061
22062 2011-05-09  Jim Meyering  <meyering@redhat.com>
22063
22064         maint.mk: change semantics/name of tight_scope variables
22065         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
22066         Rename variables to align with semantics that make them more useful.
22067
22068         maint.mk: tweak new rule's name not to impinge
22069         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
22070         (sc_tight_scope): Use new rule name rather than $@-0.
22071
22072         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
22073         * top/maint.mk (sc_tight_scope): New rule.
22074         (sc_tight_scope-0): New rule, ifdef'd out.
22075         (_gl_TS_dir): Default.
22076         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
22077         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
22078
22079 2011-05-09  Simon Josefsson  <simon@josefsson.org>
22080
22081         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
22082         Haible <bruno@clisp.org>.
22083
22084 2011-05-08  Bruno Haible  <bruno@clisp.org>
22085
22086         Comments.
22087         * m4/isnanf.m4: Add comment.
22088         * m4/isnanl.m4: Likewise.
22089
22090 2011-05-08  Bruno Haible  <bruno@clisp.org>
22091
22092         glob: Remove obsolete macro.
22093         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
22094
22095 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22096
22097         intprops: Sun C 5.11 supports __typeof__
22098         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
22099         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
22100         which is new.
22101         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
22102
22103         intprops: switch to usual gnulib indenting and naming
22104         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
22105         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
22106
22107         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
22108
22109 2011-05-08  Jim Meyering  <meyering@redhat.com>
22110
22111         maint.mk: suppress "Entering/Leaving directory" diag in announcement
22112         * top/maint.mk (release-prep): Use make's --no-print-directory
22113         option when generating the announcement.  This eliminates the
22114         pesky "make[2]: Entering/Leaving directory" diagnostics in the
22115         generated announcement template.
22116
22117 2011-05-08  Bruno Haible  <bruno@clisp.org>
22118
22119         tzset: Fix gettimeofday wrapper on Solaris 2.6.
22120         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
22121         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
22122
22123 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22124
22125         ignore-value, verify: Omit include files from lib_SOURCES.
22126         * modules/ignore-value, modules/verify (Makefile.am):
22127         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
22128         that leads Automake to duplicate use of am__objects_... variables
22129         in Makefile.in.  See
22130         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
22131
22132 2011-05-07  Bruno Haible  <bruno@clisp.org>
22133
22134         fclose: Simplify autoconf macro.
22135         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
22136         defined.
22137
22138 2011-05-07  Bruno Haible  <bruno@clisp.org>
22139
22140         canonicalize-lgpl: Fix autoconf macro ordering bug.
22141         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
22142         gl_STDLIB_H_DEFAULTS.
22143
22144 2011-05-06  Eric Blake  <eblake@redhat.com>
22145
22146         maintainer-makefile: make sc_po_check easier to tune
22147         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22148         to probe for strings, such as an alternate location for gnulib.
22149
22150         fclose: guarantee behavior on seekable stdin
22151         * modules/fclose (Depends-on): Add fflush.
22152         * doc/posix-functions/fclose.texi (fclose): Document this.
22153         * tests/test-fclose.c (main): Make test for this unconditional.
22154
22155 2011-05-06  Bruno Haible  <bruno@clisp.org>
22156
22157         fflush, fpurge: Relicense under LGPLv2+.
22158         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22159         * modules/fpurge (License): Likewise.
22160         With permission from Eric Blake and Jim Meyering.
22161         Suggested by Eric Blake.
22162
22163 2011-05-06  Karl Berry  <karl@gnu.org>
22164
22165         * MODULES.html.sh (func_all_modules): remove exit.
22166
22167 2011-05-06  Jim Meyering  <meyering@redhat.com>
22168
22169         maint.mk: use info-gnu@ as the default only for a stable release
22170         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22171         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22172         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22173         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22174
22175 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22176
22177         assert-h: new module, which supports C1X-style static_assert
22178         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22179         * lib/verify.h: Revamp so that this can be copied into assert.h,
22180         while retaining the ability to use it standalone as before.
22181         Rename private identifiers so as not to encroach on the
22182         standard C namespace, since this is now used by assert.h.
22183         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22184         the old verify_true.
22185         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22186         the old verify_true.  Use _GL_VERIFY_TYPE.
22187         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22188         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22189         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22190         defined when this file is copied into the replacement assert.h.
22191         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22192         and _Static_assert is not built in.
22193         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22194         defined, and use the new macros mentioned above.
22195         * doc/posix-headers/assert.texi: Document this.
22196
22197 2011-05-05  Bruno Haible  <bruno@clisp.org>
22198
22199         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22200         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22201         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22202         gl_REPLACE_FCLOSE here.
22203         * modules/fflush (Depends-on): Remove fclose.
22204         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22205         combination with module 'fclose'.
22206
22207 2011-05-05  Bruno Haible  <bruno@clisp.org>
22208
22209         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22210         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22211         gl_FUNC_FFLUSH.
22212         (gl_FUNC_FFLUSH): Use it.
22213         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22214         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22215         gl_REPLACE_FSEEKO here.
22216
22217 2011-05-05  Bruno Haible  <bruno@clisp.org>
22218
22219         tzset: Relicense under LGPL.
22220         * modules/tzset (License): Change to LGPL.
22221         No agreement needed; it's a no-op.
22222
22223         strtoimax, strtoumax: Relicense under LGPL.
22224         * modules/strtoimax (License): Change to LGPL.
22225         * modules/strtoumax (License): Likewise.
22226         With permission from Jim Meyering, Paul Eggert:
22227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22229
22230         getgroups: Relicense under LGPL.
22231         * modules/getgroups (License): Change to LGPL.
22232         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22233         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22236
22237         nanosleep: Relicense under LGPL.
22238         * modules/nanosleep (License): Change to LGPL.
22239         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22240         Haible:
22241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22245
22246         futimens: Relicense under LGPL.
22247         * modules/futimens (License): Change to LGPL.
22248         With permission from Eric Blake:
22249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22250
22251         fflush: Relicense under LGPL.
22252         * modules/fflush (License): Change to LGPL.
22253         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22257
22258         tmpfile: Relicense under LGPL.
22259         * modules/tmpfile (License): Change to LGPL.
22260         With permission from Ben Pfaff:
22261         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22262
22263         isfinite: Relicense under LGPL.
22264         * modules/isfinite (License): Change to LGPL.
22265         With permission from Ben Pfaff, Bruno Haible:
22266         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22268
22269         acosl..tanl: Relicense under LGPL.
22270         * modules/acosl (License): Change to LGPL.
22271         * modules/asinl (License): Likewise.
22272         * modules/atanl (License): Likewise.
22273         * modules/cosl (License): Likewise.
22274         * modules/expl (License): Likewise.
22275         * modules/logl (License): Likewise.
22276         * modules/sinl (License): Likewise.
22277         * modules/sqrtl (License): Likewise.
22278         * modules/tanl (License): Likewise.
22279         Source code originally from glibc and Paolo Bonzini. Agreements:
22280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22282
22283 2011-05-05  Bruno Haible  <bruno@clisp.org>
22284
22285         signal: Define sighandler_t.
22286         * lib/signal.in.h (sighandler_t): New type.
22287         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22288         whether sighandler_t is defined.
22289         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22290         * modules/signal (Depends-on): Add extensions.
22291         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22292         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22293         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22294
22295 2011-05-05  Eric Blake  <eblake@redhat.com>
22296
22297         maint: remove useless REPLACE_*_H macros
22298         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22299         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22300         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22301         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22302         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22303         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22304         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22305         * m4/btowc.m4: Update callers.
22306         * m4/dirfd.m4: Likewise.
22307         * m4/duplocale.m4: Likewise.
22308         * m4/fchdir.m4: Likewise.
22309         * m4/fdopendir.m4: Likewise.
22310         * m4/inet_ntop.m4: Likewise.
22311         * m4/inet_pton.m4: Likewise.
22312         * m4/ioctl.m4: Likewise.
22313         * m4/mbrlen.m4: Likewise.
22314         * m4/mbrtowc.m4: Likewise.
22315         * m4/mbsinit.m4: Likewise.
22316         * m4/mbsnrtowcs.m4: Likewise.
22317         * m4/mbsrtowcs.m4: Likewise.
22318         * m4/poll.m4: Likewise.
22319         * m4/setlocale.m4: Likewise.
22320         * m4/wcrtomb.m4: Likewise.
22321         * m4/wcsnrtombs.m4: Likewise.
22322         * m4/wcsrtombs.m4: Likewise.
22323         * m4/wctob.m4: Likewise.
22324         * m4/wcwidth.m4: Likewise.
22325         * modules/posix_spawn: Likewise.
22326         * modules/posix_spawn_file_actions_addclose: Likewise.
22327         * modules/posix_spawn_file_actions_adddup2: Likewise.
22328         * modules/posix_spawn_file_actions_addopen: Likewise.
22329         * modules/posix_spawn_file_actions_destroy: Likewise.
22330         * modules/posix_spawn_file_actions_init: Likewise.
22331         * modules/posix_spawnattr_destroy: Likewise.
22332         * modules/posix_spawnattr_getflags: Likewise.
22333         * modules/posix_spawnattr_getpgroup: Likewise.
22334         * modules/posix_spawnattr_getschedparam: Likewise.
22335         * modules/posix_spawnattr_getschedpolicy: Likewise.
22336         * modules/posix_spawnattr_getsigdefault: Likewise.
22337         * modules/posix_spawnattr_getsigmask: Likewise.
22338         * modules/posix_spawnattr_init: Likewise.
22339         * modules/posix_spawnattr_setflags: Likewise.
22340         * modules/posix_spawnattr_setpgroup: Likewise.
22341         * modules/posix_spawnattr_setschedparam: Likewise.
22342         * modules/posix_spawnattr_setschedpolicy: Likewise.
22343         * modules/posix_spawnattr_setsigdefault: Likewise.
22344         * modules/posix_spawnattr_setsigmask: Likewise.
22345         * modules/posix_spawnp: Likewise.
22346
22347 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22348
22349         Add option to do-release-commit-and-tag to specify branch.
22350         * build-aux/do-release-commit-and-tag: Add --branch.
22351
22352 2011-05-03  Bruno Haible  <bruno@clisp.org>
22353
22354         Avoid unnecessary compilation units, through conditional dependencies.
22355         * modules/accept (Depends-on): Add conditions to the dependencies.
22356         * modules/acosl (Depends-on): Likewise.
22357         * modules/argz (Depends-on): Likewise.
22358         * modules/asinl (Depends-on): Likewise.
22359         * modules/atanl (Depends-on): Likewise.
22360         * modules/atoll (Depends-on): Likewise.
22361         * modules/bind (Depends-on): Likewise.
22362         * modules/btowc (Depends-on): Likewise.
22363         * modules/canonicalize-lgpl (Depends-on): Likewise.
22364         * modules/ceil (Depends-on): Likewise.
22365         * modules/ceilf (Depends-on): Likewise.
22366         * modules/ceill (Depends-on): Likewise.
22367         * modules/chdir-long (Depends-on): Likewise.
22368         * modules/chown (Depends-on): Likewise.
22369         * modules/close (Depends-on): Likewise.
22370         * modules/connect (Depends-on): Likewise.
22371         * modules/cosl (Depends-on): Likewise.
22372         * modules/dirfd (Depends-on): Likewise.
22373         * modules/dprintf (Depends-on): Likewise.
22374         * modules/dprintf-posix (Depends-on): Likewise.
22375         * modules/error (Depends-on): Likewise.
22376         * modules/euidaccess (Depends-on): Likewise.
22377         * modules/expl (Depends-on): Likewise.
22378         * modules/faccessat (Depends-on): Likewise.
22379         * modules/fchdir (Depends-on): Likewise.
22380         * modules/fclose (Depends-on): Likewise.
22381         * modules/fcntl (Depends-on): Likewise.
22382         * modules/fdopendir (Depends-on): Likewise.
22383         * modules/fflush (Depends-on): Likewise.
22384         * modules/floor (Depends-on): Likewise.
22385         * modules/floorf (Depends-on): Likewise.
22386         * modules/floorl (Depends-on): Likewise.
22387         * modules/fnmatch (Depends-on): Likewise.
22388         * modules/fopen (Depends-on): Likewise.
22389         * modules/fprintf-posix (Depends-on): Likewise.
22390         * modules/frexp (Depends-on): Likewise.
22391         * modules/frexp-nolibm (Depends-on): Likewise.
22392         * modules/frexpl (Depends-on): Likewise.
22393         * modules/frexpl-nolibm (Depends-on): Likewise.
22394         * modules/fseek (Depends-on): Likewise.
22395         * modules/fsusage (Depends-on): Likewise.
22396         * modules/ftell (Depends-on): Likewise.
22397         * modules/ftello (Depends-on): Likewise.
22398         * modules/futimens (Depends-on): Likewise.
22399         * modules/getcwd (Depends-on): Likewise.
22400         * modules/getcwd-lgpl (Depends-on): Likewise.
22401         * modules/getdelim (Depends-on): Likewise.
22402         * modules/getdomainname (Depends-on): Likewise.
22403         * modules/getgroups (Depends-on): Likewise.
22404         * modules/gethostname (Depends-on): Likewise.
22405         * modules/getline (Depends-on): Likewise.
22406         * modules/getlogin_r (Depends-on): Likewise.
22407         * modules/getopt-posix (Depends-on): Likewise.
22408         * modules/getpeername (Depends-on): Likewise.
22409         * modules/getsockname (Depends-on): Likewise.
22410         * modules/getsockopt (Depends-on): Likewise.
22411         * modules/getsubopt (Depends-on): Likewise.
22412         * modules/getusershell (Depends-on): Likewise.
22413         * modules/glob (Depends-on): Likewise.
22414         * modules/grantpt (Depends-on): Likewise.
22415         * modules/iconv_open (Depends-on): Likewise.
22416         * modules/iconv_open-utf (Depends-on): Likewise.
22417         * modules/inet_ntop (Depends-on): Likewise.
22418         * modules/inet_pton (Depends-on): Likewise.
22419         * modules/ioctl (Depends-on): Likewise.
22420         * modules/isapipe (Depends-on): Likewise.
22421         * modules/isfinite (Depends-on): Likewise.
22422         * modules/isinf (Depends-on): Likewise.
22423         * modules/lchown (Depends-on): Likewise.
22424         * modules/ldexpl (Depends-on): Likewise.
22425         * modules/link (Depends-on): Likewise.
22426         * modules/linkat (Depends-on): Likewise.
22427         * modules/listen (Depends-on): Likewise.
22428         * modules/logl (Depends-on): Likewise.
22429         * modules/lstat (Depends-on): Likewise.
22430         * modules/mbrlen (Depends-on): Likewise.
22431         * modules/mbrtowc (Depends-on): Likewise.
22432         * modules/mbsinit (Depends-on): Likewise.
22433         * modules/mbsnrtowcs (Depends-on): Likewise.
22434         * modules/mbsrtowcs (Depends-on): Likewise.
22435         * modules/mbtowc (Depends-on): Likewise.
22436         * modules/memcmp (Depends-on): Likewise.
22437         * modules/mkdir (Depends-on): Likewise.
22438         * modules/mkdtemp (Depends-on): Likewise.
22439         * modules/mkfifo (Depends-on): Likewise.
22440         * modules/mkfifoat (Depends-on): Likewise.
22441         * modules/mknod (Depends-on): Likewise.
22442         * modules/mkostemp (Depends-on): Likewise.
22443         * modules/mkostemps (Depends-on): Likewise.
22444         * modules/mkstemp (Depends-on): Likewise.
22445         * modules/mkstemps (Depends-on): Likewise.
22446         * modules/mktime (Depends-on): Likewise.
22447         * modules/nanosleep (Depends-on): Likewise.
22448         * modules/open (Depends-on): Likewise.
22449         * modules/openat (Depends-on): Likewise.
22450         * modules/perror (Depends-on): Likewise.
22451         * modules/poll (Depends-on): Likewise.
22452         * modules/popen (Depends-on): Likewise.
22453         * modules/posix_spawn (Depends-on): Likewise.
22454         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22455         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22456         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22457         * modules/posix_spawnp (Depends-on): Likewise.
22458         * modules/pread (Depends-on): Likewise.
22459         * modules/printf-posix (Depends-on): Likewise.
22460         * modules/ptsname (Depends-on): Likewise.
22461         * modules/putenv (Depends-on): Likewise.
22462         * modules/pwrite (Depends-on): Likewise.
22463         * modules/readline (Depends-on): Likewise.
22464         * modules/readlink (Depends-on): Likewise.
22465         * modules/readlinkat (Depends-on): Likewise.
22466         * modules/recv (Depends-on): Likewise.
22467         * modules/recvfrom (Depends-on): Likewise.
22468         * modules/regex (Depends-on): Likewise.
22469         * modules/remove (Depends-on): Likewise.
22470         * modules/rename (Depends-on): Likewise.
22471         * modules/renameat (Depends-on): Likewise.
22472         * modules/rmdir (Depends-on): Likewise.
22473         * modules/round (Depends-on): Likewise.
22474         * modules/roundf (Depends-on): Likewise.
22475         * modules/roundl (Depends-on): Likewise.
22476         * modules/rpmatch (Depends-on): Likewise.
22477         * modules/select (Depends-on): Likewise.
22478         * modules/send (Depends-on): Likewise.
22479         * modules/sendto (Depends-on): Likewise.
22480         * modules/setenv (Depends-on): Likewise.
22481         * modules/setlocale (Depends-on): Likewise.
22482         * modules/setsockopt (Depends-on): Likewise.
22483         * modules/shutdown (Depends-on): Likewise.
22484         * modules/sigaction (Depends-on): Likewise.
22485         * modules/signbit (Depends-on): Likewise.
22486         * modules/sigprocmask (Depends-on): Likewise.
22487         * modules/sinl (Depends-on): Likewise.
22488         * modules/sleep (Depends-on): Likewise.
22489         * modules/snprintf (Depends-on): Likewise.
22490         * modules/snprintf-posix (Depends-on): Likewise.
22491         * modules/socket (Depends-on): Likewise.
22492         * modules/sprintf-posix (Depends-on): Likewise.
22493         * modules/sqrtl (Depends-on): Likewise.
22494         * modules/stat (Depends-on): Likewise.
22495         * modules/strchrnul (Depends-on): Likewise.
22496         * modules/strdup-posix (Depends-on): Likewise.
22497         * modules/strerror (Depends-on): Likewise.
22498         * modules/strerror_r-posix (Depends-on): Likewise.
22499         * modules/strndup (Depends-on): Likewise.
22500         * modules/strnlen (Depends-on): Likewise.
22501         * modules/strptime (Depends-on): Likewise.
22502         * modules/strsep (Depends-on): Likewise.
22503         * modules/strsignal (Depends-on): Likewise.
22504         * modules/strstr-simple (Depends-on): Likewise.
22505         * modules/strtod (Depends-on): Likewise.
22506         * modules/strtoimax (Depends-on): Likewise.
22507         * modules/strtok_r (Depends-on): Likewise.
22508         * modules/strtoumax (Depends-on): Likewise.
22509         * modules/symlink (Depends-on): Likewise.
22510         * modules/symlinkat (Depends-on): Likewise.
22511         * modules/tanl (Depends-on): Likewise.
22512         * modules/tcgetsid (Depends-on): Likewise.
22513         * modules/tmpfile (Depends-on): Likewise.
22514         * modules/trunc (Depends-on): Likewise.
22515         * modules/truncf (Depends-on): Likewise.
22516         * modules/truncl (Depends-on): Likewise.
22517         * modules/uname (Depends-on): Likewise.
22518         * modules/unlink (Depends-on): Likewise.
22519         * modules/unlockpt (Depends-on): Likewise.
22520         * modules/unsetenv (Depends-on): Likewise.
22521         * modules/usleep (Depends-on): Likewise.
22522         * modules/utimensat (Depends-on): Likewise.
22523         * modules/vasprintf (Depends-on): Likewise.
22524         * modules/vdprintf (Depends-on): Likewise.
22525         * modules/vdprintf-posix (Depends-on): Likewise.
22526         * modules/vfprintf-posix (Depends-on): Likewise.
22527         * modules/vprintf-posix (Depends-on): Likewise.
22528         * modules/vsnprintf (Depends-on): Likewise.
22529         * modules/vsnprintf-posix (Depends-on): Likewise.
22530         * modules/vsprintf-posix (Depends-on): Likewise.
22531         * modules/wcrtomb (Depends-on): Likewise.
22532         * modules/wcscasecmp (Depends-on): Likewise.
22533         * modules/wcscspn (Depends-on): Likewise.
22534         * modules/wcsdup (Depends-on): Likewise.
22535         * modules/wcsncasecmp (Depends-on): Likewise.
22536         * modules/wcsnrtombs (Depends-on): Likewise.
22537         * modules/wcspbrk (Depends-on): Likewise.
22538         * modules/wcsrtombs (Depends-on): Likewise.
22539         * modules/wcsspn (Depends-on): Likewise.
22540         * modules/wcsstr (Depends-on): Likewise.
22541         * modules/wcstok (Depends-on): Likewise.
22542         * modules/wcswidth (Depends-on): Likewise.
22543         * modules/wctob (Depends-on): Likewise.
22544         * modules/wctomb (Depends-on): Likewise.
22545         * modules/wctype (Depends-on): Likewise.
22546         * modules/wcwidth (Depends-on): Likewise.
22547         * modules/write (Depends-on): Likewise.
22548
22549 2011-05-03  Bruno Haible  <bruno@clisp.org>
22550
22551         Support for conditional dependencies.
22552         * doc/gnulib.texi (Module description): Document the syntax of
22553         conditional dependencies.
22554         * gnulib-tool: New option --conditional-dependencies.
22555         (func_usage): Document it.
22556         (cond_dependencies): New variable.
22557         (func_get_automake_snippet_conditional,
22558         func_get_automake_snippet_unconditional): New functions, extracted from
22559         func_get_automake_snippet.
22560         (func_get_automake_snippet): Use them.
22561         (sed_first_32_chars): New variable.
22562         (func_module_shellfunc_name): New function.
22563         (func_module_shellvar_name): New function.
22564         (func_module_conditional_name): New function.
22565         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22566         func_cond_module_condition): New functions.
22567         (func_modules_transitive_closure): Add support for conditional
22568         dependencies.
22569         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22570         conditional automake snippet in an automake conditional.
22571         (func_emit_autoconf_snippets): Emit shell functions that contain the
22572         code for conditional modules.
22573         (func_import, func_create_testdir): Update specification.
22574
22575 2011-05-03  Eric Blake  <eblake@redhat.com>
22576
22577         test-getaddrinfo: report error information
22578         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22579
22580 2011-05-03  Jim Meyering  <meyering@redhat.com>
22581
22582         bootstrap: avoid build failure when $GZIP is set
22583         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22584         program name.  If defined at all, it is supposed to list gzip options.
22585         Reported by Alan Curry in http://debbugs.gnu.org/8609
22586
22587 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22588
22589         readme-release: new module with release instructions
22590         * modules/readme-release: New module.
22591         * top/README-release: New file, from coreutils, grep, diffutils.
22592         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22593
22594 2011-05-02  Eric Blake  <eblake@redhat.com>
22595
22596         fflush: also replace fclose when fixing fflush
22597         * modules/fflush (Depends-on): Add fclose.
22598         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22599         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22600         memstreams with no backing fd.
22601         * doc/posix-functions/fclose.texi (fclose): Document the use of
22602         fflush module to fix the bug.
22603         * tests/test-fclose.c (main): Relax test when fclose is used in
22604         isolation.
22605
22606         fclose: add some tests
22607         * modules/fclose-tests: New test module.
22608         * tests/test-fclose.c: New file.
22609         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22610
22611         fclose: reduced dependencies
22612         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22613         simpler lseek.
22614         * lib/fclose.c (rpl_fclose): Likewise.
22615         Reported by Simon Josefsson.
22616
22617         exit: drop remaining clients
22618         * modules/argmatch (Depends-on): Replace exit with stdlib.
22619         * modules/copy-file (Depends-on): Likewise.
22620         * modules/execute (Depends-on): Likewise.
22621         * modules/exitfail (Depends-on): Likewise.
22622         * modules/obstack (Depends-on): Likewise.
22623         * modules/pagealign_alloc (Depends-on): Likewise.
22624         * modules/pipe-filter-gi (Depends-on): Likewise.
22625         * modules/pipe-filter-ii (Depends-on): Likewise.
22626         * modules/savewd (Depends-on): Likewise.
22627         * modules/spawn-pipe (Depends-on): Likewise.
22628         * modules/wait-process (Depends-on): Likewise.
22629         * modules/xsetenv (Depends-on): Likewise.
22630         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22631         * modules/git-merge-changelog (Depends-on): Likewise.
22632         * modules/long-options (Depends-on): Likewise.
22633         * modules/pt_chown (Depends-on): Likewise.
22634         * modules/sysexits (Depends-on): Likewise.
22635
22636         freading: relax license from LGPLv3+ to LGPLv2+
22637         * modules/freading (License): Relax LGPL version.
22638
22639 2011-05-02  Bruno Haible  <bruno@clisp.org>
22640
22641         fchdir: Remove unused dependencies.
22642         * modules/fchdir (Depends-on): Remove include_next.
22643
22644 2011-05-02  Bruno Haible  <bruno@clisp.org>
22645
22646         gnulib-tool: Refactor.
22647         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22648         from func_emit_autoconf_snippets.
22649         (func_emit_autoconf_snippets): Use it.
22650
22651 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22652
22653         * NEWS: Document removal of 'exit'.
22654         * modules/exit: Remove file.
22655
22656 2011-05-01  Bruno Haible  <bruno@clisp.org>
22657
22658         Update DEPENDENCIES.
22659         * DEPENDENCIES (gettext): Recommend the newest release.
22660         Reported by Simon Josefsson.
22661
22662 2011-05-01  Bruno Haible  <bruno@clisp.org>
22663
22664         gnulib-tool: Reduce code duplication.
22665         * gnulib-tool (func_emit_autoconf_snippets): New function.
22666         (func_import, func_create_testdir): Use it.
22667
22668 2011-04-30  Eric Blake  <eblake@redhat.com>
22669
22670         fclose: don't fail on non-seekable input stream
22671         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22672         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22673         since fflush is allowed to fail in that case.
22674
22675 2011-04-30  Bruno Haible  <bruno@clisp.org>
22676
22677         dup3: cleanup
22678         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22679
22680 2011-04-30  Bruno Haible  <bruno@clisp.org>
22681
22682         netdb: Make it work in C++ mode.
22683         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22684         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22685         module.
22686         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22687         gl_MODULE_INDICATOR_FOR_TESTS.
22688         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22689         * modules/netdb-c++-tests: New file.
22690         * tests/test-netdb-c++.cc: New file.
22691
22692 2011-04-30  Bruno Haible  <bruno@clisp.org>
22693
22694         New modules 'vfscanf', 'vscanf'.
22695         * modules/vfscanf: New file.
22696         * modules/vscanf: New file.
22697         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22698         here.
22699         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22700         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22701
22702 2011-04-30  Bruno Haible  <bruno@clisp.org>
22703
22704         passfd: Add comments.
22705         * lib/passfd.c: Add comments about platforms.
22706
22707 2011-04-30  Bruno Haible  <bruno@clisp.org>
22708
22709         sys_uio: Make <sys/uio.h> self-contained.
22710         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22711         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22712
22713 2011-04-30  Bruno Haible  <bruno@clisp.org>
22714
22715         sys_socket: Ensure 'struct iovec' definition.
22716         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22717         <sys/socket.h>.
22718         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22719
22720 2011-04-30  Bruno Haible  <bruno@clisp.org>
22721
22722         sys_uio: Protect definition of 'struct iovec'.
22723         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22724         it as a C struct.
22725
22726 2011-04-30  Bruno Haible  <bruno@clisp.org>
22727
22728         manywarnings: fix indentation
22729         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22730
22731 2011-04-30  Pádraig Brady <P@draigBrady.com>
22732
22733         manywarnings: add -Wno-missing-field-initializers if needed.
22734         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22735         option if it's needed to allow initialization with { 0, }
22736
22737 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22738
22739         announce-gen: cosmetic improvement
22740         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22741
22742 2011-04-29  Jim Meyering  <meyering@redhat.com>
22743
22744         vc-list-files: indent with spaces, not TABs
22745         * build-aux/vc-list-files: Convert leading TABs to spaces,
22746         to match the style of most other files in gnulib.
22747
22748         announce-gen: indent with spaces, not TABs
22749         * build-aux/announce-gen: Convert all TABs to spaces, to match
22750         the style of most other files in gnulib.
22751
22752 2011-04-29  Eric Blake  <eblake@redhat.com>
22753
22754         quotearg: avoid uninitialized variable use
22755         * lib/quotearg.c (quoting_options_from_style): Initialize
22756         remaining fields, and ensure that custom styles are only used via
22757         quoting_options rather than quoting_style.
22758
22759 2011-04-29  Jim Meyering  <meyering@redhat.com>
22760
22761         maint.mk: remove unused VC-tag variable
22762         * top/maint.mk (VC-tag): Remove unused variable.
22763
22764 2011-04-29  Bruno Haible  <bruno@clisp.org>
22765
22766         netdb: fix gai_strerror replacements
22767         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22768         * modules/netdb: Substitute it.
22769
22770 2011-04-29  Jim Meyering  <meyering@redhat.com>
22771
22772         test-getcwd.c: avoid new set-but-not-used warning
22773         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22774         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22775         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22776         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22777
22778         test-hash.c: avoid a new shadowing warning
22779         * tests/test-hash.c (main): Don't shadow "dup".
22780
22781 2011-04-28  Eric Blake  <eblake@redhat.com>
22782
22783         getaddrinfo: fix gai_strerror signature
22784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22785         and work around mingw with UNICODE defined.
22786         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22787         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22788         * modules/netdb (Makefile.am): Substitute it.
22789         * lib/netdb.in.h (gai_strerror): Declare replacement.
22790         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22791         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22792         the fix.
22793
22794         getsockopt: avoid compiler warning
22795         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22796         Reported by Matthias Bolte.
22797
22798         tests: drop unused link dependency
22799         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22800         * modules/dirent-safer-tests (Makefile.am): Likewise.
22801         * modules/fdopendir-tests (Makefile.am): Likewise.
22802         * modules/mkfifoat-tests (Makefile.am): Likewise.
22803         * modules/openat-safer-tests (Makefile.am): Likewise.
22804         * modules/openat-tests (Makefile.am): Likewise.
22805         * modules/readlinkat-tests (Makefile.am): Likewise.
22806         * modules/symlinkat-tests (Makefile.am): Likewise.
22807         * modules/linkat-tests (Makefile.am): Likewise.
22808         (Depends-on): Switch to filenamecat-lgpl.
22809         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22810         LIBINTL.
22811         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22812         * tests/test-linkat.c (main): Don't require xalloc.
22813
22814         hash, mgetgroups: drop xalloc dependency
22815         * lib/hash.c (includes): Adjust includes.
22816         * lib/mgetgroups.c (includes): Likewise.
22817         (xgetgroups): Move...
22818         * lib/xgetgroups.c: ...to new file.
22819         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22820         * modules/xgetgroups: New file, split from...
22821         * modules/mgetgroups: ...here.
22822         (Depends-on): Add xalloc-oversized.
22823         * modules/hash (Depends-on): Likewise.
22824         * modules/hash-tests (Depends-on): Drop xalloc.
22825         (test_hash_LDADD): Drop unused library.
22826         * tests/test-hash.c (main): Break xalloc dependency.
22827         (includes): Drop unused include.
22828
22829         xalloc-oversized: new module
22830         * modules/xalloc-oversized: New module.
22831         * modules/xalloc (Depends-on): Add it.
22832         * lib/xalloc.h (xalloc_oversized): Move...
22833         * lib/xalloc-oversized.h: ...into new file.
22834
22835         utimecmp: drop dependency on xmalloc
22836         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22837         due to memory pressure.
22838         * modules/utimecmp (Depends-on): Drop xalloc.
22839
22840 2011-04-27  Eric Blake  <eblake@redhat.com>
22841
22842         getcwd: fix mingw bugs
22843         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22844         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22845         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22846
22847 2011-04-27  Bruno Haible  <bruno@clisp.org>
22848
22849         mkstemps: Ensure declaration on MacOS X 10.5.
22850         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22851         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22852         MacOS X.
22853
22854 2011-04-27  Bruno Haible  <bruno@clisp.org>
22855
22856         mkstemp: More documentation.
22857         * doc/posix-functions/mkstemp.texi: Document header file problem on
22858         MacOS X.
22859
22860 2011-04-27  Bruno Haible  <bruno@clisp.org>
22861
22862         mkstemp: Tweak configure message when cross-compiling.
22863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22864         result as a guess.
22865
22866 2011-04-27  Bruno Haible  <bruno@clisp.org>
22867
22868         clean-temp: Clarify what it does.
22869         * lib/clean-temp.h: Add more comments.
22870         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22871         module.
22872         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22873         * doc/glibc-functions/mkstemps.texi: Likewise.
22874         * doc/glibc-functions/mkostemps.texi: Likewise.
22875
22876 2011-04-27  Eric Blake  <eblake@redhat.com>
22877
22878         fchdir: avoid extra chdir and fix test
22879         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22880         getcwd-lgpl.
22881         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22882         have to be canonical.
22883         (canonicalize_file_name): Drop unused macro.
22884         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22885
22886         filenamecat-lgpl: fix licence
22887         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22888         when it was first created.
22889
22890         linkat, renameat: add missing dependency
22891         * modules/linkat (Depends-on): Require getcwd-lgpl.
22892         * modules/renameat (Depends-on): Likewise.
22893
22894         tests: reduce dependencies
22895         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22896         * tests/test-renameat.c (main): Likewise.
22897         * modules/linkat-tests (Depends-on): Relax dependency.
22898         * modules/renameat-tests (Depends-on): Likewise.
22899         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22900         dependency explicit.
22901
22902         save-cwd: reduce default dependency
22903         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22904         * lib/save-cwd.c: Update comments.
22905         * NEWS: Document the semantic change.
22906
22907         getcwd: enhance tests
22908         * tests/test-getcwd-lgpl.c: New file, taken from...
22909         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22910         repeat long path stress tests from m4 probe.
22911         * modules/getcwd-lgpl-tests: New module.
22912         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22913         * m4/getcwd-abort-bug.m4: Update comment.
22914         * m4/getcwd-path-max.m4: Likewise.
22915
22916         getcwd-lgpl: new module
22917         * modules/getcwd-lgpl: New module.
22918         * lib/getcwd-lgpl.c: New file.
22919         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22920         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22921         * modules/getcwd (configure.ac): Set C witness.
22922         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22923
22924         getcwd: tweak comments
22925         * m4/getcwd-abort-bug.m4: Fix comments.
22926         * m4/getcwd-path-max.m4: Likewise.
22927         * m4/getcwd.m4: Likewise.
22928
22929 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22930         and Eric Blake  <eblake@redhat.com>
22931
22932         mkstemp: replace if system version uses wrong permissions
22933         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22934         read/write mode bits set in file created by mkstemp.
22935         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22936
22937 2011-04-27  Eric Blake  <eblake@redhat.com>
22938
22939         passfd: avoid compiler warning
22940         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22941         Reported by Laine Stump.
22942
22943 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22944
22945         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22946         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22947
22948 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22949         and Eric Blake  <eblake@redhat.com>
22950
22951         mkstemp: mention clean-temp module
22952         * lib/mkstemp.c: Add comment.
22953         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22954
22955 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22956
22957         inttypes: also provide default values for 32-bit tests
22958         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22959         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22960
22961 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22962
22963         strtoumax: remove dependency on strtoimax
22964         This is like the strtoull change of yesterday.
22965         * modules/strtoumax (Files): Add lib/strtoimax.c.
22966         (Depends-on): Remove strtoimax and add verify.
22967
22968         inttypes-incomplete: new module
22969         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22970         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22971         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22972         of gl_INTTYPES_H.
22973         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22974         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22975         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22976         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22977         * modules/strtoumax, modules/xstrtol (Depends-on):
22978         Depend on inttypes-incomplete, not inttypes.
22979         * modules/inttypes-incomplete: New module, containing the contents
22980         of the old modules/inttypes module, except that the Files: section
22981         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22982         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22983         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22984         (Depends-on): Depend only on inttypes-incomplete.
22985         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22986
22987         inttypes: omit now-redundant strtoimax and strtoumax work
22988         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22989         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22990
22991         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22992         This supports apps that need pointers to strtoimax and strtoumax,
22993         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22994         nonexistent functions.  See
22995         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22996         et seq.
22997         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22998         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22999         a macro.
23000         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23001
23002 2011-04-25  Simon Josefsson  <simon@josefsson.org>
23003
23004         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
23005
23006 2011-04-25  Bruno Haible  <bruno@clisp.org>
23007
23008         strtol, strtoul: Mark modules as obsolete.
23009         * modules/strtol (Status, Notice): New sections.
23010         * modules/strtoul (Status, Notice): New sections.
23011
23012 2011-04-25  Bruno Haible  <bruno@clisp.org>
23013
23014         strtod: Remove check for strtod, unless supporting old platforms.
23015         * modules/strtod-obsolete: New file.
23016         * m4/strtod-obsolete.m4: New file.
23017         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
23018         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
23019         * modules/strtod (Depends-on): Add strtod-obsolete.
23020         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
23021
23022 2011-04-25  Bruno Haible  <bruno@clisp.org>
23023
23024         strcase: Make module obsolete.
23025         * modules/strcase (Status, Notice): New sections.
23026
23027 2011-04-25  Bruno Haible  <bruno@clisp.org>
23028
23029         dup2: Remove check for dup2, unless supporting old obsolete platforms.
23030         * modules/dup2-obsolete: New file.
23031         * m4/dup2-obsolete.m4: New file.
23032         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
23033         gl_FUNC_DUP2_OBSOLETE is not also defined.
23034         * modules/dup2 (Depends-on): Add dup2-obsolete.
23035         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
23036
23037 2011-04-25  Bruno Haible  <bruno@clisp.org>
23038
23039         strnlen: Avoid memchr related link error on old obsolete platforms.
23040         * modules/memchr-obsolete: New file.
23041         * m4/memchr-obsolete.m4: New file.
23042         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
23043         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
23044         * modules/memchr (Depends-on): Add memchr-obsolete.
23045         * modules/strnlen (Depends-on): Likewise.
23046         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
23047
23048 2011-04-25  Jim Meyering  <meyering@redhat.com>
23049
23050         maint.mk: makefile_at_at_check extend and clean up
23051         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
23052         in addition to */Makefile.am.
23053         Exempt legitimate uses of @VAR@ notation, e.g.,
23054         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
23055         Remove obsolete coreutils-specific comment.
23056         Prompted by discussion here:
23057         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
23058
23059 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23060
23061         strtoul: remove dependency on strtol
23062         This is so that 'configure' need not check for strtol merely because
23063         the application needs strtoul.
23064         * modules/strtoul (Files): Add lib/strtol.c.
23065         (Depends-on): Remove strtol.
23066
23067         strtoull: remove dependency on strtoul
23068         This is like the strtoll change.
23069         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
23070         (Depends-on): Remove strtoul.
23071
23072         strtoll: remove dependency on strtol
23073         This is so that 'configure' need not check for strtol merely because
23074         the application needs strtoll.
23075         * modules/strtoll (Files): Add lib/strtol.c.
23076         (Depends-on): Remove strtol.
23077
23078 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23079
23080         inttypes: Move some configure check to module 'imaxdiv'.
23081         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
23082         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
23083         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
23084
23085 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23086
23087         inttypes: Move some configure check to module 'imaxabs'.
23088         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
23089         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
23090         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
23091
23092 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23093
23094         inttypes: Remove configure tests that are not needed since 2009-12-31.
23095         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
23096         gl_cv_header_working_inttypes_h.
23097
23098 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23099
23100         * modules/strnlen (Depends-on): Remove memchr.
23101         The strnlen implementation doesn't need the memchr module's fixes; see
23102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
23103
23104         strtol: remove dependency on wchar
23105         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
23106         * modules/strtol (Depends-on): Remove wchar.
23107
23108 2011-04-21  Eric Blake  <eblake@redhat.com>
23109
23110         passfd: fix test regression on Linux
23111         * modules/passfd-tests (configure.ac): Correct socketpair check.
23112
23113         passfd: speed up configure and drop unused code
23114         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
23115         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
23116         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
23117         Instead of probing at configure for unix_scm_rights_bsd44_way,
23118         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
23119         check to a struct member probe.
23120         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
23121         (sendfd, recvfd): Update preprocessor checks.
23122         * modules/passfd (Files): Reflect rename, and drop unused file.
23123         (Depends-on): Drop unused dependency.
23124
23125         passfd: allow compilation on mingw
23126         * modules/sys_socket (Depends-on): Add sys_uio.
23127         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
23128         iovec and a minimal struct msghdr.
23129         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
23130         * tests/test-sys_socket.c (main): Enhance test.
23131         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
23132         guaranteed to provide what we need.
23133         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
23134         * modules/passfd-tests (Depends-on): Add sys_wait.
23135         * tests/test-passfd.c (main): Skip test on mingw, for now.
23136         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
23137         partial 'struct msghdr' implementation.
23138
23139         sys_uio: new module
23140         * modules/sys_uio: New module.
23141         * modules/sys_uio-tests: Likewise.
23142         * lib/sys_uio.in.h: New file.
23143         * m4/sys_uio_h.m4: Likewise.
23144         * tests/test-sys_uio.c: Likewise.
23145         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23146         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23147
23148 2011-04-20  Jim Meyering  <meyering@redhat.com>
23149
23150         useless-if-before-free: avoid false-positive
23151         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23152         disjunct so that it too requires a terminating ";".  Without that,
23153         this script would identify as useless one statement from gcc that
23154         was not:
23155           if (aligned_ptr)
23156             free (((void **) aligned_ptr) [-1]);
23157
23158 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23159
23160         doc: update users.txt.
23161         * users.txt: Add barcode.
23162
23163 2011-04-19  Bruno Haible  <bruno@clisp.org>
23164
23165         ioctl: Remove link dependency on native Windows.
23166         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23167         (gl_close_fn, gl_ioctl_fn): New types.
23168         (struct fd_hook): Renamed from struct close_hook. Change type of
23169         private_close_fn field. Add private_ioctl_fn field.
23170         (close_hook_fn): Add parameter for primary close method.
23171         (execute_close_hooks, execute_all_close_hooks): Likewise.
23172         (ioctl_hook_fn): New type.
23173         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23174         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23175         argument.
23176         (unregister_fd_hook): Renamed from unregister_close_hook.
23177         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23178         Don't include <unistd.h>.
23179         (close): Remove undef.
23180         (anchor): Update.
23181         (execute_close_hooks): Add argument for primary close method.
23182         (execute_all_close_hooks): Likewise.
23183         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23184         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23185         argument. Allow each argument to be NULL.
23186         (unregister_fd_hook): Renamed from unregister_close_hook.
23187         * lib/close.c (rpl_close): Pass 'close' function pointer to
23188         execute_all_close_hooks.
23189         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23190         (primary_ioctl): New function.
23191         (ioctl): Don't call ioctlsocket here. Instead, call
23192         execute_all_ioctl_hooks.
23193         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23194         close method.
23195         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23196         (fd_sockets_hook): Renamed from close_sockets_hook.
23197         (gl_sockets_startup, gl_sockets_cleanup): Update.
23198         * modules/fd-hook: Renamed from modules/close-hook. Update.
23199         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23200         * modules/sockets (Depends-on): Likewise.
23201         * modules/ioctl (Depends-on): Add fd-hook.
23202         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23203         GNULIB_SOCKET.
23204
23205 2011-04-19  Bruno Haible  <bruno@clisp.org>
23206
23207         Move the support of O_NONBLOCK in open() to the 'open' module.
23208         * modules/nonblocking (Depends-on): Remove 'open'.
23209         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23210         gl_cv_have_open_O_NONBLOCK.
23211         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23212         O_NONBLOCK support.
23213         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23214
23215 2011-04-17  Bruno Haible  <bruno@clisp.org>
23216
23217         pipe2: Simplify code.
23218         * lib/pipe2.c (pipe2): Reduce code duplication.
23219
23220 2011-04-17  Bruno Haible  <bruno@clisp.org>
23221
23222         nonblocking: Add comment.
23223         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23224
23225 2011-04-17  Bruno Haible  <bruno@clisp.org>
23226
23227         nonblocking: Add tests for sockets.
23228         * tests/test-nonblocking-socket.sh: New file.
23229         * tests/test-nonblocking-socket-main.c: New file.
23230         * tests/test-nonblocking-socket-child.c: New file.
23231         * tests/test-nonblocking-socket.h: New file.
23232         * tests/socket-server.h: New file.
23233         * tests/socket-client.h: New file.
23234         * modules/nonblocking-socket-tests: New file.
23235         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23236
23237 2011-04-17  Bruno Haible  <bruno@clisp.org>
23238
23239         nonblocking: Add tests for pipes.
23240         * tests/test-nonblocking-pipe.sh: New file.
23241         * tests/test-nonblocking-pipe-main.c: New file.
23242         * tests/test-nonblocking-pipe-child.c: New file.
23243         * tests/test-nonblocking-pipe.h: New file.
23244         * tests/test-nonblocking-writer.h: New file.
23245         * tests/test-nonblocking-reader.h: New file.
23246         * tests/test-nonblocking-misc.h: New file.
23247         * modules/nonblocking-pipe-tests: New file.
23248         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23249
23250 2011-04-16  Bruno Haible  <bruno@clisp.org>
23251
23252         gettext: Clarify the needed programmer actions.
23253         * modules/gettext (Notice): New field.
23254         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23255
23256 2011-04-16  Bruno Haible  <bruno@clisp.org>
23257
23258         strchrnul: Tweak last commit.
23259         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23260         bug.
23261         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23262         as in _GL_FUNCDECL_SYS.
23263         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23264         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23265
23266 2011-04-15  Eric Blake  <eblake@redhat.com>
23267
23268         strchrnul: work around cygwin bug
23269         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23270         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23272         * modules/string (Makefile.am): Substitute it.
23273         * lib/string.in.h (strchrnul): Use it.
23274
23275 2011-04-15  Bruno Haible  <bruno@clisp.org>
23276
23277         Don't require lib/stdio-write.c when only module 'stdio' is used.
23278         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23279         invocation.
23280         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23281
23282 2011-04-14  Bruno Haible  <bruno@clisp.org>
23283
23284         Support non-blocking pipe I/O in read() on native Windows.
23285         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23286         (read): New declaration.
23287         * lib/read.c: New file.
23288         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23289         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23290         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23291         vscanf): New declarations.
23292         * lib/stdio-read.c: New file.
23293         * m4/read.m4: New file.
23294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23295         REPLACE_READ.
23296         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23297         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23298         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23299         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23300         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23301         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23302         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23303         * modules/read: New file.
23304         * modules/nonblocking (Files): Add lib/stdio-read.c.
23305         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23306         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23307         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23308         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23309         * modules/pread (Depends-on): Add read.
23310         * modules/safe-read (Depends-on): Likewise.
23311         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23312         gets, scanf, vfscanf, vscanf): Verify signatures.
23313         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23314         problem with non-blocking pipes.
23315         * doc/posix-functions/fgetc.texi: Likewise.
23316         * doc/posix-functions/fgets.texi: Likewise.
23317         * doc/posix-functions/fread.texi: Likewise.
23318         * doc/posix-functions/fscanf.texi: Likewise.
23319         * doc/posix-functions/getc.texi: Likewise.
23320         * doc/posix-functions/getchar.texi: Likewise.
23321         * doc/posix-functions/gets.texi: Likewise.
23322         * doc/posix-functions/scanf.texi: Likewise.
23323         * doc/posix-functions/vfscanf.texi: Likewise.
23324         * doc/posix-functions/vscanf.texi: Likewise.
23325
23326 2011-04-14  Bruno Haible  <bruno@clisp.org>
23327
23328         Support non-blocking pipe I/O in write() on native Windows.
23329         * lib/write.c (rpl_write): Split a write request that failed merely
23330         because the byte count was larger than the pipe buffer's size.
23331         * doc/posix-functions/write.texi: Mention the problem with large byte
23332         counts.
23333
23334 2011-04-14  Bruno Haible  <bruno@clisp.org>
23335
23336         wchar: Ensure that wchar_t gets defined on uClibc.
23337         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23338         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23339
23340 2011-04-13  Bruno Haible  <bruno@clisp.org>
23341
23342         safe-write, full-read: Avoid unnecessary compilation units.
23343         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23344         (Depends-on): Remove safe-read. Add ssize_t.
23345         * modules/full-read (Files): Add lib/full-write.c.
23346         (Depends-on): Add full-write.
23347
23348 2011-04-13  Bruno Haible  <bruno@clisp.org>
23349
23350         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23351         * modules/pwrite (Depends-on): Add 'write'.
23352
23353 2011-04-13  Bruno Haible  <bruno@clisp.org>
23354
23355         Support non-blocking pipe I/O in write() on native Windows.
23356         * lib/unistd.in.h (write): Enable replacement also if
23357         GNULIB_UNISTD_H_NONBLOCKING is 1.
23358         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23359         (rpl_write): When failing to write on a non-blocking pipe, change
23360         errno from ENOSPC to EAGAIN.
23361         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23362         putchar, puts, vfprintf, vprintf): Enable replacement also if
23363         GNULIB_STDIO_H_NONBLOCKING is 1.
23364         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23365         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23366         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23367         CALL_WITH_SIGPIPE_EMULATION.
23368         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23369         * m4/nonblocking.m4: New file.
23370         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23371         for non-blocking I/O support.
23372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23373         GNULIB_UNISTD_H_NONBLOCKING.
23374         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23375         required for non-blocking I/O support.
23376         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23377         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23378         lib/stdio-write.c, m4/asm-underscore.m4.
23379         (Depends-on): Add stdio, unistd.
23380         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23381         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23382         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23383         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23384         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23385         problem with non-blocking pipes.
23386         * doc/posix-functions/fputc.texi: Likewise.
23387         * doc/posix-functions/fputs.texi: Likewise.
23388         * doc/posix-functions/fwrite.texi: Likewise.
23389         * doc/posix-functions/printf.texi: Likewise.
23390         * doc/posix-functions/putc.texi: Likewise.
23391         * doc/posix-functions/putchar.texi: Likewise.
23392         * doc/posix-functions/puts.texi: Likewise.
23393         * doc/posix-functions/vfprintf.texi: Likewise.
23394         * doc/posix-functions/vprintf.texi: Likewise.
23395         * doc/posix-functions/write.texi: Likewise.
23396
23397 2011-04-10  Jim Meyering  <meyering@redhat.com>
23398
23399         maint.mk: prohibit doubled words
23400         Detect them also when they're separated by a newline.
23401         There are 3 ways to customize it:
23402           - disable the test on a per file basis, as usual with rules using
23403             $(VC_LIST_EXCEPT)
23404           - replace the default doubled-word-selecting regexp (affects all files)
23405           - ignore a particular file-vs-doubled-word match
23406         I nearly used that last one to ignore the "is is" match in
23407         coreutils' NEWS file, since the text was "ls -is is ..."
23408         To do that, I would have added this line to cfg.mk:
23409           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23410         but it would have ignored any "is is" match in NEWS.
23411         Low probability, but still...
23412         Instead, I changed the text, slightly:
23413           -  ls -is is now consistent with ls -lis in ignoring values returned
23414           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23415         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23416         (prohibit_doubled_word_): Define.
23417         (sc_prohibit_doubled_word): New rule.
23418         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23419
23420 2011-04-10  Jim Meyering  <meyering@redhat.com>
23421
23422         maint: fix doubled-word typo in comment
23423         * m4/gethostname.m4: s/is is/it is/
23424         * m4/getdomainname.m4: Likewise.
23425
23426 2011-04-10  Jim Meyering  <meyering@redhat.com>
23427
23428         maint: remove doubled word: s/it it/it/
23429         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23430
23431 2011-04-10  Jim Meyering  <meyering@redhat.com>
23432
23433         maint.mk: remove useless semicolon and backslash
23434         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23435         semicolon and backslash.
23436
23437 2011-04-10  Bruno Haible  <bruno@clisp.org>
23438
23439         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23440         * modules/stdint-tests (Depends-on): Add wchar.
23441
23442 2011-04-10  Jim Meyering  <meyering@redhat.com>
23443
23444         maint: remove doubled words in comments, e.g., s/a a/a/
23445         * lib/strptime.c (day_of_the_week): s/the the/the/
23446         * tests/test-chown.h (test_chown): s/a a/a/
23447
23448         test-chown.h: correct a cast
23449         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23450         when the destination is a stat.st_gid.
23451
23452 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23453
23454         getaddrinfo: Fix test for sa_len member.
23455         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23456         include <sys/types.h> before <sys/socket.h>.
23457
23458 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23459
23460         maint: change "can not" to "cannot"
23461         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23462         boundaries.
23463
23464 2011-04-09  Jim Meyering  <meyering@redhat.com>
23465
23466         maint: change "a a" to "a"
23467         * tests/test-lchown.h (test_lchown): s/a a/a/
23468
23469         maint.mk: prohibit \<the the\>
23470         * top/maint.mk (sc_prohibit_the_the): New rule.
23471
23472         maint: fix "the the" in comment
23473         * lib/count-one-bits.h: s/the the/the/
23474
23475         maint: change "can not" to "cannot"
23476         But do not change the occurrences in maintain.texi or in
23477         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23478         * doc/gnulib-tool.texi: s/can not/cannot/
23479         * doc/posix-functions/accept.texi (accept): Likewise.
23480         * doc/posix-functions/socket.texi (socket): Likewise.
23481         * lib/mbrtowc.c: Likewise.
23482
23483         maint.mk: prohibit use of "can not"
23484         * top/maint.mk (sc_prohibit_can_not): New rule.
23485         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23486
23487 2011-04-09  Bruno Haible  <bruno@clisp.org>
23488
23489         careadlinkat: Guard against misuse of careadlinkatcwd.
23490         * lib/careadlinkat.c: Include <stdlib.h>.
23491         (careadlinkatcwd): Check that the fd argument is as expected.
23492
23493 2011-04-09  Bruno Haible  <bruno@clisp.org>
23494
23495         careadlinkat: Use common coding style.
23496         * lib/careadlinkat.c: Move gnulib includes after system includes.
23497
23498 2011-04-09  Bruno Haible  <bruno@clisp.org>
23499
23500         careadlinkat: Clarify specification.
23501         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23502         (careadlinkatcwd): Add comment.
23503         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23504
23505 2011-04-09  Bruno Haible  <bruno@clisp.org>
23506
23507         areadlinkat: Avoid link error on many platforms.
23508         * modules/areadlinkat (Depends-on): Add areadlink.
23509
23510 2011-04-09  Bruno Haible  <bruno@clisp.org>
23511
23512         allocator, careadlinkat: Fix double-inclusion guard.
23513         * lib/allocator.h: Fix double-inclusion guard.
23514         * lib/careadlinkat.h: Likewise.
23515
23516 2011-04-09  Bruno Haible  <bruno@clisp.org>
23517
23518         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23519         * lib/relocwrapper.c: Update dependencies hierarchy.
23520         * build-aux/install-reloc: Update list of files to be compiled.
23521         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23522         lib/allocator.[hc].
23523
23524 2011-04-08  Eric Blake  <eblake@redhat.com>
23525
23526         strftime: silence gnulib-tool warning
23527         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23528
23529 2011-04-08  Bruno Haible  <bruno@clisp.org>
23530
23531         verify: Fix syntax error with GCC 4.6 in C++ mode.
23532         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23533         (HAVE_STATIC_ASSERT): New macro.
23534         (verify_true, verify): Use 'static_assert' if it is supported and
23535         '_Static_assert' is not supported.
23536
23537 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23538
23539         allocator: New module.
23540         * modules/allocator, lib/allocator.c: New files.
23541         * lib/allocator.h (stdlib_allocator): New decl.
23542         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23543         Remove.  Do not include <stdlib.h>.
23544         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23545         * modules/careadlinkat (Files): Remove lib/allocator.h.
23546         (Depends-on): Add allocator.
23547
23548         stdlib: let modules use system malloc, realloc
23549         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23550         if !_GL_USE_STDLIB_ALLOC.
23551         (malloc, realloc): Limit this change to a smaller scope.
23552
23553         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23554         (malloc, realloc): Don't #undef; no longer needed.
23555         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23556         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23557         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23558         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23559         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23560         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23561         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23562         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23563
23564         careadlinkat: rename members to avoid problem
23565         * lib/allocator.h (struct allocator): Rename members from
23566         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23567         and realloc are #define'd.  Reported by Eric Blake in
23568         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23569         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23570
23571 2011-04-08  Eric Blake  <eblake@redhat.com>
23572
23573         nonblocking: reduce dependency
23574         * tests/test-nonblocking.c: Only test sockets when in use.
23575         * modules/nonblocking-tests (Depends-on): Drop socket.
23576         (Makefile.am): Link even if sockets are not present.
23577         * modules/pipe2-tests (Makefile.am): Likewise.
23578         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23579
23580         pipe2: fix O_NONBLOCK support on mingw
23581         * modules/pipe2 (Depends-on): Add nonblocking.
23582         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23583         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23584         * tests/test-nonblocking.c (main): Likewise.
23585         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23586
23587         fcntl-h: fix O_ACCMODE on cygwin
23588         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23589         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23590
23591         pipe-filter: drop O_NONBLOCK workarounds
23592         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23593         * modules/pipe-filter-ii (Depends-on): Likewise.
23594         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23595
23596         nonblocking: provide O_NONBLOCK for mingw
23597         * modules/nonblocking (Depends-on): Add open.
23598         (configure.ac): Set new witness macro.
23599         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23600         * modules/fcntl-h (Makefile.am): Substitute it.
23601         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23602         nonblocking module is in use.
23603         * lib/nonblocking.c: Adjust portability test.
23604         * lib/open.c (open): Don't let native open see gnulib flag.
23605         * tests/test-fcntl-h.c (main): Enhance test.
23606         * tests/test-open.h (test_open): Likewise.
23607         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23608
23609         careadlinkat: fix compilation error on mingw
23610         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23611         within struct allocator.
23612
23613 2011-04-06  Eric Blake  <eblake@redhat.com>
23614
23615         binary-io: relicense under LGPLv2+
23616         * modules/binary-io (License): Relax to LGPLv2+.
23617         Requested for libvirt, and required by pipe2.
23618
23619 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23620
23621         verify: use _Static_assert if available
23622         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23623         (verify_true, verify): Use it if available.  This generates better
23624         diagnostics with GCC 4.6.0 and later.
23625
23626 2011-04-05  Bruno Haible  <bruno@clisp.org>
23627
23628         Remove leftover generated .h files after config.status changed.
23629
23630         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23631         GL_GENERATE_ALLOCA_H.
23632         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23633         GL_GENERATE_ALLOCA_H evaluates to false.
23634
23635         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23636         GL_GENERATE_ARGZ_H.
23637         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23638         evaluates to false.
23639
23640         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23641         GL_GENERATE_BYTESWAP_H.
23642         * modules/byteswap (Makefile.am): Remove byteswap.h if
23643         GL_GENERATE_BYTESWAP_H evaluates to false.
23644
23645         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23646         GL_GENERATE_ERRNO_H.
23647         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23648         evaluates to false.
23649
23650         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23651         GL_GENERATE_FLOAT_H.
23652         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23653         evaluates to false.
23654
23655         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23656         GL_GENERATE_FNMATCH_H.
23657         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23658         GL_GENERATE_FNMATCH_H evaluates to false.
23659
23660         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23661         GL_GENERATE_GLOB_H.
23662         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23663         evaluates to false.
23664
23665         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23666         automake conditional GL_GENERATE_ICONV_H.
23667         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23668         evaluates to false.
23669
23670         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23671         GL_GENERATE_NETINET_IN_H.
23672         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23673         GL_GENERATE_NETINET_IN_H evaluates to false.
23674
23675         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23676         conditional GL_GENERATE_PTHREAD_H.
23677         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23678         * modules/pthread (Makefile.am): Remove pthread.h if
23679         GL_GENERATE_PTHREAD_H evaluates to false.
23680
23681         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23682         GL_GENERATE_SCHED_H.
23683         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23684         evaluates to false.
23685
23686         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23687         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23688         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23689         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23690
23691         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23692         GL_GENERATE_STDARG_H.
23693         * modules/stdarg (Makefile.am): Remove stdarg.h if
23694         GL_GENERATE_STDARG_H evaluates to false.
23695
23696         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23697         GL_GENERATE_STDBOOL_H.
23698         * modules/stdbool (Makefile.am): Remove stdbool.h if
23699         GL_GENERATE_STDBOOL_H evaluates to false.
23700
23701         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23702         conditional GL_GENERATE_STDDEF_H.
23703         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23704         * modules/stddef (Makefile.am): Remove stddef.h if
23705         GL_GENERATE_STDDEF_H evaluates to false.
23706
23707         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23708         GL_GENERATE_STDINT_H.
23709         * modules/stdint (Makefile.am): Remove stdint.h if
23710         GL_GENERATE_STDINT_H evaluates to false.
23711
23712         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23713         GL_GENERATE_SYSEXITS_H.
23714         * modules/sysexits (Makefile.am): Remove sysexits.h if
23715         GL_GENERATE_SYSEXITS_H evaluates to false.
23716
23717         Reported by Karl Berry and Ralf Wildenhues.
23718
23719 2011-04-05  Bruno Haible  <bruno@clisp.org>
23720
23721         Ensure to rebuild generated .h files when config.status has changed.
23722         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23723         config.status.
23724         * modules/ctype (Makefile.am): Likewise.
23725         * modules/dirent (Makefile.am): Likewise.
23726         * modules/errno (Makefile.am): Likewise.
23727         * modules/fcntl-h (Makefile.am): Likewise.
23728         * modules/float (Makefile.am): Likewise.
23729         * modules/getopt-posix (Makefile.am): Likewise.
23730         * modules/glob (Makefile.am): Likewise.
23731         * modules/iconv-h (Makefile.am): Likewise.
23732         * modules/inttypes (Makefile.am): Likewise.
23733         * modules/langinfo (Makefile.am): Likewise.
23734         * modules/locale (Makefile.am): Likewise.
23735         * modules/math (Makefile.am): Likewise.
23736         * modules/netdb (Makefile.am): Likewise.
23737         * modules/netinet_in (Makefile.am): Likewise.
23738         * modules/poll-h (Makefile.am): Likewise.
23739         * modules/pthread (Makefile.am): Likewise.
23740         * modules/pty (Makefile.am): Likewise.
23741         * modules/sched (Makefile.am): Likewise.
23742         * modules/search (Makefile.am): Likewise.
23743         * modules/selinux-h (Makefile.am): Likewise.
23744         * modules/signal (Makefile.am): Likewise.
23745         * modules/spawn (Makefile.am): Likewise.
23746         * modules/stdarg (Makefile.am): Likewise.
23747         * modules/stdbool (Makefile.am): Likewise.
23748         * modules/stddef (Makefile.am): Likewise.
23749         * modules/stdint (Makefile.am): Likewise.
23750         * modules/stdio (Makefile.am): Likewise.
23751         * modules/stdlib (Makefile.am): Likewise.
23752         * modules/string (Makefile.am): Likewise.
23753         * modules/strings (Makefile.am): Likewise.
23754         * modules/sys_file (Makefile.am): Likewise.
23755         * modules/sys_ioctl (Makefile.am): Likewise.
23756         * modules/sys_select (Makefile.am): Likewise.
23757         * modules/sys_socket (Makefile.am): Likewise.
23758         * modules/sys_stat (Makefile.am): Likewise.
23759         * modules/sys_time (Makefile.am): Likewise.
23760         * modules/sys_times (Makefile.am): Likewise.
23761         * modules/sys_utsname (Makefile.am): Likewise.
23762         * modules/sys_wait (Makefile.am): Likewise.
23763         * modules/sysexits (Makefile.am): Likewise.
23764         * modules/termios (Makefile.am): Likewise.
23765         * modules/time (Makefile.am): Likewise.
23766         * modules/unistd (Makefile.am): Likewise.
23767         * modules/wchar (Makefile.am): Likewise.
23768         * modules/wctype-h (Makefile.am): Likewise.
23769         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23770
23771 2011-04-05  Bruno Haible  <bruno@clisp.org>
23772
23773         pipe2: Relicense under LGPLv2+.
23774         * modules/pipe2 (License): Change to LGPLv2+.
23775         Requested by Eric Blake, for libvirt.
23776
23777 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23778
23779         bootstrap: compute gnulib_extra_files after updating build_aux
23780         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23781         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23782
23783 2011-04-05  Eric Blake  <eblake@redhat.com>
23784
23785         bootstrap: preserve git whitelist item sorting
23786         * build-aux/bootstrap (sort_patterns): New function.
23787         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23788
23789 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23790
23791         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23792         sc_space_tab check.
23793
23794 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23795
23796         areadlink, areadlinkat: rewrite in terms of careadlinkat
23797         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23798         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23799         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23800         (malloc, realloc): Remove #undefs.
23801         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23802         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23803         readlink, ssize_t, stdint, unistd.
23804         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23805         areadlink, stdint.
23806
23807         careadlinkat: new module
23808         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23809         * modules/careadlinkat: New files, written by me with
23810         a review and feedback from Ben Pfaff in
23811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23812
23813 2011-04-01  Bruno Haible  <bruno@clisp.org>
23814
23815         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23816         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23817         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23818         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23819         Reported by Bruce Korb <bruce.korb@gmail.com>.
23820
23821 2011-04-01  Bruno Haible  <bruno@clisp.org>
23822
23823         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23824         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23825         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23826         * modules/wcpcpy (Depends-on): Add extensions.
23827         * modules/wcpncpy (Depends-on): Likewise.
23828         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23829         systems.
23830         * doc/posix-functions/wcpncpy.texi: Likewise.
23831         * doc/posix-functions/wcwidth.texi: Likewise.
23832
23833 2011-03-31  Eric Blake  <eblake@redhat.com>
23834
23835         nonblocking: fix mingw test failures
23836         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23837         non-blocking flag on regular file.
23838         (get_nonblocking_flag): Set errno on invalid fd.
23839         * tests/test-nonblocking.c (main): Avoid test failure on
23840         directories if fchdir is not active.
23841         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23842
23843 2011-03-31  Bruno Haible  <bruno@clisp.org>
23844
23845         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23846         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23847         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23848         Reported by Simon Josefsson <simon@josefsson.org>.
23849
23850 2011-03-31  Bruno Haible  <bruno@clisp.org>
23851         and Eric Blake  <eblake@redhat.com>
23852
23853         nonblocking: new module
23854         * modules/nonblocking: New module.
23855         * modules/nonblocking-tests: Likewise.
23856         * lib/nonblocking.h: New file.
23857         * lib/nonblocking.c: Likewise.
23858         * tests/test-nonblocking.c: New test.
23859         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23860
23861 2011-03-30  Bruno Haible  <bruno@clisp.org>
23862
23863         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23864         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23865         instead of 'printf' format for GCC >= 4.4.
23866         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23867         (fprintf, printf, vfprintf, vprintf): Declare with
23868         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23869         the system's vfprintf() function.
23870         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23871
23872 2011-03-30  Eric Blake  <eblake@redhat.com>
23873
23874         passfd: fix scoping bug
23875         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23876         before sendmsg/recvmsg.
23877
23878         passfd: standardize coding conventions
23879         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23880         can be learned at compile time.
23881         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23882         ifdefs.
23883         (sendfd, recvfd): Follow gnulib code conventions.
23884
23885         passfd: fix incorrect sendmsg arguments
23886         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23887         incorrect msg_controllen value.
23888         * modules/passfd-tests (Depends-on): Check for alarm.
23889         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23890         Reported by Bastien ROUCARIES.
23891
23892 2011-03-30  Bruno Haible  <bruno@clisp.org>
23893
23894         c-strcasestr: Relicense under LGPLv2+.
23895         * modules/c-strcasestr (License): Change to LGPLv2+.
23896         Requested by Eric Blake, for libvirt.
23897
23898 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23899
23900         * users.txt: Add libidn2.  Fix libtasn1 link.
23901
23902 2011-03-30  Jim Meyering  <meyering@redhat.com>
23903
23904         tests: readlink* ("",... fails with EINVAL on newer kernels
23905         readlink and readlinkat have typically failed with ENOENT for
23906         the invalid, empty file name,  "".  However, with the advent
23907         of linux-2.6.39, they fail with EINVAL.
23908         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23909         when operating on the empty file name.
23910         * tests/test-readlink.h (test_readlink): Likewise.
23911
23912 2011-03-29  Bruno Haible  <bruno@clisp.org>
23913
23914         Relicense some modules under LGPLv2+, for libidn2.
23915         * modules/array-mergesort (License): Change to LGPLv2+.
23916         * modules/c-strcaseeq (License): Likewise.
23917         * modules/striconveh (License): Likewise.
23918         * modules/striconveha (License): Likewise.
23919         * modules/uniconv/base (License): Likewise.
23920         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23921         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23922         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23923         * modules/unictype/base (License): Likewise.
23924         * modules/unictype/bidiclass-of (License): Likewise.
23925         * modules/unictype/category-M (License): Likewise.
23926         * modules/unictype/category-none (License): Likewise.
23927         * modules/unictype/category-of (License): Likewise.
23928         * modules/unictype/category-test (License): Likewise.
23929         * modules/unictype/category-test-withtable (License): Likewise.
23930         * modules/unictype/combining-class (License): Likewise.
23931         * modules/unictype/joiningtype-of (License): Likewise.
23932         * modules/unictype/scripts (License): Likewise.
23933         * modules/uninorm/base (License): Likewise.
23934         * modules/uninorm/canonical-decomposition (License): Likewise.
23935         * modules/uninorm/composition (License): Likewise.
23936         * modules/uninorm/decompose-internal (License): Likewise.
23937         * modules/uninorm/decomposition-table (License): Likewise.
23938         * modules/uninorm/nfc (License): Likewise.
23939         * modules/uninorm/nfd (License): Likewise.
23940         * modules/uninorm/u32-normalize (License): Likewise.
23941         * modules/unistr/base (License): Likewise.
23942         * modules/unistr/u32-cpy (License): Likewise.
23943         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23944         * modules/unistr/u32-to-u8 (License): Likewise.
23945         * modules/unistr/u32-uctomb (License): Likewise.
23946         * modules/unistr/u8-check (License): Likewise.
23947         * modules/unistr/u8-mblen (License): Likewise.
23948         * modules/unistr/u8-mbtouc (License): Likewise.
23949         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23950         * modules/unistr/u8-mbtoucr (License): Likewise.
23951         * modules/unistr/u8-prev (License): Likewise.
23952         * modules/unistr/u8-strlen (License): Likewise.
23953         * modules/unistr/u8-to-u32 (License): Likewise.
23954         * modules/unistr/u8-uctomb (License): Likewise.
23955         * modules/unitypes (License): Likewise.
23956         Requested by Simon Josefsson.
23957
23958 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23959
23960         lib-symbol-visibility: Add a notice.
23961         * modules/lib-symbol-visibility (Notice): New field.
23962
23963 2011-03-29  Bruno Haible  <bruno@clisp.org>
23964
23965         getaddrinfo: Doc fix.
23966         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23967         section "fixed in Gnulib".
23968
23969 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23970
23971         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23972         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23973
23974 2011-03-26  Bruno Haible  <bruno@clisp.org>
23975
23976         unictype/property-byname: Reduce the number of load-time relocations.
23977         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23978         (UC_PROPERTY_INDEX_*): New enumeration values.
23979         (uc_property_byname): Convert an index from the lookup table to an
23980         uc_property_t.
23981         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23982         values.
23983
23984 2011-03-26  Bruno Haible  <bruno@clisp.org>
23985
23986         unictype/property-byname: Allow omitted word separators and aliases.
23987         * lib/unictype/pr_byname.gperf: Add property names without word
23988         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23989         for 'space'.
23990
23991 2011-03-26  Bruno Haible  <bruno@clisp.org>
23992
23993         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23994         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23995         also hyphens to space.
23996         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23997         without spaces.
23998         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23999
24000 2011-03-26  Bruno Haible  <bruno@clisp.org>
24001
24002         unictype/joiningtype-byname: Recognize long names as well.
24003         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
24004         a long name.
24005         * lib/unictype/joiningtype_byname.c: Include <string.h>,
24006         unictype/joiningtype_byname.h.
24007         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
24008         * lib/unictype/joiningtype_byname.gperf: New file.
24009         * modules/unictype/joiningtype-byname (Files): Add
24010         lib/unictype/joiningtype_byname.gperf.
24011         (Depends-on): Add gperf.
24012         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
24013         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
24014         long names.
24015
24016         Tests for module 'unictype/joiningtype-longname'.
24017         * modules/unictype/joiningtype-longname-tests: New file.
24018         * tests/unictype/test-joiningtype_longname.c: New file.
24019
24020         New module 'unictype/joiningtype-longname'.
24021         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
24022         * lib/unictype/joiningtype_longname.c: New file.
24023         * modules/unictype/joiningtype-longname: New file.
24024         * modules/unictype/joiningtype-all (Depends-on): Add
24025         unictype/joiningtype-longname.
24026
24027 2011-03-26  Bruno Haible  <bruno@clisp.org>
24028
24029         unictype/bidiclass-byname: Recognize long names as well.
24030         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
24031         name.
24032         * lib/unictype/bidi_byname.c: Include <string.h>,
24033         unictype/bidi_byname.h.
24034         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
24035         * lib/unictype/bidi_byname.gperf: New file.
24036         * modules/unictype/bidiclass-byname (Files): Add
24037         lib/unictype/bidi_byname.gperf.
24038         (Depends-on): Add gperf.
24039         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
24040         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
24041         long names.
24042
24043         Tests for module 'unictype/bidiclass-longname'.
24044         * modules/unictype/bidiclass-longname-tests: New file.
24045         * tests/unictype/test-bidi_longname.c: New file.
24046
24047         New module 'unictype/bidiclass-longname'.
24048         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
24049         * lib/unictype/bidi_longname.c: New file.
24050         * modules/unictype/bidiclass-longname: New file.
24051         * modules/unictype/bidiclass-all (Depends-on): Add
24052         unictype/bidiclass-longname.
24053
24054 2011-03-26  Bruno Haible  <bruno@clisp.org>
24055
24056         unictype/bidi*: Rename modules.
24057         * modules/unictype/bidiclass-all: Renamed from
24058         modules/unictype/bidicategory-all.
24059         * modules/unictype/bidiclass-name: Renamed from
24060         modules/unictype/bidiclass-name.
24061         (Description): Update.
24062         * modules/unictype/bidiclass-name-tests: Renamed from
24063         modules/unictype/bidicategory-name-tests.
24064         * modules/unictype/bidiclass-byname: Renamed from
24065         modules/unictype/bidicategory-byname.
24066         (Description): Update.
24067         * modules/unictype/bidiclass-byname-tests: Renamed from
24068         modules/unictype/bidicategory-byname-tests.
24069         * modules/unictype/bidiclass-of: Renamed from
24070         modules/unictype/bidicategory-of.
24071         (Description): Update.
24072         * modules/unictype/bidiclass-of-tests: Renamed from
24073         modules/unictype/bidicategory-of-tests.
24074         * modules/unictype/bidiclass-test: Renamed from
24075         modules/unictype/bidicategory-test.
24076         (Description): Update.
24077         * modules/unictype/bidiclass-test-tests: Renamed from
24078         modules/unictype/bidicategory-test-tests.
24079         * modules/unictype/bidicategory-all: New file, a simple redirection.
24080         * modules/unictype/bidicategory-name: Likewise.
24081         * modules/unictype/bidicategory-byname: Likewise.
24082         * modules/unictype/bidicategory-of: Likewise.
24083         * modules/unictype/bidicategory-test: Likewise.
24084         * modules/unictype/property-bidi-* (Dependencies): Update.
24085         * lib/unictype/bidi_*.c: Update comment.
24086
24087 2011-03-26  Bruno Haible  <bruno@clisp.org>
24088
24089         unictype/bidi*: Rename functions, part 2.
24090         * modules/unictype/bidicategory-name (configure.ac): Update required
24091         libunistring version.
24092         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
24093
24094 2011-03-25  Bruno Haible  <bruno@clisp.org>
24095
24096         New module 'unictype/combining-class-all'.
24097         * modules/unictype/combining-class-all: New file.
24098
24099         Tests for module 'unictype/combining-class-byname'.
24100         * modules/unictype/combining-class-byname-tests: New file.
24101         * tests/unictype/test-combiningclass_byname.c: New file.
24102
24103         New module 'unictype/combining-class-byname'.
24104         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
24105         * lib/unictype/combiningclass_byname.c: New file.
24106         * lib/unictype/combiningclass_byname.gperf: New file.
24107         * modules/unictype/combining-class-byname: New file.
24108
24109         Tests for module 'unictype/combining-class-longname'.
24110         * modules/unictype/combining-class-longname-tests: New file.
24111         * tests/unictype/test-combiningclass_longname.c: New file.
24112
24113         New module 'unictype/combining-class-longname'.
24114         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
24115         * lib/unictype/combiningclass_longname.c: New file.
24116         * modules/unictype/combining-class-longname: New file.
24117
24118         Tests for module 'unictype/combining-class-name'.
24119         * modules/unictype/combining-class-name-tests: New file.
24120         * tests/unictype/test-combiningclass_name.c: New file.
24121
24122         New module 'unictype/combining-class-name'.
24123         * lib/unictype.in.h (uc_combining_class_name): New declaration.
24124         * lib/unictype/combiningclass_name.c: New file.
24125         * modules/unictype/combining-class-name: New file.
24126
24127 2011-03-25  Bruno Haible  <bruno@clisp.org>
24128
24129         unictype/combining-class: Rename source files.
24130         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
24131         of unictype/combining.h.
24132         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
24133         Update.
24134         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
24135         * modules/unictype/combining-class (Description): Fix.
24136         (Files, Makefile.am): Update.
24137         * tests/unictype/test-combiningclass.c: Renamed from
24138         tests/unictype/test-combining.c.
24139         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
24140
24141 2011-03-25  Bruno Haible  <bruno@clisp.org>
24142
24143         unictype: Update list of canonical combining classes.
24144         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24145
24146 2011-03-25  Bruno Haible  <bruno@clisp.org>
24147
24148         unictype/category-byname: Recognize long names as well.
24149         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24150         a long name.
24151         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24152         unictype/categ_byname.h.
24153         (UC_CATEGORY_INDEX_*): New enumeration values.
24154         (uc_general_category_byname): Use uc_general_category_lookup and
24155         convert from index to value.
24156         * lib/unictype/categ_byname.gperf: New file.
24157         * modules/unictype/category-byname (Files): Add
24158         lib/unictype/categ_byname.gperf.
24159         (Depends-on): Add gperf.
24160         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24161         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24162         long names.
24163
24164         Tests for module 'unictype/category-longname'.
24165         * modules/unictype/category-longname-tests: New file.
24166         * tests/unictype/test-categ_longname.c: New file.
24167
24168         New module 'unictype/category-longname'.
24169         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24170         * lib/unictype/categ_longname.c: New file.
24171         * modules/unictype/category-longname: New file.
24172         * modules/unictype/category-all (Depends-on): Add it.
24173
24174 2011-03-25  Bruno Haible  <bruno@clisp.org>
24175
24176         Tests for module 'unictype/category-LC'.
24177         * modules/unictype/category-LC-tests: New file.
24178         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24179
24180         New module 'unictype/category-LC'.
24181         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24182         (UC_CATEGORY_LC): New declaration.
24183         (UC_CASED_LETTER): New macro.
24184         * lib/gen-uni-tables.c (is_category_LC): New function.
24185         (output_categories): Also handle category LC.
24186         (UC_CATEGORY_MASK_LC): New enumeration value.
24187         (general_category_byname): Also handle category LC.
24188         * lib/unictype/categ_LC.c: New file.
24189         * lib/unictype/categ_LC.h: New file, automatically generated.
24190         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24191         category LC.
24192         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24193         * modules/unictype/category-LC: New file.
24194         * modules/unictype/category-byname (Depends-on): Add
24195         unictype/category-LC.
24196         * modules/unictype/category-all (Depends-on): Likewise.
24197
24198 2011-03-25  Eric Blake  <eblake@redhat.com>
24199
24200         xmalloc: revert yesterday's regression
24201         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24202         realloc's underlying behavior (allowing allocation of zero-size
24203         objects, especially if malloc-gnu is also in use).
24204
24205 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24206
24207         maint.mk: add missing version to VC-tag
24208         * top/maint.mk: git tag was missing actual tag name; add it.
24209
24210         valgrind: do leak checking, and exit with code 1 on error (not 0)
24211         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24212         to VALGRIND.
24213
24214 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24215
24216         posix-modules: say what it does.
24217         * posix-modules: Add a line to the --help output saying what it does.
24218
24219 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24220
24221         xmalloc: Do not leak if underlying realloc is C99 compatible.
24222         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24223         This avoids a leak on C99-based systems.  See
24224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24225
24226 2011-03-24  Eric Blake  <eblake@redhat.com>
24227
24228         realloc: document portability problem
24229         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24230         passing 0 size to realloc.
24231
24232 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24233
24234         doc: update users.txt
24235         * users.txt: Add cvsps, tmpwatch
24236
24237 2011-03-23  Matt Rice  <ratmice@gmail.com>
24238
24239         doc: update users.txt
24240         * users.txt: Add gdb.
24241
24242 2011-03-23  Jim Meyering  <meyering@redhat.com>
24243
24244         doc: update users.txt
24245         Looking through matches up to the following URL (there are still
24246         several more pages), I found several projects that use gnulib:
24247         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24248         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24249         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24250
24251 2011-03-22  Bruno Haible  <bruno@clisp.org>
24252
24253         unictype/bidi*: Rename functions.
24254         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24255         uc_bidi_class, uc_is_bidi_class): New declarations.
24256         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24257         uc_bidi_category_byname.
24258         (uc_bidi_category_byname): New function.
24259         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24260         u_bidi_category_name.
24261         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24262         (uc_bidi_category_name): New function.
24263         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24264         uc_bidi_category.
24265         (uc_bidi_category): New function.
24266         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24267         uc_is_bidi_category. Invoke uc_bidi_class.
24268         (uc_is_bidi_category): New function.
24269         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24270         instead of uc_bidi_category_byname.
24271         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24272         instead of uc_bidi_category_name.
24273         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24274         uc_bidi_category.
24275         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24276         instead of uc_is_bidi_category.
24277
24278 2011-03-21  Bruno Haible  <bruno@clisp.org>
24279
24280         New module 'unictype/joininggroup-all'.
24281         * modules/unictype/joininggroup-all: New file.
24282
24283         Tests for module 'unictype/joininggroup-of'.
24284         * modules/unictype/joininggroup-of-tests: New file.
24285         * tests/unictype/test-joininggroup_of.c: New file.
24286         * tests/unictype/test-joininggroup_of.h: New file, automatically
24287         generated by gen-uni-tables.
24288
24289         New module 'unictype/joininggroup-of'.
24290         * modules/unictype/joininggroup-of: New file.
24291         * lib/unictype/joininggroup_of.c: New file.
24292         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24293         gen-uni-tables.
24294
24295         Tests for module 'unictype/joininggroup-byname'.
24296         * modules/unictype/joininggroup-byname-tests: New file.
24297         * tests/unictype/test-joininggroup_byname.c: New file.
24298
24299         New module 'unictype/joininggroup-byname'.
24300         * modules/unictype/joininggroup-byname: New file.
24301         * lib/unictype/joininggroup_byname.c: New file.
24302         * lib/unictype/joininggroup_byname.gperf: New file.
24303
24304         Tests for module 'unictype/joininggroup-name'.
24305         * modules/unictype/joininggroup-name-tests: New file.
24306         * tests/unictype/test-joininggroup_name.c: New file.
24307
24308         New module 'unictype/joininggroup-name'.
24309         * modules/unictype/joininggroup-name: New file.
24310         * lib/unictype/joininggroup_name.c: New file.
24311         * lib/unictype/joininggroup_name.h: New file.
24312
24313         New module 'unictype/joiningtype-all'.
24314         * modules/unictype/joiningtype-all: New file.
24315
24316         Tests for module 'unictype/joiningtype-of'.
24317         * modules/unictype/joiningtype-of-tests: New file.
24318         * tests/unictype/test-joiningtype_of.c: New file.
24319         * tests/unictype/test-joiningtype_of.h: New file, automatically
24320         generated by gen-uni-tables.
24321
24322         New module 'unictype/joiningtype-of'.
24323         * modules/unictype/joiningtype-of: New file.
24324         * lib/unictype/joiningtype_of.c: New file.
24325         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24326         gen-uni-tables.
24327
24328         Tests for module 'unictype/joiningtype-byname'.
24329         * modules/unictype/joiningtype-byname-tests: New file.
24330         * tests/unictype/test-joiningtype_byname.c: New file.
24331
24332         New module 'unictype/joiningtype-byname'.
24333         * modules/unictype/joiningtype-byname: New file.
24334         * lib/unictype/joiningtype_byname.c: New file.
24335
24336         Tests for module 'unictype/joiningtype-name'.
24337         * modules/unictype/joiningtype-name-tests: New file.
24338         * tests/unictype/test-joiningtype_name.c: New file.
24339
24340         New module 'unictype/joiningtype-name'.
24341         * modules/unictype/joiningtype-name: New file.
24342         * lib/unictype/joiningtype_name.c: New file.
24343
24344         unictype: Add support for Arabic shaping properties.
24345         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24346         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24347         declarations.
24348         (UC_JOINING_GROUP_*): New enumeration values.
24349         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24350         declarations.
24351         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24352         (unicode_joining_type): New variable.
24353         (UC_JOINING_GROUP_*): New enumeration values.
24354         (unicode_joining_group): New variable.
24355         (fill_arabicshaping, joining_type_as_c_identifier,
24356         output_joining_type_test, output_joining_type,
24357         joining_group_as_c_identifier, output_joining_group_test,
24358         output_joining_group): New functions.
24359         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24360         fill_arabicshaping and output_joining_type_test, output_joining_type,
24361         output_joining_group_test, output_joining_group.
24362         Reported by Simon Josefsson.
24363
24364 2011-03-21  Jim Meyering  <meyering@redhat.com>
24365
24366         strftime: fix a bug in yesterday's change
24367         * lib/strftime.c (add): Accommodate width's initial value of -1.
24368         Otherwise, nstrftime would copy uninitialized data into
24369         the result buffer.
24370
24371 2011-03-21  Jim Meyering  <meyering@redhat.com>
24372
24373         tests: add strftime-tests module
24374         * tests/test-strftime.c: New file.
24375         * modules/strftime-tests: New module.
24376
24377 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24378
24379         strftime: don't assume a byte count fits in 'int'
24380         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24381         found this problem by static analysis, using gcc -Wstrict-overflow
24382         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24383         on an integer overflow having undefined behavior, but it turns out
24384         that the argument is a size, which might not fit in 'int' anyway,
24385
24386 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24387
24388         stdio: don't require ignore_value around fwrite
24389
24390         This patch works around libc bug 11959
24391         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24392         Without this patch, applications must often write
24393         ignore_value (fwrite (...)) even though the ignore_value is
24394         not helpful here.  It's common to write many objects, using
24395         fwrite/printf/etc., and then use ferror to detect output error.
24396
24397         I considered making this patch optional, but decided against it,
24398         because libc is obviously being inconsistent here: there is no
24399         reason libc should insist that user code must inspect fwrite
24400         return's value without also insisting that it inspect printf's,
24401         putchar's, etc.  If user code wants to have a strict style where
24402         all these functions' values are checked (so that ferror need not
24403         be checked), we could add support for that style in a new gnulib
24404         module, but in the meantime it's better to be consistent and to
24405         support common usage.
24406
24407         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24408         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24409         that we are compiling in checking mode, and if not C++, and
24410         if not already wrapping fwrite for some other reason.
24411         (fwrite): #define to rpl_fwrite if the latter is defined.
24412
24413 2011-03-20  Bruno Haible  <bruno@clisp.org>
24414
24415         verror: Fix compilation error introduced on 2011-02-13.
24416         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24417         instead of __attribute__.
24418         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24419
24420 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24421             Bruno Haible  <bruno@clisp.org>
24422
24423         socklen: do not depend on sys_socket
24424         While trying to modify Emacs to use gnulib's socklen module,
24425         I discovered a circular dependency: socklen depends on sys_socket
24426         and vice versa.  Emacs can use socklen, but it does not need
24427         sys_socket because it has its own substitute for sys/socket.h.
24428         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24429         gl_TYPE_SOCKLEN_T.
24430         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24431         gl_PREREQ_SYS_H_SOCKET.
24432         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24433         gl_PREREQ_SYS_H_SOCKET.
24434         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24435         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24436         * modules/socklen (Depends-on): Do not depend on sys_socket.
24437         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24438
24439 2011-03-20  Jim Meyering  <meyering@redhat.com>
24440
24441         maint.mk: sort file names *after* new transformation
24442         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24443         prefix would have led to an unwarranted failure in GNU parted.
24444         Sort after that transformation.
24445
24446 2011-03-19  Jim Meyering  <meyering@redhat.com>
24447
24448         maint.mk: fix po-file syntax-check rule
24449         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24450         Patch by Bruno Haible.
24451
24452 2011-03-19  Bruno Haible  <bruno@clisp.org>
24453
24454         socklen: Update comment.
24455         * m4/socklen.m4: Update comment about platforms.
24456
24457 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24458             Bruno Haible  <bruno@clisp.org>
24459
24460         inet_ntop, inet_pton: Simplify.
24461         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24462         documented to provide socklen_t and we already depend on sys_socket.
24463         * modules/inet_pton (Depends-on): Likewise.
24464         * lib/arpa_inet.in.h: Adjust comment.
24465
24466 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24467             Bruno Haible  <bruno@clisp.org>
24468
24469         netdb: Simplify.
24470         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24471         documented to provide socklen_t and we already depend on sys_socket.
24472         * lib/netdb.in.h: Adjust comment.
24473
24474 2011-03-19  Bruno Haible  <bruno@clisp.org>
24475
24476         sys_socket, netdb: Document problem with socklen_t.
24477         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24478         platforms.
24479         * doc/posix-headers/netdb.texi: Likewise.
24480
24481 2011-03-18  Eric Blake  <eblake@redhat.com>
24482
24483         maint.mk: let po check work in VPATH build
24484         * top/maint.mk (po_file): Allow cfg.mk override.
24485         (sc_po_check): Allow VPATH use.
24486         Reported by Jiri Denemark.
24487
24488 2011-03-16  Jim Meyering  <meyering@redhat.com>
24489
24490         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24491         Before, you would have had to create one .x-sc_ file per rule in order
24492         to exempt offending files.  Now, you may instead use a Make variable --
24493         usually defined in cfg.mk -- whose name identifies the affected rule.
24494         * top/maint.mk (_sc_excl): Define.
24495         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24496         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24497
24498 2011-03-13  Bruno Haible  <bruno@clisp.org>
24499
24500         ignore-value tests: Avoid warnings.
24501         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24502         empty for gcc < 3.4.
24503
24504 2011-03-13  Bruno Haible  <bruno@clisp.org>
24505
24506         passfd: Fix link error on Solaris.
24507         * modules/passfd (Description): Correct.
24508         (Depends-on): Add socketlib.
24509         (Link): New section.
24510         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24511
24512 2011-03-13  Bruno Haible  <bruno@clisp.org>
24513
24514         passfd: Fix link error on AIX 5.2.
24515         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24516
24517 2011-03-13  Bruno Haible  <bruno@clisp.org>
24518
24519         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24520         * lib/sys_socket.in.h: Include <stddef.h>.
24521         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24522         CMSG_FIRSTHDR. Remove unused variable.
24523
24524 2011-03-13  Bruno Haible  <bruno@clisp.org>
24525
24526         passfd: Fix compilation error on OpenBSD.
24527         * lib/passfd.c: Include <sys/uio.h>.
24528
24529 2011-03-13  Bruno Haible  <bruno@clisp.org>
24530
24531         passfd test: Fix warnings.
24532         * tests/test-passfd.c: Include <sys/wait.h>.
24533         (main): Fix typo.
24534
24535 2011-03-13  Bruno Haible  <bruno@clisp.org>
24536
24537         passfd module, part 4, tweaks.
24538         * tests/test-passfd.c: Reorder includes.
24539         (main): Fix perror and printf calls.
24540
24541 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24542
24543         passfd module, part 4.
24544         * modules/passfd-tests: New file.
24545         * tests/test-passfd.c: New file.
24546
24547 2011-03-13  Jim Meyering  <meyering@redhat.com>
24548
24549         Makefile: rely on GNU make; derive syntax-check rule names
24550         Rather than requiring that each sc_ rule be listed as a dependent
24551         of "check", use features of GNU make to derive the list.
24552         * Makefile (syntax-check-rules): Define.
24553         (check): Depend on the new variable, not the hard-coded list.
24554
24555 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24556             Bruno Haible  <bruno@clisp.org>
24557
24558         passfd module, part 3.
24559         * lib/passfd.h (recvfd): Add a flags argument.
24560         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24561         (recvfd): Add a flags argument.
24562         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24563         exists.
24564         * modules/passfd (Depends-on): Add cloexec.
24565         Suggested by Eric Blake.
24566
24567 2011-03-13  Bruno Haible  <bruno@clisp.org>
24568
24569         passfd module, part 2, tweaks.
24570         * modules/passfd (Files): Reorder.
24571         (Depends-on): Remove errno.
24572         (Include): Remove <sys/socket.h>, <sys/un.h>.
24573         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24574         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24575         specification header. Include <sys/socket.h> always. Don't include
24576         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24577         (sendfd): Clarify that it sets errno when it fails.
24578         (recvfd): Fix specification.
24579
24580 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24581
24582         passfd module, part 2.
24583         * modules/passfd: New file.
24584         * lib/passfd.h: New file.
24585         * lib/passfd.c: New file.
24586
24587 2011-03-12  Bruno Haible  <bruno@clisp.org>
24588
24589         wcswidth, mbswidth: Avoid integer overflow.
24590         * lib/wcswidth.c: Include <limits.h>.
24591         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24592         * lib/mbswidth.c: Include <limits.h>.
24593         (mbsnwidth): Avoid 'int' overflow.
24594         Reported by Jim Meyering.
24595
24596 2011-03-12  Bruno Haible  <bruno@clisp.org>
24597
24598         futimens, utimensat: Avoid endless recursion on Solaris 10.
24599         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24600         Solaris.
24601         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24602         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24603
24604 2011-03-11  Jim Meyering  <meyering@redhat.com>
24605
24606         maint.mk: relax a regexp to accommodate other formatting styles
24607         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24608         between "ngettext" and the following "(".
24609
24610 2011-03-11  Pádraig Brady <P@draigBrady.com>
24611
24612         maint.mk: suppress a false positive warning
24613         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24614         diagnostics are marked with ngettext.
24615
24616 2011-03-10  Eric Blake  <eblake@redhat.com>
24617
24618         wchar: add explicit dependencies, for Tru64
24619         * modules/mbmemcasecoll (Depends-on): Add wchar.
24620         * modules/mbtowc (Depends-on): Likewise.
24621         * modules/vasnprintf (Depends-on): Likewise.
24622         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24623         * modules/wctomb (Depends-on): Likewise.
24624         Reported by Peter O'Gorman.
24625
24626 2011-03-08  Bruno Haible  <bruno@clisp.org>
24627
24628         passfd module, part 1, tweaks.
24629         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24630         Improve indentation. Improve AC_MSG_CHECKING messages.
24631         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24632         gl_SOCKET_FAMILIES.
24633
24634 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24635
24636         passfd module, part 1.
24637         * m4/afunix.m4: New file.
24638         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24639         sockets.
24640
24641 2011-03-08  Bruno Haible  <bruno@clisp.org>
24642
24643         regex-quote: New API.
24644         * lib/regex-quote.h: Include <stdbool.h>.
24645         (struct regex_quote_spec): New type.
24646         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24647         New declarations.
24648         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24649         'const struct regex_quote_spec *' argument.
24650         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24651         (pcre_special): New constant.
24652         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24653         New functions.
24654         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24655         'const struct regex_quote_spec *' argument.
24656         * modules/regex-quote (Depends-on): Add stdbool.
24657         * tests/test-regex-quote.c (check): Update for new API. Add test for
24658         anchored results.
24659         * NEWS: Mention the API change.
24660         Reported by Reuben Thomas and Eric Blake.
24661
24662 2011-03-06  Bruno Haible  <bruno@clisp.org>
24663
24664         regex-quote: Fix creation of POSIX extended regular expressions.
24665         * lib/regex-quote.c (ere_special): Add grouping and alternation
24666         operators.
24667
24668 2011-03-05  Bruno Haible  <bruno@clisp.org>
24669
24670         doc: Improve doc regarding autopoint vs. gnulib.
24671         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24672         disable autopoint while running autoreconf.
24673         Suggested by Ralf Wildenhues.
24674
24675 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24676
24677         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24678         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24679
24680 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24681
24682         parse-duration: remove xalloc.h dependency
24683         * lib/parse-duration.c (parse_period): handle NULL return from
24684         strdup instead of calling xstrdup().
24685         * modules/parse-duration: remove "xalloc" dependency
24686
24687 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24688
24689         bootstrap: honor m4_base when running aclocal
24690         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24691
24692 2011-03-02  Jim Meyering  <meyering@redhat.com>
24693
24694         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24695         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24696         on request from Matt Booth.
24697
24698 2011-03-01  Eric Blake  <eblake@redhat.com>
24699
24700         test-link: work on Hurd
24701         * tests/test-link.h (test_link): Hurd rejects linking directories
24702         with EISDIR instead of the POSIX-mandated EPERM.
24703
24704 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24705
24706         stdio: simplify by moving files to printf-posix, sigpipe
24707         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24708         since this symbol is needed only if printf is replaced.
24709         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24710         Require gl_ASM_SYMBOL_PREFIX.
24711         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24712         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24713         (Depends-on): Add 'raise'.
24714         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24715         * modules/stdio (Files): Remove lib/stdio-write.c,
24716         m4/asm-underscore.m4.
24717         (Depends-on): Remove 'raise'.
24718
24719         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24720         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24721         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24722         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24723
24724 2011-02-28  Bruno Haible  <bruno@clisp.org>
24725
24726         localcharset: Assume ANSI C behaviour of free().
24727         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24728         calling free().
24729         Suggested by Simon Josefsson <simon@josefsson.org>.
24730
24731 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24732             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24733             Bruno Haible  <bruno@clisp.org>  (tiny change)
24734
24735         On Cygwin, use /proc file system instead of win32 API.
24736         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24737         Win32 file names.
24738         (DllMain): Simplify by removing Cygwin specific code.
24739         (find_shared_library_fullname): Use Linux specific implementation also
24740         for Cygwin.
24741         (get_shared_library_fullname): Update accordingly.
24742         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24743         Win32 file names.
24744         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24745         Cygwin specific code.
24746
24747 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24748             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24749
24750         Fix OpenMP flag detection for various Fortran compilers.
24751         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24752         OpenMP-conditional compilation construct, to force compile
24753         failure with missing OpenMP flag.
24754         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24755
24756 2011-02-25  Eric Blake  <eblake@redhat.com>
24757
24758         strstr: expand test coverage
24759         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24760         compilation.
24761         * tests/test-memmem.c (main): Duplicate tests.
24762         * tests/test-strcasestr.c (main): Likewise.
24763         * tests/test-c-strcasestr.c (main): Likewise.
24764
24765 2011-02-25  Jim Meyering  <meyering@redhat.com>
24766
24767         maint.mk: detect missing-NL-at-EOF, too
24768         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24769         it also detects when a file lacks a newline at EOF.
24770         (require_exactly_one_NL_at_EOF_): Renamed from
24771         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24772         since people may well have .x-sc_... file names tied to the
24773         existing name.  Suggested by Eric Blake.
24774
24775 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24776
24777         dirname: move m4/dos.m4 functionality into lib/dosname.h
24778
24779         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24780         extracts symbols from it, puts them into config.h; but it's much
24781         easier to use the symbols directly.  filename.h already does this,
24782         but it disagrees with dos.m4 in some respects.  This patch
24783         introduces a different include file dosname.h that packages up
24784         dos.m4, and then later we can work on merging filename.h and
24785         dosname.h.  Applications that need only the easy-to-configure
24786         symbols should consider including dosname.h rather than dirname.h.
24787         * NEWS: Mention incompatible changes.
24788         * m4/dos.m4: Remove.
24789         * lib/dosname.h, modules/dosname: New files.
24790         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24791         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24792         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24793         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24794         Include dosname.h, not dirname.h.
24795         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24796         Include dosname.h, for definitions of symbols like ISSLASH
24797         that used to be in config.h.
24798         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24799         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24800         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24801         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24802         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24803         * modules/rmdir (Files): Likewise.
24804         * modules/stat (Files): Likewise.
24805         * modules/unlink (Files): Likewise.
24806         * modules/dirname-lgpl (Depends-on): Add dosname.
24807         * modules/lstat (Depends-on): Likewise.
24808         * modules/openat (Depends-on): Likewise.
24809         * modules/rmdir (Depends-on): Likewise.
24810         * modules/savewd (Depends-on): Likewise.
24811         * modules/stat (Depends-on): Likewise.
24812         * modules/unlink (Depends-on): Likewise.
24813         * modules/openat (Depends-on): Remove dirname-lgpl.
24814         * modules/savewd (Depends-on): Likewise.
24815         * tests/test-dirname.c: Do not use removed symbols like
24816         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24817         the remaining symbols, e.g., ISSLASH ('\\').
24818
24819 2011-02-25  Eric Blake  <eblake@redhat.com>
24820
24821         strstr: revert patches that introduced bug and pessimization
24822         * lib/str-two-way.h: Add another reference.
24823         (two_way_short_needle, two_way_long_needle): Revert changes from
24824         2011-02-24; they pessimize search speed.
24825         (critical_factorization): Partially revert changes from
24826         2010-06-22; they violate the requirement that the left half of the
24827         needle be smaller than the period of the needle.
24828
24829 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24830
24831         filenamecat: remove unnecessary dependency on dirname-lgpl
24832         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24833         is no direct dependency, just an indirect one via filenamecat-lgpl.
24834
24835         remove: remove unnecessary use of m4/dos.m4
24836         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24837         * modules/remove (FILES): Remove m4/dos.m4.
24838
24839         * lib/openat-proc.c: Don't include dirname.h; not needed.
24840
24841         backupfile: remove unnecessary use of m4/dos.m4
24842         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24843         of its symbols are used by the backupfile code.  backupfile.c does
24844         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24845         for the rare case of programs that want all their backup file
24846         names to live within 8+3 limits, and dos.m4 doesn't address that.
24847         * modules/backupfile (Files): Remove m4/dos.m4.
24848
24849 2011-02-24  Jim Meyering  <meyering@redhat.com>
24850
24851         strstr: fix a bug whereby strstr would mistakenly return NULL
24852         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24853         in period calculation.
24854         (two_way_long_needle): Likewise.
24855         The original problem was reported by Mike Stump in
24856         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24857         Ralf Wildenhues provided the short needle and haystack.
24858         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24859         Add a more involved test to trigger the bug in two_way_long_needle.
24860
24861 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24862
24863         gnulib-tool: remove use of bold display in help screen
24864         * gnulib-tool (func_usage): Do not use bold display anymore in the
24865         help screen.  That was just meant to be a temporary emphasis for a
24866         backward-incompatible change.
24867
24868 2011-02-23  Bruno Haible  <bruno@clisp.org>
24869
24870         Fix misindentation of preprocessor directives.
24871         * lib/argp-namefrob.h: Reindent preprocessor directives.
24872         * lib/getopt_int.h (struct _getopt_data): Likewise.
24873         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24874         * lib/vasnprintf.c (decode_long_double): Likewise.
24875         * tests/test-argmatch.c: Insert blank lines, for clarity.
24876         * tests/test-exclude.c: Likewise.
24877
24878 2011-02-22  Bruno Haible  <bruno@clisp.org>
24879
24880         ioctl: Fix for MacOS X in 64-bit mode.
24881         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24882         value.
24883         Suggested by Eric Blake.
24884         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24885
24886 2011-02-22  Jim Meyering  <meyering@redhat.com>
24887
24888         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24889         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24890         in lib/.
24891
24892 2011-02-22  Eric Blake  <eblake@redhat.com>
24893
24894         maint: avoid any CDPATH issue
24895         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24896
24897         maint: adjust cpp indentation for my modules, as well
24898         * Makefile (sc_cpp_indent_check): Add my name.
24899         * lib/fbufmode.c: Filter through cppi.
24900         * lib/fpurge.c: Likewise.
24901         * lib/freadable.c: Likewise.
24902         * lib/freading.c: Likewise.
24903         * lib/fwritable.c: Likewise.
24904         * lib/fwriting.c: Likewise.
24905         * lib/sigaction.c: Likewise.
24906
24907 2011-02-22  Jim Meyering  <meyering@redhat.com>
24908
24909         maint: adjust cpp indentation to reflect nesting depth
24910         I.e., in a block of code that begins with an unnested "#if",
24911         put one space between the "#" in column 1 and following token.
24912         For example,
24913         -#include <sys/vfs.h>
24914         +# include <sys/vfs.h>
24915         Do this only in .c files that are part of a module I maintain.
24916         * lib/linkat.c: Filter through cppi.
24917         * lib/nanosleep.c: Likewise.
24918         * lib/openat.c: Likewise.
24919         * lib/openat-die.c: Likewise.
24920         * lib/dup3.c: Likewise.
24921         * lib/fchownat.c: Likewise.
24922         * lib/flock.c: Likewise.
24923         * lib/fsync.c: Likewise.
24924         * lib/fts.c: Likewise.
24925         * lib/getpass.c: Likewise.
24926         * lib/gettimeofday.c: Likewise.
24927         * lib/userspec.c: Likewise.
24928         * Makefile (sc_cpp_indent_check): New rule, to check this.
24929
24930 2011-02-22  Bruno Haible  <bruno@clisp.org>
24931
24932         New module 'wctomb'.
24933         * lib/stdlib.in.h (wctomb): New declaration.
24934         * lib/wctomb.c: New file.
24935         * lib/wctomb-impl.h: New file.
24936         * m4/wctomb.m4: New file.
24937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24938         REPLACE_WCTOMB.
24939         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24940         REPLACE_WCTOMB.
24941         * modules/wctomb: New file.
24942         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24943         * doc/posix-functions/wctomb.texi: Mention the new module.
24944         * modules/wctob (Depends-on): Add wctomb.
24945
24946 2011-02-22  Bruno Haible  <bruno@clisp.org>
24947
24948         New module 'mbtowc'.
24949         * lib/stdlib.in.h (mbtowc): New declaration.
24950         * lib/mbtowc.c: New file.
24951         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24952         * m4/mbtowc.m4: New file.
24953         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24954         REPLACE_MBTOWC.
24955         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24956         REPLACE_MBTOWC.
24957         * modules/mbtowc: New file.
24958         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24959         * doc/posix-functions/mbtowc.texi: Mention the new module.
24960         * modules/btowc (Depends-on): Add mbtowc.
24961
24962 2011-02-22  Bruno Haible  <bruno@clisp.org>
24963
24964         wcrtomb: Add more tests for native Windows platforms.
24965         * tests/test-wcrtomb-w32-1.sh: New file.
24966         * tests/test-wcrtomb-w32-2.sh: New file.
24967         * tests/test-wcrtomb-w32-3.sh: New file.
24968         * tests/test-wcrtomb-w32-4.sh: New file.
24969         * tests/test-wcrtomb-w32-5.sh: New file.
24970         * tests/test-wcrtomb-w32.c: New file.
24971         * modules/wcrtomb-tests (Files): Add them.
24972         (Makefile.am): Arrange to run these tests.
24973         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24974         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24975
24976 2011-02-20  Bruno Haible  <bruno@clisp.org>
24977
24978         wcrtomb: Enhance test.
24979         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24980
24981 2011-02-20  Bruno Haible  <bruno@clisp.org>
24982
24983         mbrtowc: Tiny optimization.
24984         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24985
24986 2011-02-20  Jim Meyering  <meyering@redhat.com>
24987
24988         test-exclude.c: remove unmatched #endif
24989         * tests/test-exclude.c: Remove stray #endif, left over from
24990         the change of a week ago.
24991
24992 2011-02-19  Jim Meyering  <meyering@redhat.com>
24993
24994         git-version-gen: skip "-dirty" check when appropriate
24995         * build-aux/git-version-gen: Don't run any git commands when the
24996         version string comes from .tarball-version.  Prior to this, we
24997         would run git update-index --refresh even from a just-unpacked
24998         tarball directory, and that could affect a .git/ directory in a
24999         parent of the build directory.  Reported by Mike Frysinger.
25000
25001 2011-02-19  Bruno Haible  <bruno@clisp.org>
25002
25003         unictype/property-byname: Reduce the size of the 'data' segment.
25004         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
25005
25006 2011-02-19  Bruno Haible  <bruno@clisp.org>
25007
25008         unictype/scripts: Reduce the size of the 'data' segment.
25009         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
25010         '%pic'.
25011         * lib/unictype/scripts_byname.gperf: Regenerated.
25012
25013 2011-02-19  Bruno Haible  <bruno@clisp.org>
25014
25015         stdint: Update documentation.
25016         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
25017
25018 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
25019
25020         stdint: omit redundant check for wchar.h
25021         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
25022         always tests whether wchar.h exists, so remove the now-redundant test.
25023
25024 2011-02-18  Bruno Haible  <bruno@clisp.org>
25025
25026         stdint: Cut dependency to module 'wchar'.
25027         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
25028         include the necessary prerequisites.
25029         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
25030         * modules/stdint (Depends-on): Remove wchar.
25031         (Makefile.am): Substitute HAVE_WCHAR_H.
25032         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
25033
25034 2011-02-18  Eric Blake  <eblake@redhat.com>
25035
25036         longlong: skip, rather than fail, on cross-compilation
25037         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
25038         when cross-compiling; regression from 2011-02-16.
25039
25040 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
25041
25042         * NEWS: Mention 2011-02-08 change to stdlib.
25043
25044 2011-02-17  Bruno Haible  <bruno@clisp.org>
25045
25046         getloadavg: Add comments about platforms.
25047         * m4/getloadavg.m4: Add comment.
25048         * lib/getloadavg.c: Likewise.
25049
25050 2011-02-17  Bruno Haible  <bruno@clisp.org>
25051
25052         getloadavg: Fix link error on Solaris 2.6.
25053         * modules/getloadavg (Link): New section.
25054         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
25055         linking test-getloadavg.
25056         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
25057         getloadavg.
25058
25059 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
25060
25061         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
25062         It was 'int', but this doesn't match the IRIX 6.5 manual.
25063         Suggested by Bruno Haible in
25064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
25065
25066 2011-02-17  Bruno Haible  <bruno@clisp.org>
25067
25068         havelib: Fix comments.
25069         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
25070         change.
25071
25072 2011-02-17  Bruno Haible  <bruno@clisp.org>
25073
25074         havelib: Update config.rpath.
25075         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
25076
25077 2011-02-17  Bruno Haible  <bruno@clisp.org>
25078
25079         getloadavg test: Add some plausibility checks.
25080         * tests/test-getloadavg.c (check_avg): Print a warning when the value
25081         is improbable.
25082
25083 2011-02-16  Eric Blake  <eblake@redhat.com>
25084
25085         maintainer-makefile: make syntax-check a no-op from tarballs
25086         * top/maint.mk (no-vc-detected): New rule.
25087         (local-checks-available): Use it to avoid hanging if someone tries
25088         'make syntax-check' from a tarball.  Also append to any non-syntax
25089         checks already defined in cfg.mk.
25090
25091 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25092
25093         longlong: tune, particularly for common case of c99
25094
25095         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
25096         or running anything if c99, or if unsigned long long int does not
25097         work.  In either case, we know the answer without further tests.
25098         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
25099         it at most once, and use its results for both long long int and
25100         unsigned long long int.  This is more likely to be efficient in
25101         the common case where the program wants to check for both long
25102         long int and unsigned long long int.
25103         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
25104         since the answer is already known.
25105
25106 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25107
25108         getloadavg: set errno
25109         * lib/getloadavg.c: Set errno when returning -1.  If no other
25110         error number looks appropriate, set it to ENOSYS if the getloadavg
25111         looks like it can't possibly ever work, ENOTSUP otherwise.
25112         Suggested by Bruno Haible in
25113         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
25114
25115         getloadavg: trim unused parts and speed up 'configure'
25116         * NEWS: Document this.
25117         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
25118         always compiled if getloadavg is absent.
25119         Move test code to ...
25120         * tests/test-getloadavg.c: New file, containing previous
25121         contents of test from lib/getloadavg.c.  It also contains
25122         suggestions by Bruno Haible in
25123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
25124         * modules/getloadavg-tests: New file.
25125         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
25126         Do tests in the same order as they're needed for getloadavg.c.
25127         Omit setgid-related tests that generate symbols KMEM_GROUP,
25128         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
25129         Do only the tests that are needed to see whether the system has
25130         getloadavg, moving the other tests into ...
25131         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
25132         NLIST_NAME_UNION; nobody should be using it.  Do not define
25133         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
25134         relevant, as the user of this module shouldn't care how getloadavg
25135         is implemented.
25136
25137         getloadavg: omit unused var
25138         * lib/getloadavg.c (getloadavg): Omit unused local variable.
25139
25140 2011-02-15  Jim Meyering  <meyering@redhat.com>
25141
25142         doc: update users.txt
25143         * users.txt: Update iwhd's URL.
25144
25145 2011-02-13  Bruno Haible  <bruno@clisp.org>
25146
25147         Consistent macro naming for macros that use GCC __attribute__.
25148         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25149         _ATTRIBUTE_NONNULL_.
25150         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25151         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25152         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25153         ATTRIBUTE_DEPRECATED.
25154         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25155         ATTRIBUTE_NORETURN.
25156         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25157         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25158         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25159         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25160         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25161         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25162         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25163         ATTRIBUTE_SENTINEL.
25164         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25165         ATTRIBUTE_RETURN_CHECK.
25166         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25167         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25168         ATTRIBUTE_NORETURN.
25169         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25170         Reported by Paul Eggert.
25171
25172 2011-02-13  Bruno Haible  <bruno@clisp.org>
25173
25174         Don't interfere with a program's definition of __attribute__.
25175         * lib/argp.h (__attribute__): Remove definition.
25176         (_GL_ATTRIBUTE_FORMAT): New macro.
25177         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25178         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25179         (_GL_ATTRIBUTE_FORMAT): New macro.
25180         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25181         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25182         GCC 3 or newer.
25183         * lib/error.h (__attribute__): Remove definition.
25184         (_GL_ATTRIBUTE_FORMAT): New macro.
25185         (error, error_at_line): Use it.
25186         * lib/hash.h (__attribute__): Remove definition.
25187         (ATTRIBUTE_WUR): Update definition. Define always.
25188         * lib/openat.h (__attribute__): Remove definition.
25189         (ATTRIBUTE_NORETURN): Update definition. Define always.
25190         * lib/sigpipe-die.h (__attribute__): Remove definition.
25191         (ATTRIBUTE_NORETURN): Update definition. Define always.
25192         * lib/vasnprintf.h (__attribute__): Remove definition.
25193         (_GL_ATTRIBUTE_FORMAT): New macro.
25194         (asnprintf, vasnprintf): Use it.
25195         * lib/xalloc.h (__attribute__): Remove definition.
25196         (ATTRIBUTE_NORETURN): Update definition. Define always.
25197         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25198         * lib/xmemdup0.h (__attribute__): Remove definition.
25199         (ATTRIBUTE_NORETURN): Update definition. Define always.
25200         * lib/xprintf.h (__attribute__): Remove definition.
25201         (_GL_ATTRIBUTE_FORMAT): New macro.
25202         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25203         * lib/xstrtol.h (__attribute__): Remove definition.
25204         (ATTRIBUTE_NORETURN): Update definition. Define always.
25205         * lib/xvasprintf.h (__attribute__): Remove definition.
25206         (_GL_ATTRIBUTE_FORMAT): New macro.
25207         (xasprintf, xvasprintf): Use it.
25208         * tests/test-argmatch.c (__attribute__): Remove definition.
25209         (ATTRIBUTE_NORETURN): Update definition. Define always.
25210         * tests/test-exclude.c (__attribute__): Remove definition.
25211         (ATTRIBUTE_NORETURN): Update definition. Define always.
25212         Reported by Paul Eggert.
25213
25214 2011-02-13  Bruno Haible  <bruno@clisp.org>
25215
25216         mbrtowc: Add more tests for native Windows platforms.
25217         * tests/test-mbrtowc-w32-1.sh: New file.
25218         * tests/test-mbrtowc-w32-2.sh: New file.
25219         * tests/test-mbrtowc-w32-3.sh: New file.
25220         * tests/test-mbrtowc-w32-4.sh: New file.
25221         * tests/test-mbrtowc-w32-5.sh: New file.
25222         * tests/test-mbrtowc-w32.c: New file.
25223         * modules/mbrtowc-tests (Files): Add them.
25224         (Makefile.am): Arrange to run these tests.
25225         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25226         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25227
25228 2011-02-13  Bruno Haible  <bruno@clisp.org>
25229
25230         mbrtowc: Work around native Windows bug.
25231         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25232         guess when no suitable locale for testing was found.
25233         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25234
25235 2011-02-13  Bruno Haible  <bruno@clisp.org>
25236
25237         mbsinit: Work around mingw bug.
25238         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25239         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25240         Windows.
25241         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25242
25243 2011-02-13  Bruno Haible  <bruno@clisp.org>
25244
25245         mbsinit: Don't crash for a NULL argument.
25246         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25247         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25248
25249 2011-02-13  Bruno Haible  <bruno@clisp.org>
25250
25251         Don't interfere with a program's definition of __attribute__.
25252         * lib/stdio.in.h (__attribute__): Remove definition.
25253         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25254         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25255         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25256         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25257         * lib/string.in.h (__attribute__): Remove definition.
25258         Reported by Paul Eggert.
25259
25260 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25261
25262         stdlib: don't get in the way of non-GCC __attribute__
25263         See thread starting at
25264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25265         Revert previous stdlib change, installing the following instead:
25266         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25267         to get in the way of a non-GCC compiler that supports __attribute__.
25268         (_GL_ATTRIBUTE_RETURN): New macro.
25269         (_Exit): Use it instead of __attribute__.
25270
25271 2011-02-12  Bruno Haible  <bruno@clisp.org>
25272
25273         quotearg test: Avoid test failure on mingw.
25274         * tests/test-quotearg.sh: Convert the locale identifier from native
25275         Windows syntax to Unix syntax.
25276
25277 2011-02-12  Bruno Haible  <bruno@clisp.org>
25278
25279         setlocale: Prefer gnulib's override over libintl's override.
25280         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25281         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25282         GNULIB_defined_setlocale is set.
25283
25284 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25285
25286         stdlib: support non-GCC __attribute__
25287
25288         Fix a serious and tricky problem encountered when attempting to
25289         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25290         5.5, but it crashed due to memory corruption on Solaris 10 with
25291         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25292         bits that are otherwise zero.  This tagging is optional inside
25293         Emacs but is preferred and is used when __attribute__ ((__aligned
25294         (8))) works, as it does with both recent-enough GCC and with Sun C
25295         5.11.  However, Sun C 5.11 is not GCC and does not #define
25296         __GNUC__ and __GNUC_MINOR__.
25297
25298         When I added the getloadavg module to Emacs, it brought in
25299         stdlib.in.h, which contained this fragment:
25300
25301            #ifndef __attribute__
25302            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25303            #  define __attribute__(Spec)   /* empty */
25304            # endif
25305            #endif
25306
25307         When files that include <stdlib.h> were compiled with Sun C 5.11,
25308         the above code disabled __attribute__ ((__aligned (8))), which
25309         caused variables to not be properly aligned, which eventually led
25310         to the pointer corruption mentioned above.  (This was a bit hard
25311         to diagnose, unfortunately.)
25312
25313         Several "#define __attribute__(X) /* empty */" code snippets need
25314         to be eradicated from Gnulib to work with non-GCC compilers that
25315         support __attribute__.  The Autoconf way to do this is to test for
25316         each kind of attribute that we want support for, and selectively
25317         enable that in source code.
25318
25319         Fix this problem just for stdlib.h, by adding a test for the
25320         __noreturn__ attribute, and change stdlib.in.h to use that test
25321         when needed.  This technique can be easily generalized to the
25322         other *.in.h files and attributes, and a similar technique can be
25323         used for *.h and *.c files.  This patch is enough to solve the
25324         problem for Emacs + getloadavg, and I thought I'd publish it for
25325         feedback before undertaking further, similar fixes in other
25326         modules.
25327
25328         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25329         because it's not needed for stdlib.h.  It merely substitutes the
25330         value directly into stdlib.h.  We may well need to #define it, or
25331         similar symbols, for other modules, but it's nice to also have an
25332         option to not #define it for applications like Emacs that do not
25333         need it.
25334
25335         * lib/stdlib.in.h (__attribute__): Do not #define.
25336         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25337         be defined only if the _Exit module is also used.
25338         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25340         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25341         platforms.
25342         * modules/_Exit (Files): Add m4/attribute.m4.
25343         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25344         * m4/attribute.m4: New file.
25345
25346 2011-02-12  Bruno Haible  <bruno@clisp.org>
25347
25348         wcsrtombs: Work around bug on native Windows.
25349         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25350         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25351         instead of len.
25352         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25353
25354 2011-02-12  Bruno Haible  <bruno@clisp.org>
25355
25356         mbsrtowcs: Work around bug on native Windows.
25357         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25358         against mingw bug.
25359         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25360
25361 2011-02-12  Bruno Haible  <bruno@clisp.org>
25362
25363         Avoid setlocale bugs in tests.
25364         * modules/btowc (Dependencies): Add setlocale.
25365         * modules/c-strcase (Dependencies): Likewise.
25366         * modules/mbmemcasecmp (Dependencies): Likewise.
25367         * modules/mbmemcasecoll (Dependencies): Likewise.
25368         * modules/mbrtowc (Dependencies): Likewise.
25369         * modules/mbscasecmp (Dependencies): Likewise.
25370         * modules/mbscasestr (Dependencies): Likewise.
25371         * modules/mbschr (Dependencies): Likewise.
25372         * modules/mbscspn (Dependencies): Likewise.
25373         * modules/mbsinit (Dependencies): Likewise.
25374         * modules/mbsncasecmp (Dependencies): Likewise.
25375         * modules/mbsnrtowcs (Dependencies): Likewise.
25376         * modules/mbspbrk (Dependencies): Likewise.
25377         * modules/mbspcasecmp (Dependencies): Likewise.
25378         * modules/mbsrchr (Dependencies): Likewise.
25379         * modules/mbsrtowcs (Dependencies): Likewise.
25380         * modules/mbsspn (Dependencies): Likewise.
25381         * modules/mbsstr (Dependencies): Likewise.
25382         * modules/nl_langinfo (Dependencies): Likewise.
25383         * modules/quotearg (Dependencies): Likewise.
25384         * modules/unicase/locale-language (Dependencies): Likewise.
25385         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25386         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25387         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25388         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25389         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25390         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25391         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25392         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25393         * modules/vasnprintf-posix (Dependencies): Likewise.
25394         * modules/wcrtomb (Dependencies): Likewise.
25395         * modules/wcsnrtombs (Dependencies): Likewise.
25396         * modules/wcsrtombs (Dependencies): Likewise.
25397
25398 2011-02-12  Bruno Haible  <bruno@clisp.org>
25399
25400         setlocale: Workaround native Windows bug.
25401         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25402         succeeds but sets LC_CTYPE to "C", report a failure.
25403         * tests/test-setlocale2.sh: New file.
25404         * tests/test-setlocale2.c: New file.
25405         * modules/setlocale-tests (Files): Add the new files.
25406         (Makefile.am): Enable test-setlocale2.sh test.
25407         * doc/posix-functions/setlocale.texi: Mention workaround.
25408
25409 2011-02-11  Bruno Haible  <bruno@clisp.org>
25410
25411         Tests for module 'setlocale'.
25412         * modules/setlocale-tests: New file.
25413         * tests/test-setlocale1.sh: New file.
25414         * tests/test-setlocale1.c: New file.
25415
25416         New module 'setlocale'.
25417         * lib/locale.in.h (setlocale): New declaration.
25418         * lib/setlocale.c: New file, based on
25419         gettext/gettext-runtime/intl/setlocale.c.
25420         * m4/setlocale.m4: New file.
25421         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25422         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25423         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25424         REPLACE_SETLOCALE.
25425         * modules/setlocale: New file.
25426         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25427         * doc/posix-functions/setlocale.texi: Mention the new module.
25428
25429 2011-02-11  Bruno Haible  <bruno@clisp.org>
25430
25431         Prepare for locale dependent tests on mingw.
25432         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25433         because it has the wrong locale encoding.
25434         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25435         French_France.1252 instead of "fr".
25436         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25437         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25438         because it has the wrong locale encoding.
25439         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25440         native Windows, try Turkish_Turkey.65001.
25441         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25442         Chinese_China.54936.
25443
25444         Prepare for locale dependent tests on mingw.
25445         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25446         differently.
25447         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25448         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25449         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25450         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25451
25452 2011-02-11  Eric Blake  <eblake@redhat.com>
25453
25454         strptime: avoid compiler warnings
25455         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25456         compiler warnings about dead code.
25457         Reported by Daniel P. Berrange.
25458
25459 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25460
25461         doc: update users.txt
25462         * users.txt: Add rcs.
25463
25464 2011-02-10  John W. Eaton  <jwe@gnu.org>
25465
25466         doc: update users.txt
25467         * users.txt: Add octave.
25468
25469 2011-02-10  Jim Meyering  <meyering@redhat.com>
25470
25471         doc: update users.txt
25472         * users.txt: Add iwhd.
25473
25474 2011-02-09  Bruno Haible  <bruno@clisp.org>
25475
25476         gnulib-tool: Make copyright notice adjustment more robust.
25477         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25478         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25479         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25480         License".
25481         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25482
25483 2011-02-06  Bruno Haible  <bruno@clisp.org>
25484
25485         New module 'towctrans'.
25486         * modules/towctrans: New file.
25487         * lib/wctype.in.h (towctrans): New declaration.
25488         * lib/towctrans.c: New file.
25489         * lib/towctrans-impl.h: New file.
25490         * m4/towctrans.m4: New file.
25491         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25492         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25493         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25494         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25495         * doc/posix-functions/towctrans.texi: Mention the new module.
25496
25497 2011-02-06  Bruno Haible  <bruno@clisp.org>
25498
25499         New module 'wctrans'.
25500         * modules/wctrans: New file.
25501         * lib/wctype.in.h (wctrans): New declaration.
25502         * lib/wctrans.c: New file.
25503         * lib/wctrans-impl.h: New file.
25504         * m4/wctrans.m4: New file.
25505         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25506         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25507         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25508         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25509         * doc/posix-functions/wctrans.texi: Mention the new module.
25510
25511 2011-02-06  Bruno Haible  <bruno@clisp.org>
25512
25513         New module 'iswctype'.
25514         * modules/iswctype: New file.
25515         * lib/wctype.in.h (iswctype): New declaration.
25516         * lib/iswctype.c: New file.
25517         * lib/iswctype-impl.h: New file.
25518         * m4/iswctype.m4: New file.
25519         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25520         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25521         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25522         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25523         * doc/posix-functions/iswctype.texi: Mention the new module and the
25524         HP-UX 11.00 problem.
25525
25526 2011-02-06  Bruno Haible  <bruno@clisp.org>
25527
25528         New module 'wctype'.
25529         * modules/wctype: Change to represent the wctype() substitute.
25530         * lib/wctype.in.h (wctype): New declaration.
25531         * lib/wctype.c: New file.
25532         * lib/wctype-impl.h: New file.
25533         * m4/wctype.m4: New file.
25534         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25535         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25536         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25537         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25538         * doc/posix-functions/wctype.texi: Mention the new module and the
25539         HP-UX 11.00 problem.
25540
25541 2011-02-06  Bruno Haible  <bruno@clisp.org>
25542
25543         wctype-h: Ensure wctype_t and wctrans_t are defined.
25544         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25545         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25546         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25547         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25548         HAVE_WCTRANS_T.
25549         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25550
25551 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25552
25553         flock: fix license typo
25554
25555         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25556         omitted.
25557
25558 2011-02-08  Bruno Haible  <bruno@clisp.org>
25559
25560         Split large sed scripts, for HP-UX sed.
25561         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25562         to avoid HP-UX limit of 99 commands, in the near future.
25563         * modules/stdlib (Makefile.am): Likewise.
25564         * modules/unistd (Makefile.am): Likewise.
25565         * modules/wchar (Makefile.am): Likewise.
25566         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25567         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25568         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25569
25570 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25571             Bruno Haible  <bruno@clisp.org>
25572
25573         stdlib: improve random_r modularization
25574         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25575         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25576         you also need the random_r module to get this material right.
25577         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25578         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25579         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25580
25581 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25582
25583         stdlib: don't depend on stdint
25584         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25585         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25586         be independent of whether stdint.h is needed.
25587         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25588         here, instead of ...
25589         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25590         struct random_data should be using the random_r module, not just
25591         the stdlib module (which wouldn't make sense: what package needs
25592         just struct random_data without also needing random_r?).
25593         * modules/stdlib (Depends-on): Remove stdint.
25594
25595         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25596         See the thread rooted at
25597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25598         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25599         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25600         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25601         __VMS)); previously it was always included (via fcntl--.h).
25602         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25603         hand; this is good enough for load averages.  Also, do not use
25604         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25605         flags directly if available and don't bother otherwise.  (Packages
25606         that need the extra reliability should use the modules that define
25607         these flags on older platforms that lack them.)
25608         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25609         fcntl-safer.
25610
25611 2011-02-08  Jim Meyering  <meyering@redhat.com>
25612
25613         di-set.h, ino-map.h: add multiple-inclusion guard
25614         Technically, the guard is required only for ino-map.h, due to its
25615         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25616         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25617         * lib/ino-map.h: Likewise.
25618
25619 2011-02-06  Bruno Haible  <bruno@clisp.org>
25620
25621         iswblank: Ensure declaration on glibc systems.
25622         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25623         * modules/iswblank (Dependencies): Add 'extensions'.
25624         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25625
25626 2011-02-06  Bruno Haible  <bruno@clisp.org>
25627
25628         New module 'iswblank'.
25629         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25630         * modules/iswblank: New file.
25631         * modules/wctype-h (Files): Remove lib/iswblank.c.
25632         (Makefile.am): Substitute GNULIB_ISWBLANK.
25633         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25634         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25635         (gl_WCTYPE_H_DEFAULTS): New macro.
25636         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25637         * modules/iswblank-tests: New file.
25638         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25639         * tests/test-wctype-h.c (main): Remove iswblank tests.
25640         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25641         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25642         of 'wctype-h'.
25643         * NEWS: Mention the change.
25644         * modules/mbchar (Depends-on): Add iswblank.
25645
25646 2011-02-08  Bruno Haible  <bruno@clisp.org>
25647
25648         di-set tests: Refactor.
25649         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25650         unnecessary includes.
25651         (ASSERT): Remove macro.
25652         (main): Make C90 compliant by avoiding variable declaration after
25653         statement.
25654         * modules/di-set-tests (Files): Add tests/macros.h.
25655
25656 2011-02-08  Bruno Haible  <bruno@clisp.org>
25657
25658         ino-map tests: Refactor.
25659         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25660         unnecessary includes.
25661         (ASSERT): Remove macro.
25662         (main): Make C90 compliant by avoiding variable declaration after
25663         statement.
25664         * modules/ino-map-tests (Files): Add tests/macros.h.
25665
25666 2011-02-08  Jim Meyering  <meyering@redhat.com>
25667
25668         di-set: add "const" to a cast
25669         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25670         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25671
25672 2011-02-06  Bruno Haible  <bruno@clisp.org>
25673
25674         Rename module 'wctype' to 'wctype-h'.
25675         * modules/wctype-h: Renamed from modules/wctype.
25676         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25677         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25678         (Files, Depends-on, Makefile.am): Update.
25679         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25680         (Files, Makefile.am): Update.
25681         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25682         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25683         * doc/posix-headers/wctype.texi: Update.
25684         * doc/posix-functions/iswalnum.texi: Update.
25685         * doc/posix-functions/iswalpha.texi: Update.
25686         * doc/posix-functions/iswblank.texi: Update.
25687         * doc/posix-functions/iswcntrl.texi: Update.
25688         * doc/posix-functions/iswdigit.texi: Update.
25689         * doc/posix-functions/iswgraph.texi: Update.
25690         * doc/posix-functions/iswlower.texi: Update.
25691         * doc/posix-functions/iswprint.texi: Update.
25692         * doc/posix-functions/iswpunct.texi: Update.
25693         * doc/posix-functions/iswspace.texi: Update.
25694         * doc/posix-functions/iswupper.texi: Update.
25695         * doc/posix-functions/iswxdigit.texi: Update.
25696         * doc/posix-functions/towlower.texi: Update.
25697         * doc/posix-functions/towupper.texi: Update.
25698         * NEWS: Mention the change.
25699         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25700         * modules/mbchar (Dependencies): Likewise.
25701         * modules/mbswidth (Dependencies): Likewise.
25702         * modules/quotearg (Dependencies): Likewise.
25703         * modules/regex (Dependencies): Likewise.
25704         * modules/wcscasecmp (Dependencies): Likewise.
25705         * modules/wcsncasecmp (Dependencies): Likewise.
25706         * modules/wcwidth (Dependencies): Likewise.
25707
25708 2011-02-06  Bruno Haible  <bruno@clisp.org>
25709
25710         New module 'wcswidth'.
25711         * modules/wcswidth: New file.
25712         * lib/wchar.in.h (wcswidth): New declaration.
25713         * lib/wcswidth.c: New file.
25714         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25715         * m4/wcswidth.m4: New file.
25716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25718         REPLACE_WCSWIDTH.
25719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25720         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25721         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25722         * doc/posix-functions/wcswidth.texi: Mention the new module.
25723
25724 2011-02-06  Bruno Haible  <bruno@clisp.org>
25725
25726         New module 'wcstok'.
25727         * modules/wcstok: New file.
25728         * lib/wchar.in.h (wcstok): New declaration.
25729         * lib/wcstok.c: New file.
25730         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25731         * m4/wcstok.m4: New file.
25732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25734         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25735         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25736         * doc/posix-functions/wcstok.texi: Mention the new module.
25737
25738 2011-02-06  Bruno Haible  <bruno@clisp.org>
25739
25740         New module 'wcsstr'.
25741         * modules/wcsstr: New file.
25742         * lib/wchar.in.h (wcsstr): New declaration.
25743         * lib/wcsstr.c: New file.
25744         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25745         * m4/wcsstr.m4: New file.
25746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25748         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25749         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25750         * doc/posix-functions/wcsstr.texi: Mention the new module.
25751
25752 2011-02-06  Bruno Haible  <bruno@clisp.org>
25753
25754         New module 'wcspbrk'.
25755         * modules/wcspbrk: New file.
25756         * lib/wchar.in.h (wcspbrk): New declaration.
25757         * lib/wcspbrk.c: New file.
25758         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25759         * m4/wcspbrk.m4: New file.
25760         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25761         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25762         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25763         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25764         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25765
25766 2011-02-06  Bruno Haible  <bruno@clisp.org>
25767
25768         New module 'wcsspn'.
25769         * modules/wcsspn: New file.
25770         * lib/wchar.in.h (wcsspn): New declaration.
25771         * lib/wcsspn.c: New file.
25772         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25773         * m4/wcsspn.m4: New file.
25774         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25775         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25776         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25777         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25778         * doc/posix-functions/wcsspn.texi: Mention the new module.
25779
25780 2011-02-06  Bruno Haible  <bruno@clisp.org>
25781
25782         New module 'wcscspn'.
25783         * modules/wcscspn: New file.
25784         * lib/wchar.in.h (wcscspn): New declaration.
25785         * lib/wcscspn.c: New file.
25786         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25787         * m4/wcscspn.m4: New file.
25788         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25789         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25790         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25791         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25792         * doc/posix-functions/wcscspn.texi: Mention the new module.
25793
25794 2011-02-06  Bruno Haible  <bruno@clisp.org>
25795
25796         New module 'wcsrchr'.
25797         * modules/wcsrchr: New file.
25798         * lib/wchar.in.h (wcsrchr): New declaration.
25799         * lib/wcsrchr.c: New file.
25800         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25801         * m4/wcsrchr.m4: New file.
25802         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25803         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25804         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25805         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25806         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25807
25808 2011-02-06  Bruno Haible  <bruno@clisp.org>
25809
25810         New module 'wcschr'.
25811         * modules/wcschr: New file.
25812         * lib/wchar.in.h (wcschr): New declaration.
25813         * lib/wcschr.c: New file.
25814         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25815         * m4/wcschr.m4: New file.
25816         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25817         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25818         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25819         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25820         * doc/posix-functions/wcschr.texi: Mention the new module.
25821
25822 2011-02-06  Bruno Haible  <bruno@clisp.org>
25823
25824         New module 'wcsdup'.
25825         * modules/wcsdup: New file.
25826         * lib/wchar.in.h (wcsdup): New declaration.
25827         * lib/wcsdup.c: New file.
25828         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25829         * m4/wcsdup.m4: New file.
25830         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25831         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25832         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25833         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25834         * doc/posix-functions/wcsdup.texi: Mention the new module.
25835
25836 2011-02-06  Bruno Haible  <bruno@clisp.org>
25837
25838         New module 'wcsxfrm'.
25839         * modules/wcsxfrm: New file.
25840         * lib/wchar.in.h (wcsxfrm): New declaration.
25841         * lib/wcsxfrm.c: New file.
25842         * lib/wcsxfrm-impl.h: New file.
25843         * m4/wcsxfrm.m4: New file.
25844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25847         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25848         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25849
25850 2011-02-06  Bruno Haible  <bruno@clisp.org>
25851
25852         New module 'wcscoll'.
25853         * modules/wcscoll: New file.
25854         * lib/wchar.in.h (wcscoll): New declaration.
25855         * lib/wcscoll.c: New file.
25856         * lib/wcscoll-impl.h: New file.
25857         * m4/wcscoll.m4: New file.
25858         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25859         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25860         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25861         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25862         * doc/posix-functions/wcscoll.texi: Mention the new module.
25863
25864 2011-02-06  Bruno Haible  <bruno@clisp.org>
25865
25866         New module 'wcsncasecmp'.
25867         * modules/wcsncasecmp: New file.
25868         * lib/wchar.in.h (wcsncasecmp): New declaration.
25869         * lib/wcsncasecmp.c: New file.
25870         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25871         * m4/wcsncasecmp.m4: New file.
25872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25875         HAVE_WCSNCASECMP.
25876         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25877         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25878
25879 2011-02-06  Bruno Haible  <bruno@clisp.org>
25880
25881         New module 'wcscasecmp'.
25882         * modules/wcscasecmp: New file.
25883         * lib/wchar.in.h (wcscasecmp): New declaration.
25884         * lib/wcscasecmp.c: New file.
25885         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25886         * m4/wcscasecmp.m4: New file.
25887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25890         HAVE_WCSCASECMP.
25891         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25892         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25893
25894 2011-02-05  Bruno Haible  <bruno@clisp.org>
25895
25896         New module 'wcsncmp'.
25897         * modules/wcsncmp: New file.
25898         * lib/wchar.in.h (wcsncmp): New declaration.
25899         * lib/wcsncmp.c: New file.
25900         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25901         * m4/wcsncmp.m4: New file.
25902         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25903         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25904         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25905         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25906         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25907
25908 2011-02-05  Bruno Haible  <bruno@clisp.org>
25909
25910         New module 'wcscmp'.
25911         * modules/wcscmp: New file.
25912         * lib/wchar.in.h (wcscmp): New declaration.
25913         * lib/wcscmp.c: New file.
25914         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25915         * m4/wcscmp.m4: New file.
25916         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25917         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25918         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25919         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25920         * doc/posix-functions/wcscmp.texi: Mention the new module.
25921
25922 2011-02-05  Bruno Haible  <bruno@clisp.org>
25923
25924         New module 'wcsncat'.
25925         * modules/wcsncat: New file.
25926         * lib/wchar.in.h (wcsncat): New declaration.
25927         * lib/wcsncat.c: New file.
25928         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25929         * m4/wcsncat.m4: New file.
25930         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25931         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25932         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25933         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25934         * doc/posix-functions/wcsncat.texi: Mention the new module.
25935
25936 2011-02-05  Bruno Haible  <bruno@clisp.org>
25937
25938         New module 'wcscat'.
25939         * modules/wcscat: New file.
25940         * lib/wchar.in.h (wcscat): New declaration.
25941         * lib/wcscat.c: New file.
25942         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25943         * m4/wcscat.m4: New file.
25944         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25945         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25946         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25947         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25948         * doc/posix-functions/wcscat.texi: Mention the new module.
25949
25950 2011-02-05  Bruno Haible  <bruno@clisp.org>
25951
25952         New module 'wcpncpy'.
25953         * modules/wcpncpy: New file.
25954         * lib/wchar.in.h (wcpncpy): New declaration.
25955         * lib/wcpncpy.c: New file.
25956         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25957         * m4/wcpncpy.m4: New file.
25958         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25959         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25960         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25961         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25962         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25963
25964 2011-02-05  Bruno Haible  <bruno@clisp.org>
25965
25966         New module 'wcsncpy'.
25967         * modules/wcsncpy: New file.
25968         * lib/wchar.in.h (wcsncpy): New declaration.
25969         * lib/wcsncpy.c: New file.
25970         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25971         * m4/wcsncpy.m4: New file.
25972         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25973         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25974         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25975         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25976         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25977
25978 2011-02-05  Bruno Haible  <bruno@clisp.org>
25979
25980         New module 'wcpcpy'.
25981         * modules/wcpcpy: New file.
25982         * lib/wchar.in.h (wcpcpy): New declaration.
25983         * lib/wcpcpy.c: New file.
25984         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25985         * m4/wcpcpy.m4: New file.
25986         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25987         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25988         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25989         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25990         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25991
25992 2011-02-05  Bruno Haible  <bruno@clisp.org>
25993
25994         New module 'wcscpy'.
25995         * modules/wcscpy: New file.
25996         * lib/wchar.in.h (wcscpy): New declaration.
25997         * lib/wcscpy.c: New file.
25998         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25999         * m4/wcscpy.m4: New file.
26000         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
26001         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
26002         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
26003         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
26004         * doc/posix-functions/wcscpy.texi: Mention the new module.
26005
26006 2011-02-05  Bruno Haible  <bruno@clisp.org>
26007
26008         New module 'wcsnlen'.
26009         * modules/wcsnlen: New file.
26010         * lib/wchar.in.h (wcsnlen): New declaration.
26011         * lib/wcsnlen.c: New file.
26012         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
26013         * m4/wcsnlen.m4: New file.
26014         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
26015         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
26016         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
26017         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
26018         * doc/posix-functions/wcsnlen.texi: Mention the new module.
26019
26020 2011-02-05  Bruno Haible  <bruno@clisp.org>
26021
26022         New module 'wcslen'.
26023         * modules/wcslen: New file.
26024         * lib/wchar.in.h (wcslen): New declaration.
26025         * lib/wcslen.c: New file.
26026         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
26027         * m4/wcslen.m4: New file.
26028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
26029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
26030         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
26031         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
26032         * doc/posix-functions/wcslen.texi: Mention the new module.
26033
26034 2011-02-05  Bruno Haible  <bruno@clisp.org>
26035
26036         New module 'wmemset'.
26037         * modules/wmemset: New file.
26038         * lib/wchar.in.h (wmemset): New declaration.
26039         * lib/wmemset.c: New file.
26040         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
26041         * m4/wmemset.m4: New file.
26042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
26043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
26044         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
26045         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
26046         * doc/posix-functions/wmemset.texi: Mention the new module.
26047
26048 2011-02-05  Bruno Haible  <bruno@clisp.org>
26049
26050         New module 'wmemmove'.
26051         * modules/wmemmove: New file.
26052         * lib/wchar.in.h (wmemmove): New declaration.
26053         * lib/wmemmove.c: New file.
26054         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
26055         * m4/wmemmove.m4: New file.
26056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
26057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
26058         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
26059         HAVE_WMEMMOVE.
26060         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
26061         * doc/posix-functions/wmemmove.texi: Mention the new module.
26062
26063 2011-02-05  Bruno Haible  <bruno@clisp.org>
26064
26065         New module 'wmemcpy'.
26066         * modules/wmemcpy: New file.
26067         * lib/wchar.in.h (wmemcpy): New declaration.
26068         * lib/wmemcpy.c: New file.
26069         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
26070         * m4/wmemcpy.m4: New file.
26071         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
26072         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
26073         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
26074         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
26075         * doc/posix-functions/wmemcpy.texi: Mention the new module.
26076
26077 2011-02-05  Bruno Haible  <bruno@clisp.org>
26078
26079         New module 'wmemcmp'.
26080         * modules/wmemcmp: New file.
26081         * lib/wchar.in.h (wmemcmp): New declaration.
26082         * lib/wmemcmp.c: New file.
26083         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
26084         * m4/wmemcmp.m4: New file.
26085         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
26086         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
26087         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
26088         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
26089         * doc/posix-functions/wmemcmp.texi: Mention the new module.
26090
26091 2011-02-07  Jim Meyering  <meyering@redhat.com>
26092
26093         di-set, ino-map: new modules, from coreutils
26094         * lib/di-set.c: New file.
26095         * lib/di-set.h: Likewise.
26096         * lib/ino-map.c: Likewise.
26097         * lib/ino-map.h: Likewise.
26098         * modules/di-set: Likewise.
26099         * modules/di-set-tests: Likewise.
26100         * modules/ino-map: Likewise.
26101         * modules/ino-map-tests: Likewise.
26102         * tests/test-di-set.c: Likewise.
26103         * tests/test-ino-map.c: Likewise.
26104
26105 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
26106
26107         getloadavg: merge minor changes from Emacs
26108
26109         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
26110         (getloadavg): Use memset, not bzero.
26111
26112         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
26113         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
26114         clash (bug#86).
26115
26116 2010-11-14  Bruno Haible  <bruno@clisp.org>
26117
26118         Allow multiple gnulib generated replacements to coexist.
26119         * lib/getopt.in.h (struct option): Avoid identical redefinition.
26120         * lib/inttypes.in.h (imaxdiv_t): Likewise.
26121         * lib/langinfo.in.h (nl_item): Likewise.
26122         * lib/math.in.h (_NaN, NAN): Likewise.
26123         * lib/netdb.in.h (struct addrinfo): Likewise.
26124         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
26125         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
26126         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
26127         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
26128         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
26129         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
26130         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
26131         pthread_mutexattr_init, pthread_mutexattr_settype,
26132         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
26133         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
26134         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
26135         pthread_spin_trylock, pthread_spin_unlock): Likewise.
26136         * lib/sched.in.h (struct sched_param): Likewise.
26137         * lib/se-selinux.in.h (security_class_t, security_context_t,
26138         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
26139         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
26140         lsetfilecon, fsetfilecon, security_check_context,
26141         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
26142         Likewise.
26143         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
26144         Likewise.
26145         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26146         _gl_function_taking_int_returning_void_t, union sigval,
26147         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26148         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26149         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26150         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26151         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26152         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26153         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26154         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26155         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26156         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26157         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26158         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26159         socklen_t, rpl_fd_isset): Likewise.
26160         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26161         * lib/sys_time.in.h (struct timeval): Likewise.
26162         * lib/sys_times.in.h (struct tms): Likewise.
26163         * lib/sys_utsname.in.h (struct utsname):
26164         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26165         * lib/unistd.in.h (getpagesize): Likewise.
26166         * lib/wchar.in.h (mbstate_t): Likewise.
26167         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26168         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26169         towlower, towupper): Likewise.
26170         Reported by Sam Steingold <sds@gnu.org>.
26171
26172 2011-02-05  Eric Blake  <eblake@redhat.com>
26173
26174         unsetenv: work around Haiku issues
26175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26176         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26177
26178 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26179
26180         libposix: avoid calling error() within libposix
26181         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26182         is defined.
26183
26184 2011-02-05  Eric Blake  <eblake@redhat.com>
26185
26186         strerror_r-posix: port to cygwin
26187         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26188         implementation.
26189         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26190         * tests/test-strerror_r.c (main): Fix test.
26191         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26192         issue.
26193
26194 2011-02-05  Bruno Haible  <bruno@clisp.org>
26195
26196         New module 'wmemchr'.
26197         * modules/wmemchr: New file.
26198         * lib/wchar.in.h (wmemchr): New declaration.
26199         * lib/wmemchr.c: New file.
26200         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26201         * m4/wmemchr.m4: New file.
26202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26204         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26205         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26206         * doc/posix-functions/wmemchr.texi: Mention the new module.
26207
26208 2011-02-04  Eric Blake  <eblake@redhat.com>
26209
26210         fdopendir: detect FreeBSD bug
26211         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26212         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26213
26214 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26215
26216         stdbool: do not define HAVE_STDBOOL_H
26217         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26218         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26219         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26220         imported from the latest Autoconf git.  It was motivated by Emacs,
26221         which uses gnulib but does not need HAVE_STDBOOL_H.
26222
26223 2011-02-04  Bruno Haible  <bruno@clisp.org>
26224
26225         wcsnrtombs: Prepare for new module wwcsnrtombs.
26226         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26227         * lib/wcsnrtombs.c: Include it.
26228         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26229
26230         wcsrtombs: Prepare for new module wwcsrtombs.
26231         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26232         * lib/wcsrtombs.c: Include it.
26233         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26234
26235         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26236         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26237         * lib/mbsnrtowcs.c: Include it.
26238         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26239
26240         mbsrtowcs: Prepare for new module mbsrtowwcs.
26241         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26242         * lib/mbsrtowcs.c: Include it.
26243         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26244
26245 2011-02-04  Bruno Haible  <bruno@clisp.org>
26246
26247         vasnprintf: Reduce use of malloc for small format strings.
26248         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26249         (arguments): Add room for the first 7 arguments.
26250         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26251         (char_directives, u8_directives, u16_directives, u32_directives): Add
26252         room for the first 7 directives.
26253         * lib/printf-parse.c: Include <string.h>.
26254         (PRINTF_PARSE): Change memory handling code so that it uses the first
26255         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26256         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26257         Reported by Pádraig Brady <P@draigbrady.com>.
26258
26259 2011-01-31  Eric Blake  <eblake@redhat.com>
26260
26261         dup2: work around Haiku bug
26262         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26263         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26264         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26265         * tests/test-dup2.c (main): Enhance test.
26266
26267 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26268
26269         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26270         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26271         declared by eglibc 2.11.2.
26272         * lib/stdio.in.h: Likewise.
26273
26274 2011-01-31  Eric Blake  <eblake@redhat.com>
26275
26276         ignore-value: add missing test dependency
26277         * tests/test-ignore-value.c: Revert previous change; stdio.h
26278         provides off_t.
26279         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26280
26281 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26282
26283         mktime: clarify long_int width checking
26284         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26285         the top level, to make it clearer that the assumption about
26286         long_int width is being checked.  See
26287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26288
26289 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26290
26291         ignore-value: Fix self-test.
26292         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26293
26294 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26295
26296         TYPE_MAXIMUM: avoid theoretically undefined behavior
26297         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26298         negative number, which the C Standard says has undefined behavior.
26299         In practice this is not a problem, but might as well do it by the book.
26300         Reported by Rich Felker and Eric Blake; see
26301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26302         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26303         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26304         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26305         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26306         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26307         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26308
26309         mktime: #undef mktime before #defining it
26310         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26311
26312         mktime: systematically normalize tm_isdst comparisons
26313         * lib/mktime.c (isdst_differ): New function.
26314         (__mktime_internal): Use it systematically for all isdst comparisons.
26315         This completes the fix for libc BZ #6723, and removes the need for
26316         normalizing tm_isdst.  See
26317         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26318         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26319
26320         mktime: fix some integer overflow issues and sidestep the rest
26321
26322         This was prompted by a bug report by Benjamin Lindner for MinGW
26323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26324         His bug is due to signed integer overflow (0 - INT_MIN), and I
26325         I scanned through mktime.c looking for other integer overflow
26326         problems, fixing all the bugs I found.
26327
26328         Although the C Standard says the resulting code is still not safe
26329         in the presence of integer overflow, in practice it should be good
26330         enough for all real-world two's-complement implementations, except
26331         for debugging environments that deliberately trap on integer
26332         overflow (e.g., gcc -ftrapv).
26333
26334         * lib/mktime.c (WRAPV): New macro.
26335         (SHR): Also check that long_int and time_t shift right in the
26336         usual way, before using the fast-but-unportable method.
26337         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26338         used.  The code already assumed two's complement, so there's
26339         no need to test for alternatives.  All uses removed.
26340         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26341         the C standard.  Problem reported by Rich Felker in
26342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26343         (twos_complement_arithmetic): Also check long_int and time_t.
26344         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26345         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26346         (__mktime_internal): Avoid integer overflow with unary subtraction
26347         in two instances where -1 - X is an adequate replacement for -X,
26348         since the calculations are approximate.
26349
26350 2011-01-29  Eric Blake  <eblake@redhat.com>
26351
26352         mktime: avoid infinite loop
26353         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26354         type; behavior is still undefined but portable to all known targets.
26355         Reported by Rich Felker.
26356
26357 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26358
26359         rename, unlink, same-inode: Relicense.
26360         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26361         * modules/unlink (License): Likewise.
26362         * modules/same-inode (License): Likewise.
26363
26364 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26365
26366         mktime: avoid problems on NetBSD 5 / i386
26367         * lib/mktime.c (long_int): New type.  This works around a problem
26368         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26369         but time_t is 64 bits, and where I expect the existing code is
26370         wrong in some cases.
26371         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26372         (ydhms_diff): Bring back the compile-time check for wide-enough
26373         year and yday.
26374
26375         mktime: fix misspelling in comment
26376         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26377         This merges all recent glibc changes of importance.
26378
26379 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26380
26381         move-if-change: cope with concurrent mv of identical file.
26382         * build-aux/move-if-change (CMPPROG): Accept environment
26383         variable as an override for `cmp'.
26384         (usage): Document CMPPROG.
26385         Adjust comparison to drop stdout.  Cope with failure of mv if
26386         the target file exists and is identical to the source, for
26387         parallel builds.
26388         Report from H.J. Lu against binutils in PR binutils/12283.
26389
26390 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26391
26392         * users.txt: Mention sharutils.
26393
26394 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26395
26396         * users.txt: Mention OATH Toolkit.
26397
26398 2011-01-27  Bruno Haible  <bruno@clisp.org>
26399
26400         Prepare for supporting FreeBSD 10.
26401         * build-aux/config.libpath: Remove handling of freebsd1*.
26402
26403 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26404
26405         Prepare for supporting FreeBSD 10.
26406         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26407         match FreeBSD 10.0.
26408
26409 2011-01-27  Bruno Haible  <bruno@clisp.org>
26410
26411         vma-iter, get-rusage-as: Add OpenBSD support.
26412         * modules/vma-iter (configure.ac): Test for mquery.
26413         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26414         * lib/vma-iter.c: Include <sys/mman.h>.
26415         (vma_iterate): Add an implementation based on mquery().
26416         * lib/resource-ext.h (get_rusage_as): Update comments.
26417         * lib/get-rusage-as.c: Likewise.
26418         * lib/get-rusage-data.c: Likewise.
26419
26420 2011-01-26  Karl Berry  <karl@gnu.org>
26421
26422         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26423         variables to make it easier to override the makeinfo program used.
26424
26425 2011-01-26  Eric Blake  <eblake@redhat.com>
26426
26427         fcntl: work around Haiku F_DUPFD bugs
26428         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26429         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26430         cloexec bit on duplication.
26431         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26432
26433 2011-01-26  Bruno Haible  <bruno@clisp.org>
26434
26435         Enable memory leak tests on AIX.
26436         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26437         * tests/test-fprintf-posix3.c (main): Likewise.
26438
26439 2011-01-26  Bruno Haible  <bruno@clisp.org>
26440
26441         Tests for module 'get-rusage-data'.
26442         * modules/get-rusage-data-tests: New file.
26443         * tests/test-get-rusage-data.c: New file.
26444
26445         New module 'get-rusage-data'.
26446         * lib/resource-ext.h (get_rusage_data): New declaration.
26447         * lib/get-rusage-data.c: New file.
26448         * modules/get-rusage-data: New file.
26449
26450 2011-01-25  Bruno Haible  <bruno@clisp.org>
26451
26452         get-rusage-as: Allow for easier testing.
26453         * lib/resource-ext.h (get_rusage_as): Add comment.
26454         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26455         (main): New function for interactive testing.
26456
26457 2011-01-25  Bruno Haible  <bruno@clisp.org>
26458
26459         vma-iter: Treat Haiku like BeOS.
26460         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26461         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26462
26463 2011-01-25  Eric Blake  <eblake@redhat.com>
26464
26465         c-stack: fix regression on cygwin when libsigsegv is present
26466         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26467
26468 2011-01-24  Bruno Haible  <bruno@clisp.org>
26469
26470         vma-iter: Avoid empty intervals.
26471         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26472         on an empty interval.
26473
26474 2011-01-24  Jim Meyering  <meyering@redhat.com>
26475
26476         u64: remove unnecessary #include
26477         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26478
26479 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26480
26481         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26482         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26483
26484 2011-01-23  Bruno Haible  <bruno@clisp.org>
26485
26486         New module 'vma-iter'.
26487         * lib/vma-iter.h: New file.
26488         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26489         * modules/vma-iter: New file.
26490         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26491         for get_rusage_as_via_iterator.
26492         (vma_iterate_callback): New function.
26493         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26494         * modules/get-rusage-as (Depends-on): Add vma-iter.
26495
26496 2011-01-23  Bruno Haible  <bruno@clisp.org>
26497
26498         uninorm: Tweak includes.
26499         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26500         Reported by Jim Meyering.
26501
26502 2011-01-23  Bruno Haible  <bruno@clisp.org>
26503
26504         get-rusage-as: Improve on NetBSD.
26505         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26506         /proc, like on FreeBSD.
26507
26508 2011-01-23  Jim Meyering  <meyering@redhat.com>
26509
26510         xreadlink.h: remove unnecessary #include
26511         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26512
26513         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26514         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26515
26516 2011-01-23  Bruno Haible  <bruno@clisp.org>
26517
26518         get-rusage-as: Fix bug.
26519         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26520         original limit when aborting the first loop.
26521
26522 2011-01-23  Bruno Haible  <bruno@clisp.org>
26523
26524         wctype: Ensure valid C syntax.
26525         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26526         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26527
26528 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26529
26530         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26531         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26532         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26533         as they are needed only for configure's test case.
26534         This removes two unnecessary symbols from config.h.
26535
26536         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26537         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26538         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26539         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26540         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26541         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26542         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26543         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26544         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26545         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26546         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26547         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26548         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26549         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26550         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26551         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26552         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26553         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26554
26555 2011-01-21  Eric Blake  <eblake@redhat.com>
26556
26557         maintainer-makefile: work with older git for submodule check
26558         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26559         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26560         Reported by Matthias Bolte.
26561
26562         bootstrap: minor portability fixes
26563         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26564         (usage): Omit leading capital and trailing . on help phrases, per
26565         GNU Coding Standards.
26566         (check_versions, top level): Prefix messages with script name.
26567
26568 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26569
26570         bootstrap: support --no-git option
26571         * build-aux/bootstrap: Add --no-git option, to be used when
26572         --gnulib-srcdir points to the exact desired checkout.
26573
26574 2011-01-21  Eric Blake  <eblake@redhat.com>
26575
26576         strerror_r-posix: work with glibc 2.13
26577         * lib/strerror_r.c (strerror_r): Fix return type.
26578
26579 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26580             Bruno Haible  <bruno@clisp.org>
26581
26582         uN_strstr: New unit tests.
26583         * modules/unistr/u8-strstr-tests: New file.
26584         * modules/unistr/u16-strstr-tests: New file.
26585         * modules/unistr/u32-strstr-tests: New file.
26586         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26587         * tests/unistr/test-u8-strstr.c: New file.
26588         * tests/unistr/test-u16-strstr.c: New file.
26589         * tests/unistr/test-u32-strstr.c: New file.
26590
26591 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26592             Bruno Haible  <bruno@clisp.org>
26593
26594         Make uN_strstr functions O(n) worst-case.
26595         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26596         16-bit and 32-bit unit cases, use the unibyte algorithm from
26597         lib/mbsstr.c.
26598         * lib/unistr/u8-strstr.c: Include <string.h>.
26599         (UNIT_IS_UINT8_T): New macro.
26600         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26601         (U_STRLEN, U_STRNLEN): New macros.
26602         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26603         (U_STRLEN, U_STRNLEN): New macros.
26604         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26605         (configure.ac): Update required libunistring version.
26606         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26607         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26608         malloca.
26609         (configure.ac): Update required libunistring version.
26610         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26611         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26612         malloca.
26613         (configure.ac): Update required libunistring version.
26614
26615 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26616             Bruno Haible  <bruno@clisp.org>
26617
26618         Prepare for faster uN_strstr functions.
26619         * lib/str-kmp.h: Support definable UNITs.
26620         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26621         needle_len argument.
26622         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26623         * lib/mbscasestr.c (mbscasestr): Likewise.
26624
26625 2011-01-21  Pádraig Brady <P@draigBrady.com>
26626
26627         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26628         * tests/test-malloca.c (main): Unset the environment variable
26629         to greatly speed up the test.
26630         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26631         * modules/malloca-tests: Depend on unsetenv.
26632
26633 2011-01-21  Pádraig Brady <P@draigBrady.com>
26634
26635         ignore-value: remove stdint dependency
26636         * lib/ignore-value.h: Remove <stdint.h>
26637         * modules/ignore-value: Remove stdint dependency.
26638
26639 2011-01-21  Jim Meyering  <meyering@redhat.com>
26640
26641         maint.mk: adjust variable name to be consistent with other gl_ vars
26642         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26643         to be lower case.
26644
26645 2011-01-20  Jim Meyering  <meyering@redhat.com>
26646
26647         maint.mk: make "check" depend on public-submodule-commit by default
26648         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26649
26650 2011-01-20  Bruno Haible  <bruno@clisp.org>
26651
26652         mbfile, mbiter: Complete change from 2008-12-21.
26653         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26654         * m4/mbiter.m4 (gl_MBITER): Likewise.
26655
26656 2011-01-20  Jim Meyering  <meyering@redhat.com>
26657
26658         init.sh: insert space between each function name and "()"
26659         * tests/init.sh: Make it a little easier to see that a function's
26660         name is "warn_", and not "warn" when looking at the first part of
26661         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26662
26663 2011-01-20  Jim Meyering  <meyering@redhat.com>
26664
26665         mountlist: clean up code formatting
26666         * lib/mountlist.c (read_file_system_list): Split a long line,
26667         correct bracing style, use NULL in place of "(struct statfs *)0",
26668         don't parenthesize return value, add spaces around "=" and after
26669         ";-in-for-stmt".
26670
26671 2011-01-14  Markus Duft <mduft@gentoo.org>
26672
26673         mountlist: add support for Interix
26674         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26675         Apply statvfs to all entries of /dev/fs.
26676         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26677         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26678
26679 2011-01-20  Jim Meyering  <meyering@redhat.com>
26680
26681         maint.mk: improve the public-submodule-commit rule
26682         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26683         to suppress printing of its commands... unless V=1.
26684         Add git submodule's --quiet option to suppress printing of e.g.,
26685         "Entering gnulib" output.
26686         "cd" into $(srcdir) before running git submodule.
26687
26688 2011-01-20  Bruno Haible  <bruno@clisp.org>
26689
26690         include_next: Fix bug introduced on 2011-01-18.
26691         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26692         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26693         ac_cv_header_... variable if the second argument is not 'check'.
26694         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26695         gl_NEXT_HEADERS_INTERNAL.
26696
26697 2011-01-20  Bruno Haible  <bruno@clisp.org>
26698
26699         Allow the user to avoid the GNULIB_TEST_* macros.
26700         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26701         Suggested by Paul Eggert.
26702
26703 2011-01-14  Jim Meyering  <meyering@redhat.com>
26704
26705         bootstrap: avoid failure when there is no .gitmodules file
26706         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26707         has been assigned to, even when its value is the empty string.
26708         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26709         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26710         Reported by John W. Eaton <jwe@gnu.org>.
26711
26712 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26713
26714         assume <ctype.h>, ..., <time.h> exist
26715         For years gnulib has been assuming the existence of the headers
26716         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26717         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26718         them, since they don't appear to be needed.
26719         * README (Portability guidelines): Document this.
26720         * lib/flock.c: Assume <fcntl.h> exists.
26721         * lib/regex_internal.h: Assume <locale.h> exists.
26722         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26723         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26724         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26725         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26726         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26727         * m4/regex.m4 (gl_REGEX): Likewise.
26728         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26729         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26730         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26731         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26732         * tests/test-argp.c: Likewise.
26733         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26734
26735         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26736         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26737         AA_APPLE_UNIVERSAL_BUILD.  See
26738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26739         * NEWS: Document this.
26740
26741 2011-01-19  Eric Blake  <eblake@redhat.com>
26742
26743         c-stack: assume stack overflow if SA_SIGINFO unsupported
26744         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26745         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26746         sigaction will work.
26747         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26748         behavior match Linux.
26749         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26750
26751         stdbool-tests: accommodate Haiku
26752         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26753
26754         binary-io: fix O_TEXT on Haiku
26755         * modules/binary-io (Depends-on): Add fcntl-h.
26756         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26757         than blindly undefining O_TEXT.
26758         Reported by Scott McCreary.
26759
26760 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26761
26762         include_next: do not check for standard headers like stddef.h
26763
26764         I found this problem when modifying Emacs to use gnulib.
26765         I noticed that it added HAVE_STDDEF_H to config.h, even though
26766         gnulib always assumes <stddef.h> exists as per README and this
26767         symbol is unnecessary.
26768         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26769         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26770         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26771         faster for headers like stddef.h that are known to exist.
26772         (gl_CHECK_NEXT_HEADERS): Use it.
26773         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26774         rather than gl_CHECK_NEXT_HEADERS.
26775         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26776         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26777
26778 2011-01-18  Eric Blake  <eblake@redhat.com>
26779
26780         ansi-c++-opt: skip C++ dependency style if C++ is unused
26781         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26782         tests when we know C++ compilation is not desired.
26783         Reported by Scott McCreary.
26784
26785 2011-01-18  Bruno Haible  <bruno@clisp.org>
26786
26787         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26788         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26789         (main): Perform test also when getrlimit and setrlimit don't exist or
26790         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26791         limiting the address space size using setrlimit, compare the address
26792         space size before and after the the test.
26793         * tests/test-dprintf-posix2.c: Likewise.
26794         * tests/test-fprintf-posix3.sh: Update skip messages.
26795         * tests/test-dprintf-posix2.sh: Likewise.
26796         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26797         * modules/dprintf-posix-tests (Depends-on): Likewise.
26798         Reported by Bruce Korb <bkorb@gnu.org> and
26799         Gary V. Vaughan <gary@gnu.org>.
26800
26801 2011-01-18  Bruno Haible  <bruno@clisp.org>
26802
26803         get-rusage-as: Improvement for Cygwin.
26804         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26805         areas that are merely reserved.
26806
26807 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26808
26809         strftime: remove dependencies on multibyte modules
26810
26811         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26812         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26813         only if __osf__ is defined, and I suspect OSF doesn't need these
26814         other modules.  If my guess is wrong, we'll need to come up with a
26815         variant of strftime that doesn't need the multibyte modules.
26816
26817         I discovered this problem when attempting modify Emacs to use the
26818         strftime module.  With the previous gnulib, this caused Emacs to
26819         need 31 new files, ranging from lib/config.charset to
26820         m4/wint_t.m4.  This was overkill and I expect would be offputting
26821         to the Emacs maintainers.  After this change, only 6 new files are
26822         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26823         stdbool.m4, and tm_gmtoff.m4.
26824
26825         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26826         Suggested by Bruno Haible in
26827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26829         and do not check for wchar.h.
26830         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26831         (Depends-on): Remove mbrlen, mbsinit, wchar.
26832
26833 2011-01-18  Bruno Haible  <bruno@clisp.org>
26834
26835         Tests for module 'get-rusage-as'.
26836         * modules/get-rusage-as-tests: New file.
26837         * tests/test-get-rusage-as.c: New file.
26838
26839         New module 'get-rusage-as'.
26840         * modules/get-rusage-as: New file.
26841         * lib/resource-ext.h: New file.
26842         * lib/get-rusage-as.c: New file.
26843
26844 2011-01-17  Eric Blake  <eblake@redhat.com>
26845
26846         sigaction: relax license from LGPLv3+ to LGPLv2+
26847         * modules/sigaction (License): Relax to LGPLv2+.
26848
26849 2011-01-14  Bruno Haible  <bruno@clisp.org>
26850
26851         filemode: Make function declarations usable in C++ mode.
26852         * lib/filemode.h: Enclose function declarations in extern "C" block.
26853         Reported by John W. Eaton <jwe@gnu.org>.
26854
26855 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26856
26857         save-cwd: no longer include "xgetcwd.h"
26858         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26859         This avoids a compilation failure in projects that use save-cwd
26860         without also using the xgetcwd module.
26861
26862 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26863
26864         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26865         This is so that a program like Emacs, which needs only dtoastr,
26866         does not have to bother with distributing and compiling ftoastr
26867         and ldtoastr.
26868         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26869         * modules/dtoastr, modules/ldtoastr: New files.
26870         * modules/ftoastr: Now works just for 'float'.
26871         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26872         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26873         dtoastr.c, ldtoastr.c.
26874
26875 2011-01-11  Jim Meyering  <meyering@redhat.com>
26876
26877         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26878         There is no need to work around the lack of the fchdir function,
26879         since gnulib can now provide a replacement when required.
26880         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26881         * modules/save-cwd (Depends-on): Add fchdir.
26882
26883 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26884
26885         openat, save-cwd: avoid xmalloc
26886
26887         This removes a direct (but undocumented) dependency of openat on
26888         xalloc, along with an indirect dependency via save-cwd.  It also
26889         removes a dependency of save-cwd on xgetcwd, and thereby
26890         indirectly on xalloc.  This change causes the openat substitute
26891         to fall back on save_cwd when memory is tight, and for save_cwd to
26892         fail instead of dying when memory is tight, but that's good enough.
26893         Problem and initial idea for fix reported by Bastien Roucaries in
26894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26895
26896         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26897         xalloc.h (for xmalloc).
26898         (openat_proc_name): Use malloc, not xmalloc.
26899         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26900         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26901
26902         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26903         This avoids heap allocation for file names whose lengths are in
26904         the range 512..1023, with the upper bound increasing to at most
26905         4031 depending on the platform's PATH_MAX.  (We do not want
26906         pathmax.h here as it might supply a non-constant PATH_MAX.)
26907         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26908         Perhaps they should be moved to malloca.h?
26909         (OPENAT_BUFFER_SIZE): Use them.
26910
26911 2011-01-10  Bruno Haible  <bruno@clisp.org>
26912
26913         doc: Update users.txt.
26914         * users.txt: Add recutils.
26915
26916 2011-01-09  Karl Berry  <karl@gnu.org>
26917
26918         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26919
26920         * doc/configmake.texi: New file.
26921         * doc/gnulib.texi: Include it.
26922         * modules/configmake: Move documentation from here.
26923
26924 2011-01-09  Bruno Haible  <bruno@clisp.org>
26925
26926         Update to Unicode 6.0.0.
26927         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26928         (get_lbp): Update for Unicode 6.0.0.
26929         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26930         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26931         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26932         U+11001, U+11038..U+11046. Remove U+06DE.
26933         (uc_width): Fix bounds of planes.
26934         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26935         lib/uniwidth/width.c.
26936         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26937         trailing whitespace removed.
26938         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26939         without comments, but with the original copyright notice.
26940         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26941         * lib/unicase/ignorable.h: Likewise.
26942         * lib/unicase/tocasefold.h: Likewise.
26943         * lib/unicase/tolower.h: Likewise.
26944         * lib/unicase/totitle.h: Likewise.
26945         * lib/unicase/toupper.h: Likewise.
26946         * lib/unictype/bidi_of.h: Likewise.
26947         * lib/unictype/blocks.h: Likewise.
26948         * lib/unictype/categ_C.h: Likewise.
26949         * lib/unictype/categ_Cn.h: Likewise.
26950         * lib/unictype/categ_L.h: Likewise.
26951         * lib/unictype/categ_Ll.h: Likewise.
26952         * lib/unictype/categ_Lm.h: Likewise.
26953         * lib/unictype/categ_Lo.h: Likewise.
26954         * lib/unictype/categ_Lu.h: Likewise.
26955         * lib/unictype/categ_M.h: Likewise.
26956         * lib/unictype/categ_Mc.h: Likewise.
26957         * lib/unictype/categ_Me.h: Likewise.
26958         * lib/unictype/categ_Mn.h: Likewise.
26959         * lib/unictype/categ_N.h: Likewise.
26960         * lib/unictype/categ_Nd.h: Likewise.
26961         * lib/unictype/categ_No.h: Likewise.
26962         * lib/unictype/categ_P.h: Likewise.
26963         * lib/unictype/categ_Po.h: Likewise.
26964         * lib/unictype/categ_S.h: Likewise.
26965         * lib/unictype/categ_Sc.h: Likewise.
26966         * lib/unictype/categ_Sk.h: Likewise.
26967         * lib/unictype/categ_Sm.h: Likewise.
26968         * lib/unictype/categ_So.h: Likewise.
26969         * lib/unictype/categ_of.h: Likewise.
26970         * lib/unictype/combining.h: Likewise.
26971         * lib/unictype/ctype_alnum.h: Likewise.
26972         * lib/unictype/ctype_alpha.h: Likewise.
26973         * lib/unictype/ctype_graph.h: Likewise.
26974         * lib/unictype/ctype_lower.h: Likewise.
26975         * lib/unictype/ctype_print.h: Likewise.
26976         * lib/unictype/ctype_punct.h: Likewise.
26977         * lib/unictype/ctype_upper.h: Likewise.
26978         * lib/unictype/decdigit.h: Likewise.
26979         * lib/unictype/digit.h: Likewise.
26980         * lib/unictype/numeric.h: Likewise.
26981         * lib/unictype/pr_alphabetic.h: Likewise.
26982         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26983         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26984         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26985         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26986         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26987         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26988         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26989         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26990         * lib/unictype/pr_case_ignorable.h: Likewise.
26991         * lib/unictype/pr_cased.h: Likewise.
26992         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26993         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26994         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26995         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26996         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26997         * lib/unictype/pr_combining.h: Likewise.
26998         * lib/unictype/pr_composite.h: Likewise.
26999         * lib/unictype/pr_currency_symbol.h: Likewise.
27000         * lib/unictype/pr_decimal_digit.h: Likewise.
27001         * lib/unictype/pr_deprecated.h: Likewise.
27002         * lib/unictype/pr_format_control.h: Likewise.
27003         * lib/unictype/pr_grapheme_base.h: Likewise.
27004         * lib/unictype/pr_grapheme_extend.h: Likewise.
27005         * lib/unictype/pr_grapheme_link.h: Likewise.
27006         * lib/unictype/pr_id_continue.h: Likewise.
27007         * lib/unictype/pr_id_start.h: Likewise.
27008         * lib/unictype/pr_ideographic.h: Likewise.
27009         * lib/unictype/pr_lowercase.h: Likewise.
27010         * lib/unictype/pr_math.h: Likewise.
27011         * lib/unictype/pr_numeric.h: Likewise.
27012         * lib/unictype/pr_other_alphabetic.h: Likewise.
27013         * lib/unictype/pr_other_id_continue.h: Likewise.
27014         * lib/unictype/pr_other_math.h: Likewise.
27015         * lib/unictype/pr_punctuation.h: Likewise.
27016         * lib/unictype/pr_sentence_terminal.h: Likewise.
27017         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27018         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27019         * lib/unictype/pr_unified_ideograph.h: Likewise.
27020         * lib/unictype/pr_uppercase.h: Likewise.
27021         * lib/unictype/pr_xid_continue.h: Likewise.
27022         * lib/unictype/pr_xid_start.h: Likewise.
27023         * lib/unictype/scripts.h: Likewise.
27024         * lib/unictype/scripts_byname.gperf: Likewise.
27025         * lib/unictype/sy_java_ident.h: Likewise.
27026         * lib/unigbrk/gbrkprop.h: Likewise.
27027         * lib/unilbrk/lbrkprop1.h: Likewise.
27028         * lib/unilbrk/lbrkprop2.h: Likewise.
27029         * lib/uninorm/decomposition-table2.h: Likewise.
27030         * lib/uniwbrk/wbrkprop.h: Likewise.
27031         * tests/unicase/test-cased.c: Likewise.
27032         * tests/unicase/test-ignorable.c: Likewise.
27033         * tests/unicase/test-uc_tolower.c: Likewise.
27034         * tests/unicase/test-uc_totitle.c: Likewise.
27035         * tests/unicase/test-uc_toupper.c: Likewise.
27036         * tests/unictype/test-categ_C.c: Likewise.
27037         * tests/unictype/test-categ_Cn.c: Likewise.
27038         * tests/unictype/test-categ_L.c: Likewise.
27039         * tests/unictype/test-categ_Ll.c: Likewise.
27040         * tests/unictype/test-categ_Lm.c: Likewise.
27041         * tests/unictype/test-categ_Lo.c: Likewise.
27042         * tests/unictype/test-categ_Lu.c: Likewise.
27043         * tests/unictype/test-categ_M.c: Likewise.
27044         * tests/unictype/test-categ_Mc.c: Likewise.
27045         * tests/unictype/test-categ_Me.c: Likewise.
27046         * tests/unictype/test-categ_Mn.c: Likewise.
27047         * tests/unictype/test-categ_N.c: Likewise.
27048         * tests/unictype/test-categ_Nd.c: Likewise.
27049         * tests/unictype/test-categ_No.c: Likewise.
27050         * tests/unictype/test-categ_P.c: Likewise.
27051         * tests/unictype/test-categ_Po.c: Likewise.
27052         * tests/unictype/test-categ_S.c: Likewise.
27053         * tests/unictype/test-categ_Sc.c: Likewise.
27054         * tests/unictype/test-categ_Sk.c: Likewise.
27055         * tests/unictype/test-categ_Sm.c: Likewise.
27056         * tests/unictype/test-categ_So.c: Likewise.
27057         * tests/unictype/test-ctype_alnum.c: Likewise.
27058         * tests/unictype/test-ctype_alpha.c: Likewise.
27059         * tests/unictype/test-ctype_graph.c: Likewise.
27060         * tests/unictype/test-ctype_lower.c: Likewise.
27061         * tests/unictype/test-ctype_print.c: Likewise.
27062         * tests/unictype/test-ctype_punct.c: Likewise.
27063         * tests/unictype/test-ctype_upper.c: Likewise.
27064         * tests/unictype/test-decdigit.h: Likewise.
27065         * tests/unictype/test-digit.h: Likewise.
27066         * tests/unictype/test-numeric.h: Likewise.
27067         * tests/unictype/test-pr_alphabetic.c: Likewise.
27068         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27069         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27070         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27071         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27072         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27073         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27074         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27075         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27076         * tests/unictype/test-pr_case_ignorable.c: Likewise.
27077         * tests/unictype/test-pr_cased.c: Likewise.
27078         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
27079         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
27080         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
27081         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
27082         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
27083         * tests/unictype/test-pr_combining.c: Likewise.
27084         * tests/unictype/test-pr_composite.c: Likewise.
27085         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27086         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27087         * tests/unictype/test-pr_deprecated.c: Likewise.
27088         * tests/unictype/test-pr_format_control.c: Likewise.
27089         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27090         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27091         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27092         * tests/unictype/test-pr_id_continue.c: Likewise.
27093         * tests/unictype/test-pr_id_start.c: Likewise.
27094         * tests/unictype/test-pr_ideographic.c: Likewise.
27095         * tests/unictype/test-pr_lowercase.c: Likewise.
27096         * tests/unictype/test-pr_math.c: Likewise.
27097         * tests/unictype/test-pr_numeric.c: Likewise.
27098         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27099         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27100         * tests/unictype/test-pr_other_math.c: Likewise.
27101         * tests/unictype/test-pr_punctuation.c: Likewise.
27102         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27103         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27104         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27105         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27106         * tests/unictype/test-pr_uppercase.c: Likewise.
27107         * tests/unictype/test-pr_xid_continue.c: Likewise.
27108         * tests/unictype/test-pr_xid_start.c: Likewise.
27109         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27110         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27111         changes.
27112         * lib/unictype/categ_Cc.h: Likewise.
27113         * lib/unictype/categ_Cf.h: Likewise.
27114         * lib/unictype/categ_Co.h: Likewise.
27115         * lib/unictype/categ_Cs.h: Likewise.
27116         * lib/unictype/categ_Lt.h: Likewise.
27117         * lib/unictype/categ_Nl.h: Likewise.
27118         * lib/unictype/categ_Pc.h: Likewise.
27119         * lib/unictype/categ_Pd.h: Likewise.
27120         * lib/unictype/categ_Pe.h: Likewise.
27121         * lib/unictype/categ_Pf.h: Likewise.
27122         * lib/unictype/categ_Pi.h: Likewise.
27123         * lib/unictype/categ_Ps.h: Likewise.
27124         * lib/unictype/categ_Z.h: Likewise.
27125         * lib/unictype/categ_Zl.h: Likewise.
27126         * lib/unictype/categ_Zp.h: Likewise.
27127         * lib/unictype/categ_Zs.h: Likewise.
27128         * lib/unictype/ctype_blank.h: Likewise.
27129         * lib/unictype/ctype_cntrl.h: Likewise.
27130         * lib/unictype/ctype_digit.h: Likewise.
27131         * lib/unictype/ctype_space.h: Likewise.
27132         * lib/unictype/ctype_xdigit.h: Likewise.
27133         * lib/unictype/mirror.h: Likewise.
27134         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27135         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27136         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27137         * lib/unictype/pr_bidi_control.h: Likewise.
27138         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27139         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27140         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27141         * lib/unictype/pr_bidi_pdf.h: Likewise.
27142         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27143         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27144         * lib/unictype/pr_dash.h: Likewise.
27145         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27146         * lib/unictype/pr_diacritic.h: Likewise.
27147         * lib/unictype/pr_extender.h: Likewise.
27148         * lib/unictype/pr_hex_digit.h: Likewise.
27149         * lib/unictype/pr_hyphen.h: Likewise.
27150         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27151         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27152         * lib/unictype/pr_ignorable_control.h: Likewise.
27153         * lib/unictype/pr_iso_control.h: Likewise.
27154         * lib/unictype/pr_join_control.h: Likewise.
27155         * lib/unictype/pr_left_of_pair.h: Likewise.
27156         * lib/unictype/pr_line_separator.h: Likewise.
27157         * lib/unictype/pr_logical_order_exception.h: Likewise.
27158         * lib/unictype/pr_non_break.h: Likewise.
27159         * lib/unictype/pr_not_a_character.h: Likewise.
27160         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27161         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27162         * lib/unictype/pr_other_id_start.h: Likewise.
27163         * lib/unictype/pr_other_lowercase.h: Likewise.
27164         * lib/unictype/pr_other_uppercase.h: Likewise.
27165         * lib/unictype/pr_paired_punctuation.h: Likewise.
27166         * lib/unictype/pr_paragraph_separator.h: Likewise.
27167         * lib/unictype/pr_pattern_syntax.h: Likewise.
27168         * lib/unictype/pr_pattern_white_space.h: Likewise.
27169         * lib/unictype/pr_private_use.h: Likewise.
27170         * lib/unictype/pr_quotation_mark.h: Likewise.
27171         * lib/unictype/pr_radical.h: Likewise.
27172         * lib/unictype/pr_soft_dotted.h: Likewise.
27173         * lib/unictype/pr_space.h: Likewise.
27174         * lib/unictype/pr_titlecase.h: Likewise.
27175         * lib/unictype/pr_variation_selector.h: Likewise.
27176         * lib/unictype/pr_white_space.h: Likewise.
27177         * lib/unictype/pr_zero_width.h: Likewise.
27178         * lib/unictype/sy_c_ident.h: Likewise.
27179         * lib/unictype/sy_c_whitespace.h: Likewise.
27180         * lib/unictype/sy_java_whitespace.h: Likewise.
27181         * lib/uninorm/composition-table.gperf: Likewise.
27182         * lib/uninorm/decomposition-table1.h: Likewise.
27183         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27184         LB8.
27185         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27186         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27187         * modules/unictype/*: Bump version number of expected libunistring
27188         version.
27189
27190 2011-01-09  Bruno Haible  <bruno@clisp.org>
27191
27192         Update to Unicode 5.2.0.
27193         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27194         trailing whitespace removed.
27195
27196 2011-01-09  Bruno Haible  <bruno@clisp.org>
27197
27198         New Unicode character properties, from Unicode 5.2.0.
27199         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27200         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27201         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27202         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27203         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27204         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27205         uc_is_property_cased, uc_is_property_case_ignorable,
27206         uc_is_property_changes_when_lowercased,
27207         uc_is_property_changes_when_uppercased,
27208         uc_is_property_changes_when_titlecased,
27209         uc_is_property_changes_when_casefolded,
27210         uc_is_property_changes_when_casemapped): New declarations.
27211         * lib/unictype/pr_byname.gperf: Add the new properties.
27212         * modules/unictype/property-byname (Depends-on): Depend on the new
27213         properties modules.
27214         * modules/unictype/property-all (Depends-on): Likewise.
27215         * MODULES.html.sh (Unicode string functions): Add
27216         unictype/property-case-ignorable, unictype/property-cased,
27217         unictype/property-changes-when-casefolded,
27218         unictype/property-changes-when-casemapped,
27219         unictype/property-changes-when-lowercased,
27220         unictype/property-changes-when-titlecased,
27221         unictype/property-changes-when-uppercased.
27222
27223         New module 'unictype/property-changes-when-casemapped'.
27224         * modules/unictype/property-changes-when-casemapped: New file.
27225         * lib/unictype/pr_changes_when_casemapped.c: New file.
27226         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27227         generated by gen-uni-tables.
27228         * modules/unictype/property-changes-when-casemapped-tests: New file.
27229         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27230         automatically generated by gen-uni-tables.
27231
27232         New module 'unictype/property-changes-when-casefolded'.
27233         * modules/unictype/property-changes-when-casefolded: New file.
27234         * lib/unictype/pr_changes_when_casefolded.c: New file.
27235         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27236         generated by gen-uni-tables.
27237         * modules/unictype/property-changes-when-casefolded-tests: New file.
27238         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27239         automatically generated by gen-uni-tables.
27240
27241         New module 'unictype/property-changes-when-titlecased'.
27242         * modules/unictype/property-changes-when-titlecased: New file.
27243         * lib/unictype/pr_changes_when_titlecased.c: New file.
27244         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27245         generated by gen-uni-tables.
27246         * modules/unictype/property-changes-when-titlecased-tests: New file.
27247         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27248         automatically generated by gen-uni-tables.
27249
27250         New module 'unictype/property-changes-when-uppercased'.
27251         * modules/unictype/property-changes-when-uppercased: New file.
27252         * lib/unictype/pr_changes_when_uppercased.c: New file.
27253         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27254         generated by gen-uni-tables.
27255         * modules/unictype/property-changes-when-uppercased-tests: New file.
27256         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27257         automatically generated by gen-uni-tables.
27258
27259         New module 'unictype/property-changes-when-lowercased'.
27260         * modules/unictype/property-changes-when-lowercased: New file.
27261         * lib/unictype/pr_changes_when_lowercased.c: New file.
27262         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27263         generated by gen-uni-tables.
27264         * modules/unictype/property-changes-when-lowercased-tests: New file.
27265         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27266         automatically generated by gen-uni-tables.
27267
27268         New module 'unictype/property-case-ignorable'.
27269         * modules/unictype/property-case-ignorable: New file.
27270         * lib/unictype/pr_case_ignorable.c: New file.
27271         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27272         by gen-uni-tables.
27273         * modules/unictype/property-case-ignorable-tests: New file.
27274         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27275         generated by gen-uni-tables.
27276
27277         New module 'unictype/property-cased'.
27278         * modules/unictype/property-cased: New file.
27279         * lib/unictype/pr_cased.c: New file.
27280         * lib/unictype/pr_cased.h: New file, automatically generated by
27281         gen-uni-tables.
27282         * modules/unictype/property-cased-tests: New file.
27283         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27284         gen-uni-tables.
27285
27286 2011-01-09  Bruno Haible  <bruno@clisp.org>
27287
27288         Update to Unicode 5.2.0.
27289         * lib/gen-uni-tables.c (output_predicate, output_category,
27290         output_combclass, output_bidi_category, output_decimal_digit_test,
27291         output_decimal_digit, output_digit_test, output_digit,
27292         output_numeric_test, output_numeric, output_mirror, output_scripts,
27293         output_scripts_byname, output_blocks, output_ident_category): Fix
27294         comment header.
27295         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27296         get_wbp.
27297         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27298         items.
27299         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27300         Changes_When_Lowercased, Changes_When_Uppercased,
27301         Changes_When_Titlecased, Changes_When_Casefolded,
27302         Changes_When_Casemapped.
27303         (is_property_alphabetic, is_property_default_ignorable_code_point):
27304         Update for Unicode 5.2.0.
27305         (is_property_cased, is_property_case_ignorable,
27306         is_property_changes_when_lowercased,
27307         is_property_changes_when_uppercased,
27308         is_property_changes_when_titlecased,
27309         is_property_changes_when_casefolded,
27310         is_property_changes_when_casemapped): New functions.
27311         (output_properties): Output also the properties cased, case_ignorable,
27312         changes_when_lowercased, changes_when_uppercased,
27313         changes_when_titlecased, changes_when_casefolded,
27314         changes_when_casemapped.
27315         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27316         Unicode TR#11 revision 17 -> 19.
27317         (LBP_CP): New enumeration value.
27318         (LBP_*): Adjust values accordingly.
27319         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27320         TR#14 revision 22 -> 24.
27321         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27322         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27323         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27324         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27325         is_WBP_MIDLETTER.
27326         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27327         the code1 and code2 of each composition rule.
27328         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27329         * lib/unicase/ignorable.h: Likewise.
27330         * lib/unicase/tocasefold.h: Likewise.
27331         * lib/unicase/tolower.h: Likewise.
27332         * lib/unicase/totitle.h: Likewise.
27333         * lib/unicase/toupper.h: Likewise.
27334         * lib/unictype/bidi_of.h: Likewise.
27335         * lib/unictype/blocks.h: Likewise.
27336         * lib/unictype/categ_C.h: Likewise.
27337         * lib/unictype/categ_Cf.h: Likewise.
27338         * lib/unictype/categ_Cn.h: Likewise.
27339         * lib/unictype/categ_L.h: Likewise.
27340         * lib/unictype/categ_Ll.h: Likewise.
27341         * lib/unictype/categ_Lm.h: Likewise.
27342         * lib/unictype/categ_Lo.h: Likewise.
27343         * lib/unictype/categ_Lu.h: Likewise.
27344         * lib/unictype/categ_M.h: Likewise.
27345         * lib/unictype/categ_Mc.h: Likewise.
27346         * lib/unictype/categ_Mn.h: Likewise.
27347         * lib/unictype/categ_N.h: Likewise.
27348         * lib/unictype/categ_Nd.h: Likewise.
27349         * lib/unictype/categ_Nl.h: Likewise.
27350         * lib/unictype/categ_No.h: Likewise.
27351         * lib/unictype/categ_P.h: Likewise.
27352         * lib/unictype/categ_Pd.h: Likewise.
27353         * lib/unictype/categ_Po.h: Likewise.
27354         * lib/unictype/categ_S.h: Likewise.
27355         * lib/unictype/categ_Sc.h: Likewise.
27356         * lib/unictype/categ_So.h: Likewise.
27357         * lib/unictype/categ_of.h: Likewise.
27358         * lib/unictype/combining.h: Likewise.
27359         * lib/unictype/ctype_alnum.h: Likewise.
27360         * lib/unictype/ctype_alpha.h: Likewise.
27361         * lib/unictype/ctype_graph.h: Likewise.
27362         * lib/unictype/ctype_lower.h: Likewise.
27363         * lib/unictype/ctype_print.h: Likewise.
27364         * lib/unictype/ctype_punct.h: Likewise.
27365         * lib/unictype/ctype_upper.h: Likewise.
27366         * lib/unictype/decdigit.h: Likewise.
27367         * lib/unictype/digit.h: Likewise.
27368         * lib/unictype/numeric.h: Likewise.
27369         * lib/unictype/pr_alphabetic.h: Likewise.
27370         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27371         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27372         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27373         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27374         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27375         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27376         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27377         * lib/unictype/pr_combining.h: Likewise.
27378         * lib/unictype/pr_composite.h: Likewise.
27379         * lib/unictype/pr_currency_symbol.h: Likewise.
27380         * lib/unictype/pr_dash.h: Likewise.
27381         * lib/unictype/pr_decimal_digit.h: Likewise.
27382         * lib/unictype/pr_deprecated.h: Likewise.
27383         * lib/unictype/pr_diacritic.h: Likewise.
27384         * lib/unictype/pr_extender.h: Likewise.
27385         * lib/unictype/pr_grapheme_base.h: Likewise.
27386         * lib/unictype/pr_grapheme_extend.h: Likewise.
27387         * lib/unictype/pr_grapheme_link.h: Likewise.
27388         * lib/unictype/pr_id_continue.h: Likewise.
27389         * lib/unictype/pr_id_start.h: Likewise.
27390         * lib/unictype/pr_ideographic.h: Likewise.
27391         * lib/unictype/pr_ignorable_control.h: Likewise.
27392         * lib/unictype/pr_logical_order_exception.h: Likewise.
27393         * lib/unictype/pr_lowercase.h: Likewise.
27394         * lib/unictype/pr_numeric.h: Likewise.
27395         * lib/unictype/pr_other_alphabetic.h: Likewise.
27396         * lib/unictype/pr_punctuation.h: Likewise.
27397         * lib/unictype/pr_sentence_terminal.h: Likewise.
27398         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27399         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27400         * lib/unictype/pr_unified_ideograph.h: Likewise.
27401         * lib/unictype/pr_uppercase.h: Likewise.
27402         * lib/unictype/pr_xid_continue.h: Likewise.
27403         * lib/unictype/pr_xid_start.h: Likewise.
27404         * lib/unictype/pr_zero_width.h: Likewise.
27405         * lib/unictype/scripts.h: Likewise.
27406         * lib/unictype/scripts_byname.gperf: Likewise.
27407         * lib/unictype/sy_java_ident.h: Likewise.
27408         * lib/unigbrk/gbrkprop.h: Likewise.
27409         * lib/unilbrk/lbrkprop1.h: Likewise.
27410         * lib/unilbrk/lbrkprop2.h: Likewise.
27411         * lib/unilbrk/lbrktables.h: Likewise.
27412         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27413         LBP_CP. Implement rule LB30.
27414         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27415         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27416         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27417         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27418         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27419         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27420         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27421         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27422         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27423         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27424         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27425         bits instead of 16 bits in the code1 and code2 of each composition
27426         rule.
27427         (uc_composition): Update for Unicode 5.2.0.
27428         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27429         * lib/uninorm/decomposition-table2.h: Likewise.
27430         * lib/uniwbrk/wbrkprop.h: Likewise.
27431         * tests/unicase/test-cased.c: Likewise.
27432         * tests/unicase/test-ignorable.c: Likewise.
27433         * tests/unicase/test-uc_tolower.c: Likewise.
27434         * tests/unicase/test-uc_totitle.c: Likewise.
27435         * tests/unicase/test-uc_toupper.c: Likewise.
27436         * tests/unictype/test-categ_C.c: Likewise.
27437         * tests/unictype/test-categ_Cf.c: Likewise.
27438         * tests/unictype/test-categ_Cn.c: Likewise.
27439         * tests/unictype/test-categ_L.c: Likewise.
27440         * tests/unictype/test-categ_Ll.c: Likewise.
27441         * tests/unictype/test-categ_Lm.c: Likewise.
27442         * tests/unictype/test-categ_Lo.c: Likewise.
27443         * tests/unictype/test-categ_Lu.c: Likewise.
27444         * tests/unictype/test-categ_M.c: Likewise.
27445         * tests/unictype/test-categ_Mc.c: Likewise.
27446         * tests/unictype/test-categ_Mn.c: Likewise.
27447         * tests/unictype/test-categ_N.c: Likewise.
27448         * tests/unictype/test-categ_Nd.c: Likewise.
27449         * tests/unictype/test-categ_Nl.c: Likewise.
27450         * tests/unictype/test-categ_No.c: Likewise.
27451         * tests/unictype/test-categ_P.c: Likewise.
27452         * tests/unictype/test-categ_Pd.c: Likewise.
27453         * tests/unictype/test-categ_Po.c: Likewise.
27454         * tests/unictype/test-categ_S.c: Likewise.
27455         * tests/unictype/test-categ_Sc.c: Likewise.
27456         * tests/unictype/test-categ_So.c: Likewise.
27457         * tests/unictype/test-ctype_alnum.c: Likewise.
27458         * tests/unictype/test-ctype_alpha.c: Likewise.
27459         * tests/unictype/test-ctype_graph.c: Likewise.
27460         * tests/unictype/test-ctype_lower.c: Likewise.
27461         * tests/unictype/test-ctype_print.c: Likewise.
27462         * tests/unictype/test-ctype_punct.c: Likewise.
27463         * tests/unictype/test-ctype_upper.c: Likewise.
27464         * tests/unictype/test-decdigit.h: Likewise.
27465         * tests/unictype/test-digit.h: Likewise.
27466         * tests/unictype/test-numeric.h: Likewise.
27467         * tests/unictype/test-pr_alphabetic.c: Likewise.
27468         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27469         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27470         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27471         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27472         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27473         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27474         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27475         * tests/unictype/test-pr_combining.c: Likewise.
27476         * tests/unictype/test-pr_composite.c: Likewise.
27477         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27478         * tests/unictype/test-pr_dash.c: Likewise.
27479         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27480         * tests/unictype/test-pr_deprecated.c: Likewise.
27481         * tests/unictype/test-pr_diacritic.c: Likewise.
27482         * tests/unictype/test-pr_extender.c: Likewise.
27483         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27484         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27485         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27486         * tests/unictype/test-pr_id_continue.c: Likewise.
27487         * tests/unictype/test-pr_id_start.c: Likewise.
27488         * tests/unictype/test-pr_ideographic.c: Likewise.
27489         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27490         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27491         * tests/unictype/test-pr_lowercase.c: Likewise.
27492         * tests/unictype/test-pr_numeric.c: Likewise.
27493         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27494         * tests/unictype/test-pr_punctuation.c: Likewise.
27495         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27496         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27497         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27498         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27499         * tests/unictype/test-pr_uppercase.c: Likewise.
27500         * tests/unictype/test-pr_xid_continue.c: Likewise.
27501         * tests/unictype/test-pr_xid_start.c: Likewise.
27502         * tests/unictype/test-pr_zero_width.c: Likewise.
27503         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27504         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27505         changed behaviour: line breaking is now disallowed between a letter
27506         or '=' and '('.
27507         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27508         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27509         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27510         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27511         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27512         lib/uniwidth/width.c.
27513         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27514         without comments, but with the original copyright notice.
27515         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27516         changes.
27517         * lib/unictype/categ_Cc.h: Likewise.
27518         * lib/unictype/categ_Co.h: Likewise.
27519         * lib/unictype/categ_Cs.h: Likewise.
27520         * lib/unictype/categ_Lt.h: Likewise.
27521         * lib/unictype/categ_Me.h: Likewise.
27522         * lib/unictype/categ_Pc.h: Likewise.
27523         * lib/unictype/categ_Pe.h: Likewise.
27524         * lib/unictype/categ_Pf.h: Likewise.
27525         * lib/unictype/categ_Pi.h: Likewise.
27526         * lib/unictype/categ_Ps.h: Likewise.
27527         * lib/unictype/categ_Sk.h: Likewise.
27528         * lib/unictype/categ_Sm.h: Likewise.
27529         * lib/unictype/categ_Z.h: Likewise.
27530         * lib/unictype/categ_Zl.h: Likewise.
27531         * lib/unictype/categ_Zp.h: Likewise.
27532         * lib/unictype/categ_Zs.h: Likewise.
27533         * lib/unictype/ctype_blank.h: Likewise.
27534         * lib/unictype/ctype_cntrl.h: Likewise.
27535         * lib/unictype/ctype_digit.h: Likewise.
27536         * lib/unictype/ctype_space.h: Likewise.
27537         * lib/unictype/ctype_xdigit.h: Likewise.
27538         * lib/unictype/mirror.h: Likewise.
27539         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27540         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27541         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27542         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27543         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27544         * lib/unictype/pr_bidi_control.h: Likewise.
27545         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27546         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27547         * lib/unictype/pr_bidi_pdf.h: Likewise.
27548         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27549         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27550         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27551         * lib/unictype/pr_format_control.h: Likewise.
27552         * lib/unictype/pr_hex_digit.h: Likewise.
27553         * lib/unictype/pr_hyphen.h: Likewise.
27554         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27555         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27556         * lib/unictype/pr_iso_control.h: Likewise.
27557         * lib/unictype/pr_join_control.h: Likewise.
27558         * lib/unictype/pr_left_of_pair.h: Likewise.
27559         * lib/unictype/pr_line_separator.h: Likewise.
27560         * lib/unictype/pr_math.h: Likewise.
27561         * lib/unictype/pr_non_break.h: Likewise.
27562         * lib/unictype/pr_not_a_character.h: Likewise.
27563         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27564         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27565         * lib/unictype/pr_other_id_continue.h: Likewise.
27566         * lib/unictype/pr_other_id_start.h: Likewise.
27567         * lib/unictype/pr_other_lowercase.h: Likewise.
27568         * lib/unictype/pr_other_math.h: Likewise.
27569         * lib/unictype/pr_other_uppercase.h: Likewise.
27570         * lib/unictype/pr_paired_punctuation.h: Likewise.
27571         * lib/unictype/pr_paragraph_separator.h: Likewise.
27572         * lib/unictype/pr_pattern_syntax.h: Likewise.
27573         * lib/unictype/pr_pattern_white_space.h: Likewise.
27574         * lib/unictype/pr_private_use.h: Likewise.
27575         * lib/unictype/pr_quotation_mark.h: Likewise.
27576         * lib/unictype/pr_radical.h: Likewise.
27577         * lib/unictype/pr_soft_dotted.h: Likewise.
27578         * lib/unictype/pr_space.h: Likewise.
27579         * lib/unictype/pr_titlecase.h: Likewise.
27580         * lib/unictype/pr_variation_selector.h: Likewise.
27581         * lib/unictype/pr_white_space.h: Likewise.
27582         * lib/unictype/sy_c_ident.h: Likewise.
27583         * lib/unictype/sy_c_whitespace.h: Likewise.
27584         * lib/unictype/sy_java_whitespace.h: Likewise.
27585         * modules/uni*/*: Bump version number of expected libunistring version.
27586         Reported by Simon Josefsson.
27587
27588 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27589
27590         useless-if-before-free: fix typo in --help and make the internal,
27591         automatic version date update process work once again.
27592         --help output contained a NUL character instead of the
27593         backslash-zero that was intended.  Also, the "must lie within
27594         the first 8 lines" line is on line 9, and hence not getting
27595         automatically updated.
27596         * build-aux/useless-if-before-free: Fix the former by adding a
27597         backslash, and the latter by condensing the three lines of what-it-does
27598         to a single line, leaving one line of slack for the future.
27599
27600 2011-01-09  Bruno Haible  <bruno@clisp.org>
27601
27602         uniwidth/width: Fix width of U+1D173..U+1D17A.
27603         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27604         symbolic_width, output_width_property_test): New functions.
27605         (main): Invoke output_nonspacing_property, output_width_property_test.
27606         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27607         U+1D173..U+1D17A.
27608         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27609         1.
27610         * modules/uniwidth/*: Bump version number of expected libunistring
27611         version.
27612         * modules/unilbrk/*: Likewise.
27613
27614 2011-01-08  Bruno Haible  <bruno@clisp.org>
27615
27616         uninorm tests: Preserve copyright of Unicode data file.
27617         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27618         Mention modifications.
27619
27620 2011-01-08  Bruno Haible  <bruno@clisp.org>
27621
27622         gen-uni-tables: Prepare for Unicode 5.2.0.
27623         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27624         (debug_output_lbp, output_lbp): Update.
27625
27626 2011-01-08  Bruno Haible  <bruno@clisp.org>
27627
27628         unilbrk: Clarify gen-uni-tables.c code.
27629         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27630         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27631         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27632
27633 2011-01-07  Bruno Haible  <bruno@clisp.org>
27634
27635         strtod: Restore errno when successfully parsing Infinity or NaN.
27636         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27637         restore the original errno.
27638
27639 2011-01-07  Bruno Haible  <bruno@clisp.org>
27640
27641         remove test: Avoid failure on HP-UX 11.
27642         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27643
27644 2011-01-07  Bruno Haible  <bruno@clisp.org>
27645
27646         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27647         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27648         error code.
27649
27650 2011-01-07  Pádraig Brady <P@draigBrady.com>
27651
27652         ignore-value: fixup comments, and add Eric Blake
27653         as an author since he rewrote the macros.
27654         * lib/ignore-value.h (ignore_value):  State that
27655         we now support aggregates.  Also specify exactly
27656         when the GCC warn_unused_result feature was added.
27657
27658 2011-01-06  Eric Blake  <eblake@redhat.com>
27659
27660         ignore-value: support aggregate types
27661         * lib/ignore-value.h (ignore_value): Provide separate gcc
27662         definition.
27663         * modules/ignore-value-tests: New test module.
27664         * tests/test-ignore-value.c: New test.
27665
27666         maint.mk: improve sc_prohibit_strcmp regex
27667         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27668         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27669         definition of STRNEQ.
27670
27671         signal: work around Haiku issue with SIGBUS
27672         * lib/siglist.h: Add comment.
27673         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27674         strsignal's favoring of SIGSEGV.
27675         * tests/test-signal.c (main): Avoid test failure.
27676         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27677         Reported by Scott McCreary.
27678
27679         maint.mk: add pre-release check to ensure submodule commits are public
27680         * top/maint.mk (public-submodule-commit): New rule.
27681         (submodule-checks): New variable.
27682         (alpha beta stable): Depend on the variable.
27683
27684 2011-01-05  Pádraig Brady <P@draigBrady.com>
27685         and Jim Meyering  <meyering@redhat.com>
27686
27687         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27688         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27689         (ATTRIBUTE_DEPRECATED): Define.
27690         (_ignore_case): New function.
27691         (ignore_value): New macro, to replace the old function.
27692         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27693         * modules/ignore-value (Depends-on): Add stdint.
27694
27695 2011-01-04  Eric Blake  <eblake@redhat.com>
27696
27697         doc: regenerate INSTALL
27698         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27699         @firstparagraphindent support, now that autoconf dropped it.
27700         (INSTALL_PRELUDE): Reinstate old macro.
27701         * doc/install.texi: Resync from autoconf.
27702         * doc/INSTALL: Reflect recent autoconf update.
27703         * doc/INSTALL.ISO: Likewise.
27704         * doc/INSTALL.UTF-8: Likewise.
27705         Reported by Karl Berry.
27706
27707 2011-01-04  Bruce Korb  <address@hidden>
27708
27709         git-version-gen: avoid a sub-shell
27710         * build-aux/git-version-gen: Redirect stderr in `...` via
27711         "exec 2>...", rather than via an added sub-shell.
27712
27713 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27714
27715         git-version-gen: use (...) rather than sh -c '...'
27716         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27717         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27718
27719 2011-01-03  Jim Meyering  <meyering@redhat.com>
27720
27721         git-version-gen: convert leading TABs to spaces
27722         * build-aux/git-version-gen: Expand leading TABs.
27723
27724         git-version-gen: handle failed "git rev-list"
27725         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27726         from git and proceeding as if it had succeeded but printed no SHA1
27727         checksums, suppress the diagnostic and handle the failure.
27728         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27729
27730         git-version-gen: include command name in one more diagnostic
27731         * build-aux/git-version-gen: When the required .tarball-version file
27732         was missing or unreadable, you might see the diagnostic from "cat",
27733         but no trace of the name of the invoking script.  Now, you still see
27734         the diagnostic from cat, but also get one from "git-version-gen: ".
27735         Inspired by a patch from Bruce Korb.
27736
27737         update-copyright: adjust test to match changed code
27738         * tests/test-update-copyright.sh: Change test's expected output
27739         to match new actual output.
27740
27741 2011-01-02  Bruno Haible  <bruno@clisp.org>
27742
27743         getlogin_r: Avoid test failure on HP-UX 11.
27744         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27745         ERANGE when the second argument is zero.
27746         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27747         portability problem.
27748
27749 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27750
27751         * build-aux/update-copyright: doc Simon's changes
27752
27753 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27754
27755         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27756         environment variable.
27757
27758 2011-01-02  Bruno Haible  <bruno@clisp.org>
27759
27760         unigbrk: Avoid gcc warnings.
27761         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27762         unused variable.
27763         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27764         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27765         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27766         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27767         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27768         Change type of first argument to 'const char *'.
27769         (main): Remove unused variable.
27770         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27771         type of first argument to 'const char *'.
27772         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27773         Likewise.
27774         (main): Change type of variable 's'.
27775         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27776         to 'int'.
27777
27778 2011-01-02  Bruno Haible  <bruno@clisp.org>
27779
27780         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27781         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27782         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27783         bug.
27784         * lib/pwrite.c: Undo 2010-12-31 patch.
27785         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27786
27787 2011-01-02  Bruno Haible  <bruno@clisp.org>
27788
27789         pread: Fix test whether it works.
27790         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27791
27792 2011-01-02  Bruno Haible  <bruno@clisp.org>
27793
27794         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27795         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27796         ends in "6". Don't require a specific month name. Try also the locale
27797         names found on HP-UX 11 and Solaris 7.
27798
27799 2011-01-02  Bruno Haible  <bruno@clisp.org>
27800
27801         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27802         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27803         C linkage.
27804         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27805
27806 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27807
27808         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27809         for consistency, since the "cluster" term is not used elsewhere.
27810         * lib/unigbrk.in.h: Update name.
27811         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27812         * lib/unigbrk/u16-grapheme-next.c: Update name.
27813         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27814         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27815         * lib/unigbrk/u32-grapheme-next.c: Update name.
27816         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27817         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27818         * lib/unigbrk/u8-grapheme-next.c: Update name.
27819         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27820         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27821         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27822         Suggested by Bruno Haible.
27823
27824 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27825
27826         Remove module 'u8-grapheme-len' as too redundant with
27827         'u8-grapheme-next'.
27828         * modules/unigbrk/u8-grapheme-len: Delete file.
27829         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27830         * lib/unigbrk.in.h: Remove prototype for deleted function.
27831         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27832         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27833
27834         Remove module 'u16-grapheme-len' as too redundant with
27835         'u16-grapheme-next'.
27836         * modules/unigbrk/u16-grapheme-len: Delete file.
27837         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27838         * lib/unigbrk.in.h: Remove prototype for deleted function.
27839         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27840         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27841
27842         Remove module 'u32-grapheme-len' as too redundant with
27843         'u32-grapheme-next'.
27844         * modules/unigbrk/u32-grapheme-len: Delete file.
27845         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27846         * lib/unigbrk.in.h: Remove prototype for deleted function.
27847         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27848         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27849
27850         Suggested by Bruno Haible.
27851
27852 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27853
27854         * unigbrk.in.h: Fix typo: "ben" => "been".
27855         Reported by Bruno Haible.
27856
27857 2011-01-01  Jim Meyering  <meyering@redhat.com>
27858
27859         maint: update almost all copyright ranges to include 2011
27860         Run the new "make update-copyright" rule.
27861
27862 2011-01-01  Jim Meyering  <meyering@redhat.com>
27863
27864         maint: update-copyright: exempt doc/INSTALL*
27865         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27866         since they are generated.  Suggested by Bruno Haible.
27867
27868 2011-01-01  Jim Meyering  <meyering@redhat.com>
27869
27870         maint: refine the update-copyright rule
27871         * Makefile (update-copyright): Also exclude any file that includes
27872         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27873         code that merely generates the comment.
27874
27875 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27876
27877         New module 'u8-grapheme-len'.
27878         * modules/unigbrk/u8-grapheme-len: New file.
27879         * modules/unigbrk/u8-grapheme-len-tests: New file.
27880         * lib/unigbrk.in.h: Add prototype for new function.
27881         * lib/unigbrk/u8-grapheme-len.c: New file.
27882         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27883
27884         New module 'u16-grapheme-len'.
27885         * modules/unigbrk/u16-grapheme-len: New file.
27886         * modules/unigbrk/u16-grapheme-len-tests: New file.
27887         * lib/unigbrk.in.h: Add prototype for new function.
27888         * lib/unigbrk/u16-grapheme-len.c: New file.
27889         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27890
27891         New module 'u32-grapheme-len'.
27892         * modules/unigbrk/u32-grapheme-len: New file.
27893         * modules/unigbrk/u32-grapheme-len-tests: New file.
27894         * lib/unigbrk.in.h: Add prototype for new function.
27895         * lib/unigbrk/u32-grapheme-len.c: New file.
27896         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27897
27898         New module 'u8-grapheme-next'.
27899         * modules/unigbrk/u8-grapheme-next: New file.
27900         * modules/unigbrk/u8-grapheme-next-tests: New file.
27901         * lib/unigbrk.in.h: Add prototype for new function.
27902         * lib/unigbrk/u8-grapheme-next.c: New file.
27903         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27904
27905         New module 'u16-grapheme-next'.
27906         * modules/unigbrk/u16-grapheme-next: New file.
27907         * modules/unigbrk/u16-grapheme-next-tests: New file.
27908         * lib/unigbrk.in.h: Add prototype for new function.
27909         * lib/unigbrk/u16-grapheme-next.c: New file.
27910         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27911
27912         New module 'u32-grapheme-next'.
27913         * modules/unigbrk/u32-grapheme-next: New file.
27914         * modules/unigbrk/u32-grapheme-next-tests: New file.
27915         * lib/unigbrk.in.h: Add prototype for new function.
27916         * lib/unigbrk/u32-grapheme-next.c: New file.
27917         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27918
27919         New module 'u8-grapheme-prev'.
27920         * modules/unigbrk/u8-grapheme-prev: New file.
27921         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27922         * lib/unigbrk.in.h: Add prototype for new function.
27923         * lib/unigbrk/u8-grapheme-prev.c: New file.
27924         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27925
27926         New module 'u16-grapheme-prev'.
27927         * modules/unigbrk/u16-grapheme-prev: New file.
27928         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27929         * lib/unigbrk.in.h: Add prototype for new function.
27930         * lib/unigbrk/u16-grapheme-prev.c: New file.
27931         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27932
27933         New module 'u32-grapheme-prev'.
27934         * modules/unigbrk/u32-grapheme-prev: New file.
27935         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27936         * lib/unigbrk.in.h: Add prototype for new function.
27937         * lib/unigbrk/u32-grapheme-prev.c: New file.
27938         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27939
27940         New module 'u8-grapheme-breaks'.
27941         * modules/unigbrk/u8-grapheme-breaks: New file.
27942         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27943         * lib/unigbrk.in.h: Add prototype for new function.
27944         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27945         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27946
27947         New module 'u16-grapheme-breaks'.
27948         * modules/unigbrk/u16-grapheme-breaks: New file.
27949         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27950         * lib/unigbrk.in.h: Add prototype for new function.
27951         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27952         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27953
27954         New module 'u32-grapheme-breaks'.
27955         * modules/unigbrk/u32-grapheme-breaks: New file.
27956         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27957         * lib/unigbrk.in.h: Add prototype for new function.
27958         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27959         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27960
27961         New module 'ulc-grapheme-breaks'.
27962         * modules/unigbrk/ulc-grapheme-breaks: New file.
27963         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27964         * m4/locale-ar.m4: New file.
27965         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27966         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27967         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27968
27969 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27970
27971         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27972         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27973         modified how this file was generated before I initially submitted
27974         the module, but failed to regenerate it.  This meant that several
27975         of the level2 entries were wrong.
27976         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27977         Remove the division-by-2 that is folded into the table now that
27978         gbrkprop.h has been regenerated properly.  Now -1 entries are
27979         handled correctly.
27980
27981         New module 'unigbrk/uc-gbrk-prop-tests'.
27982         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27983         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27984         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27985         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27986
27987 2011-01-01  Bruno Haible  <bruno@clisp.org>
27988
27989         Avoid use of hexadecimal escapes.
27990         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27991         instead of hexadecimal escapes.
27992
27993 2011-01-01  Jim Meyering  <meyering@redhat.com>
27994
27995         maint: new rule to update copyright year ranges
27996         * Makefile (update-copyright): New rule.
27997
27998         maint: indent with TABs in Makefile
27999         * Makefile: Expand leading sequences of spaces to TABs
28000
28001         version-etc: update the copyright year it reports
28002         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
28003
28004 2010-12-31  Bruno Haible  <bruno@clisp.org>
28005
28006         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
28007         * lib/isfinite.c (zerof, zerod, zerol): New variables.
28008         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
28009         zero.
28010
28011 2010-12-31  Bruno Haible  <bruno@clisp.org>
28012
28013         pwrite: Work around HP-UX 11.11 bug.
28014         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
28015         works and set REPLACE_PWRITE if not.
28016         * lib/pwrite.c (pwrite): Add an implementation that uses the system
28017         function.
28018         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
28019
28020 2010-12-31  Bruno Haible  <bruno@clisp.org>
28021
28022         pread: Work around HP-UX 11 bugs.
28023         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
28024         and set REPLACE_PREAD if not.
28025         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
28026
28027 2010-12-31  Eric Blake  <eblake@redhat.com>
28028
28029         nl_langinfo: fix YESEXPR on Irix 6.5
28030         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
28031         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
28032         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
28033         it.
28034
28035 2010-12-31  Bruno Haible  <bruno@clisp.org>
28036
28037         iconv: Document HP-UX 11 bug.
28038         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
28039
28040 2010-12-31  Bruno Haible  <bruno@clisp.org>
28041
28042         ldexpl: Fix link error on HP-UX 11.
28043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
28044         LDEXPL_LIBM, using $ISNANL_LIBM.
28045
28046 2010-12-31  Eric Blake  <eblake@redhat.com>
28047
28048         ftello: avoid compilation failure with SunStudio c89
28049         * lib/ftello.c (ftello): Use lseek, not llseek.
28050
28051         tests: avoid failing coreutils tests on cygwin
28052         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
28053         (create_exe_shims_): Return 0 when skipping.
28054
28055 2010-12-31  Bruno Haible  <bruno@clisp.org>
28056
28057         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
28058         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
28059
28060 2010-12-31  Bruno Haible  <bruno@clisp.org>
28061
28062         waitpid: Fix link error in C++ mode.
28063         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
28064
28065 2010-12-31  Bruno Haible  <bruno@clisp.org>
28066
28067         isnan: Use GCC built-ins when possible.
28068         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
28069         __builtin_isnan.
28070         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
28071         (isnan): Define using GCC built-ins for GCC >= 4.0.
28072
28073 2010-12-31  Bruno Haible  <bruno@clisp.org>
28074
28075         isnand: Fix mistake.
28076         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
28077         __builtin_isnand.
28078
28079 2010-12-31  Bruno Haible  <bruno@clisp.org>
28080
28081         open: Avoid C++ error on HP-UX 11.
28082         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
28083
28084 2010-12-31  Bruno Haible  <bruno@clisp.org>
28085
28086         time_r: Add missing declarations on HP-UX 11.
28087         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
28088         instead of HAVE_LOCALTIME_R.
28089         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
28090         HAVE_LOCALTIME_R always.
28091         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
28092         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
28093         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
28094         HAVE_LOCALTIME_R.
28095         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
28096         * doc/posix-functions/localtime_r.texi: Likewise.
28097
28098 2010-12-29  Eric Blake  <eblake@redhat.com>
28099
28100         mountlist: tweak previous commit
28101         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
28102         Reported by Paul Eggert.
28103
28104         mountlist: fix local drive detection on cygwin
28105         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
28106         that works for cygwin.
28107
28108 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28109
28110         ftoastr, snprintf: ftoastr + snprintf module
28111         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
28112         since the snprintf module now should be good enough here.
28113         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
28114         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
28115         and gl_MODULE_INDICATOR([snprintf]), but the former enables
28116         GNULIB_SNPRINTF only for the test directory, and the latter
28117         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
28118         seems to suffice by itself.
28119
28120 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28121
28122         alloca: one step towards thread-safety
28123         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
28124         need for a static variable.  All callers changed.  This does not
28125         make the alloca replacement thread-safe, but it's one step.
28126
28127         tests: minor indenting change
28128         * tests/init.sh: Sync from coreutils housekeeping patch
28129         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
28130         to keep lines within 80 columns.
28131
28132 2010-12-28  Jim Meyering  <meyering@redhat.com>
28133
28134         regex: don't infloop on persistent failing calloc
28135         * lib/regexec.c (build_trtable): Return failure indication upon
28136         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28137         In glibc, this was fixed for version 2.13:
28138         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
28139
28140 2010-12-28  Bruno Haible  <bruno@clisp.org>
28141             Paul Eggert <eggert@cs.ucla.edu>
28142
28143         linkat: Make implementation robust against system behaviour variations.
28144         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28145         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28146         way, and to -2 if it needs a generic runtime test.
28147         * lib/linkat.c (solaris_optimized_link_immediate,
28148         solaris_optimized_link_follow): New functions.
28149         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28150         (check_same_link): Use it.
28151
28152 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28153
28154         New module 'unigbrk/base'.
28155         * modules/unigbrk/base: New file.
28156         * lib/unigbrk.in.h: New file.
28157
28158         New module 'unigbrk/uc-gbrk-prop'.
28159         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28160         * modules/unigbrk/uc-gbrk-prop: New file.
28161         * lib/unigbrk/gbrkprop.h: New file.
28162         * lib/unigbrk/uc-gbrk-prop.c: New file.
28163
28164         New module 'unigbrk/uc-is-grapheme-break'.
28165         * modules/unigbrk/uc-is-grapheme-break: New file.
28166         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28167         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28168         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28169         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28170         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28171
28172         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28173
28174 2010-12-27  Bruno Haible  <bruno@clisp.org>
28175
28176         linkat test: Avoid failure on Solaris 11 2010-11.
28177         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28178
28179 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28180
28181         utimens: work around glibc rounding bug on more platforms
28182         * lib/utimens.c (fdutimens): Work around rounding bug even if
28183         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28184         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28185
28186 2010-12-27  Bruno Haible  <bruno@clisp.org>
28187
28188         select tests: Improve comments.
28189         * tests/test-select.c (do_select): Add comments.
28190
28191 2010-12-27  Bruno Haible  <bruno@clisp.org>
28192
28193         select tests: Safer way of handling timeout.
28194         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28195         at every invocation.
28196
28197 2010-12-27  Bruno Haible  <bruno@clisp.org>
28198
28199         select tests: Use 'bool' where appropriate.
28200         * tests/test-select.c (connect_to_socket): Change argument type to
28201         'bool'.
28202
28203 2010-12-27  Bruno Haible  <bruno@clisp.org>
28204
28205         select tests: Use existing modules.
28206         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28207         (configure.ac): Don't test for unistd.h.
28208         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28209         declared in <unistd.h>.
28210
28211 2010-12-27  Bruno Haible  <bruno@clisp.org>
28212
28213         mbrtowc: Work around a Solaris 7 bug.
28214         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28215         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28216         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28217         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28218         MBRTOWC_NULL_ARG1_BUG.
28219         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28220         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28221         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28222         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28223
28224 2010-12-27  Jim Meyering  <meyering@redhat.com>
28225
28226         read-file.c: tweak syntax
28227         * lib/read-file.c (fread_file): Remove space after "*" in function
28228         definitions.
28229
28230 2010-12-27  Bruno Haible  <bruno@clisp.org>
28231
28232         times test: Avoid gcc warnings on OSF/1.
28233         * tests/test-times.c (main): Cast printf arguments from clock_t to
28234         'long int'.
28235
28236 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28237
28238         utimens: work around glibc rounding bug on older Linux kernels
28239         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28240         on Linux with a glibc whose utimes might not work, then work
28241         around a longstanding glibc bug involving rounding rather than
28242         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28243         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28244
28245 2010-12-26  Bruno Haible  <bruno@clisp.org>
28246
28247         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28248         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28249         _GL_CXXALIAS_SYS.
28250         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28251
28252 2010-12-26  Bruno Haible  <bruno@clisp.org>
28253
28254         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28255         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28256         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28257         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28258         looking for the declaration.
28259         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28260         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28261         problem.
28262         * doc/posix-functions/inet_pton.texi: Likewise.
28263
28264 2010-12-26  Bruno Haible  <bruno@clisp.org>
28265
28266         arpa_inet: Use the common idioms with C++ support.
28267         * lib/arpa_inet.in.h: Include c++defs.h.
28268         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28269         support.
28270         * modules/arpa_inet (Depends-on): Add c++defs.
28271         (Makefile.am): Substitute the contents of c++defs.h.
28272         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28273         * modules/arpa_inet-c++-tests: New file.
28274         * tests/test-arpa_inet-c++.cc: New file.
28275
28276 2010-12-25  Bruno Haible  <bruno@clisp.org>
28277
28278         Fix more C++ link errors on Solaris 8.
28279         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28280         $(LIB_EACCESS).
28281         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28282         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28283         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28284         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28285         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28286
28287 2010-12-25  Bruno Haible  <bruno@clisp.org>
28288
28289         printf-posix: Fix link error when a non-GCC compiler is used.
28290         * lib/stdio.in.h (printf): When not using GCC, override printf
28291         correctly.
28292         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28293
28294 2010-12-25  Bruno Haible  <bruno@clisp.org>
28295
28296         strerror_r-posix: Update doc.
28297         * doc/posix-functions/strerror_r.texi: Update doc about the return
28298         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28299
28300 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28301
28302         utimens: simplify the logic of the previous change
28303         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28304         This should not affect whether the test succeeds or fails.
28305
28306         utimens: configure better on hosts with NFS clock skew
28307         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28308         uses the clock of the local host.  It might use the clock of the
28309         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28310         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28311
28312 2010-12-25  Bruno Haible  <bruno@clisp.org>
28313
28314         ptsname test: Avoid failure on Solaris.
28315         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28316         open a pseudo-terminal; don't use BSD-style ptys.
28317         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28318
28319 2010-12-25  Bruno Haible  <bruno@clisp.org>
28320
28321         ptsname: Avoid ERANGE failure on some systems.
28322         * lib/ptsname.c (buffer): Increase size.
28323
28324 2010-12-25  Bruno Haible  <bruno@clisp.org>
28325
28326         rename, renameat: Avoid test failures at NFS mounted locations.
28327         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28328         so that subsequent mkdir calls succeed.
28329
28330 2010-12-25  Bruno Haible  <bruno@clisp.org>
28331
28332         iswblank: Fix C++ link error on Solaris 8.
28333         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28334         _GL_FUNCDECL_SYS.
28335
28336 2010-12-25  Bruno Haible  <bruno@clisp.org>
28337
28338         unistd: Fix C++ link error on Solaris 8.
28339         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28340
28341 2010-12-25  Bruno Haible  <bruno@clisp.org>
28342
28343         readlink doc: Mention an old glibc bug.
28344         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28345
28346 2010-12-25  Bruno Haible  <bruno@clisp.org>
28347
28348         fcntl-h: Fix for use of C++ on glibc systems.
28349         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28350         also on glibc systems in C++ mode.
28351         Reported by Gary V. Vaughan <gary@gnu.org>.
28352
28353 2010-12-25  Bruno Haible  <bruno@clisp.org>
28354
28355         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28356         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28357
28358 2010-12-25  Bruno Haible  <bruno@clisp.org>
28359
28360         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28361         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28362         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28363         test whether truncl works according to ISO C 99 with IEC 60559.
28364         * m4/truncl-ieee.m4: New file.
28365         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28366         m4/signbit.m4.
28367         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28368
28369 2010-12-25  Bruno Haible  <bruno@clisp.org>
28370
28371         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28372         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28373         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28374         test whether ceill works according to ISO C 99 with IEC 60559.
28375         * m4/ceill-ieee.m4: New file.
28376         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28377         m4/signbit.m4.
28378         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28379
28380 2010-12-25  Bruno Haible  <bruno@clisp.org>
28381
28382         Ensure all prerequisites of <wchar.h> are included.
28383         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28384         before <wchar.h>.
28385         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28386         gl_MBRLEN_NUL_RETVAL): Likewise.
28387         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28388         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28389         AC_FUNC_MBRTOWC): Likewise.
28390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28391         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28392         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28393         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28394         Likewise.
28395         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28396         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28397         (gl_WCHAR_H): Improve comments.
28398         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28399
28400 2010-12-25  Bruno Haible  <bruno@clisp.org>
28401
28402         strtok_r: Fix C syntax error in autoconf macro.
28403         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28404         characters in test program.
28405
28406 2010-12-24  Bruno Haible  <bruno@clisp.org>
28407
28408         ceil, trunc, round: Fix gcc warnings.
28409         * lib/ceil.c (MIN): Undefine before redefining.
28410         * lib/trunc.c (MIN): Likewise.
28411         * lib/round.c (MIN): Likewise.
28412         Include <math.h> first.
28413
28414 2010-12-24  Bruno Haible  <bruno@clisp.org>
28415
28416         select tests: Avoid failures on OSF/1 5.1.
28417         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28418         failure of closing the last socket; it may fail with ECONNRESET.
28419
28420 2010-12-24  Eric Blake  <eblake@redhat.com>
28421
28422         stdint: avoid HP-UX 10.20 preprocessor bug
28423         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28424         than #if.
28425         * tests/test-floor2.c (main): Likewise.
28426         Reported by Peter O'Gorman.
28427
28428         pipe: make obsoletion transition easier
28429         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28430         * modules/pipe (Files): Include revived file.
28431         (Include): Drop reference, to mirror getdate's behavior.
28432
28433 2010-12-24  Bruno Haible  <bruno@clisp.org>
28434
28435         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28436         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28437         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28438         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28439
28440 2010-12-24  Bruno Haible  <bruno@clisp.org>
28441
28442         gethostname: Ensure declaration on NonStop Kernel.
28443         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28444         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28445
28446 2010-12-24  Bruno Haible  <bruno@clisp.org>
28447
28448         sys_select: Ensure all necessary types on NonStop Kernel.
28449         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28450         include <sys/time.h>.
28451         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28452         NonStop Kernel.
28453         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28454
28455 2010-12-24  Bruno Haible  <bruno@clisp.org>
28456
28457         sys_select: Remove unneeded include.
28458         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28459         have <sys/select.h>.
28460
28461 2010-12-24  Bruno Haible  <bruno@clisp.org>
28462
28463         gethostname: Provide a fallback for HOST_NAME_MAX.
28464         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28465         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28466         instead.
28467         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28468
28469 2010-12-24  Bruno Haible  <bruno@clisp.org>
28470
28471         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28472         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28473         (SA_RESTART): Likewise.
28474         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28475
28476 2010-12-24  Bruno Haible  <bruno@clisp.org>
28477
28478         signal: Define NSIG.
28479         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28480         * tests/test-signal.c (nsig): New variable.
28481         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28482
28483 2010-12-24  Bruno Haible  <bruno@clisp.org>
28484
28485         rename, renameat: Avoid test failures on OSF/1 5.1.
28486         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28487         alternative error codes.
28488         * tests/test-renameat.c (main): Likewise.
28489
28490 2010-12-24  Bruno Haible  <bruno@clisp.org>
28491
28492         *printf: Detect large precisions bug on Solaris 10/SPARC.
28493         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28494         by Paul Eggert.
28495         * tests/test-snprintf-posix.h (test_function): Add this test code here
28496         too.
28497         * tests/test-sprintf-posix.h (test_function): Likewise.
28498         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28499         * tests/test-vasprintf-posix.c (test_function): Likewise.
28500         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28501         around by gnulib.
28502         * doc/posix-functions/printf.texi: Likewise.
28503         * doc/posix-functions/snprintf.texi: Likewise.
28504         * doc/posix-functions/sprintf.texi: Likewise.
28505         * doc/posix-functions/vfprintf.texi: Likewise.
28506         * doc/posix-functions/vprintf.texi: Likewise.
28507         * doc/posix-functions/vsnprintf.texi: Likewise.
28508         * doc/posix-functions/vsprintf.texi: Likewise.
28509         * doc/posix-functions/dprintf.texi: Undo last commit.
28510         * doc/posix-functions/vdprintf.texi: Likewise.
28511
28512 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28513
28514         tests: port test-fdutimensat.c to Solaris 8
28515         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28516         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28517         On Solaris 8, it fails with errno == ENOSYS, because there is no
28518         futimens (so it can't use the fd), and there is no lutimens (so it
28519         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28520
28521         vsnprintf: make more consistent with snprintf; doc fixes
28522
28523         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28524         the byte count return problem was promoted from the snprintf-posix
28525         to the snprintf module.
28526         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28527         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28528         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28529         * tests/test-snprintf.c (main): Check the byte count returned.
28530         * tests/test-vsnprintf.c (main): Likewise.
28531
28532 2010-12-23  Eric Blake  <eblake@redhat.com>
28533
28534         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28535         * modules/sigpipe (License): Relax license.
28536
28537 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28538
28539         doc: document Solaris printf bug with large float precisions
28540         * doc/posix-functions/dprintf.texi (dprintf):
28541         * doc/posix-functions/fprintf.texi (fprintf):
28542         * doc/posix-functions/printf.texi (printf):
28543         * doc/posix-functions/snprintf.texi (snprintf):
28544         * doc/posix-functions/sprintf.texi (sprintf):
28545         * doc/posix-functions/vdprintf.texi (vdprintf):
28546         * doc/posix-functions/vfprintf.texi (vfprintf):
28547         * doc/posix-functions/vprintf.texi (vprintf):
28548         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28549         * doc/posix-functions/vsprintf.texi (vsprintf):
28550         Mention that these functions mishandle large floating point
28551         precisions on Solaris 10.  The same bug is also present in Solaris
28552         8, and I assume earlier.  This causes "cd gnulib-tests; make
28553         check" to fail on Solaris 8 (and I assume, later) when building
28554         the latest coreutils, in test-vasprintf-posix's call to
28555         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28556         the wide flavors (e.g., wprintf) so this patch just updates the
28557         documentation for the narrow ones.
28558
28559         test-posixtm.c: add two tests
28560         * tests/test-posixtm.c: Add two tests, to highlight the
28561         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28562         around this bug; this is merely to document it.
28563
28564 2010-12-22  Bruno Haible  <bruno@clisp.org>
28565
28566         getlogin_r: Work around portability problem on OSF/1.
28567         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28568         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28569         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28570         test for a truncated result.
28571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28572         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28573         * modules/getlogin_r (Depends-on): Add memchr.
28574         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28575
28576 2010-12-22  Bruno Haible  <bruno@clisp.org>
28577
28578         ptsname: Avoid test failure on OSF/1 5.1.
28579         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28580         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28581         (same_slave): New function.
28582         (main): Use it to compare ptsname's result with the expected file name.
28583
28584 2010-12-22  Bruno Haible  <bruno@clisp.org>
28585
28586         Port extended stdio modules to HP NonStop Kernel.
28587         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28588         macros.
28589         * lib/fbufmode.c: Update comments.
28590         * lib/fflush.c: Likewise.
28591         * lib/fpurge.c: Likewise.
28592         * lib/freadable.c: Likewise.
28593         * lib/freadahead.c: Likewise.
28594         * lib/freading.c: Likewise.
28595         * lib/freadptr.c: Likewise.
28596         * lib/freadseek.c: Likewise.
28597         * lib/fseeko.c: Likewise.
28598         * lib/fseterr.c: Likewise.
28599         * lib/fwritable.c: Likewise.
28600         * lib/fwriting.c: Likewise.
28601         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28602
28603 2010-12-22  Bruno Haible  <bruno@clisp.org>
28604
28605         ttyname_r: Work around bug on OSF/1 5.1.
28606         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28607         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28608         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28609         present.
28610         * lib/ttyname_r.c (ttyname_r): Update comments.
28611
28612 2010-12-22  Bruno Haible  <bruno@clisp.org>
28613
28614         round: Implement result sign according to IEEE 754.
28615         * lib/round.c (MIN, MINUS_ZERO): New macros.
28616         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28617         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28618         * tests/test-round-ieee.c (main): Likewise.
28619         * tests/test-roundl-ieee.c (main): Likewise.
28620
28621         trunc: Implement result sign according to IEEE 754.
28622         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28623         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28624         * tests/test-trunc2.c: Include minus-zero.h.
28625         (MINUS_ZERO): New macro.
28626         (trunc_reference): Keep in sync with lib/trunc.c.
28627         * tests/test-truncf2.c: Include minus-zero.h.
28628         (MINUS_ZERO): New macro.
28629         (truncf_reference): Keep in sync with lib/trunc.c.
28630         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28631         * tests/test-trunc-ieee.c (main): Likewise.
28632         * tests/test-truncl-ieee.c (main): Likewise.
28633
28634         ceil: Implement result sign according to IEEE 754.
28635         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28636         (FUNC): Return -0.0 for -1 < x < 0.
28637         * tests/test-ceil2.c: Include minus-zero.h.
28638         (MINUS_ZERO): New macro.
28639         (ceil_reference): Keep in sync with lib/ceil.c.
28640         * tests/test-ceilf2.c: Include minus-zero.h.
28641         (MINUS_ZERO): New macro.
28642         (ceilf_reference): Keep in sync with lib/ceil.c.
28643         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28644         * tests/test-ceil-ieee.c (main): Likewise.
28645         * tests/test-ceill-ieee.c (main): Likewise.
28646
28647         floor: Implement result sign according to IEEE 754.
28648         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28649         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28650         * tests/test-floorf2.c (floorf_reference): Likewise.
28651         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28652         * tests/test-floor-ieee.c (main): Likewise.
28653         * tests/test-floorl-ieee.c (main): Likewise.
28654
28655 2010-12-22  Bruno Haible  <bruno@clisp.org>
28656
28657         getaddrinfo: Update doc.
28658         * doc/posix-functions/gai_strerror.texi: Return type is also different
28659         on AIX and HP-UX.
28660
28661 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28662
28663         getaddrinfo, inet_ntop: Update doc for Solaris.
28664         * doc/posix-functions/gai_strerror.texi: Return type is also an
28665         issue on Solaris 9 and earlier.
28666         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28667         on Solaris 10 and earlier.
28668
28669 2010-12-21  Bruno Haible  <bruno@clisp.org>
28670
28671         New module 'roundl-ieee'.
28672         * modules/roundl-ieee: New file.
28673         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28674         test whether roundl works according to ISO C 99 with IEC 60559.
28675         * m4/roundl-ieee.m4: New file.
28676         * modules/roundl-ieee-tests: New file.
28677         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28678         * tests/test-roundl.c (main): Remove signbit tests.
28679         * modules/roundl-tests (Depends-on): Remove signbit.
28680         * doc/posix-functions/roundl.texi: Mention the new module.
28681
28682 2010-12-21  Bruno Haible  <bruno@clisp.org>
28683
28684         New module 'truncl-ieee'.
28685         * modules/truncl-ieee: New file.
28686         * modules/truncl-ieee-tests: New file.
28687         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28688         * tests/test-truncl.c (main): Remove signbit tests.
28689         * modules/truncl-tests (Depends-on): Remove signbit.
28690         * doc/posix-functions/truncl.texi: Mention the new module.
28691
28692 2010-12-21  Bruno Haible  <bruno@clisp.org>
28693
28694         New module 'ceill-ieee'.
28695         * modules/ceill-ieee: New file.
28696         * modules/ceill-ieee-tests: New file.
28697         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28698         * tests/test-ceill.c (main): Remove signbit tests.
28699         * modules/ceill-tests (Depends-on): Remove signbit.
28700         * doc/posix-functions/ceill.texi: Mention the new module.
28701
28702 2010-12-21  Bruno Haible  <bruno@clisp.org>
28703
28704         New module 'floorl-ieee'.
28705         * modules/floorl-ieee: New file.
28706         * modules/floorl-ieee-tests: New file.
28707         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28708         * tests/test-floorl.c (main): Remove signbit tests.
28709         * modules/floorl-tests (Depends-on): Remove signbit.
28710         * doc/posix-functions/floorl.texi: Mention the new module.
28711
28712 2010-12-21  Bruno Haible  <bruno@clisp.org>
28713
28714         New module 'round-ieee'.
28715         * modules/round-ieee: New file.
28716         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28717         whether round works according to ISO C 99 with IEC 60559.
28718         * m4/round-ieee.m4: New file.
28719         * modules/round-ieee-tests: New file.
28720         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28721         * tests/test-round1.c (main): Remove signbit tests.
28722         * modules/round-tests (Depends-on): Remove 'signbit'.
28723         * doc/posix-functions/round.texi: Mention the new module.
28724
28725 2010-12-21  Bruno Haible  <bruno@clisp.org>
28726
28727         New module 'trunc-ieee'.
28728         * modules/trunc-ieee: New file.
28729         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28730         whether trunc works according to ISO C 99 with IEC 60559.
28731         * m4/trunc-ieee.m4: New file.
28732         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28734         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28735         * modules/trunc-ieee-tests: New file.
28736         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28737         * tests/test-trunc1.c (main): Remove signbit tests.
28738         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28739         * doc/posix-functions/trunc.texi: Mention the new module.
28740
28741 2010-12-21  Bruno Haible  <bruno@clisp.org>
28742
28743         New module 'ceil-ieee'.
28744         * modules/ceil-ieee: New file.
28745         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28746         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28747         ISO C 99 with IEC 60559.
28748         * m4/ceil-ieee.m4: New file.
28749         * modules/ceil (Files): Add lib/ceil.c.
28750         (Depends-on): Add 'float'.
28751         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28752         * lib/math.in.h (ceil): New declaration.
28753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28754         REPLACE_CEIL.
28755         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28756         * modules/ceil-ieee-tests: New file.
28757         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28758         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28759         * doc/posix-functions/ceil.texi: Mention the new module.
28760
28761 2010-12-21  Bruno Haible  <bruno@clisp.org>
28762
28763         New module 'floor-ieee'.
28764         * modules/floor-ieee: New file.
28765         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28766         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28767         ISO C 99 with IEC 60559.
28768         * m4/floor-ieee.m4: New file.
28769         * modules/floor (Files): Add lib/floor.c.
28770         (Depends-on): Add 'float'.
28771         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28772         * lib/math.in.h (floor): New declaration.
28773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28774         REPLACE_FLOOR.
28775         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28776         * modules/floor-ieee-tests: New file.
28777         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28778         * tests/test-math-c++.cc: Check the signature of 'floor'.
28779         * doc/posix-functions/floor.texi: Mention the new module.
28780
28781 2010-12-21  Bruno Haible  <bruno@clisp.org>
28782
28783         New module 'roundf-ieee'.
28784         * modules/roundf-ieee: New file.
28785         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28786         test whether roundf works according to ISO C 99 with IEC 60559.
28787         * m4/roundf-ieee.m4: New file.
28788         * modules/roundf-ieee-tests: New file.
28789         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28790         * tests/test-roundf1.c (main): Remove signbit tests.
28791         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28792         * doc/posix-functions/roundf.texi: Mention the new module.
28793
28794 2010-12-21  Bruno Haible  <bruno@clisp.org>
28795
28796         New module 'truncf-ieee'.
28797         * modules/truncf-ieee: New file.
28798         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28799         test whether truncf works according to ISO C 99 with IEC 60559.
28800         * m4/truncf-ieee.m4: New file.
28801         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28802         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28803         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28804         * modules/truncf-ieee-tests: New file.
28805         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28806         * tests/test-truncf1.c (main): Remove signbit tests.
28807         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28808         * doc/posix-functions/truncf.texi: Mention the new module.
28809
28810 2010-12-21  Bruno Haible  <bruno@clisp.org>
28811
28812         New module 'ceilf-ieee'.
28813         * modules/ceilf-ieee: New file.
28814         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28815         test whether ceilf works according to ISO C 99 with IEC 60559.
28816         * m4/ceilf-ieee.m4: New file.
28817         * modules/ceilf-ieee-tests: New file.
28818         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28819         * tests/test-ceilf1.c (main): Remove signbit tests.
28820         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28821         * doc/posix-functions/ceilf.texi: Mention the new module.
28822
28823 2010-12-21  Bruno Haible  <bruno@clisp.org>
28824
28825         New module 'floorf-ieee'.
28826         * modules/floorf-ieee: New file.
28827         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28828         test whether floorf works according to ISO C 99 with IEC 60559.
28829         * m4/floorf-ieee.m4: New file.
28830         * modules/floorf-ieee-tests: New file.
28831         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28832         * tests/test-floorf1.c (main): Remove signbit tests.
28833         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28834         * doc/posix-functions/floorf.texi: Mention the new module.
28835
28836 2010-12-21  Bruno Haible  <bruno@clisp.org>
28837
28838         Support for minus zero in autoconf macros.
28839         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28840         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28841         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28842         * tests/minus-zero.h: Update comments.
28843
28844 2010-12-21  Bruno Haible  <bruno@clisp.org>
28845
28846         Tests for module 'ceil'.
28847         * modules/ceil-tests: New file.
28848         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28849         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28850
28851 2010-12-21  Bruno Haible  <bruno@clisp.org>
28852
28853         Tests for module 'floor'.
28854         * modules/floor-tests: New file.
28855         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28856         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28857
28858 2010-12-21  Bruno Haible  <bruno@clisp.org>
28859
28860         math: Fix indentation.
28861         * lib/math.in.h (floorf): Fix indentation.
28862
28863 2010-12-21  Bruno Haible  <bruno@clisp.org>
28864
28865         Fix cross-compilation guesses on Solaris.
28866         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28867         not match "solaris2.10".
28868         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28869         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28870         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28871
28872 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28873
28874         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28875         This fixes a problem observed with the latest coreutils snapshot
28876         that caused a test to fail on Solaris 8.  src/csplit.c's call
28877         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28878         earlier, instead of returning the number of bytes that would have
28879         been generated; this causes csplit to incorrectly report memory
28880         exhaustion.
28881         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28882         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28883         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28884         comments to match.
28885         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28886         Fix typo in matching older versions of Solaris: "solaris2.10"
28887         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28888         only for guessing while cross-compiling.
28889         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28890
28891 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28892
28893         ftoastr: fix comment again
28894         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28896         Also, simplify example a bit by using flags = 0.
28897
28898 2010-12-20  Bruno Haible  <bruno@clisp.org>
28899
28900         round*, trunc*: Update documentation regarding glibc.
28901         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28902         * doc/posix-functions/round.texi: Likewise.
28903         * doc/posix-functions/roundl.texi: Likewise.
28904         * doc/posix-functions/truncf.texi: Likewise.
28905         * doc/posix-functions/trunc.texi: Likewise.
28906         * doc/posix-functions/truncl.texi: Likewise.
28907
28908 2010-12-20  Bruno Haible  <bruno@clisp.org>
28909
28910         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28911         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28912         * doc/posix-functions/round.texi: Likewise.
28913         * doc/posix-functions/roundl.texi: Likewise.
28914
28915 2010-12-20  Bruno Haible  <bruno@clisp.org>
28916
28917         ttyname_r: Add missing declaration on HP-UX 11.
28918         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28919         HAVE_TTYNAME_R.
28920         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28921         declared. Set HAVE_TTYNAME_R always.
28922         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28923         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28924         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28925         HAVE_TTYNAME_R.
28926         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28927
28928 2010-12-20  Bruno Haible  <bruno@clisp.org>
28929
28930         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28931         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28932         * doc/posix-functions/getlogin_r.texi: Likewise.
28933         * tests/test-getlogin.c: Include <errno.h>.
28934         (main): Avoid test failure on HP-UX 11.11.
28935         * tests/test-getlogin_r.c (main): Likewise.
28936
28937 2010-12-20  Bruno Haible  <bruno@clisp.org>
28938
28939         getlogin_r: Add missing declaration on HP-UX 11.
28940         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28941         declared also when it exists as a function.
28942         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28943
28944 2010-12-20  Bruno Haible  <bruno@clisp.org>
28945
28946         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28947         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28948         through wcrtomb.
28949
28950 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28951
28952         ftoastr: fix comment
28953         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28954         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28955
28956 2010-12-19  Bruno Haible  <bruno@clisp.org>
28957
28958         isnan: Ensure it is a macro.
28959         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28960         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28961         Solaris.
28962
28963 2010-12-19  Bruno Haible  <bruno@clisp.org>
28964
28965         ldexpl test: Fix link error on OSF/1 5.1.
28966         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28967
28968 2010-12-19  Bruno Haible  <bruno@clisp.org>
28969
28970         wctype: Make it work in C++ mode on OSF/1 5.1.
28971         * lib/wctype.in.h (iswblank): Declare but not define here.
28972         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28973         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28974         * modules/wctype (Files): Add lib/iswblank.c.
28975
28976 2010-12-19  Bruno Haible  <bruno@clisp.org>
28977
28978         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28979         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28980         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28981
28982 2010-12-19  Bruno Haible  <bruno@clisp.org>
28983
28984         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28985         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28986         _POSIX_PII_SOCKET.
28987         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28988         * doc/posix-functions/recvfrom.texi: Likewise.
28989         * doc/posix-functions/send.texi: Likewise.
28990         * doc/posix-functions/sendto.texi: Likewise.
28991
28992 2010-12-19  Bruno Haible  <bruno@clisp.org>
28993
28994         tcgetsid: Add missing declaration on OSF/1 5.1.
28995         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28996         HAVE_TCGETSID.
28997         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28998         Don't set HAVE_TCGETSID.
28999         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
29000         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
29001         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
29002         HAVE_TCGETSID.
29003         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
29004
29005 2010-12-19  Bruno Haible  <bruno@clisp.org>
29006
29007         stdio: Fix problem with popen() declaration on OSF/1 5.1.
29008         * lib/stdio.in.h: During the include_next statement, let recursive
29009         includes of this file include only the system header file.
29010
29011 2010-12-19  Bruno Haible  <bruno@clisp.org>
29012
29013         iconv_open: Fix regression from 2010-12-04.
29014         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
29015         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
29016
29017 2010-12-19  Bruno Haible  <bruno@clisp.org>
29018
29019         stdbool test: Avoid a gcc warning.
29020         * tests/test-stdbool.c (main): Fail if e1 is false.
29021         Reported by Jim Meyering.
29022
29023 2010-12-19  Jim Meyering  <meyering@redhat.com>
29024
29025         setenv: restore to working order
29026         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
29027         mistakenly removed.
29028         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
29029         HAVE_SETENV.
29030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
29031         HAVE_SETENV.
29032
29033 2010-12-19  Bruno Haible  <bruno@clisp.org>
29034
29035         Document some different function declarations on OSF/1 5.1.
29036         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
29037         * doc/posix-functions/inet_ntop.texi: Likewise.
29038         * doc/posix-functions/gethostname.texi: Likewise.
29039         * lib/unistd.in.h (gethostname): Update comment.
29040
29041 2010-12-19  Bruno Haible  <bruno@clisp.org>
29042
29043         doc: Mention vasprintf-posix module.
29044         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
29045         the 'vasprintf-posix' module.
29046         * doc/glibc-functions/vasprintf.texi: Likewise.
29047
29048 2010-12-19  Bruno Haible  <bruno@clisp.org>
29049
29050         unsetenv: Add missing declaration on OSF/1 5.1.
29051         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
29052         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
29053         Don't set HAVE_UNSETENV. In the test program, set _BSD.
29054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
29055         not HAVE_UNSETENV.
29056         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
29057         HAVE_UNSETENV.
29058         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
29059
29060 2010-12-19  Bruno Haible  <bruno@clisp.org>
29061
29062         setenv: Add missing declaration on OSF/1 5.1.
29063         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
29064         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
29065         declared. Don't set HAVE_SETENV.
29066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
29067         not HAVE_SETENV.
29068         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
29069         HAVE_SETENV.
29070         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
29071
29072 2010-12-19  Bruno Haible  <bruno@clisp.org>
29073
29074         nl_langinfo tests: Avoid gcc warning.
29075         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
29076
29077 2010-12-19  Bruno Haible  <bruno@clisp.org>
29078
29079         mknod: Avoid error in C++ mode on OSF/1 with GCC.
29080         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
29081         _GL_CXXALIAS_SYS.
29082
29083 2010-12-19  Bruno Haible  <bruno@clisp.org>
29084
29085         stdbool: Relax test.
29086         * tests/test-stdbool.c (e): Don't require that casts from a variable's
29087         address to 'bool' work in static initializer, for compilers other than
29088         GCC.
29089
29090 2010-12-19  Bruno Haible  <bruno@clisp.org>
29091
29092         ftello: Add missing declaration on OSF/1 5.1.
29093         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
29094         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
29095         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
29096         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
29097         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
29098
29099 2010-12-19  Bruno Haible  <bruno@clisp.org>
29100
29101         fseeko: Add missing declaration on OSF/1 5.1.
29102         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
29103         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
29104         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
29105         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
29106         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
29107
29108 2010-12-19  Bruno Haible  <bruno@clisp.org>
29109
29110         fchdir: Add missing declaration on OSF/1 5.1.
29111         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
29112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
29113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
29114         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
29115         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
29116
29117 2010-12-19  Bruno Haible  <bruno@clisp.org>
29118
29119         relocatable-prog-wrapper: Separate from relocatable-prog.
29120         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
29121         uninstall-relocwrapper rule here.
29122         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
29123         Reported by Ian Beckwith <ianb@erislabs.net>.
29124
29125 2010-12-19  Bruno Haible  <bruno@clisp.org>
29126
29127         unistr/u8-mbsnlen: Add missing dependency.
29128         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
29129         Reported by Ian Beckwith <ianb@erislabs.net>.
29130
29131 2010-12-19  Bruno Haible  <bruno@clisp.org>
29132
29133         iconv: Make it possible again to use this module without 'iconv-h'.
29134         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
29135         if it is not defined.
29136         Reported by Ian Beckwith <ianb@erislabs.net>.
29137
29138 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29139
29140         acl: port to Solaris 8 when copying from tmpfs to ufs
29141         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
29142         error number.  Problem observed on Solaris 8 with latest
29143         coreutils, with "mv A B", where A is on a tmpfs file system and B
29144         is on a ufs file system.  This caused coreutils' mv/part-symlink
29145         test to fail.
29146
29147         tests: set fail=0 at start
29148         * tests/init.sh (setup_): Move fail=0 initialization here ...
29149         (mktempd_): ... from here, so that tests can rely on fail being
29150         set to 0 initially.  This fixes a problem in coreutils; see:
29151         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29152
29153 2010-12-18  Bruno Haible  <bruno@clisp.org>
29154
29155         memmem-simple: Stylistic changes.
29156         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29157         Fix preprocessor directive indentation.
29158
29159 2010-12-15  Pádraig Brady <P@draigBrady.com>
29160
29161         memmem, memmem-simple: reorganize and expand empty needle check
29162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29163         functional checks to memmem-simple so that one has a fully functional
29164         memmem by using just this module.
29165         Restrict the performance only check to the memmem module.
29166         Also expand the empty needle check to ensure the correct
29167         pointer is returned, not just a non NULL pointer.
29168         * doc/glibc-functions/memmem.texi: Rearrange the portability
29169         documentation to correlate with the rearranged checks.
29170         Clarify exactly how the memmem and memmem-simple modules
29171         relate to each other.
29172
29173 2010-12-15  Pádraig Brady <P@draigBrady.com>
29174             Bruno Haible  <bruno@clisp.org>
29175
29176         Improve cross-compilation guesses for uClibc.
29177         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29178         that uClibc does not have the glibc bug.
29179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29180         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29181
29182 2010-12-14  Eric Blake  <eblake@redhat.com>
29183
29184         configmake: provide fallbacks for oldest supported autotools
29185         * m4/configmake.m4: New file.
29186         * modules/configmake (Files): Ship it.
29187         (configure.ac): Use it to guarantee fallbacks.
29188
29189 2010-12-13  Pádraig Brady <P@draigBrady.com>
29190
29191         read-file: Improve handling of large files
29192         * lib/read-file.c (fread_file): Minimize realloc()s
29193         for regular files, and better manage sizes around SIZE_MAX.
29194
29195 2010-12-13  Eric Blake  <eblake@redhat.com>
29196
29197         cloexec, fcntl: relax license
29198         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29199         consent from all contributors.
29200         * modules/fcntl (License): Likewise.
29201
29202 2010-12-10  Bruno Haible  <bruno@clisp.org>
29203
29204         Tests for module 'pipe-posix'.
29205         * modules/pipe-posix-tests: New file.
29206         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29207
29208 2010-12-10  Bruno Haible  <bruno@clisp.org>
29209
29210         pipe-posix: Make it work in C++ mode.
29211         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29212         (pipe): Use common idiom, not a macro definition.
29213         * lib/pipe.c: New file.
29214         * m4/pipe.m4: New file.
29215         * modules/pipe-posix (Description): Enhance.
29216         (Files): Add lib/pipe.c, m4/pipe.m4.
29217         (configure.ac): Invoke gl_FUNC_PIPE.
29218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29219         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29220         * tests/test-unistd-c++.cc: Check the signature of pipe.
29221
29222 2010-12-10  Bruno Haible  <bruno@clisp.org>
29223
29224         Rename module 'pipe' to 'spawn-pipe'.
29225         * modules/spawn-pipe: New file, renamed from modules/pipe.
29226         (Files, configure.ac, Makefile.am): Update.
29227         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29228         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29229         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29230         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29231         "spawn-pipe.h" instead of "pipe.h".
29232         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29233         to gl_SPAWN_PIPE.
29234         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29235         (Files, Makefile.am): Update.
29236         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29237         Update.
29238         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29239         Include "spawn-pipe.h" instead of "pipe.h".
29240         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29241         * lib/javacomp.c: Likewise.
29242         * lib/javaversion.c: Likewise.
29243         * lib/pipe-filter-gi.c: Likewise.
29244         * lib/pipe-filter-ii.c: Likewise.
29245         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29246         * modules/javacomp (Depends-on): Likewise.
29247         * modules/javaversion (Depends-on): Likewise.
29248         * modules/pipe-filter-gi (Depends-on): Likewise.
29249         * modules/pipe-filter-ii (Depends-on): Likewise.
29250         * MODULES.html.sh (Executing programs): Update.
29251         * NEWS: Mention the change.
29252
29253 2010-12-10  Eric Blake  <eblake@redhat.com>
29254
29255         pipe-posix: new module
29256         * modules/pipe-posix: New file.
29257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29258         (gl_UNISTD_H): Check for declaration.
29259         * modules/unistd (Makefile.am): Substitute it.
29260         * lib/unistd.in.h (pipe): Provide it for mingw.
29261         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29262         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29263
29264 2010-12-07  Bruno Haible  <bruno@clisp.org>
29265
29266         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29267         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29268         u8_strcmp_gnu.
29269         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29270
29271 2010-12-06  Bruno Haible  <bruno@clisp.org>
29272
29273         Update internal documentation.
29274         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29275
29276 2010-12-04  Bruno Haible  <bruno@clisp.org>
29277
29278         Put more information about failed tests into the test return codes.
29279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29280         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29281         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29282         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29283         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29285         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29286         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29287         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29289         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29290         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29291         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29292         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29293         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29294         returns a bit mask.
29295         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29296         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29297         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29298         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29299         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29300         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29301         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29303         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29304         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29305         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29306         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29307         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29308         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29309         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29310         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29311         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29312         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29313         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29314         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29316         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29318         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29319         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29320         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29321         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29322         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29323         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29324         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29325         gl_PRINTF_PRECISION): Likewise.
29326         * m4/regex.m4 (gl_REGEX): Likewise.
29327         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29328         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29329         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29330         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29331         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29334         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29335         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29336         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29337         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29338         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29339         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29340         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29341         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29342         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29343         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29344         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29345         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29346         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29347         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29348         enumerated value.
29349         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29350
29351 2010-12-04  Bruno Haible  <bruno@clisp.org>
29352
29353         Update for Solaris 11 2010-11.
29354         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29355         Express, released in November 2010.
29356
29357 2010-12-04  Bruno Haible  <bruno@clisp.org>
29358
29359         nproc: Relax license.
29360         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29361         and Paul Eggert.
29362         Requested by Ludovic Courtès <ludo@gnu.org>.
29363
29364 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29365
29366         utimecmp: fine-grained src to nearby coarse-grained dest
29367
29368         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29369         and the source is on a file system with higher-resolution time
29370         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29371         not work, and the time stamps are close together, the algorithm to
29372         determine the exact resolution from the read-back mtime was buggy:
29373         it had a "!=" where it should have had an "==".  This bug has been
29374         in the code ever since it was introduced to gnulib.
29375         Problem reported by Dan Jacobson in
29376         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29377
29378 2010-11-30  Bruno Haible  <bruno@clisp.org>
29379
29380         strerror_r-posix: Fix autoconf test.
29381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29382
29383 2010-11-28  Bruno Haible  <bruno@clisp.org>
29384             Paul Eggert  <eggert@cs.ucla.edu>
29385
29386         Tests for module 'getdomainname'.
29387         * modules/getdomainname-tests: New file.
29388         * tests/test-getdomainname.c: New file, based on
29389         tests/test-gethostname.c.
29390
29391 2010-11-28  Bruno Haible  <bruno@clisp.org>
29392             Paul Eggert  <eggert@cs.ucla.edu>
29393
29394         getdomainname: Use the system function when possible.
29395         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29396         (getdomainname): Replace if needed. Provide the declaration if it is
29397         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29398         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29399         (getdomainname): When the system has getdomainname, call the system
29400         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29401         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29402         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29403         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29404         the function if its second argument is of type 'int' or if it is found
29405         in libnsl.
29406         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29407         <sys/systeminfo.h> and sysinfo().
29408         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29409         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29410         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29411         HAVE_GETDOMAINNAME.
29412         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29413         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29414         * doc/glibc-functions/getdomainname.texi: Document the problems with
29415         the getdomainname declaration.
29416
29417 2010-11-28  Bruno Haible  <bruno@clisp.org>
29418
29419         sys_socket: Ensure ss_family field on AIX.
29420         * lib/sys_socket.in.h (ss_family): New macro definition.
29421         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29422         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29423         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29424         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29425         * modules/sys_socket (Makefile.am): Substitute
29426         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29427         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29428
29429 2010-11-27  Bruno Haible  <bruno@clisp.org>
29430
29431         readline: Improve configure output.
29432         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29433         "checking for readline..." result understandable.
29434
29435 2010-11-27  Bruno Haible  <bruno@clisp.org>
29436
29437         *printf-posix: Detect a bug on Solaris 10/x86.
29438         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29439         for floating-point output.
29440         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29441         directive.
29442         * tests/test-snprintf-posix.h (test_function): Likewise.
29443         * tests/test-sprintf-posix.h (test_function): Likewise.
29444         * tests/test-vasprintf-posix.c (test_function): Likewise.
29445         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29446         * doc/posix-functions/printf.texi: Likewise.
29447         * doc/posix-functions/snprintf.texi: Likewise.
29448         * doc/posix-functions/sprintf.texi: Likewise.
29449         * doc/posix-functions/vfprintf.texi: Likewise.
29450         * doc/posix-functions/vprintf.texi: Likewise.
29451         * doc/posix-functions/vsnprintf.texi: Likewise.
29452         * doc/posix-functions/vsprintf.texi: Likewise.
29453         * doc/glibc-functions/obstack_printf.texi: Likewise.
29454         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29455
29456 2010-11-27  Bruno Haible  <bruno@clisp.org>
29457
29458         Fix link error when module libunistring-optional is in use.
29459         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29460         * modules/striconveha-tests (Makefile.am): Likewise.
29461
29462 2010-11-27  Bruno Haible  <bruno@clisp.org>
29463
29464         regex: Mention link dependencies.
29465         * modules/regex (Link): New section.
29466         * modules/rpmatch (Link): Likewise.
29467         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29468
29469 2010-11-27  Bruno Haible  <bruno@clisp.org>
29470
29471         ftoastr: Fix compilation error on Solaris.
29472         * lib/ftoastr.c: Include <config.h>.
29473
29474 2010-11-27  Bruno Haible  <bruno@clisp.org>
29475
29476         getloadavg: Update documentation.
29477         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29478
29479 2010-11-27  Bruno Haible  <bruno@clisp.org>
29480
29481         sys_socket: Fix test whether the functions are declared.
29482         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29483         not <sys/select.h>.
29484
29485 2010-11-27  Bruno Haible  <bruno@clisp.org>
29486
29487         getpass: Make sure to get system declaration on some platforms.
29488         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29489         gl_USE_SYSTEM_EXTENSIONS.
29490         * modules/getpass (Depends-on): Add extensions.
29491
29492 2010-11-26  Bruno Haible  <bruno@clisp.org>
29493
29494         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29495         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29496         'iconv' module is present.
29497         (ICONV_CONST): New macro.
29498         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29499         ICONV_CONST.
29500         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29501         set ICONV_CONST.
29502         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29503         here.
29504         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29505         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29506         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29507         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29508         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29509         present.
29510
29511 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29512
29513         ftoastr: comment fix
29514         * lib/ftoastr.c: "little" -> "little or no" in comment
29515
29516 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29517
29518         stdint: port to GCC 4.3 + OSX + Octave
29519         On this platform, stdint.h is buggy and defines int64_t to long
29520         long int.  The replacement defined it to long int, causing
29521         problems with C++ style name mangling.  Instead, trust the system
29522         definition if INT64_MAX is defined, and likewise for the unsigned
29523         variant.   Problem reported by Jarno Rajahalme in
29524         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29525         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29526         and don't mess with int64_t and INT64_MAX in this case.
29527         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29528
29529 2010-11-24  Bruno Haible  <bruno@clisp.org>
29530
29531         doc: Corrections regarding MacOS X 10.4 and 10.5.
29532         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29533         MacOS X.
29534         Reported by Simon Josefsson.
29535
29536 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29537
29538         Uninstall ".bin" files installed by relocwrapper.
29539         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29540         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29541         unless it is already there.
29542
29543 2010-11-21  Bruno Haible  <bruno@clisp.org>
29544
29545         Update for NetBSD 5.0.
29546         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29547         NetBSD; the test fails on NetBSD 5.0.
29548         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29549         about NetBSD.
29550
29551 2010-11-21  Bruno Haible  <bruno@clisp.org>
29552
29553         Update for HP-UX 11.23 and HP-UX 11.31.
29554         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29555         HP-UX.
29556
29557 2010-11-21  Bruno Haible  <bruno@clisp.org>
29558
29559         Update for MacOS X 10.5.
29560         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29561         MacOS X; the test fails on MacOS X 10.5.8.
29562         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29563         about MacOS X.
29564
29565 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29566
29567         bootstrap: add bootstrap_sync option.
29568         See discussion at
29569         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29570         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29571         * build-aux/bootstrap: Accept --bootstrap-sync to update
29572         bootstrap if it is not identical to the local gnulib's
29573         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29574         enable this by default.  Accept --no-bootstrap-sync to disable
29575         it.
29576
29577 2010-11-20  Bruno Haible  <bruno@clisp.org>
29578
29579         Ensure that <features.h> is included before __GLIBC__ is tested.
29580         * lib/printf-parse.h: Include <features.h>.
29581         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29582         Reported by Mike Frysinger <vapier@gentoo.org>.
29583
29584         Ensure that <features.h> is included before __GLIBC__ is tested.
29585         * lib/wchar.in.h: Include <features.h>.
29586         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29587         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29588         Reported by Mike Frysinger <vapier@gentoo.org>.
29589
29590         Ensure that <features.h> is included before __GLIBC__ is tested.
29591         * lib/arpa_inet.in.h: Include <features.h>.
29592         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29593         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29594         Reported by Mike Frysinger <vapier@gentoo.org>.
29595
29596         Ensure that <features.h> is included before __GLIBC__ is tested.
29597         * build-aux/link-warning.h: Include <features.h>.
29598         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29599         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29600         Reported by Mike Frysinger <vapier@gentoo.org>.
29601
29602         Ensure that <features.h> is included before __GLIBC__ is tested.
29603         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29604         Reported by Mike Frysinger <vapier@gentoo.org>.
29605
29606 2010-11-20  Bruno Haible  <bruno@clisp.org>
29607
29608         memmem: Fix autoconf test.
29609         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29610
29611 2010-11-20  Bruno Haible  <bruno@clisp.org>
29612
29613         Port to uClibc.
29614         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29615         * lib/fcntl.in.h: Likewise.
29616         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29617         * lib/mbrtowc.c (mbrtowc): Likewise.
29618         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29619         * lib/strerror_r.c: Likewise.
29620         * lib/unistr/u8-strnlen.c: Likewise.
29621         * lib/vasnprintf.c (decimal_point_char): Likewise.
29622         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29623         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29624         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29625         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29626         * tests/test-sigaction.c (handler, main): Likewise.
29627         * lib/freading.h: Treat uClibc like a non-glibc platform.
29628         * lib/freading.c: Likewise.
29629         * lib/gettext.h: Likewise.
29630         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29631         Likewise.
29632         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29633         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29634         * lib/propername.c (proper_name_utf8): Likewise.
29635         * lib/spawn.in.h: Likewise.
29636         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29637         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29638         mem_cd_iconveh_internal): Likewise.
29639         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29640         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29641         strstr, strcasestr): Likewise.
29642         * lib/unicodeio.c (unicode_to_mb): Likewise.
29643         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29644         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29645         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29646         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29647         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29648         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29649         * lib/unistr/u8-stpncpy.c: Likewise.
29650         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29651         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29652         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29653         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29654         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29655         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29656         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29657         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29658         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29659         Likewise.
29660         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29661         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29662         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29663         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29665         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29666         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29667         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29668         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29669         * tests/test-striconveha.c (main): Likewise.
29670         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29671         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29672         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29673         * doc/posix-functions/getline.texi: Likewise.
29674         Reported by Mike Frysinger <vapier@gentoo.org>.
29675
29676 2010-11-20  Bruno Haible  <bruno@clisp.org>
29677
29678         nproc: Fix condition.
29679         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29680         HAVE_PTHREAD_AFFINITY_NP.
29681
29682 2010-11-20  Bruno Haible  <bruno@clisp.org>
29683
29684         Fix a comment.
29685         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29686
29687 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29688
29689         ftoastr: don't assume snprintf
29690         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29691         Implement a subset of snprintf here, by using sprintf safely.
29692         * modules/ftoastr (Depends-on): Remove snprintf.
29693
29694 2010-11-19  Jim Meyering  <meyering@redhat.com>
29695
29696         test-rename.h: fix compilation failure
29697         * tests/test-rename.h (test_rename): Add omitted "}".
29698
29699 2010-11-17  Jim Meyering  <meyering@redhat.com>
29700
29701         maint.mk: add a URL discussing the no-@acronym policy
29702         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29703
29704 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29705
29706         ftoastr: depend on snprintf, improve comments
29707         * lib/ftoastr.c: Also mention Loitsch's draft.
29708         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29709         needed in the current implementation, but it might simplify
29710         speeding up the code later.
29711         * modules/ftoastr: Depend on snprintf; this improves portability.
29712         Suggested by Bruno Haible in the same email.
29713
29714         ftoastr: port to hosts lacking strtof and strtold
29715         Problem reported by Bruno Haible in
29716         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29717         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29718         environment and strtold (and presumably strtof) are not available.
29719         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29720         (configure.ac): Require gl_C99_STRTOLD.
29721
29722 2010-11-18  Bruno Haible  <bruno@clisp.org>
29723
29724         c-strtold: Avoid link error on AIX 7.
29725         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29726         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29727         (gl_C_STRTOLD): Test whether strtold_l exists.
29728         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29729
29730 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29731
29732         intprops: new macro INT_BITS_STRLEN_BOUND
29733         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29734         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29735         not exposed.  Also, it uses a slightly tighter bound than before;
29736         though this makes no practical difference, we might as well be as
29737         tight as we easily can.
29738
29739         ftoastr: new module, for lossless conversion of floats to short strings
29740         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29741         * modules/ftoastr: New files.
29742
29743 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29744
29745         bootstrap: port to Solaris sed
29746         * build-aux/bootstrap (get_version): Port to Solaris sed.
29747         See Ralf Wildenhues's note in
29748         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29749
29750 2010-11-14  Jim Meyering  <meyering@redhat.com>
29751
29752         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29753         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29754         and move definition closer to sole use.
29755
29756 2010-11-13  Jim Meyering  <meyering@redhat.com>
29757
29758         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29759         Now we require at least autoconf-2.59, which means the work-around
29760         is no longer needed.
29761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29762         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29763         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29764         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29765         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29766
29767 2010-11-13  Bruno Haible  <bruno@clisp.org>
29768
29769         rename, renameat: Avoid test failures at NFS mounted locations.
29770         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29771         functions.
29772         (test_rename): Use assert_nonexistent.
29773         * tests/test-rename.c: Include <dirent.h>.
29774         * tests/test-renameat.c: Likewise.
29775         Reported by Gary V. Vaughan <gary@gnu.org>.
29776
29777         rename, renameat: Document Linux bug with NFS
29778         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29779         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29780         * doc/posix-functions/renameat.texi: Likewise.
29781         Suggested by Eric Blake.
29782
29783 2010-11-13  Bruno Haible  <bruno@clisp.org>
29784
29785         rename test: Add comments.
29786         * tests/test-rename.h (test_rename): Add structure and comments.
29787
29788 2010-11-13  Eric Blake  <eblake@redhat.com>
29789
29790         maintainer-makefile: cover a few more files
29791         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29792         scripts generated within C files, for libvirt.
29793
29794 2010-11-13  Bruno Haible  <bruno@clisp.org>
29795
29796         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29797         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29798         character, return the number of bytes that belong together, not always
29799         1.
29800         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29801         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29802         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29803         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29804         number of bytes of an invalid character.
29805         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29806         (main): Invoke it.
29807         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29808         results.
29809         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29810         malformed byte sequences.
29811         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29812         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29813         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29814         Reported by Ben Pfaff and Paolo Bonzini.
29815
29816 2010-11-13  Bruno Haible  <bruno@clisp.org>
29817
29818         openat: Work around glibc bug with fchownat() and empty file names.
29819         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29820         (gl_FUNC_FCHOWNAT): Invoke it.
29821         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29822         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29823         Reported by Gary V. Vaughan <gary@gnu.org>.
29824
29825 2010-11-13  Bruno Haible  <bruno@clisp.org>
29826
29827         openat: Ensure autoconf macro ordering.
29828         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29829         gl_USE_SYSTEM_EXTENSIONS.
29830         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29831
29832 2010-11-13  Bruno Haible  <bruno@clisp.org>
29833
29834         Update comments.
29835         * lib/unistr/u8-check.c: Update file name in comments.
29836         * lib/unistr/u8-mblen.c: Likewise.
29837         * lib/unistr/u8-prev.c: Likewise.
29838         * lib/unistr/u8-strmblen.c: Likewise.
29839         * lib/unistr/u8-strmbtouc.c: Likewise.
29840
29841 2010-11-13  Jim Meyering  <meyering@redhat.com>
29842
29843         tests: avoid test failure on Solaris 10 due to lack of PATH export
29844         * tests/test-update-copyright.sh: Don't forget to export PATH.
29845
29846         init.sh: ensure that IFS is defined, just in case...
29847         * tests/init.sh (setup_): Ensure that IFS is defined,
29848         so that saving and restoring it works as expected.  This
29849         appears to be useful at least for an old version of dash
29850         from a long time ago (RH 6).  See here for details:
29851         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29852
29853         maint.mk: tighten "test a == b" check
29854         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29855         test to files that contain something like #!/bin/sh.
29856         Without this, coreutils would get two false positives in
29857         the comments of C source files.
29858
29859 2010-11-12  Eric Blake  <eblake@redhat.com>
29860
29861         bootstrap: fix typo in previous attempt
29862         * build-aux/bootstrap (buildreq): Correct the grouping.
29863         Reported by Paul Eggert.
29864
29865         maintainer-makefile: prohibit test x == x
29866         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29867         Based on a report by Matthias Bolte.
29868
29869         bootstrap: allow FreeBSD gzip
29870         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29871         which has no '.' and goes to stderr.
29872         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29873         Reported by Matthias Bolte.
29874
29875         maintainer-makefile: check for i18n setup
29876         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29877         will likely work.
29878
29879 2010-11-12  Bruno Haible  <bruno@clisp.org>
29880
29881         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29882         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29883         * lib/nanosleep.c (nanosleep): Likewise.
29884
29885 2010-11-11  Bruno Haible  <bruno@clisp.org>
29886
29887         fcntl-h: Fix for use of C++ on glibc systems.
29888         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29889         also on glibc systems in C++ mode.
29890         Reported by Gary V. Vaughan <gary@gnu.org>.
29891
29892 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29893
29894         mknod: avoid false failure with dash
29895         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29896
29897 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29898
29899         unlink: Fix "is it should" typo in diagnostic.
29900         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29901         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29902
29903 2010-11-11  Bruno Haible  <bruno@clisp.org>
29904
29905         Tests for module 'strerror_r-posix'.
29906         * modules/strerror_r-posix-tests: New file.
29907         * tests/test-strerror_r.c: New file.
29908         * tests/test-string-c++.cc: Check the signature of strerror_r.
29909
29910         New module 'strerror_r-posix'.
29911         * lib/string.in.h (strerror_r): New declaration.
29912         * lib/strerror_r.c: New file.
29913         * m4/strerror_r.m4: New file.
29914         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29915         of strerror_r.
29916         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29917         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29918         * modules/strerror_r-posix: New file.
29919         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29920         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29921         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29922         portability problems.
29923
29924 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29925
29926         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29927         line is also considered for output. Quoted function name in shell
29928         command, so temporary files for functions like MyClass::operator()
29929         are removed correctly without errors.
29930
29931 2010-11-09  Bruno Haible  <bruno@clisp.org>
29932
29933         * doc/posix-functions/strerror.texi: List more failing platforms.
29934
29935         * doc/posix-functions/strerror.texi: Add a comment.
29936
29937 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29938
29939         fdopendir: fix bug on MacOS X when low on file descriptors
29940
29941         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29942         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29943         All callers changed.
29944         (fdopendir): Invoke save_cwd at the top level, not after using
29945         multiple dup() calls to use up file descriptors.  Then retry
29946         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29947         less than the maximum number of open file descriptors, because
29948         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29949         on Mac OS X 10.6.4 for tar 1.24
29950         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29951         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29952         and for tar 1.25
29953         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29954
29955 2010-11-07  Bruno Haible  <bruno@clisp.org>
29956
29957         vasnprintf: Support I flag on glibc systems.
29958         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29959         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29960         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29961         snprintf function.
29962         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29963         glibc systems.
29964         * tests/test-vasnprintf-posix3.c: New file.
29965         * modules/vasnprintf-posix-tests (Files): Add it.
29966         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29967
29968 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29969
29970         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29971         * MODULES.html.sh: For compiler warnings, use name
29972         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29973
29974 2010-11-05  Eric Blake  <eblake@redhat.com>
29975
29976         ceil, floor: avoid spurious failure with icc
29977         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29978         [denormals-as-zero] when optimizing without -mieee-fp option.
29979         * tests/test-floorf2.c (floorf_reference): Likewise.
29980         * tests/test-ceilf1.c (dummy): New function.
29981         (main): Use it to outsmart icc's optimization.
29982         * tests/test-floorf1.c (dummy, main): Likewise.
29983
29984         tests: require working signbit
29985         * modules/ceilf-tests (Depends-on): Add signbit.
29986         * modules/ceill-tests (Depends-on): Likewise.
29987         * modules/floorf-tests (Depends-on): Likewise.
29988         * modules/floorl-tests (Depends-on): Likewise.
29989         * modules/round-tests (Depends-on): Likewise.
29990         * modules/roundf-tests (Depends-on): Likewise.
29991         * modules/roundl-tests (Depends-on): Likewise.
29992         * modules/trunc-tests (Depends-on): Likewise.
29993         * modules/truncf-tests (Depends-on): Likewise.
29994         * modules/truncl-tests (Depends-on): Likewise.
29995
29996         strtod: work around icc bug
29997         * lib/strtod.c (minus_zero): Define to working value.
29998         (strtod): Use it to avoid icc bug.
29999
30000         copysign: enhance tests
30001         * modules/copysign-tests (Files): Add minus-zero.h.
30002         * tests/test-copysign.c (main): Also test zeros.
30003
30004 2010-11-04  Eric Blake  <eblake@redhat.com>
30005
30006         ceil, floor, round, trunc: enhance tests of -0
30007         * tests/test-ceilf1.c (main): Ensure correct sign of result.
30008         * tests/test-ceill.c (main): Likewise.
30009         * tests/test-floorf1.c (main): Likewise.
30010         * tests/test-floorl.c (main): Likewise.
30011         * tests/test-round1.c (main): Likewise.
30012         * tests/test-roundf1.c (main): Likewise.
30013         * tests/test-roundl.c (main): Likewise.
30014         * tests/test-trunc1.c (main): Likewise.
30015         * tests/test-truncf1.c (main): Likewise.
30016         * tests/test-truncl.c (main): Likewise.
30017
30018 2010-11-04  Eric Blake  <eblake@redhat.com>
30019
30020         frexp, tests: work around ICC bug with -zero
30021         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
30022         works with more compilers.
30023         * tests/minus-zero.h: New file.
30024         * modules/ceilf-tests (Files): Include it.
30025         * modules/ceill-tests (Files): Likewise.
30026         * modules/floorf-tests (Files): Likewise.
30027         * modules/floorl-tests (Files): Likewise.
30028         * modules/frexp-nolibm-tests (Files): Likewise.
30029         * modules/frexp-tests (Files): Likewise.
30030         * modules/frexpl-nolibm-tests (Files): Likewise.
30031         * modules/frexpl-tests (Files): Likewise.
30032         * modules/isnan-tests (Files): Likewise.
30033         * modules/isnand-nolibm-tests (Files): Likewise.
30034         * modules/isnand-tests (Files): Likewise.
30035         * modules/isnanf-nolibm-tests (Files): Likewise.
30036         * modules/isnanf-tests (Files): Likewise.
30037         * modules/isnanl-nolibm-tests (Files): Likewise.
30038         * modules/isnanl-tests (Files): Likewise.
30039         * modules/round-tests (Files): Likewise.
30040         * modules/roundf-tests (Files): Likewise.
30041         * modules/roundl-tests (Files): Likewise.
30042         * modules/ldexpl-tests (Files): Likewise.
30043         * modules/signbit-tests (Files): Likewise.
30044         * modules/snprintf-posix-tests (Files): Likewise.
30045         * modules/sprintf-posix-tests (Files): Likewise.
30046         * modules/strtod-tests (Files): Likewise.
30047         * modules/trunc-tests (Files): Likewise.
30048         * modules/truncf-tests (Files): Likewise.
30049         * modules/truncl-tests (Files): Likewise.
30050         * modules/vsnprintf-posix-tests (Files): Likewise.
30051         * modules/vsprintf-posix-tests (Files): Likewise.
30052         * modules/vasnprintf-posix-tests (Files): Likewise.
30053         * modules/vasprintf-posix-tests (Files): Likewise.
30054         * tests/test-ceilf1.c (main): Use it.
30055         * tests/test-ceill.c (main): Likewise.
30056         * tests/test-floorf1.c (main): Likewise.
30057         * tests/test-floorl.c (main): Likewise.
30058         * tests/test-frexp.c (main): Likewise.
30059         * tests/test-frexpl.c (main): Likewise.
30060         * tests/test-isnan.c (main): Likewise.
30061         * tests/test-isnand.h (main): Likewise.
30062         * tests/test-isnanf.h (main): Likewise.
30063         * tests/test-isnanl.h (main): Likewise.
30064         * tests/test-ldexpl.c (main): Likewise.
30065         * tests/test-round.c (main): Likewise.
30066         * tests/test-roundf.c (main): Likewise.
30067         * tests/test-roundl.c (main): Likewise.
30068         * tests/test-signbit.c (test_signbitf, test_signbitd)
30069         (test_signbitl): Likewise.
30070         * tests/test-snprintf-posix.h (test_function): Likewise.
30071         * tests/test-sprintf-posix.h (test_function): Likewise.
30072         * tests/test-strtod.c (main): Likewise.
30073         * tests/test-trunc1.c (main): Likewise.
30074         * tests/test-truncf1.c (main): Likewise.
30075         * tests/test-truncl.c (main): Likewise.
30076
30077         isnanl: work around icc bug
30078         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
30079
30080 2010-11-03  Eric Blake  <eblake@redhat.com>
30081
30082         tests: fix compiler warnings
30083         * tests/test-getopt.h (test_getopt): Fix condition.
30084         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30085         * tests/test-pipe2.c (main): Likewise.
30086         * tests/test-quotearg-simple.c (main): Avoid icc warning.
30087
30088         utimens: fix broken m4 test
30089         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
30090
30091 2010-10-28  Bruno Haible  <bruno@clisp.org>
30092
30093         posix_spawn*, getdtablesize: Relax license.
30094         * modules/posix_spawn (License): Change to LGPLv2+.
30095         * modules/posix_spawnp (License): Likewise.
30096         * modules/posix_spawn-internal (License): Likewise.
30097         * modules/posix_spawnattr_init (License): Likewise.
30098         * modules/posix_spawnattr_getflags (License): Likewise.
30099         * modules/posix_spawnattr_setflags (License): Likewise.
30100         * modules/posix_spawnattr_getpgroup (License): Likewise.
30101         * modules/posix_spawnattr_setpgroup (License): Likewise.
30102         * modules/posix_spawnattr_getschedparam (License): Likewise.
30103         * modules/posix_spawnattr_setschedparam (License): Likewise.
30104         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
30105         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
30106         * modules/posix_spawnattr_getsigdefault (License): Likewise.
30107         * modules/posix_spawnattr_setsigdefault (License): Likewise.
30108         * modules/posix_spawnattr_getsigmask (License): Likewise.
30109         * modules/posix_spawnattr_setsigmask (License): Likewise.
30110         * modules/posix_spawnattr_destroy (License): Likewise.
30111         * modules/posix_spawn_file_actions_init (License): Likewise.
30112         * modules/posix_spawn_file_actions_addclose (License): Likewise.
30113         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
30114         * modules/posix_spawn_file_actions_addopen (License): Likewise.
30115         * modules/posix_spawn_file_actions_destroy (License): Likewise.
30116         * modules/getdtablesize (License): Likewise.
30117         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
30118
30119 2010-10-26  Bruno Haible  <bruno@clisp.org>
30120
30121         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
30122         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
30123         Cygwin and mingw.
30124         Suggested by Eric Blake.
30125
30126 2010-10-26  Bruno Haible  <bruno@clisp.org>
30127
30128         stdio: Work around compilation error due to renameat() on Solaris 10.
30129         * lib/stdio.in.h: Include <unistd.h> on Solaris.
30130         * lib/renameat.c: Don't include <unistd.h> here.
30131         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
30132         Reported by Paul Eggert and Eric Blake.
30133
30134 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         renameat: port to Solaris 10, which declares renameat in unistd.h
30137
30138         * lib/renameat.c: Include unistd.h before stdio.h, because
30139         Solaris 10 declares renameat in unistd.h.  Problem encountered
30140         when building GNU tar 1.24 on Solaris 10.
30141
30142 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30143
30144         fdopendir: fix C89 compilation
30145         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30146         compilers.
30147
30148 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30149
30150         inttostr: simplify by removing unnecessary redundancy
30151         * lib/anytostr.c: Don't include verify.h.
30152         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30153         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30154         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30155         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30156         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30157         Likewise.
30158         * modules/inttostr (Depends-on): Remove 'verify'.
30159
30160 2010-10-23  Bruno Haible  <bruno@clisp.org>
30161
30162         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30163         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30164         Reported by Eric Blake.
30165
30166 2010-10-23  Bruno Haible  <bruno@clisp.org>
30167
30168         Tests: Fix LOCALE_JA on MirBSD 10.
30169         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30170         to an UTF-8 locale.
30171         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30172         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30173         Reported by Eric Blake.
30174
30175 2010-10-21  Bruno Haible  <bruno@clisp.org>
30176
30177         nl_langinfo test: Avoid test failure on NetBSD 5.
30178         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30179         Reported by Eric Blake.
30180
30181 2010-10-21  Eric Blake  <eblake@redhat.com>
30182
30183         c-stack: work around libsigsegv 2.8 bug
30184         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30185         overflow on at least PowerPC64.
30186
30187 2010-10-17  Bruno Haible  <bruno@clisp.org>
30188
30189         userspec: Drop redundant file.
30190         * modules/userspec (Files): Remove lib/inttostr.h.
30191
30192 2010-10-17  Bruno Haible  <bruno@clisp.org>
30193
30194         nl_langinfo tests: Silence some warnings.
30195         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30196         Reported by Jim Meyering.
30197
30198 2010-10-17  Bruno Haible  <bruno@clisp.org>
30199
30200         Make use of GCC's attribute __alloc_size__.
30201         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30202         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30203         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30204         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30205         __alloc_size__.
30206         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30207         Suggested by Jim Meyering.
30208
30209 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30210
30211         bootstrap: anchor .gitignore entries.
30212         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30213         with...
30214         (insert_vc_ignore): ... this new function, which prepends `/' to
30215         all .gitignore entries before passing them to
30216         insert_sorted_if_absent.
30217
30218 2010-10-16  Bruno Haible  <bruno@clisp.org>
30219
30220         nextafter: Fix configure check.
30221         * modules/nextafter (configure.ac): Correct expected prototype.
30222
30223 2010-10-16  Bruno Haible  <bruno@clisp.org>
30224
30225         termios: Update documentation.
30226         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30227
30228 2010-10-16  Bruno Haible  <bruno@clisp.org>
30229
30230         tests: Make them compile with TinyCC.
30231         * tests/test-strstr.c (main): Remove parentheses around array
30232         initializer.
30233
30234 2010-10-15  Eric Blake  <eblake@redhat.com>
30235
30236         ignore-value: make header idempotent
30237         * lib/ignore-value.h: Add double-inclusion guards.
30238         Reported by Stefan Berger.
30239
30240 2010-10-15  Jim Meyering  <meyering@redhat.com>
30241
30242         GNUmakefile: handle "stable" target, not "major"
30243         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30244         lists in maint.mk and announce-gen.  Without this, "make stable"
30245         would fail to ensure that $(VERSION) is up to date.
30246
30247 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30248
30249         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30250         & co.
30251
30252 2010-10-14  Bruno Haible  <bruno@clisp.org>
30253
30254         vasnprintf: Don't set errno to 0.
30255         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30256         block that sets it to 0.
30257         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30258
30259 2010-10-14  Bruno Haible  <bruno@clisp.org>
30260
30261         socketlib: Fix.
30262         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30263         gl_PREREQ_SYS_H_WINSOCK2.
30264         Reported by Ian Beckwith <ianb@erislabs.net>.
30265
30266 2010-10-13  Jim Meyering  <meyering@redhat.com>
30267
30268         test-select-stdin.c: avoid warn_unused_result warnings
30269         * tests/test-select-stdin.c: Include "macros.h".
30270         ASSERT that read and fflush succeed.
30271
30272 2010-10-13  Jim Meyering  <meyering@redhat.com>
30273
30274         git-version-gen: do require git-VC'd files in cwd
30275         * build-aux/git-version-gen: Reject a git version string
30276         if there are no commits associated with the current directory.
30277         This avoids an unlikely false-positive (unrelated dir whose parent
30278         repository also contains a tag matching v*), as pointed out
30279         by Giuseppe Scrivano in
30280         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30281
30282 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30283
30284         argv-iter: omit nonconforming declaration
30285         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30286         enum arg_iter_err declaration, which doesn't conform to C99.
30287         Solaris 10 cc warns about this.
30288
30289 2010-10-13  Eric Blake  <eblake@redhat.com>
30290
30291         termios: fix compilation on mingw
30292         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30293         (gl_TERMIOS_H): Adjust it on mingw.
30294         * modules/termios (Makefile.am): Substitute new key.
30295         * lib/termios.in.h (includes): Make include_next conditional.
30296         * doc/posix-headers/termios.texi (termios.h): Update
30297         documentation.
30298         Reported by Daniel P. Berrange.
30299
30300 2010-10-13  Jim Meyering  <meyering@redhat.com>
30301
30302         git-version-gen: don't require that .git/ be in the current dir
30303         * build-aux/git-version-gen: Adjust this script so that it works
30304         when run from any working directory beneath the top-level .git/-
30305         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30306         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30307
30308         test-select: avoid warn_unused_result warnings
30309         * tests/test-select.c: Include "macros.h".
30310         ASSERT that each call to read, write, and pipe succeeds.
30311         While not technically required, also check each "close".
30312         * modules/select-tests (Files): Add tests/macros.h.
30313
30314         test-symlinkat: remove declaration of unused local
30315         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30316
30317         test-inttostr: avoid shadowing warnings
30318         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30319         and use malloc rather than the stack for the same reason as
30320         mentioned in the comment justifying the other allocation.
30321
30322 2010-10-11  Bruno Haible  <bruno@clisp.org>
30323
30324         stdlib: Allow multiple gnulib generated replacements to coexist.
30325         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30326         Reported by Sam Steingold <sds@gnu.org>.
30327
30328 2010-10-11  Jim Meyering  <meyering@redhat.com>
30329
30330         fix a documentation typo
30331         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30332
30333 2010-10-11  Eric Blake  <eblake@redhat.com>
30334
30335         futimens: work around Solaris 11 bug
30336         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30337         * tests/test-futimens.h (test_futimens): Enhance, rather than
30338         weaken test.
30339         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30340
30341 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30342
30343         Indentation.
30344         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30345         higher-level operators more to the left.
30346
30347 2010-10-11  Jim Meyering  <meyering@redhat.com>
30348
30349         test-futimens: avoid unwarranted test failure on Solaris 5.11
30350         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30351         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30352         because it tries to dereference the NULL name argument.
30353
30354 2010-10-11  Bruno Haible  <bruno@clisp.org>
30355
30356         Indentation.
30357         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30358         indentation.
30359
30360 2010-10-11  Jim Meyering  <meyering@redhat.com>
30361
30362         spawn.in.h: make indentation consistent with parentheses
30363         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30364         Make indentation consistent with parentheses.
30365
30366 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30367
30368         Fix mismatched parens in previous commit
30369         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30370         parens.
30371
30372 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30373
30374         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30375
30376         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30377         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30378         * lib/malloca.c: Include "verify.h".
30379         (verify1): Remove, replacing with a verify call.
30380         * lib/relocwrapper.c (verify1): Likewise.
30381         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30382         Likewise.
30383         * modules/malloca (Depends-on): Add 'verify'.
30384         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30385         * modules/vasnprintf (Depends-on): Add 'verify'.
30386         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30387         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30388         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30389         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30390         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30391         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30392         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30393
30394         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30395
30396         Formerly the style was sometimes 2*X - 1, because the C standard
30397         was wrongly thought to disallow ?: in integral constant expressions.
30398         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30399         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30400         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30401         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30402         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30403         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30404         verify that time_t cannot be floating.
30405
30406 2010-10-08  Eric Blake  <eblake@redhat.com>
30407
30408         time: enforce recent POSIX ruling that time_t is integral
30409         * lib/time.in.h (__time_t_must_be_integral): Detect any
30410         problematic systems, allowing the rest of gnulib to assume POSIX.
30411
30412 2010-10-08  Jim Meyering  <meyering@redhat.com>
30413
30414         fdopendir: fix a bug on systems lacking openat and /proc support
30415         OpenBSD 4.7 is one such system.  The most noticeable effect was
30416         failure of any application making nontrivial use of fts: rm, du,
30417         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30418           ./rm: traversal failed: `a': Bad file descriptor
30419         Debugging that, you see that even though FD 6 was closed just
30420         prior to the opendir call in fd_clone_opendir, its resulting
30421         dir->dd_fd was 8, rather than the expected value of 6:
30422
30423         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30424         93                close (fd);
30425         (gdb) n
30426         94                dir = fd_clone_opendir (dupfd);
30427         (gdb) n
30428         95                saved_errno = errno;
30429         (gdb) p dir->dd_fd
30430         $11 = 8
30431
30432         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30433         The problem is that on OpenBSD, fd_clone_opendir has to resort
30434         to using the old-style save/restore CWD mechanism, due to its
30435         lack of openat/proc support, and *that* would steal the FD (6)
30436         that opendir was supposed to use.
30437
30438         The fix is to squirrel away the desired FD so that save_cwd uses a
30439         different one, and then free the dest FD right before calling opendir.
30440         That guarantees opendir will use the required file descriptor.
30441
30442         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30443
30444 2010-10-08  Bruno Haible  <bruno@clisp.org>
30445
30446         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30447         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30448
30449 2010-10-08  Bruno Haible  <bruno@clisp.org>
30450
30451         nanosleep: Make replacement POSIX compliant.
30452         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30453         is out of range.
30454         Reported by Jim Meyering.
30455
30456 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30457
30458         bootstrap: add hook for altering gnulib.mk, for Bison
30459         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30460         the Bison bootstrapping process can rewrite file names and variables
30461         in this file before later parts of 'bootstrap' use the file.
30462         Bison wants to include lib/gnulib.mk from the top-level makefile,
30463         so it needs the file names in this file to be relative to the top
30464         level, not relative to lib; plus it needs variable names to be
30465         rewritten.
30466         (slurp): Use the new function.
30467
30468         bootstrap: reformat for readability
30469         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30470
30471 2010-10-08  Eric Blake  <eblake@redhat.com>
30472
30473         docs: update cygwin progress
30474         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30475         1.7.7.
30476         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30477         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30478         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30479         * doc/posix-functions/carg.texi (carg): Likewise.
30480         * doc/posix-functions/cargf.texi (cargf): Likewise.
30481         * doc/posix-functions/casin.texi (casin): Likewise.
30482         * doc/posix-functions/casinf.texi (casinf): Likewise.
30483         * doc/posix-functions/casinh.texi (casinh): Likewise.
30484         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30485         * doc/posix-functions/catan.texi (catan): Likewise.
30486         * doc/posix-functions/catanf.texi (catanf): Likewise.
30487         * doc/posix-functions/catanh.texi (catanh): Likewise.
30488         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30489         * doc/posix-functions/ccos.texi (ccos): Likewise.
30490         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30491         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30492         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30493         * doc/posix-functions/cexp.texi (cexp): Likewise.
30494         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30495         * doc/posix-functions/cimag.texi (cimag): Likewise.
30496         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30497         * doc/posix-functions/clog.texi (clog): Likewise.
30498         * doc/posix-functions/clogf.texi (clogf): Likewise.
30499         * doc/posix-functions/conj.texi (conj): Likewise.
30500         * doc/posix-functions/conjf.texi (conjf): Likewise.
30501         * doc/posix-functions/cpow.texi (cpow): Likewise.
30502         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30503         * doc/posix-functions/cproj.texi (cproj): Likewise.
30504         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30505         * doc/posix-functions/creal.texi (creal): Likewise.
30506         * doc/posix-functions/crealf.texi (crealf): Likewise.
30507         * doc/posix-functions/csin.texi (csin): Likewise.
30508         * doc/posix-functions/csinf.texi (csinf): Likewise.
30509         * doc/posix-functions/csinh.texi (csinh): Likewise.
30510         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30511         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30512         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30513         * doc/posix-functions/ctan.texi (ctan): Likewise.
30514         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30515         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30516         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30517         * doc/posix-headers/complex.texi (complex.h): Likewise.
30518
30519 2010-10-07  Jim Meyering  <meyering@redhat.com>
30520
30521         parse-datetime: avoid compilation failure on OpenBSD 4.7
30522         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30523         This works around a compilation failure on OpenBSD 4.7:
30524         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30525
30526 2010-10-07  Eric Blake  <eblake@redhat.com>
30527
30528         docs: update cygwin progress
30529         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30530         1.7.6.
30531         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30532         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30533         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30534         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30535         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30536         Likewise.
30537         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30538         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30539         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30540         Likewise.
30541         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30542         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30543         Likewise.
30544         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30545         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30546         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30547         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30548         Likewise.
30549         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30550         Likewise.
30551         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30552
30553         docs: update parse-datetime history
30554         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30555         documentation of this function's history and alternatives.
30556
30557         cygwin: use more robust version check
30558         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30559         exclude an eventual cygwin 1.9.1.
30560         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30562         (gl_FUNC_STRCASESTR): Likewise.
30563         Reported by Bruno Haible.
30564
30565 2010-10-06  Bruno Haible  <bruno@clisp.org>
30566
30567         string, sys_select: Avoid #including large headers unless necessary.
30568         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30569         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30570         OSF/1, BeOS, Haiku.
30571         Reported by Jim Meyering.
30572
30573 2010-10-05  Eric Blake  <eblake@redhat.com>
30574
30575         memmem, strstr, strcasestr: fix bug with long periodic needle
30576         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30577         periodic needle having false positive.
30578         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30579         and cygwin 1.7.7.
30580         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30581         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30582         (gl_FUNC_STRCASESTR): Likewise.
30583         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30584         * tests/test-memmem.c (main): Expose the bug.
30585         * tests/test-strcasestr.c (main): Likewise.
30586         * tests/test-strstr.c (main): Likewise.
30587         * tests/test-c-strcasestr.c (main): Likewise.
30588         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30589         * doc/posix-functions/strstr.texi (strstr): Likewise.
30590         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30591         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30592
30593 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30594
30595         parse-datetime: do some more renaming
30596         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30597         parse_datetime, not get_date.  Mention the renaming.
30598         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30599         in comments.
30600         * m4/bison.m4: Likewise.
30601
30602 2010-10-05  Eric Blake  <eblake@redhat.com>
30603
30604         parse-datetime: better name than get_date
30605         * NEWS: Reword the deprecation notice.
30606         * modules/get_date: Rename to modules/parse-datetime.
30607         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30608         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30609         * lib/get_date.y: Rename to lib/parse-datetime.y.
30610         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30611         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30612         * doc/getdate.texi: Provide fallback wrapper.
30613         * lib/getdate.h: Move guts, and wrap...
30614         * lib/parse-datetime.h: ...new file.
30615         * lib/parse-datetime.y (get_date): Rename...
30616         (parse_datetime): ...to this.
30617         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30618         (gl_PARSE_DATETIME): ...to this.
30619         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30620         documentation.
30621         * modules/getdate (Files): Provide fallback docs and header.
30622         (Notice, Depends-on): Update references.
30623         * tests/test-parse-datetime.c: Likewise.
30624         * DEPENDENCIES: Likewise.
30625         * MODULES.html.sh (Date and time <time.h>): Likewise.
30626         * doc/parse-datetime.texi (Date input formats)
30627         (Authors of parse_datetime): Likewise.
30628         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30629         (Include): Likewise.
30630         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30631         * gnulib-tool: Likewise.
30632         * m4/bison.m4 (gl_BISON): Likewise.
30633         Suggested by Bruno Haible.
30634
30635 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30636
30637         more ports to Solaris tr, which needs [] around ranges
30638         * gnulib-tool: Solaris tr needs [] around ranges.
30639         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30640         * tests/test-pipe-filter-gi1.c (main): Likewise.
30641         * tests/test-pipe-filter-ii1.c (main): Likewise.
30642
30643 2010-10-05  Eric Blake  <eblake@redhat.com>
30644
30645         bootstrap: fix Solaris regression
30646         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30647         around ranges.
30648         Reported by Pádraig Brady.
30649
30650         bootstrap: work with pkg-config
30651         * build-aux/bootstrap (check_versions): Also transliterate - in
30652         prerequisite name.
30653         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30654         prerequisites that were already found, to avoid confusion.
30655         Reported by Justin Clift.
30656
30657         faccessat: remove unused wrappers
30658         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30659         presence of these wrappers dragged in -lgen on Solaris.
30660         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30661
30662 2010-10-05  Jim Meyering  <meyering@redhat.com>
30663
30664         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30665         * Makefile (sc_pragma_columns): New syntax-check rule.
30666
30667 2010-10-04  Bruno Haible  <bruno@clisp.org>
30668
30669         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30670         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30671         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30672         Reported by Bruce Korb and Eric Blake.
30673
30674 2010-10-04  Bruno Haible  <bruno@clisp.org>
30675
30676         threadlib: Make option --with-libpth-prefix work.
30677         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30678         use $LIBPTH, not just -lpth.
30679
30680 2010-10-04  Bruno Haible  <bruno@clisp.org>
30681
30682         Avoid line length limitation from HP NonStop system header files.
30683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30684         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30685         * lib/ctype.in.h: Likewise.
30686         * lib/dirent.in.h: Likewise.
30687         * lib/errno.in.h: Likewise.
30688         * lib/fcntl.in.h: Likewise.
30689         * lib/float.in.h: Likewise.
30690         * lib/getopt.in.h: Likewise.
30691         * lib/iconv.in.h: Likewise.
30692         * lib/inttypes.in.h: Likewise.
30693         * lib/langinfo.in.h: Likewise.
30694         * lib/locale.in.h: Likewise.
30695         * lib/math.in.h: Likewise.
30696         * lib/netdb.in.h: Likewise.
30697         * lib/netinet_in.in.h: Likewise.
30698         * lib/poll.in.h: Likewise.
30699         * lib/pthread.in.h: Likewise.
30700         * lib/pty.in.h: Likewise.
30701         * lib/sched.in.h: Likewise.
30702         * lib/se-selinux.in.h: Likewise.
30703         * lib/search.in.h: Likewise.
30704         * lib/signal.in.h: Likewise.
30705         * lib/spawn.in.h: Likewise.
30706         * lib/stdarg.in.h: Likewise.
30707         * lib/stddef.in.h: Likewise.
30708         * lib/stdint.in.h: Likewise.
30709         * lib/stdio.in.h: Likewise.
30710         * lib/stdlib.in.h: Likewise.
30711         * lib/string.in.h: Likewise.
30712         * lib/strings.in.h: Likewise.
30713         * lib/sys_file.in.h: Likewise.
30714         * lib/sys_ioctl.in.h: Likewise.
30715         * lib/sys_select.in.h: Likewise.
30716         * lib/sys_socket.in.h: Likewise.
30717         * lib/sys_stat.in.h: Likewise.
30718         * lib/sys_time.in.h: Likewise.
30719         * lib/sys_times.in.h: Likewise.
30720         * lib/sys_utsname.in.h: Likewise.
30721         * lib/sys_wait.in.h: Likewise.
30722         * lib/sysexits.in.h: Likewise.
30723         * lib/termios.in.h: Likewise.
30724         * lib/time.in.h: Likewise.
30725         * lib/unistd.in.h: Likewise.
30726         * lib/wchar.in.h: Likewise.
30727         * lib/wctype.in.h: Likewise.
30728         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30729         * modules/ctype (Makefile.am): Likewise.
30730         * modules/dirent (Makefile.am): Likewise.
30731         * modules/errno (Makefile.am): Likewise.
30732         * modules/fcntl-h (Makefile.am): Likewise.
30733         * modules/float (Makefile.am): Likewise.
30734         * modules/getopt-posix (Makefile.am): Likewise.
30735         * modules/iconv-h (Makefile.am): Likewise.
30736         * modules/inttypes (Makefile.am): Likewise.
30737         * modules/langinfo (Makefile.am): Likewise.
30738         * modules/locale (Makefile.am): Likewise.
30739         * modules/math (Makefile.am): Likewise.
30740         * modules/netdb (Makefile.am): Likewise.
30741         * modules/netinet_in (Makefile.am): Likewise.
30742         * modules/poll-h (Makefile.am): Likewise.
30743         * modules/pthread (Makefile.am): Likewise.
30744         * modules/pty (Makefile.am): Likewise.
30745         * modules/sched (Makefile.am): Likewise.
30746         * modules/search (Makefile.am): Likewise.
30747         * modules/selinux-h (Makefile.am): Likewise.
30748         * modules/signal (Makefile.am): Likewise.
30749         * modules/spawn (Makefile.am): Likewise.
30750         * modules/stdarg (Makefile.am): Likewise.
30751         * modules/stddef (Makefile.am): Likewise.
30752         * modules/stdint (Makefile.am): Likewise.
30753         * modules/stdio (Makefile.am): Likewise.
30754         * modules/stdlib (Makefile.am): Likewise.
30755         * modules/string (Makefile.am): Likewise.
30756         * modules/strings (Makefile.am): Likewise.
30757         * modules/sys_file (Makefile.am): Likewise.
30758         * modules/sys_ioctl (Makefile.am): Likewise.
30759         * modules/sys_select (Makefile.am): Likewise.
30760         * modules/sys_socket (Makefile.am): Likewise.
30761         * modules/sys_stat (Makefile.am): Likewise.
30762         * modules/sys_time (Makefile.am): Likewise.
30763         * modules/sys_times (Makefile.am): Likewise.
30764         * modules/sys_utsname (Makefile.am): Likewise.
30765         * modules/sys_wait (Makefile.am): Likewise.
30766         * modules/sysexits (Makefile.am): Likewise.
30767         * modules/termios (Makefile.am): Likewise.
30768         * modules/time (Makefile.am): Likewise.
30769         * modules/unistd (Makefile.am): Likewise.
30770         * modules/wchar (Makefile.am): Likewise.
30771         * modules/wctype (Makefile.am): Likewise.
30772
30773 2010-10-04  Bruno Haible  <bruno@clisp.org>
30774
30775         read-file tests: Avoid a test failure on NonStop Kernel.
30776         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30777         a regular file.
30778         Reported by Joachim Schmitz <schmitz@hp.com>.
30779
30780 2010-10-03  Bruno Haible  <bruno@clisp.org>
30781
30782         gnulib-tool: Fixes for --create-testdir with --libtool.
30783         * gnulib-tool (func_get_automake_snippet): Don't augment
30784         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30785         an executable.
30786         (func_create_testdir): Handle module 'alloca' like func_import.
30787         Reported by Bruce Korb <bruce.korb@gmail.com>.
30788
30789 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30790
30791         Avoid some lines longer than 80 characters.
30792         * lib/stdint.in.h: Break long comment lines.
30793         * lib/math.in.h: Likewise.
30794         (_GL_NUM_UINT_WORDS): New macro, for readability.
30795         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30796         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30797         * lib/stdlib.in.h: Likewise.
30798         * lib/spawn.in.h: Likewise.
30799         * lib/sys_socket.in.h: Update an URL.
30800         * lib/sys_stat.in.h: Break long line.
30801
30802 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30803
30804         Improve pmccabe2html.
30805         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30806         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30807         when the sources change. Remove the line in the HTML about "Used
30808         ranges" (which implied that there might be other unused ranges),
30809         rename "Resume" to "Summary" (easier to understand for more users).
30810         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30811         styles, and some unnecessary blank lines.
30812
30813 2010-10-03  Bruno Haible  <bruno@clisp.org>
30814             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30815
30816         acl: Add support for ACLs on NonStop Kernel.
30817         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30818         Check whether the function aclsort() exists.
30819         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30820         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30821         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30822         (acl_nontrivial [HAVE_ACLSORT]: New function.
30823         (file_has_acl): Implement for NonStop Kernel.
30824         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30825         (qset_acl): Implement for NonStop Kernel.
30826         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30827         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30828         (main): Implement for NonStop Kernel.
30829         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30830         Kernel. Handle this flavor.
30831         * tests/test-set-mode-acl.sh: Likewise.
30832         * tests/test-copy-acl.sh: Likewise.
30833         * tests/test-copy-file.sh: Likewise.
30834
30835 2010-10-03  Bruno Haible  <bruno@clisp.org>
30836
30837         Info about ACLs on NonStop Kernel.
30838         * doc/acl-resources.txt: Add info about NonStop Kernel.
30839         References by Joachim Schmitz <schmitz@hp.com>.
30840
30841 2010-10-02  Bruno Haible  <bruno@clisp.org>
30842
30843         Define missing EDQUOT on NonStop Kernel.
30844         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30845         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30847         missing.
30848         * doc/posix-headers/errno.texi: Mention the NSK bug.
30849         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30850         Reported by Joachim Schmitz <schmitz@hp.com>.
30851
30852 2010-10-02  Bruno Haible  <bruno@clisp.org>
30853
30854         Update doc for POSIX:2008.
30855         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30856         Update URL of POSIX specification.
30857
30858 2010-10-02  Bruno Haible  <bruno@clisp.org>
30859
30860         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30861         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30862         from gnulib, not from Automake.
30863
30864 2010-10-02  Bruno Haible  <bruno@clisp.org>
30865
30866         New module 'system-posix'.
30867         * modules/system-posix: New file.
30868         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30869         module is present.
30870         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30871         GNULIB_SYSTEM_POSIX.
30872         * modules/stdlib (Depends-on): Remove sys_wait.
30873         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30874         * doc/posix-functions/system.texi: Mention the new module.
30875         * doc/posix-headers/stdlib.texi: Likewise.
30876         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30877         define test_sys_wait_macros to a no-op.
30878         Reported by Sam Steingold <sds@gnu.org>.
30879
30880 2010-09-30  Bruno Haible  <bruno@clisp.org>
30881
30882         More renaming from 'getdate' to 'get_date'.
30883         * doc/get_date.texi: Renamed from doc/getdate.texi.
30884         * modules/get_date (Files): Update.
30885         * MODULES.html.sh (Date and time <time.h>): Update.
30886         * DEPENDENCIES: Update.
30887         * gnulib-tool: Update comment.
30888         * m4/bison.m4 (gl_BISON): Likewise.
30889         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30890
30891 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30892
30893         bootstrap: support ACLOCAL_FLAGS during aclocal
30894         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30895         can add additional -I dir for third-party .m4 files.
30896
30897 2010-09-30  Eric Blake  <eblake@redhat.com>
30898
30899         bootstrap: use glibtoolize on MacOS
30900         * build-aux/bootstrap (check_versions): Convert libtool into
30901         libtoolize.
30902         (tool search): Move libtool check earlier, and look for
30903         glibtoolize for MacOS.
30904         (gnulib_tool_options): Auto-add --libtool when appropriate.
30905         Reported by Justin Clift.
30906
30907         poll: fix typo that broke test on MacOS
30908         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30909         Reported by Justin Clift.
30910
30911         getdate: rename to get_date
30912         Note: getdate.h is not renamed, to minimize client impact.
30913         * modules/getdate: Mark obsolete.  Move old contents...
30914         * modules/get_date: ...to new module name.
30915         * modules/getdate-tests: Move...
30916         * modules/get_date-tests: ...here.
30917         * m4/getdate.m4: Move...
30918         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30919         * lib/getdate.y: Move...
30920         * lib/get_date.y: ...here.
30921         * tests/test-getdate.c: Move...
30922         * tests/test-get_date.c: ...here.
30923         * doc/posix-functions/getdate.texi (getdate): Update name.
30924         * NEWS: Mention the change.
30925
30926 2010-09-29  Bruno Haible  <bruno@clisp.org>
30927
30928         Separate the module 'waitpid' from the module 'sys_wait'.
30929         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30930         present.
30931         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30932         gl_MODULE_INDICATOR_FOR_TESTS.
30933         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30934         * modules/sys_wait (Depends-on): Remove waitpid.
30935         (Makefile.am): Substitute GNULIB_WAITPID.
30936         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30937         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30938         signature only if the 'waitpid' module is present.
30939         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30940         * NEWS: Mention the change.
30941         * modules/grantpt (Depends-on): Add waitpid.
30942         * modules/wait-process (Depends-on): Likewise.
30943
30944 2010-09-29  Bruno Haible  <bruno@clisp.org>
30945
30946         More tests for module 'sys_wait'.
30947         * modules/sys_wait-c++-tests: New file.
30948         * tests/test-sys_wait-c++.cc: New file.
30949         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30950         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30951
30952 2010-09-29  Bruno Haible  <bruno@clisp.org>
30953
30954         New module 'waitpid'.
30955         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30956         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30957         Don't include <process.h>.
30958         (waitpid): Declare only, using modern idiom.
30959         * m4/waitpid.m4: New file.
30960         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30961         * modules/waitpid: New file.
30962         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30963         (Makefile.am): Update.
30964         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30965
30966 2010-09-28  Bruno Haible  <bruno@clisp.org>
30967
30968         poll: Assume ANSI C.
30969         * lib/poll.c (poll): Use an ANSI C declaration.
30970
30971 2010-09-28  Bruno Haible  <bruno@clisp.org>
30972
30973         poll-h: Create poll.h on all platforms.
30974         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30975         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30976         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30977         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30978         (gl_REPLACE_POLL_H): Don't set POLL_H.
30979         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30980         * modules/poll-h (Depends-on): Add include_next.
30981         (Makefile.am): Create poll.h unconditionally. Substitute also
30982         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30983
30984 2010-09-28  Bruno Haible  <bruno@clisp.org>
30985
30986         Tests for module 'poll-h'.
30987         * modules/poll-h-c++-tests: New file.
30988         * tests/test-poll-h-c++.cc: New file.
30989
30990         Tests for module 'poll-h'.
30991         * modules/poll-h-tests: New file.
30992         * tests/test-poll-h.c: New file.
30993
30994 2010-09-28  Bruno Haible  <bruno@clisp.org>
30995
30996         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30997         * modules/poll-h (Depends-on): Add 'extensions'.
30998
30999 2010-09-28  Bruno Haible  <bruno@clisp.org>
31000
31001         New module 'poll-h'.
31002         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
31003         (poll): Use modern idiom.
31004         * modules/poll-h: New file.
31005         * modules/poll (Files): Remove lib/poll.in.h.
31006         (Depends-on): Add poll-h.
31007         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
31008         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
31009         * m4/poll_h.m4: New file.
31010         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
31011         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
31012         and invoke gl_REPLACE_POLL_H.
31013         * lib/poll.c: Use common idiom.
31014         * tests/test-poll.c: Likewise.
31015         * doc/posix-headers/poll.texi: Mention the poll-h module.
31016         Suggested by Eric Blake.
31017
31018 2010-09-26  Bruno Haible  <bruno@clisp.org>
31019
31020         sys_wait: Implement WSTOPSIG.
31021         * lib/sys_wait.in.h (WSTOPSIG): New macro.
31022         Reported by Simon Josefsson.
31023
31024 2010-09-26  Simon Josefsson  <simon@josefsson.org>
31025
31026         stdlib, sys_wait: Avoid compilation error on mingw.
31027         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
31028
31029 2010-09-26  Bruno Haible  <bruno@clisp.org>
31030
31031         stdlib tests: Avoid code duplication.
31032         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
31033         * modules/sys_wait-tests (Files): Likewise.
31034         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
31035         * tests/test-stdlib.c: Include test-sys_wait.h.
31036         (main): Invoke test_sys_wait_macros.
31037         * tests/test-sys_wait.c: Include test-sys_wait.h.
31038         (main): Invoke test_sys_wait_macros.
31039
31040 2010-09-25  Simon Josefsson  <simon@josefsson.org>
31041
31042         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
31043         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
31044         sure Windows sockets are working before calling getaddrinfo.
31045         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
31046         * doc/gnulib.texi (Windows sockets): Fix typo.
31047
31048 2010-09-25  Bruno Haible  <bruno@clisp.org>
31049
31050         Tests for module 'regex-quote'.
31051         * modules/regex-quote-tests: New file.
31052         * tests/test-regex-quote.c: New file.
31053
31054         New module 'regex-quote'.
31055         * lib/regex-quote.h: New file.
31056         * lib/regex-quote.c: New file.
31057         * modules/regex-quote: New file.
31058         Suggested by Reuben Thomas <rrt@sc3d.org>.
31059
31060 2010-09-24  Bruno Haible  <bruno@clisp.org>
31061
31062         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
31063         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
31064
31065 2010-09-23  Bruno Haible  <bruno@clisp.org>
31066
31067         setenv: Relax license.
31068         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
31069         Blake.
31070         Requested by Eric Blake.
31071
31072 2010-09-22  Bruno Haible  <bruno@clisp.org>
31073
31074         termios: Relax license.
31075         * modules/termios (License): Change to LGPLv2+.
31076         Requested by Eric Blake.
31077
31078 2010-09-22  Bruno Haible  <bruno@clisp.org>
31079
31080         threadlib: Allow the package to change the default to 'no'.
31081         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
31082         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
31083         Reported by Paul Eggert.
31084
31085 2010-09-22  Pádraig Brady  <P@draigbrady.com>
31086             Bruno Haible  <bruno@clisp.org>
31087
31088         Fix endless loop in mbmemcasecoll.
31089         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
31090         byte.
31091         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
31092
31093 2010-09-22  Bruno Haible  <bruno@clisp.org>
31094
31095         Tests for module 'memcoll'.
31096         * modules/memcoll-tests: New file.
31097         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
31098
31099         memcoll, xmemcoll: Clarify size vs. length.
31100         * modules/memcoll.c (memcoll0): Clarify specification.
31101         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
31102         passed to collate_error.
31103
31104 2010-09-22  Bruno Haible  <bruno@clisp.org>
31105
31106         Tests for module 'memcasecmp'.
31107         * modules/memcasecmp-tests: New file.
31108         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
31109
31110 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31111
31112         * lib/pthread.in.h: Add split double-inclusion guard, and include
31113         system <pthread.h> if there is one.  Use @@-style as in other
31114         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
31115         pthread.h doesn't.
31116         (pthread_mutexattr_destroy, pthread_mutexattr_init):
31117         (pthread_mutexattr_settype, pthread_mutex_trylock):
31118         New static inline functions, if there's no system <pthread.h>.
31119         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
31120         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
31121         Approximate with mutexes if the system lacks spinlocks, as in
31122         MacOS.
31123         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
31124         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
31125         @@-style.  Check for spinlocks separately.
31126         (gl_PTHREAD_DEFAULTS): New macro.
31127         * modules/pthread: Redo to use a more typical style for in.h files.
31128
31129 2010-09-21  Eric Blake  <eblake@redhat.com>
31130
31131         net_if: enhance tests
31132         * tests/test-net_if.c (main): Move signature checks earlier.
31133         Print failures to stderr.
31134         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
31135         Document the bug that we do not yet fix.
31136
31137 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31138
31139         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
31140         about gnulib, not GSS.
31141
31142 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31143
31144         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31145         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31146         for Emacs.
31147         * build-aux/pmccabe2html: Make Makefile.am example code more
31148         cut-and-paste friendly.
31149
31150 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31151
31152         * tests/test-net_if.c: New file.
31153         * modules/net_if-tests: New file.
31154
31155 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31156
31157         pthread: add pthread_spin_destroy
31158         * lib/pthread.in.h (pthread_spin_destroy): New function.
31159
31160 2010-09-19  Bruno Haible  <bruno@clisp.org>
31161
31162         gnulib-tool: Fix --help output.
31163         * gnulib-tool (func_usage): Fix help message.
31164         Reported by Reuben Thomas <rrt@sc3d.org>.
31165
31166 2010-09-18  Jim Meyering  <meyering@redhat.com>
31167
31168         maint.mk: avoid unexpanded \n in two diagnostics
31169         * top/maint.mk (sc_prohibit_always_true_header_tests):
31170         Don't use a literal \n in a halt=... assignment.  It would not be
31171         expanded, and the two \n bytes would appear in the diagnostic output
31172         rather than the desired newline.  Use halt=$$(printf ... instead.
31173         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31174
31175 2010-09-18  Bruno Haible  <bruno@clisp.org>
31176
31177         netinet_in: Doc tweak.
31178         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31179         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31180
31181 2010-09-18  Jim Meyering  <meyering@redhat.com>
31182
31183         init.sh: correct an outdated comment
31184         * tests/init.sh (create_exe_shims_):  s/function/alias/
31185
31186         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31187         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31188         a file named "*.exe" is removed between the glob expansion and the
31189         processing of that oddly named file.
31190
31191 2010-09-17  Eric Blake  <eblake@redhat.com>
31192
31193         mirbsd: add some more support
31194         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31195         in BSD family.
31196         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31197         devices as OpenBSD.
31198         * m4/host-os.m4 (mirbsd): Add MirBSD.
31199
31200         tests: fix unportable assumption on sys/wait.h
31201         * tests/test-sys_wait.c (main): Relax test.
31202         * tests/test-stdlib.c (main): Likewise.
31203
31204         init.sh: accommodate directory with no .exes
31205         * tests/init.sh: Accomodate directory containing only scripts.
31206
31207         tests: avoid compiler warning
31208         * tests/test-stdlib.c (main): Use the variable.
31209
31210         fdutimens, fdutimensat: update signature, again
31211         * lib/utimens.h (gl_futimens): Delete, and move signature...
31212         (fdutimens): ...here.
31213         (fdutimensat): Rearrange signature.
31214         (lutimensat): Rename variable for clarity.
31215         * lib/fdutimensat.c (fdutimensat): Update signature.
31216         * lib/utimens.c (fdutimens): Likewise.
31217         (gl_futimens): Delete.
31218         (utimens, lutimens): Update callers.
31219         * lib/futimens.c (futimens): Likewise.
31220         * tests/test-fdutimensat.c: Likewise.
31221         * tests/test-utimens.c: Likewise.
31222         * tests/test-futimens.h: Update comment.
31223         * NEWS: Mention this.
31224         Suggested by Paul Eggert.
31225
31226 2010-09-17  Bruno Haible  <bruno@clisp.org>
31227
31228         Take over the maintenance of some older macros from Autoconf.
31229         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31230         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31231         GNU Autoconf.
31232         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31233         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31234
31235 2010-09-17  Eric Blake  <eblake@redhat.com>
31236
31237         fdutimensat: drop atflag validation
31238         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31239         with valid fd, to close a race scenario where futimens is
31240         unsupported and FILE was replaced by a symlink.
31241         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31242         accordingly.
31243         Suggested by Paul Eggert.
31244
31245 2010-09-16  Bruno Haible  <bruno@clisp.org>
31246
31247         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31248         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31249
31250 2010-09-16  Bruno Haible  <bruno@clisp.org>
31251
31252         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31253         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31254         login_tty exists.
31255         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31256
31257 2010-09-16  Bruno Haible  <bruno@clisp.org>
31258
31259         login_tty: Make the replacement code work on BSD systems.
31260         * lib/login_tty.c: Include <sys/ioctl.h>.
31261         (login_tty): Use ioctl TIOCSCTTY when available.
31262         * modules/login_tty (Depends-on): Add sys_ioctl.
31263         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31264
31265 2010-09-16  Bruno Haible  <bruno@clisp.org>
31266
31267         login_tty: Stricter unit test.
31268         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31269         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31270         and tcgetsid() after login_tty.
31271         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31272
31273 2010-09-16  Bruno Haible  <bruno@clisp.org>
31274
31275         New module 'tcgetsid'.
31276         * lib/tcgetsid.c: New file.
31277         * m4/tcgetsid.m4: New file.
31278         * modules/tcgetsid: New file.
31279         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31280         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31281         GNULIB_TCGETSID, HAVE_TCGETSID.
31282         * lib/termios.in.h: Include <sys/types.h>.
31283         (tcgetsid): New declaration.
31284         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31285         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31286         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31287         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31288
31289 2010-09-16  Bruno Haible  <bruno@clisp.org>
31290
31291         Tests for module 'termios'.
31292         * modules/termios-c++-tests: New file.
31293         * modules/termios-tests: New file.
31294         * tests/test-termios-c++.cc: New file.
31295         * tests/test-termios.c: New file.
31296
31297         New module 'termios'.
31298         * modules/termios: New file.
31299         * lib/termios.in.h: New file.
31300         * m4/termios_h.m4: New file.
31301         * doc/posix-headers/termios.texi: Mention the new module.
31302
31303 2010-09-16  Eric Blake  <eblake@redhat.com>
31304
31305         fdutimensat: add an atflag parameter
31306         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31307         * lib/utimens.h (fdutimensat): Update prototype.
31308         * tests/test-fdutimensat.c: Adjust test to match.
31309         * NEWS: Document the change.
31310         Suggested by Paul Eggert.
31311
31312 2010-09-16  Bruno Haible  <bruno@clisp.org>
31313
31314         Fix typos in comments.
31315         * lib/striconveh.h: Fix typo in comment.
31316         * lib/login_tty.c (login_tty): Likewise.
31317
31318 2010-09-15  Bruno Haible  <bruno@clisp.org>
31319
31320         stdlib: clarify MirBSD WEXITSTATUS bug
31321         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31322         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31323
31324 2010-09-15  Eric Blake  <eblake@redhat.com>
31325
31326         stdlib: work around MirBSD WEXITSTATUS bug
31327         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31328         * modules/stdlib (Depends-on): Add sys_wait.
31329         * tests/test-sys_wait.c (main): Enhance test.
31330         * tests/test-stdlib.c (main): Likewise.
31331         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31332
31333         docs: mention MacOS issue with WEXITSTATUS(constant)
31334         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31335         issue.
31336         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31337
31338         strnlen: add tests
31339         * modules/strnlen-tests: New file.
31340         * tests/test-strnlen.c: Likewise.
31341
31342 2010-09-14  Bruno Haible  <bruno@clisp.org>
31343
31344         unistr/base: Avoid link errors when module 'libunistring' is also used.
31345         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31346         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31347         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31348         Declare also when HAVE_LIBUNISTRING is set.
31349         Reported by Pádraig Brady <P@draigbrady.com>.
31350
31351 2010-09-14  Eric Blake  <eblake@redhat.com>
31352
31353         test-rawmemchr: make more robust
31354         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31355         (Depends-on, configure.ac): Add needed prerequisites to use it.
31356         * modules/memchr-tests (Files, Depends-on, configure.ac):
31357         Likewise, to avoid implicit reliance on memchr module prereqs.
31358         * tests/test-memchr.c (main): Ensure proper masking.
31359         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31360         reads.
31361
31362         memchr: detect glibc Alpha bug
31363         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31364         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31365         Alpha.
31366         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31367         * tests/test-memchr.c (main): Enhance test.
31368         Reported by Nelson H. F. Beebe.
31369
31370 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31371
31372         fts, getcwd, glob: audit for dirfd returning -1
31373         * lib/fts.c (opendir): Remove #define; no longer used.
31374         (opendirat): New arg PDIR_FD.  All callers changed.
31375         (fts_build, _opendir2): Use new opendirat to avoid the need for
31376         dirfd, or for checking whether dirfd returns a negative value.
31377         Don't use opendir; always use openat followed by fdopendir.
31378         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31379         it.
31380         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31381         returns -1 here.
31382         * modules/fts (Depends-on): Remove dirfd.
31383         * modules/getcwd (Depends-on): Likewise.
31384
31385 2010-09-13  Eric Blake  <eblake@redhat.com>
31386
31387         float: fix broken MirBSD header
31388         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31389         * doc/posix-headers/float.texi (float.h): Document it.
31390
31391 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31392
31393         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31394         * lib/fts.c (opendirat): New arg extra_flags.
31395         (__opendir2): Use it to avoid following symlinks when opening
31396         a directory, if symlinks are not supposed to be followed.  See
31397         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31398
31399         fdopendir: preserve argument fd before returning
31400         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31401         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31402         (fdopendir): Use them, arranging for FD to be open to the same
31403         directory that it was when it started.  (It might be temporarily
31404         closed while fdopendir is running, so this not thread- or
31405         signal-safe.)  Be careful to do the right thing even when file
31406         descriptors are scarce and dup fails with errno == EMFILE.  See
31407         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31408
31409 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31410
31411         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31412         * NEWS: Document change.
31413         * m4/regex.m4: Disable test for regoff_t size.
31414
31415 2010-09-13  Jim Meyering  <meyering@redhat.com>
31416
31417         fts: don't operate on an invalid file descriptor after failed dup
31418         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31419         negative file descriptor.
31420
31421 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31422
31423         savedir: add streamsavedir, deprecate fdsavedir
31424         * NEWS: Mention deprecation of fdsavedir.
31425         * lib/savedir.c (streamsavedir): New extern function, whose name
31426         ends in "savedir" to be consistent with the others.  This differs
31427         from savedirstream in that it doesn't close its argument.  The
31428         next version of GNU tar will use this instead of fdsavedir, to
31429         avoid some race conditions and conserve file descriptors.
31430         (savedirstream): Reimplement as a wrapper around streamsavedir.
31431         (fdsavedir): Add a comment deprecating this function.  As far as
31432         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31433         * lib/savedir.h (streamsavedir): New decl.
31434         (fdsavedir): Add a comment deprecating this.
31435
31436 2010-09-10  Bruno Haible  <bruno@clisp.org>
31437
31438         langinfo: Fix last commit.
31439         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31440         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31441         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31442
31443 2010-09-10  Bruno Haible  <bruno@clisp.org>
31444
31445         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31446         * lib/progreloc.c (O_EXEC): Define fallback.
31447
31448 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31449
31450         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31451         * NEWS: Document recent changes to fcntl-h.
31452         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31453         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31454         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31455         Similarly for O_SEARCH; this last was already true, but not documented.
31456         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31457         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31458         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31459         Likewise.
31460         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31461         is zero, not whether it is defined.
31462         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31463         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31464         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31465
31466 2010-09-10  Bruno Haible  <bruno@clisp.org>
31467
31468         langinfo, nl_langinfo: Fix for IRIX 5.3.
31469         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31470         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31471         HAVE_LANGINFO_YESEXPR.
31472         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31473         HAVE_LANGINFO_YESEXPR.
31474         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31475         HAVE_LANGINFO_T_FMT_AMPM is 0.
31476         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31477         HAVE_LANGINFO_YESEXPR is 0.
31478         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31479         NOEXPR.
31480         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31481         * doc/posix-functions/nl_langinfo.texi: Likewise.
31482         Reported by Eric Blake.
31483
31484 2010-09-10  Bruno Haible  <bruno@clisp.org>
31485
31486         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31487         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31488         on FreeBSD 8.0 and OpenBSD 4.6.
31489         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31490         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31491         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31492         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31493         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31494         ac_includes_default.
31495         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31496
31497 2010-09-09  Eric Blake  <eblake@redhat.com>
31498
31499         strsignal: work around NetBSD bug
31500         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31501         * lib/string.in.h (includes): Likewise.
31502         * doc/posix-functions/strsignal.texi (strsignal): Document the
31503         bug.
31504         Reported by Nelson H. F. Beebe.
31505
31506         gnulib-tool: work with NetBSD /bin/sh
31507         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31508         (func_get_description, func_get_comment, func_get_status)
31509         (func_get_notice, func_get_applicability, func_get_filelist)
31510         (func_get_dependencies, func_get_autoconf_early_snippet)
31511         (func_get_autoconf_snippet, func_get_automake_snippet)
31512         (func_get_include_directive, func_get_link_directive)
31513         (func_get_license, func_get_maintainer, func_import): Avoid
31514         shell syntax errors from parsing syntax extensions.
31515
31516 2010-09-09  Bruno Haible  <bruno@clisp.org>
31517
31518         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31519         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31520         a reliable way to determine whether the 'alias' command works.
31521
31522 2010-09-08  Jim Meyering  <meyering@redhat.com>
31523
31524         init.sh: penalize a set-x-impaired shell; don't disqualify it
31525         * tests/init.sh: Too many shells corrupt application stderr when
31526         you set -x, so we can't afford to disqualify them, since at least
31527         on Irix-6.5, that would disqualify all bourne shells.
31528         Instead, use a two-pass approach.
31529         On the first pass, try to find a shell that meets the stricter
31530         condition that set -x does not corrupt stderr.
31531         If no shell meets the stricter condition, retest each candidate
31532         shell, but without that extra condition.  Finally, when
31533         VERBOSE=yes is requested and set -x might cause trouble, simply
31534         issue a warning and refrain from enabling debug output.
31535
31536 2010-09-08  Eric Blake  <eblake@redhat.com>
31537
31538         unsetenv: fix OpenBSD bug
31539         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31540         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31541         documentation.
31542         Reported by Jim Meyering.
31543
31544         strtod: work around IRIX 6.5 bug
31545         * lib/strtod.c (strtod): Reparse number on shorter string if
31546         exponent parse was invalid.
31547         * tests/test-strtod.c (main): Add check for "0x1p 2".
31548         Reported by Tom G. Christensen.
31549
31550         getopt: optimize previous patch
31551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31552         empty variable.  Speed up awk script.
31553         Reported by Paolo Bonzini.
31554
31555 2010-09-08  Jim Meyering  <meyering@redhat.com>
31556
31557         test.sh: disqualify shells for which set -x corrupts stderr
31558         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31559         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31560         appear in stderr output.  For example, this command:
31561             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31562         prints "P=1" on those two systems:
31563
31564 2010-09-08  Bruno Haible  <bruno@clisp.org>
31565
31566         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31567         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31568         commands, because some shells ignore redirections when there is an
31569         error in the command lookup.
31570         Reported by Eric Blake.
31571
31572 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31573
31574         * lib/regex.h: Fix a mention of `regex_compile' (should be
31575         `re_compile_pattern').
31576         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31577         (re_set_registers): Correct name of parameter in comment.
31578
31579         * doc/regex.texi: Add documentation for missing syntax flags.
31580         Remove commented-out documentation of defunct syntax option
31581         RE_NO_EMPTY_ALTS.
31582         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31583         Add documentation of re_set_registers.
31584         Document trick to re-use a pattern buffer by setting fastmap manually.
31585         Update documentation of struct re_pattern_buffer per public members.
31586         Uncomment documentation of equivalence class operators and
31587         collating symbol operators, since they are now implemented,
31588         Explain leftmost-longest matching in relation to alternatives.
31589         Tidy documentation of substring matching.
31590         Remove POSIX documentation, which is done better in
31591         glibc, and refer the reader there. Keep BSD API documentation, as
31592         that is not readily available elsewhere.
31593
31594 2010-09-07  Eric Blake  <eblake@redhat.com>
31595
31596         getopt: handle POSIXLY_CORRECT set but not exported
31597         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31598         export state of POSIXLY_CORRECT, due to bash set -o posix.
31599         Reported by Dustin J. Mitchell.
31600
31601 2010-09-05  Bruno Haible  <bruno@clisp.org>
31602
31603         gnulib-tool: Highlight the changed options.
31604         * gnulib-tool (func_usage): Display the --import, --add-import,
31605         --remove-import explanations in bold font.
31606
31607 2010-09-06  Karl Berry  <karl@gnu.org>
31608
31609         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31610
31611 2010-09-05  Bruno Haible  <bruno@clisp.org>
31612
31613         uniwidth/width: Update comment.
31614         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31615         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31616
31617 2010-09-05  Bruno Haible  <bruno@clisp.org>
31618
31619         isinf, isnan: Relax license.
31620         * modules/isinf (License): Change from GPL to LGPL, with consent from
31621         Ben Pfaff.
31622         * modules/isnan (License): Likewise.
31623         Requested by Ludovic Courtès.
31624
31625 2010-09-04  Bruno Haible  <bruno@clisp.org>
31626
31627         gnulib-tool: Help migration from --import to --add-import or --update.
31628         * gnulib-tool: Emit a verbose error message when --import is used
31629         without any module name.
31630
31631 2010-09-04  Bruno Haible  <bruno@clisp.org>
31632
31633         Update doc about gnulib-tool.
31634         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31635         'gnulib-tool --update' in more detail.
31636         Reported by Eric Blake.
31637
31638 2010-09-04  Bruno Haible  <bruno@clisp.org>
31639
31640         gnulib-tool: Change --import. New options --add/remove-import.
31641         * gnulib-tool: New options --add-import, --remove-import.
31642         (func_usage): Document them.
31643         (have_associative): Define always.
31644         (func_import): In import mode, don't merge the specified settings with
31645         the cached settings. Implement remove-import mode.
31646         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31647         Explain when to use them versus --import.
31648         (Simple update): Use --add-import instead of --import.
31649         * NEWS: Mention the change.
31650
31651 2010-09-04  Bruno Haible  <bruno@clisp.org>
31652
31653         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31654         separate gnulib.mk.
31655
31656 2010-09-04  Bruno Haible  <bruno@clisp.org>
31657
31658         gnulib-tool: Don't talk about CVS any more.
31659         * gnulib-tool (func_usage, func_import): Write "version control"
31660         instead of CVS.
31661
31662 2010-09-04  Jim Meyering  <meyering@redhat.com>
31663
31664         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31665         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31666         false positives (whose names may be ill-chosen) when searching
31667         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31668         would cause a false-positive.
31669
31670         avoid coreutils "make distcheck" failure
31671         Coreutils tests with an absolute build directory name that contains
31672         a space.  Not quoting this directory name caused a failure.
31673         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31674         * tests/test-vc-list-files-cvs.sh: Likewise.
31675
31676 2010-09-04  Bruno Haible  <bruno@clisp.org>
31677
31678         gnulib-tool: Avoid error when run in a package without Makefile.am.
31679         * gnulib-tool: When collecting the m4dirs in a package that does not
31680         have a Makefile.am, eliminate those directories that contain no
31681         gnulib-cache.m4. Fix expression that counts these directories.
31682
31683 2010-09-04  Bruno Haible  <bruno@clisp.org>
31684
31685         update-copyright test: Improve output when perl is missing or too old.
31686         * tests/test-update-copyright.sh: Move test of Perl version down after
31687         the test whether Perl exists. Provide an explanation relating Perl's
31688         error message to Automake's SKIP: message.
31689
31690 2010-09-04  Bruno Haible  <bruno@clisp.org>
31691
31692         Don't augment PATH in TESTS_ENVIRONMENT.
31693         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31694         set abs_aux_dir instead of augmenting PATH.
31695         * modules/vc-list-files-tests (Makefile.am): Likewise.
31696         * tests/test-update-copyright.sh: Augment PATH here.
31697         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31698         path_prepend_.
31699         * tests/test-vc-list-files-git.sh: Likewise.
31700
31701 2010-09-04  Jim Meyering  <meyering@redhat.com>
31702
31703         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31704         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31705
31706 2010-09-04  Bruno Haible  <bruno@clisp.org>
31707
31708         strdup: Fix compilation error in C++ mode.
31709         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31710         the macro.
31711
31712 2010-09-04  Bruno Haible  <bruno@clisp.org>
31713
31714         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31715         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31716         macro into a function.
31717         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31718
31719 2010-09-04  Bruno Haible  <bruno@clisp.org>
31720
31721         Set PATH_SEPARATOR the same way autoconf does.
31722         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31723         the value of PATH_SEPARATOR the same way autoconf-generated configure
31724         scripts do.
31725         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31726         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31727
31728 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31729
31730         Set PATH_SEPARATOR the same way autoconf does.
31731         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31732         the same way autoconf-generated configure scripts do.
31733         * posix-modules: Likewise.
31734
31735 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31736
31737         hash: fix safe_hasher const typo
31738         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31739         const; otherwise, there is a type error later.
31740
31741 2010-09-02  Jim Meyering  <meyering@redhat.com>
31742
31743         test-update-copyright.sh: require perl 5.8.0
31744         * tests/test-update-copyright.sh: Require 5.8.0,
31745         which Tom G. Christensen has confirmed is adequate,
31746         while 5.6.1 is not.
31747
31748 2010-09-02  Eric Blake  <eblake@redhat.com>
31749
31750         tests: init.sh improvements for re-exec'ing with zsh
31751         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31752         -vx through shell re-exec.
31753         Reported by Tom G. Christensen.
31754
31755         wctype: fix typo in previous commit
31756         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31757         Reported by Ludovic Courtès.
31758
31759 2010-09-02  Jim Meyering  <meyering@redhat.com>
31760
31761         test-update-copyright.sh: skip test if Perl is too old
31762         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31763         Reported by Tom G. Christensen.
31764
31765 2010-09-02  Bruno Haible  <bruno@clisp.org>
31766
31767         wctype: Avoid compilation error on IRIX 6.5.30.
31768         * lib/wctype.in.h (iswblank): Declare with a replacement if
31769         REPLACE_ISWBLANK is set.
31770         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31771         declared. Set REPLACE_ISWBLANK.
31772         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31773         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31774         * doc/posix-headers/wctype.texi: Likewise.
31775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31776
31777 2010-09-01  Bruno Haible  <bruno@clisp.org>
31778
31779         New module 'socketlib'.
31780         * modules/socketlib: New file.
31781         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31782         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31783         * modules/sockets (Depends-on): Add socketlib.
31784         Suggested by Sam Steingold <sds@gnu.org>.
31785
31786 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31787
31788         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31789
31790         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31791         when one needs search access to a directory but not read access.
31792         On systems where it is available, it works in some cases where
31793         O_RDONLY does not, namely on directories that are searchable but
31794         not readable, and which need only to be searchable.  If O_SEARCH
31795         is not available, fall back to the traditional method of using
31796         O_RDONLY.
31797
31798         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31799         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31800         when opening a directory that needs only to be searchable.
31801         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31802         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31803         * lib/openat-proc.c (openat_proc_name): Likewise.
31804         * lib/openat.c (openat_needs_fchdir): Likewise.
31805         * lib/save-cwd.c (save_cwd): Likewise.
31806         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31807
31808 2010-08-28  Bruno Haible  <bruno@clisp.org>
31809
31810         New module 'host-cpu-c-abi'.
31811         * modules/host-cpu-c-abi: New file.
31812         * m4/host-cpu-c-abi.m4: New file, based on part of
31813         clisp/src/m4/general.m4.
31814         Requested by Sam Steingold <sds@gnu.org>.
31815
31816 2010-08-31  Eric Blake  <eblake@redhat.com>
31817         and Jim Meyering  <meyering@redhat.com>
31818
31819         hash: factor, and guard against misbehaving hasher function
31820         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31821         of table->hasher's return value.  Also protect against a hash value
31822         so large that adding it to table->bucket results in a NULL pointer.
31823         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31824         Use it in place of open-coded check-and-abort.
31825
31826 2010-08-30  Bruno Haible  <bruno@clisp.org>
31827
31828         hash: silence spurious clang warning
31829         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31830         Reported by Eric Blake.
31831
31832 2010-08-30  Eric Blake  <eblake@redhat.com>
31833
31834         strstr, memmem, strcasestr: avoid leaked shell message
31835         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31836         FreeBSD.
31837         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31838         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31839
31840         tests: silence clang warning
31841         * tests/test-malloca.c (do_allocation): Avoid dead store.
31842
31843 2010-08-29  Bruno Haible  <bruno@clisp.org>
31844
31845         gettext: Fix recent mistake.
31846         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31847
31848 2010-08-29  Bruno Haible  <bruno@clisp.org>
31849
31850         selinux-h: Offer a --without-selinux option.
31851         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31852         --without-selinux was specified, skip all tests and define
31853         HAVE_SELINUX_SELINUX_H to 0.
31854         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31855         set LIB_SELINUX to empty.
31856         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31857         gl_LIBSELINUX. If --without-selinux was specified, replace
31858         selinux/context.h.
31859         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31860
31861 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31862             Bruno Haible  <bruno@clisp.org>
31863
31864         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31865         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31866         of HAVE_REALLOC.
31867         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31868         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31869         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31870         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31871
31872 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31873             Bruno Haible  <bruno@clisp.org>
31874
31875         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31876         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31877         HAVE_CALLOC.
31878         * lib/xmalloc.c: Update accordingly.
31879         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31880         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31881         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31882
31883 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31884             Bruno Haible  <bruno@clisp.org>
31885
31886         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31887         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31888         HAVE_MALLOC.
31889         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31890         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31891         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31892
31893 2010-08-29  Bruno Haible  <bruno@clisp.org>
31894
31895         Update modules list.
31896         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31897         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31898         (String handling <string.h>): Add astrxfrm.
31899         (File system functions): Add readlinkat.
31900
31901 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31902
31903         Tests for module 'realloc-gnu'.
31904         * modules/realloc-gnu-tests: New file.
31905         * tests/test-realloc-gnu.c: New file.
31906
31907         Tests for module 'calloc-gnu'.
31908         * modules/calloc-gnu-tests: New file.
31909         * tests/test-calloc-gnu.c: New file.
31910
31911         Tests for module 'malloc-gnu'.
31912         * modules/malloc-gnu-tests: New file.
31913         * tests/test-malloc-gnu.c: New file.
31914
31915 2010-08-28  Bruno Haible  <bruno@clisp.org>
31916
31917         Rename module 'realloc' -> 'realloc-gnu'.
31918         * modules/realloc-gnu: New file, copied from modules/realloc.
31919         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31920         obsolete.
31921         * modules/mgetgroups (Depends-on): Update.
31922         * doc/posix-functions/realloc.texi: Update.
31923         * NEWS: Mention the change.
31924
31925         Rename module 'calloc' -> 'calloc-gnu'.
31926         * modules/calloc-gnu: New file, copied from modules/calloc.
31927         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31928         obsolete.
31929         * doc/posix-functions/calloc.texi: Update.
31930         * NEWS: Mention the change.
31931
31932         Rename module 'malloc' -> 'malloc-gnu'.
31933         * modules/malloc-gnu: New file, copied from modules/malloc.
31934         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31935         obsolete.
31936         * modules/argp (Depends-on): Update.
31937         * modules/regex (Depends-on): Update.
31938         * doc/posix-functions/malloc.texi: Update.
31939         * NEWS: Mention the change.
31940
31941 2010-08-28  Eric Blake  <eblake@redhat.com>
31942
31943         pread, pwrite: add missing dependency
31944         * modules/pread (Depends-on): Add extensions.
31945         * modules/pwrite (Depends-on): Likewise.
31946
31947 2010-08-28  Bruno Haible  <bruno@clisp.org>
31948
31949         unistr/u*-strchr: Fix tests dependencies.
31950         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31951         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31952         Reported by Ian Beckwith <ianb@erislabs.net>.
31953
31954 2010-08-28  Bruno Haible  <bruno@clisp.org>
31955
31956         read-file: Don't occupy too much unused memory.
31957         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31958
31959 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31960             Eric Blake  <eblake@redhat.com>
31961             Bruno Haible  <bruno@clisp.org>
31962
31963         read-file: Avoid memory reallocations with regular files.
31964         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31965         (fread_file): With regular files, use the remaining length as the
31966         initial buffer size.  Check against overflow.
31967         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31968         sys_stat.
31969
31970 2010-08-28  Bruno Haible  <bruno@clisp.org>
31971
31972         ftello: Relax license.
31973         * modules/ftello (License): Relax to LGPLv2+.
31974         Reported by Eric Blake.
31975
31976 2010-08-28  Bruno Haible  <bruno@clisp.org>
31977
31978         Avoid relocwrapper link errors due to gnulib replacement functions.
31979         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31980         function.
31981         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31982
31983 2010-08-28  Bruno Haible  <bruno@clisp.org>
31984
31985         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31986         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31987         defined.
31988         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31989         Suggested by Eric Blake.
31990
31991 2010-08-28  Bruno Haible  <bruno@clisp.org>
31992
31993         sys_socket, netdb: Ensure socklen_t gets defined.
31994         * modules/sys_socket (Depends-on): Add socklen.
31995         * modules/netdb (Depends-on): Likewise.
31996         * modules/getaddrinfo (Depends-on): Remove socklen.
31997         * modules/getsockopt (Depends-on): Likewise.
31998         * modules/setsockopt (Depends-on): Likewise.
31999         * tests/test-sys_socket.c: Check that socklen_t is defined.
32000         * tests/test-netdb.c: Likewise.
32001         * m4/socklen.m4: Update comments.
32002         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32003
32004 2010-08-27  Eric Blake  <eblake@redhat.com>
32005
32006         login_tty: add missing dependency
32007         * modules/login_tty (Depends-on): Add pty.
32008
32009 2010-08-26  Eric Blake  <eblake@redhat.com>
32010
32011         lib-symbol-versions: fix m4 quoting
32012         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
32013         format for AC_LINK_IFELSE.
32014
32015         glob: fix compile test
32016         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
32017
32018         btowc: fix missing file
32019         * modules/btowc (Files): Also ship locale-fr.m4.
32020
32021         lseek: fix link test
32022         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
32023         AC_LINK_IFELSE.
32024
32025         include_next: silence autoconf 2.68 warning
32026         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
32027         AC_COMPILE_IFELSE as special.
32028         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
32029         autoconf < 2.68.
32030
32031         acl: fix compilation test
32032         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
32033         AC_COMPILE_IFELSE.
32034
32035 2010-08-26  Bruno Haible  <bruno@clisp.org>
32036
32037         Modernize AC_TRY_RUN invocations.
32038         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
32039         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
32040         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
32041         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
32042         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
32043         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32044         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
32045         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32046         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32047         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
32048         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
32049         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32050         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
32051         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32052         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
32053         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
32054         gl_MBRLEN_NUL_RETVAL): Likewise.
32055         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32056         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32057         Likewise.
32058         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32059         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
32060         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
32061         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
32062         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
32063         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
32064         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
32065         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
32066         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
32067         Likewise.
32068         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32069         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
32070         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32071         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32072         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32073         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
32074         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
32075         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
32076         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32078
32079 2010-08-26  Bruno Haible  <bruno@clisp.org>
32080
32081         Modernize AC_TRY_LINK invocations.
32082         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
32083         AC_TRY_LINK.
32084         * m4/argp.m4 (gl_ARGP): Likewise.
32085         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32086         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32087         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32088         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32089         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32090         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
32091         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32092         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32093         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32094         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32095         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32096         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
32097         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
32098         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32099         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32100         * m4/hostent.m4 (gl_HOSTENT): Likewise.
32101         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
32102         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
32103         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32104         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
32105         Likewise.
32106         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
32107         Likewise.
32108         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
32109         Likewise.
32110         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32111         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
32112         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
32113         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32114         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32115         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32116         * m4/servent.m4 (gl_SERVENT): Likewise.
32117         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32118         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32119         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32120         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32121         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32122         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32123         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32124         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32125         * modules/tsearch-tests (configure.ac): Likewise.
32126
32127 2010-08-26  Bruno Haible  <bruno@clisp.org>
32128
32129         Modernize AC_TRY_COMPILE invocations.
32130         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
32131         AC_TRY_COMPILE.
32132         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
32133         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
32134         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32135         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32136         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32137         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32138         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32139         * m4/lock.m4 (gl_LOCK): Likewise.
32140         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
32141         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32142         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
32143         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32144         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32145         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32146         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32147         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32148         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32149         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32150         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32151         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32152         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32153         extraneous semicolon.
32154
32155 2010-08-26  Jim Meyering  <meyering@redhat.com>
32156
32157         stat-time: relax license LGPL
32158         * modules/stat-time (License): Change from GPL to LGPL,
32159         with consent from all contributors, for use in libguile.
32160         Requested by Ludovic Courtès.
32161
32162 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32163
32164         poll: return immediately on POLLHUP.
32165         * lib/poll.c (poll): Always set timeout before wait_timeout is
32166         computed.
32167
32168 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32169
32170         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32171         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32172         rmdir ("dir/.//"), unlinkat.
32173
32174 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32175
32176         stdbool: avoid spurious failure with modern xlc
32177         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32178
32179 2010-08-24  Bruno Haible  <bruno@clisp.org>
32180
32181         getloadavg: simplify code
32182         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32183         gl_have_func. Update comments.
32184
32185 2010-08-24  Eric Blake  <eblake@redhat.com>
32186
32187         getloadavg: don't define SVR4 on cygwin
32188         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32189         only define SVR4 when -lkvm is required.
32190         Reported by Yaakov Selkowitz.
32191
32192 2010-08-24  Bruno Haible  <bruno@clisp.org>
32193
32194         priv-set: fix comment
32195         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32196
32197 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32198
32199         priv-set: fix comments
32200         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32201         to match code, as suggested by David Bartley in:
32202         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32203
32204 2010-08-23  Eric Blake  <eblake@redhat.com>
32205
32206         stdbool: avoid rejecting clang
32207         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32208         * tests/test-stdbool.c: Enable more tests if using the system
32209         <stdbool.h> instead of the gnulib replacement.
32210         (main): Move xlc bug test to a runtime test for all compilers.
32211         Reported by Anders Kaseorg.
32212
32213         argz: fix shell quoting issue
32214         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32215         Reported by Charles Wilson.
32216
32217 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32218             Erik Faye-Lund <kusmabite@gmail.com>
32219
32220         poll, select: handle ERROR_BROKEN_PIPE.
32221         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32222         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32223         * lib/select.c (win32_compute_revents): Do not mark a pipe
32224         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32225
32226 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32227
32228         fts: allow compilation with C++
32229         * lib/fts_.h: Specify extern "C" linkage with C++.
32230
32231 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32232
32233         Fix gnulib-tool sed script de-commentation for AIX sed.
32234         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32235         sed.
32236
32237 2010-08-17  Eric Blake  <eblake@redhat.com>
32238
32239         test-stddef: test for (some) offsetof bugs
32240         * tests/test-stddef.c: Enhance test to ensure correct type of
32241         offsetof.
32242         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32243         that we are not fixing at this time.
32244
32245 2010-08-15  Bruno Haible  <bruno@clisp.org>
32246
32247         stpncpy: Allow stpncpy to be defined as a macro.
32248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32249         if it's already correctly declared.
32250         * lib/string.in.h (stpncpy): Undefine before redefining.
32251         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32252
32253 2010-08-14  Bruno Haible  <bruno@clisp.org>
32254
32255         Rename module 'memxfrm' to 'amemxfrm'.
32256         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32257         (amemxfrm): Renamed from memxfrm.
32258         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32259         (amemxfrm): Renamed from memxfrm.
32260         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32261         * NEWS: Mention the change.
32262         * MODULES.html.sh (String handling <string.h>): Update.
32263         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32264         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32265         * lib/unicase/u16-casexfrm.c: Likewise.
32266         * lib/unicase/u32-casexfrm.c: Likewise.
32267         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32268         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32269         * lib/uninorm/u16-normxfrm.c: Likewise.
32270         * lib/uninorm/u32-normxfrm.c: Likewise.
32271         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32272         memxfrm.
32273         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32274         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32275         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32276         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32277         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32278         Suggested by Paul Eggert.
32279
32280 2010-08-14  Bruno Haible  <bruno@clisp.org>
32281
32282         Tests for module 'astrxfrm'.
32283         * modules/astrxfrm-tests: New file.
32284         * tests/test-astrxfrm.c: New file.
32285
32286         New module 'astrxfrm'.
32287         * lib/astrxfrm.h: New file.
32288         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32289         * modules/astrxfrm: New file.
32290
32291 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32292
32293         regex: Tweak doc.
32294         * doc/regex.texi (Overview): Don't mention regex.c.
32295         (GNU Regular Expression Compiling): Likewise.
32296         (Match-end-of-line Operator): Mention 'not_eol'.
32297
32298 2010-08-14  Brian Gough  <bjg@gnu.org>
32299             Bruno Haible  <bruno@clisp.org>
32300
32301         git-merge-changelog: add doc relating to use with bzr and hg.
32302         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32303
32304 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32305
32306         pthread: fix pthread.h creation for srcdir != builddir
32307         * modules/pthread (Makefile.am): Fix the rule to work also in a
32308         non-srcdir build.
32309
32310 2010-08-13  Karl Berry  <karl@gnu.org>
32311
32312         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32313         * doc/posix-*/*: force line break before @url of POSIX
32314         specifications.
32315         Suggested by Werner Lemberg.
32316
32317 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32318
32319         strtod: fix const diagnostic
32320         * lib/strtod.c (strtod): Don't assign const char * to char *,
32321         as this elicits a warning from GCC when warnings are enabled.
32322
32323 2010-08-10  Pádraig Brady <P@draigbrady.com>
32324         and Eric Blake  <eblake@redhat.com>
32325
32326         copy-acl: ignore ENOTSUP on HP-UX
32327         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32328         so that it is available for HP-UX.
32329         * lib/copy-acl.c (qcopy_acl): Use it.
32330         Reported by Patrick M. Callahan.
32331
32332 2010-08-10  Eric Blake  <eblake@redhat.com>
32333
32334         open, chown: relax license
32335         * modules/open (License): Change to LGPLv2+, with consent by all
32336         authors, for use in augeas.
32337         * modules/chown (License): Likewise.
32338         * modules/lchown (Likewise): Likewise.
32339         Requested by Adam Stokes.
32340
32341 2010-08-09  Karl Berry  <karl@gnu.org>
32342
32343         * build-aux/ar-lib: new file, import from Automake.
32344         * config/srclist.txt: autocheck for updates.
32345
32346 2010-08-09  Eric Blake  <eblake@redhat.com>
32347
32348         readlinkat: adjust client modules
32349         * modules/areadlinkat (Depends-on): Use readlinkat, not
32350         symlinkat.
32351         * modules/areadlinkat-with-size (Depends-on): Likewise.
32352
32353         mknod: be more vocal about danger of running tests as root
32354         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32355         root, since that is just asking for problems.
32356         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32357
32358         readlinkat: split into its own module
32359         * modules/symlinkat: Split readlinkat...
32360         * modules/readlinkat: ...into separate module.
32361         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32362         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32363         * lib/symlinkat.c (readlinkat): Move...
32364         * lib/readlinkat.c: ...into new file.
32365         * modules/symlinkat-tests: Split readlinkat test...
32366         * modules/readlinkat-tests: ...into separate module.
32367         * tests/test-symlinkat.c: Split...
32368         * tests/test-readlinkat.c: ...into new file.
32369         * NEWS: Document the split.
32370         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32371         * lib/unistd.in.h (readlinkat): Likewise.
32372         Suggested by Bruno Haible.
32373
32374 2010-08-08  Bruno Haible  <bruno@clisp.org>
32375
32376         memxfrm: Speed up.
32377         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32378         that usually only one call to strxfrm is necessary for each string
32379         part.
32380         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32381
32382 2010-08-07  Karl Berry  <karl@gnu.org>
32383
32384         * doc/posix-headers/limits.texi,
32385         * doc/posix-functions/malloc.texi,
32386         * doc/posix-functions/strsignal.texi: missing @item.
32387         * doc/ld-version-script.texi: spurious leading i.
32388         * doc/regex.texi (Interval Operators): no commas inside @var.
32389
32390 2010-08-01  Bruno Haible  <bruno@clisp.org>
32391
32392         Integrate the regex documentation.
32393         * doc/gnulib.texi: Define 'cn' index.
32394         (Regular expressions): New a chapter that includes regex.texi and
32395         regexprops-generic.texi.
32396         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32397         syntax.
32398
32399         Whitespace cleanup.
32400         * doc/regex.texi: Remove trailing spaces.
32401
32402         Add regex documentation.
32403         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32404         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32405         Written by Kathy A. Hargreaves and Karl Berry.
32406
32407 2010-08-01  Bruno Haible  <bruno@clisp.org>
32408
32409         link: Update documentation.
32410         * doc/posix-functions/link.texi: Update regarding Solaris.
32411
32412 2010-07-31  Bruno Haible  <bruno@clisp.org>
32413
32414         Update modules list.
32415         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32416         (String handling <string.h>): Add memcmp2, memxfrm.
32417         (Container data structures): Add xlist, xsublist, xoset.
32418         (Core language properties): Add alignof, unused-parameter.
32419         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32420         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32421         (Unibyte characters <ctype.h>): New section.
32422         (String handling <string.h>): New section.
32423         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32424         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32425         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32426         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32427         tan, tanh, tanl, y0, y1, yn.
32428         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32429         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32430         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32431         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32432         unlockpt, vdprintf, vdprintf-posix.
32433         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32434         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32435         xconcat-filename.
32436         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32437         getdtablesize, pipe2, pipe2-safer.
32438         (Security): New section.
32439         (Networking functions): Add accept4.
32440         (Signal handling): Add sigpipe.
32441         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32442         mbmemcasecoll.
32443         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32444         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32445         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32446         pipe-filter-ii.
32447         (Misc): Add argp-version-etc, login_tty, parse-duration.
32448
32449 2010-07-31  Bruno Haible  <bruno@clisp.org>
32450
32451         Improve doc in MODULES.html.
32452         * modules/linkat (Description): Add the word "function".
32453         * modules/mkfifo (Description): Likewise.
32454         * modules/mknod (Description): Likewise.
32455         * modules/remove (Description): Likewise.
32456         * modules/renameat (Description): Likewise.
32457         * modules/stat (Description): Likewise.
32458         * modules/symlink (Description): Likewise.
32459         * modules/unlink (Description): Likewise.
32460
32461 2010-07-31  Bruno Haible  <bruno@clisp.org>
32462
32463         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32464         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32465         option --enable/disable-c++ instead of --enable/disable-cxx.
32466         * NEWS: Mention the change.
32467
32468 2010-07-31  Bruno Haible  <bruno@clisp.org>
32469
32470         readlink, areadlink: Relax test a bit.
32471         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32472         alternative to ENOTDIR.
32473         * tests/test-areadlink.h (test_areadlink): Likewise.
32474         Reported by Rainer Tammer.
32475
32476 2010-07-31  Bruno Haible  <bruno@clisp.org>
32477
32478         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32479         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32480         character, perform the search using U_STRCHR.
32481         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32482         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32483         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32484         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32485         Suggested by Paolo Bonzini.
32486
32487 2010-07-31  Bruno Haible  <bruno@clisp.org>
32488
32489         unistr/u*-strstr: Fix dependencies.
32490         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32491         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32492         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32493
32494 2010-07-31  Bruno Haible  <bruno@clisp.org>
32495
32496         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32497         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32498         the beginning of the loop.
32499         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32500         cases in 'switch' statement.
32501
32502         unistr/u8-strchr: Fix several bugs.
32503         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32504         the string. When not found, return NULL, not a pointer near the end.
32505
32506         More tests for unistr/u8-strchr.
32507         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32508         that the function does not read past the first occurrence of the byte
32509         being searched.
32510         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32511         * tests/unistr/test-u16-strchr.c (main): New function.
32512         * tests/unistr/test-u32-strchr.c (main): New function.
32513
32514 2010-07-31  Bruno Haible  <bruno@clisp.org>
32515
32516         posix-modules: Ignore backup files of documentation files.
32517         * posix-modules: grep only through files named *.texi.
32518
32519 2010-07-31  Bruno Haible  <bruno@clisp.org>
32520
32521         symlinkat: Fix documentation.
32522         * doc/posix-functions/readlinkat.texi: Fix module name.
32523
32524 2010-07-31  Bruno Haible  <bruno@clisp.org>
32525
32526         fchownat: Replace also when chown has the trailing slash bug.
32527         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32528         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32529         introduced on 2010-04-10.
32530         Reported by Rainer Tammer.
32531
32532 2010-07-31  Bruno Haible  <bruno@clisp.org>
32533
32534         linkat: Work around AIX 7.1 bug.
32535         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32536         whether linkat handles trailing slash correctly. If not, replace linkat
32537         and define LINKAT_TRAILING_SLASH_BUG.
32538         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32539         check whether (fd1,file1) points to a directory if file1 or file2 ends
32540         in a slash. Code taken from lib/link.c.
32541         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32542         Reported by Rainer Tammer.
32543
32544 2010-07-31  Bruno Haible  <bruno@clisp.org>
32545
32546         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32547         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32548         This disables an xlc optimization that was causing wrong test results.
32549         Reported by Rainer Tammer.
32550
32551 2010-07-31  Bruno Haible  <bruno@clisp.org>
32552
32553         iconv: Work around AIX 6.1..7.1 bug.
32554         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32555         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32556         cross-compiling, guess no on all versions of AIX.
32557         Reported by Rainer Tammer.
32558
32559 2010-07-31  Bruno Haible  <bruno@clisp.org>
32560
32561         readlink: Relax test a bit.
32562         * tests/test-readlink.h (test_readlink): Allow different errno value
32563         when readlink is called with a file name that ends in / and refers to
32564         a file.
32565         Suggested by Eric Blake.
32566         Reported by Rainer Tammer.
32567
32568 2010-07-31  Bruno Haible  <bruno@clisp.org>
32569
32570         copysign: Does not require -lm on glibc systems.
32571         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32572         gl_COMMON_DOUBLE_MATHFUNC.
32573         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32574
32575 2010-07-31  Bruno Haible  <bruno@clisp.org>
32576
32577         duplocale: Work around AIX 7.1 bug.
32578         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32579         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32580         * lib/duplocale.c (rpl_duplocale): Update comment.
32581         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32582         Reported by Rainer Tammer.
32583
32584 2010-07-30  Bruno Haible  <bruno@clisp.org>
32585
32586         dirfd: Avoid link error on AIX 7.1.
32587         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32588         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32589         exist, set REPLACE_DIRFD.
32590         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32591         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32592         * doc/posix-functions/dirfd.texi: Update.
32593         Reported by Rainer Tammer.
32594
32595 2010-07-30  Eric Blake  <eblake@redhat.com>
32596
32597         strtod: next round of AIX fixes
32598         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32599         exponent.
32600         * tests/test-strtod.c (main): Enhance tests.
32601         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32602         Reported by Rainer Tammer.
32603
32604         futimens: fix configure check
32605         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32606         Reported by Bruno Haible.
32607
32608 2010-07-30  Bruno Haible  <bruno@clisp.org>
32609
32610         getline: Update regarding AIX.
32611         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32612         Reported by Rainer Tammer.
32613
32614 2010-07-30  Bruno Haible  <bruno@clisp.org>
32615
32616         wcwidth: Drop replacement on AIX 7.
32617         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32618         AIX 7.
32619         Reported by Rainer Tammer.
32620
32621 2010-07-30  Bruno Haible  <bruno@clisp.org>
32622
32623         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32624         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32625         a 'char *'.
32626         Reported by Rainer Tammer.
32627
32628 2010-07-30  Bruno Haible  <bruno@clisp.org>
32629
32630         unlink: Update regarding AIX.
32631         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32632         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32633         Reported by Rainer Tammer.
32634
32635 2010-07-30  Bruno Haible  <bruno@clisp.org>
32636
32637         symlink: Update regarding AIX.
32638         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32639         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32640         Reported by Rainer Tammer.
32641
32642 2010-07-30  Bruno Haible  <bruno@clisp.org>
32643
32644         strndup: Update regarding AIX.
32645         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32646         AIX 7.
32647         Reported by Rainer Tammer.
32648
32649 2010-07-30  Bruno Haible  <bruno@clisp.org>
32650
32651         stat: Update regarding AIX.
32652         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32653         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32654         Reported by Rainer Tammer.
32655
32656 2010-07-30  Bruno Haible  <bruno@clisp.org>
32657
32658         truncl: Fix autoconf test.
32659         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32660         whether truncl works.
32661         Reported by Rainer Tammer.
32662
32663 2010-07-30  Bruno Haible  <bruno@clisp.org>
32664
32665         round: Update regarding AIX.
32666         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32667         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32668         Reported by Rainer Tammer.
32669
32670 2010-07-30  Bruno Haible  <bruno@clisp.org>
32671
32672         rename: Update regarding AIX.
32673         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32674         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32675         Reported by Rainer Tammer.
32676
32677 2010-07-30  Bruno Haible  <bruno@clisp.org>
32678
32679         printf.m4: Update regarding AIX.
32680         * m4/printf.m4: Update comments regarding AIX.
32681         Reported by Rainer Tammer.
32682
32683 2010-07-30  Bruno Haible  <bruno@clisp.org>
32684
32685         iconv: Update regarding AIX.
32686         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32687         AIX 7.
32688         Reported by Rainer Tammer.
32689
32690 2010-07-30  Bruno Haible  <bruno@clisp.org>
32691
32692         getopt: Update regarding AIX.
32693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32694         no on AIX.
32695         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32696         Reported by Rainer Tammer.
32697
32698 2010-07-30  Bruno Haible  <bruno@clisp.org>
32699
32700         ldexpl; Update regarding AIX.
32701         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32702         on AIX 7.
32703         Reported by Rainer Tammer.
32704
32705 2010-07-30  Bruno Haible  <bruno@clisp.org>
32706
32707         frexpl: Update regarding AIX.
32708         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32709         on AIX 7.
32710         Reported by Rainer Tammer.
32711
32712 2010-07-30  Bruno Haible  <bruno@clisp.org>
32713
32714         open, fopen: Update regarding AIX.
32715         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32716         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32717         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32718         * doc/posix-functions/fopen.texi: Likewise.
32719         Reported by Rainer Tammer.
32720
32721 2010-07-30  Bruno Haible  <bruno@clisp.org>
32722
32723         chown: Update doc regarding AIX.
32724         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32725         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32726         Reported by Rainer Tammer.
32727
32728 2010-07-30  Eric Blake  <eblake@redhat.com>
32729
32730         strtod: fix bug in replacement function on AIX
32731         * lib/strtod.c (strtod): Special case broken "0x" parse in
32732         underlying strtod.
32733         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32734         * doc/posix-functions/strtod.texi (strtod): Likewise.
32735         Reported by Rainer Tammer.
32736
32737 2010-07-30  Bruno Haible  <bruno@clisp.org>
32738
32739         mbrlen: Fix cross-compilation guess for AIX.
32740         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32741         guess. Leftover from 2008-12-22.
32742
32743 2010-07-30  Bruno Haible  <bruno@clisp.org>
32744
32745         mbrtowc: Fix cross-compilation guess for AIX.
32746         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32747         guess. Leftover from 2008-12-21.
32748
32749 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32750
32751         init.sh: work around trap limitation of some shells
32752         * tests/init.sh (setup_): Move exit trap outside of shell function.
32753
32754 2010-07-29  Eric Blake  <eblake@redhat.com>
32755
32756         strtod: aid debugging
32757         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32758         understanding why strtod is rejected.
32759
32760 2010-07-28  Bruno Haible  <bruno@clisp.org>
32761
32762         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32763         * lib/unistr/u8-chr.c: Include <string.h>.
32764         * tests/unistr/test-u8-chr.c: Likewise.
32765         * tests/unistr/test-u16-chr.c: Likewise.
32766         * tests/unistr/test-u32-chr.c: Likewise.
32767         * tests/unistr/test-u8-strchr.c: Likewise.
32768         * tests/unistr/test-u16-strchr.c: Likewise.
32769         * tests/unistr/test-u32-strchr.c: Likewise.
32770         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32771         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32772         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32773         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32774
32775 2010-07-28  Bruno Haible  <bruno@clisp.org>
32776
32777         Use spaces for indentation, not tabs.
32778         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32779
32780 2010-07-27  Bruno Haible  <bruno@clisp.org>
32781
32782         mbspcasecmp: Fix function specification.
32783         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32784         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32785         Reported by Eric Blake <eblake@redhat.com>.
32786
32787 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32788
32789         timespec: use cast and not conditional, as truncation isn't possible
32790         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32791         instead of a conditional.  Comment about the situation in more detail.
32792         This undoes most of the 2009-10-29 patch.
32793
32794 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32795
32796         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32797         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32798         * lib/unistr/u8-strchr.c: Likewise.
32799         * modules/unistr/u8-chr: Depend on memchr.
32800
32801         unistr/u*-strchr: add tests
32802         * modules/unistr/u8-strchr-tests: New file.
32803         * modules/unistr/u16-strchr-tests: New file.
32804         * modules/unistr/u32-strchr-tests: New file.
32805         * tests/unistr/test-strchr.h: New file.
32806         * tests/unistr/test-u8-strchr.c: New file.
32807         * tests/unistr/test-u16-strchr.c: New file.
32808         * tests/unistr/test-u32-strchr.c: New file.
32809
32810         unistr/u*-chr: test multibyte sequences more
32811         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32812         test vector.
32813         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32814         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32815         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32816
32817         unistr/u*-chr: test multibyte sequences
32818         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32819
32820         unistr/u*-chr: prepare for multibyte tests
32821         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32822         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32823         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32824         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32825         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32826         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32827
32828 2010-07-18  Bruno Haible  <bruno@clisp.org>
32829
32830         unistr/u8-strchr: Optimize non-ASCII argument case.
32831         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32832         because the first byte often matches anyway.
32833         Reported by Pádraig Brady <P@draigbrady.com>.
32834
32835 2010-07-15  Karl Berry  <karl@gnu.org>
32836
32837         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32838
32839 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32840
32841         getcwd: on Solaris, work better if ancestors are inaccessible
32842         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32843         buffer and size, try again with a large buffer.  This works better
32844         on Solaris, since its getcwd succeeds even if the path to the root
32845         is inaccessible, and this is helpful in common cases such as .zfs
32846         hidden directories.  Problem reported by J Chapman Flack in
32847         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32848         Use system getcwd if it's declared, not merely if it's partly
32849         working; use the partly-working test only to avoid needless effort
32850         if the system getcwd fails.
32851         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32852         comment that was already obsolete and is now even more obsolete.
32853         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32854         now might call strdup.
32855
32856 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32857
32858         pthread: Add enough so that coreutils/src/sort.c compiles.
32859         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32860         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32861         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32862         Include <sys/types.h>, in case it defines pthread_t.
32863         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32864         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32865         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32866         (pthread_rwlockattr_t, pthread_spinlock_t):
32867         New typedefs, if HAVE_PTHREAD_T is not defined.
32868         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32869         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32870         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32871         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32872         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32873         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32874         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32875         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32876         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32877         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32878         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32879         New macros.
32880         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32881         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32882         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32883         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32884         (pthread_spin_unlock): New dummy functions.
32885         (pthread_create): Return EAGAIN; don't set errno.
32886         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32887         require AC_C_INLINE.
32888         * modules/pthread (Depends-on): Add sched, time.
32889         (pthread.h): Use AM_V_GEN.
32890
32891 2010-07-13  Bruno Haible  <bruno@clisp.org>
32892
32893         striconveh: Don't malloc memory if the result buffer is sufficient.
32894         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32895         buffer if its size is sufficient.
32896         Reported by Ludovic Courtès <ludo@gnu.org>.
32897
32898 2010-07-13  Bruno Haible  <bruno@clisp.org>
32899
32900         strtod: Add safety check.
32901         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32902
32903 2010-07-12  Bruno Haible  <bruno@clisp.org>
32904
32905         Unify tests that set gl_cv_func_ldexpl_no_libm.
32906         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32907         gl_FUNC_LDEXPL.
32908         (gl_FUNC_LDEXPL): Invoke it.
32909         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32910
32911 2010-07-12  Bruno Haible  <bruno@clisp.org>
32912
32913         Unify tests that set gl_cv_func_ldexp_no_libm.
32914         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32915         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32916         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32917         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32918         * modules/strtod (Files): Add m4/ldexp.m4.
32919
32920 2010-07-12  Bruno Haible  <bruno@clisp.org>
32921
32922         Unify tests that set gl_cv_func_frexpl_no_libm.
32923         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32924         gl_FUNC_FREXPL_NO_LIBM.
32925         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32927
32928 2010-07-12  Bruno Haible  <bruno@clisp.org>
32929
32930         Unify tests that set gl_cv_func_frexp_no_libm.
32931         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32932         gl_FUNC_FREXP_NO_LIBM.
32933         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32934         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32935
32936 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32937
32938         memcoll: clarify sizes versus lengths, document better, and tweak perf
32939         * lib/memcoll.c (strcoll_loop, memcoll0):
32940         Improve quality of descriptive comments.  Name variables
32941         consistently as to whether they are lengths (which do not include
32942         terminating null) versus sizes (which do).
32943         * lib/xmemcoll.c (xmemcoll0): Likewise.
32944         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32945         returned when s1size == 0; this is easier to compile and saves
32946         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32947
32948 2010-07-12  Bruno Haible  <bruno@clisp.org>
32949
32950         Tests for module '_Exit'.
32951         * modules/_Exit-tests: New file.
32952         * tests/test-_Exit.sh: New file.
32953         * tests/test-_Exit.c: New file.
32954
32955         New module '_Exit'.
32956         * lib/stdlib.in.h (__attribute__): New macro.
32957         (_Exit): New declaration.
32958         * lib/_Exit.c: New file.
32959         * m4/_Exit.m4: New file.
32960         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32961         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32962         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32963         * modules/_Exit: New file.
32964         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32965         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32966
32967 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32968
32969         strtod: make it more-accurate typically, and don't require libm
32970         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32971         Include limits.h.  Don't include string.h.
32972         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32973         (locale_isspace): New function, so that no casts are needed to
32974         check whether *s is a space.
32975         (ldexp): Provide an unused dummy if not available.
32976         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32977         (strtod): Use them.  This implementation prefers to use the
32978         underlying strtod if available, falling back on our own code
32979         only to fix known bugs.  This is more likely to produce an
32980         accurate result.  Also, it avoids the use of libm functions.
32981         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32982         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32983         was absent, but it caused a test failure with coreutils.
32984         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32985         with libm.
32986         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32987         * modules/strtod-tests (Makefile.am): Likewise.
32988
32989 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32990             Bruno Haible  <bruno@clisp.org>
32991
32992         unistr/u8-strchr: Optimize ASCII argument case.
32993         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32994
32995 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32996
32997         (x)memcoll: minor tweaks
32998         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32999         is after the type that it qualifies.
33000         (memcoll0): Likewise.
33001         * lib/memcoll.h (memcoll0): Likewise.
33002         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
33003         * lib/xmemcoll.h (xmemcoll0): Likewise.
33004         * lib/memcoll.c (memcoll0): Correct the comment.  This function
33005         differs from memcoll in that the NUL byte is part of the argument.
33006         Omit the abort-checks, as performance is a real issue here.  Plus,
33007         the checks were wrong anyway (an off-by-one error).  Omit local
33008         variable 'diff', as it's a bit clearer that way.
33009         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
33010         no longer needed.
33011
33012 2010-07-08  Chen Guo <chenguo4@yahoo.com>
33013
33014         (x)memcoll: speedup when input is known to be NUL delimited
33015         * lib/memcoll.c: Include stdlib.
33016         (memcoll0): New function.
33017         (strcoll_loop): New function, refactored for use in both memcoll
33018         and memcoll0.
33019         * lib/memcoll.h (memcoll0): Add prototype.
33020         * lib/xmemcoll.c (xmemcoll0): New function.
33021         (collate_error): New function, refactored for use in both xmemcoll
33022         and xmemcoll0.
33023         * lib/xmemcoll.h (xmemcoll0): Add prototype.
33024         * m4/memcoll.m4: add inline invocation.
33025
33026 2010-07-06  Pádraig Brady  <P@draigBrady.com>
33027
33028         * build-aux/bootstrap: Remove any local translations
33029         from the translation project synchronization directory,
33030         so that local only translations are not distributed.
33031
33032 2010-07-04  Bruno Haible  <bruno@clisp.org>
33033
33034         fsusage: Clarify which code applies to which platforms.
33035         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
33036         platform.
33037         * lib/fsusage.c (get_fs_usage): Likewise.
33038
33039 2010-07-04  Bruno Haible  <bruno@clisp.org>
33040
33041         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
33042         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
33043         Reported by Martin Lambers <marlam@marlam.de>.
33044
33045 2010-07-04  Jim Meyering  <meyering@redhat.com>
33046
33047         hash: once again explicitly disallow insertion of NULL
33048         * lib/hash.c (hash_insert0): Reinstate just-removed test:
33049         inserting a NULL pointer cannot work with these functions.
33050         Add a comment with details.
33051         This reverts part of the 2010-07-01 commit, 5bef1a35
33052         "hash: extend module to deal with non-pointer keys".
33053
33054 2010-07-01  Bruno Haible  <bruno@clisp.org>
33055
33056         stdbool: Update doc.
33057         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
33058         Info from Christian Weisgerber <naddy@mips.inka.de>.
33059
33060 2010-07-01  Jim Meyering  <meyering@redhat.com>
33061
33062         hash: extend module to deal with non-pointer keys
33063         * lib/hash.c (hash_insert0): New interface, much like hash_insert
33064         but that allows insertion of non-pointer entries.
33065         Do not disallow an ENTRY value of NULL.
33066         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
33067         * lib/hash.h (hash_insert0): Declare.
33068
33069 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
33070
33071         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
33072         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
33073         not present (i.e. with autoconf 2.59 and when using gettextize, not
33074         gnulib), require AC_GNU_SOURCE instead.
33075
33076 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
33077
33078         idpriv-drop: Fix tests.
33079         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
33080         not to the test-idpriv-droptemp program.
33081
33082 2010-06-29  Bruno Haible  <bruno@clisp.org>
33083
33084         string: Fix syntax error with g++ 2.96.
33085         * lib/string.in.h (__pure__): Remove definition.
33086         (_GL_ATTRIBUTE_PURE): New macro.
33087         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
33088         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
33089         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33090
33091 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
33092
33093         unitypes: Fix bug introduced on 2010-05-18.
33094         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
33095
33096 2010-06-22  Eric Blake  <eblake@redhat.com>
33097
33098         memmem: slight optimization
33099         * lib/str-two-way.h (critical_factorization): Update comments.
33100         Reduce work during factorization phase.
33101         Reported by Carlos Bueno <carlos@bueno.org>.
33102
33103 2010-06-21  Bruno Haible  <bruno@clisp.org>
33104
33105         Fix HAVE_CALLOC_POSIX misnomer.
33106         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
33107         !HAVE_CALLOC_POSIX.
33108         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
33109         HAVE_CALLOC_POSIX.
33110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
33111         instead of HAVE_CALLOC_POSIX.
33112         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
33113         HAVE_CALLOC_POSIX.
33114
33115         Use modern idiom for calloc() replacement.
33116         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
33117         AC_FUNC_CALLOC.
33118         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
33119         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
33120         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33121         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
33122         (gl_REPLACE_CALLOC): New macro.
33123
33124 2010-06-21  Bruno Haible  <bruno@clisp.org>
33125
33126         Fix HAVE_REALLOC_POSIX misnomer.
33127         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
33128         !HAVE_REALLOC_POSIX.
33129         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
33130         HAVE_REALLOC_POSIX.
33131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
33132         instead of HAVE_REALLOC_POSIX.
33133         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
33134         HAVE_REALLOC_POSIX.
33135
33136         Use modern idiom for realloc() replacement.
33137         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
33138         AC_FUNC_REALLOC.
33139         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
33140         Autoconf's AC_FUNC_REALLOC.
33141         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33142         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
33143         (gl_REPLACE_REALLOC): New macro.
33144         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33145
33146 2010-06-21  Bruno Haible  <bruno@clisp.org>
33147
33148         Fix HAVE_MALLOC_POSIX misnomer.
33149         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33150         !HAVE_MALLOC_POSIX.
33151         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33152         HAVE_MALLOC_POSIX.
33153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33154         instead of HAVE_MALLOC_POSIX.
33155         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33156         HAVE_MALLOC_POSIX.
33157
33158         Use modern idiom for malloc() replacement.
33159         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33160         AC_FUNC_MALLOC.
33161         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33162         Autoconf's AC_FUNC_MALLOC.
33163         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33164         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33165         (gl_REPLACE_MALLOC): New macro.
33166         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33167
33168 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33169
33170         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33171         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33172         This macro takes 3 arguments, not 4.
33173
33174 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33175
33176         ipv6: fix detection under mingw
33177         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33178         in6_addr.
33179
33180 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33181
33182         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33183         that strtod() works when cross-compiling to a glibc version known
33184         to work.
33185
33186 2010-06-15  Bruno Haible  <bruno@clisp.org>
33187
33188         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33189
33190 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33191
33192         select: Correct timeout.
33193         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33194
33195 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33196
33197         git-version-gen: init shell var to avoid env var influence
33198         * build-aux/git-version-gen (v): Init shell var to empty.
33199
33200 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33201
33202         priv-set: Don't assume that priv.h exists merely because getppriv does.
33203         See Jan Andersen's bug report about AIX 5L in
33204         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33205         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33206         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33207         * lib/priv-set.h: Likewise.
33208         * tests/test-priv-set.c: Likewise.
33209
33210 2010-06-13  Bruno Haible  <bruno@clisp.org>
33211
33212         relocatable: Make it easier to test whether to install wrappers.
33213         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33214         RELOCATABLE_VIA_WRAPPER.
33215
33216 2010-06-13  Bruno Haible  <bruno@clisp.org>
33217
33218         gnulib-tool: Display specified modules and dependencies differently.
33219         * gnulib-tool (func_show_module_list): New function.
33220         (func_import, func_create_testdir): Invoke it.
33221         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33222
33223 2010-06-13  Bruno Haible  <bruno@clisp.org>
33224
33225         gnulib-tool: Align code of func_import and func_create_testdir.
33226         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33227         specified_modules.
33228
33229 2010-06-12  Jim Meyering  <meyering@redhat.com>
33230
33231         test-inttostr: avoid spurious failure on Solaris 9
33232         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33233         to accept "%ju".  Reported by Bruno Haible.
33234
33235 2010-06-11  Jim Meyering  <meyering@redhat.com>
33236
33237         test-sys_socket: mark variables as used more readably
33238         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33239         as "used" explicitly via (void) statement casts.  This is more
33240         readable than using them in an artificial return expression.
33241         Suggestion from Bruno Haible.
33242
33243 2010-06-11  Bruno Haible  <bruno@clisp.org>
33244
33245         Avoid some more warnings from "gcc -Wwrite-strings".
33246         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33247         to 'const char *'.
33248         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33249         * tests/test-c-strcasestr.c (main): Likewise.
33250         * tests/test-mbscasestr1.c (main): Likewise.
33251         * tests/test-mbscasestr2.c (main): Likewise.
33252         * tests/test-memmem.c (main): Likewise.
33253         * tests/test-strstr.c (main): Likewise.
33254         * tests/test-strcasestr.c (main): Likewise.
33255
33256 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33257
33258         init.sh: change framework_failure_ to fail with status 99, not 1
33259         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33260         automake's parallel-tests rule that this is an unexpected failure,
33261         even if the test is listed in XFAIL_TESTS.
33262
33263 2010-06-11  Jim Meyering  <meyering@redhat.com>
33264
33265         test-inttostr: avoid warnings about 4-6KB literal strings
33266         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33267         Include "macros.h", for its definition of ASSERT.
33268         (CK): s/assert/ASSERT/
33269         * modules/inttostr-tests (Files): Add macros.h.
33270
33271         init.sh: don't use $ME_ or skip_ before they are defined
33272         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33273         their first uses.  Also hoist their companions: warn_, fail_,
33274         framework_failure_, $stderr_fileno.  Prompted by a patch from
33275         Stefano Lattarini.
33276
33277         test-sys_socket: avoid set-but-not-used warnings from gcc
33278         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33279         avoid warning about set-but-not-used variables.
33280
33281         test-xvasprintf: avoid 'const' discard warnings
33282         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33283         "const" when assigning from literal strings.
33284         (test_xasprintf): Add "void" in function argument list to placate
33285         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33286
33287         tests: avoid compilation warnings in argmatch and exclude tests...
33288         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33289         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33290         Since it always exits, declare with the "noreturn" attribute.
33291         * tests/test-argmatch.c: Likewise.
33292
33293         tests: avoid 'const' discard warnings in mbsstr tests
33294         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33295         * tests/test-mbsstr2.c (main): Likewise.
33296
33297         test-verify: avoid warning from gcc's -Wmissing-declarations
33298         * tests/test-verify.c (function): Declare to be static.
33299
33300         test-inttostr.c: include <string.h> for use of strcmp
33301         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33302
33303         test-linkat: avoid failed assertion on "other" architectures
33304         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33305         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33306         sparc: https://bugs.launchpad.net/bugs/591968
33307
33308 2010-06-11  Jim Meyering  <meyering@redhat.com>
33309
33310         printf.m4: avoid autoconf's "Expanded Before Required" warning
33311         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33312         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33313         autoconf warning.
33314
33315 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33316
33317         Replacement header templates are now named with ".in", not "_".
33318         * doc/gnulib-intro.texi: Correct.
33319
33320 2010-06-10  Jim Meyering  <meyering@redhat.com>
33321
33322         inttostr-tests: depend on snprintf, not snprintf-posix
33323         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33324         snprintf-posix, to avoid this aclocal failure:
33325           missing file gnulib-tests/vasnprintf.c
33326           configure.ac:45: error: expected source file, required through \
33327           AC_LIBSOURCES, not found
33328
33329 2010-06-10  Jim Meyering  <meyering@redhat.com>
33330
33331         inttostr: add a new function, inttostr, and tests
33332         The namesake function was not available.  The existence of the
33333         template file, inttostr.c makes its addition nontrivial.
33334         * lib/anytostr.c: Rename from inttostr.c.
33335         (anytostr): Rename from inttostr.
33336         * lib/inttostr.c: New file.
33337         * modules/inttostr (Files): Add anytostr.c.
33338         (Makefile.am): Set lib_SOURCES instead of ...
33339         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33340         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33341         * lib/offtostr.c: Likewise.
33342         * lib/uinttostr.c: Likewise.
33343         * lib/umaxtostr.c: Likewise.
33344         * modules/inttostr-tests: New file.
33345         * tests/test-inttostr.c: New file.  Test these functions.
33346
33347 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33348             Bruno Haible  <bruno@clisp.org>
33349
33350         Add "Extending Gnulib" chapter to manual.
33351         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33352         chapter.
33353         (Extending Gnulib): New chapter.
33354         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33355         chapter.
33356
33357 2010-06-09  Bruno Haible  <bruno@clisp.org>
33358
33359         Avoid relocwrapper link errors due to gnulib replacement functions.
33360         * lib/areadlink.c: Use the system's malloc, realloc functions.
33361         (areadlink): Set errno to ENOMEM explicitly.
33362         * modules/areadlink (Depends-on): Remove malloc-posix.
33363         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33364
33365 2010-06-09  Bruno Haible  <bruno@clisp.org>
33366
33367         Avoid relocwrapper link errors due to gnulib replacement functions.
33368         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33369         * lib/malloca.c: Likewise.
33370         * lib/relocatable.c: Likewise.
33371         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33372         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33373         * lib/setenv.c: Use the system's malloc, realloc functions.
33374         * lib/strerror.c: Use the system's sprintf function.
33375         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33376
33377 2010-06-04  Bruno Haible  <bruno@clisp.org>
33378
33379         Prefer documented low-level autoconf macro names.
33380         * m4/lib-link.m4: Use m4_translit instead of translit.
33381         * m4/environ.m4: Likewise.
33382         * m4/mathfunc.m4: Likewise.
33383         * m4/onceonly.m4: Likewise.
33384         * m4/stdint.m4: Likewise.
33385         Suggested by Eric Blake.
33386
33387 2010-06-04  Martin Lambers  <marlam@marlam.de>
33388             Bruno Haible  <bruno@clisp.org>
33389
33390         havelib: Allow library names with '+' characters.
33391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33392         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33393
33394 2010-06-09  Bruno Haible  <bruno@clisp.org>
33395
33396         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33397         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33398         realloc failed.
33399
33400 2010-06-08  Peter Simons  <simons@cryp.to>
33401
33402         maint.mk: make the news-check rule more configurable
33403         * top/maint.mk (news-check-lines-spec): New variable.
33404         (news-check): Use "sed -n 1,10p" in place of "head".
33405
33406 2010-06-07  Jim Meyering  <meyering@redhat.com>
33407
33408         do-release-commit-and-tag: fix typo in --help
33409         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33410
33411         regex: avoid new dead-code warning with gcc-4.6.0
33412         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33413         if-block containing a while-loop.  It's been unused for at least
33414         5 years.
33415
33416 2010-06-05  Bruno Haible  <bruno@clisp.org>
33417
33418         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33419         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33420
33421 2010-06-04  Bruno Haible  <bruno@clisp.org>
33422
33423         Update to GNU gettext 0.18.1.
33424         * modules/gettext (configure.ac): Require gettext infrastructure from
33425         version 0.18.1.
33426
33427 2010-06-03  Bruno Haible  <bruno@clisp.org>
33428
33429         Don't use AC_LIBOBJ with file names in subdirectories.
33430         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33431         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33432         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33433         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33434         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33435         gl_LIBUNISTRING_LIBSOURCE.
33436         (Makefile.am): Augment lib_SOURCES here, conditionally.
33437         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33438
33439 2010-06-03  Bruno Haible  <bruno@clisp.org>
33440
33441         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33442         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33443         expansion does not end with a newline.
33444         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33445         unnecessary newline.
33446
33447 2010-06-03  Bruno Haible  <bruno@clisp.org>
33448
33449         Reduce dependencies.
33450         * tests/test-quotearg.h: New file, extracted from
33451         tests/test-quotearg.c.
33452         * tests/test-quotearg-simple.c: New file, extracted from
33453         tests/test-quotearg.c.
33454         * tests/test-quotearg.c: Don't include <ctype.h>.
33455         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33456         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33457         use_quote_double_quotes, use_quotearg_colon): Moved to
33458         tests/test-quotearg.h.
33459         (results_g, flag_results, custom_quotes, custom_results): Moved
33460         to tests/test-quotearg-simple.c.
33461         (main): Moved the part that does not depend on gettext to
33462         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33463         performed.
33464         * modules/quotearg-simple: New file.
33465         * modules/quotearg-simple-tests: New file.
33466         * modules/quotearg (Depends-on): Add quotearg-simple.
33467         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33468         (Files): Add tests/test-quotearg.h.
33469         Reported by Paolo Bonzini.
33470
33471 2010-06-03  Bruno Haible  <bruno@clisp.org>
33472
33473         Reduce dependencies.
33474         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33475
33476 2010-06-03  Bruno Haible  <bruno@clisp.org>
33477
33478         time: Undefine more broken macros.
33479         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33480         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33481         Reported by Eric Blake.
33482
33483 2010-06-03  Bruno Haible  <bruno@clisp.org>
33484
33485         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33486         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33487         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33488         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33489         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33490         Reported by Ludovic Courtès <ludo@gnu.org>.
33491
33492 2010-06-02  Eric Blake  <eblake@redhat.com>
33493
33494         time: work with mingw + pthreads-win32 library
33495         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33496         if timespec is defined only in pthread.h.
33497         * modules/time (Makefile.am): Substitute it.
33498         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33499         <pthread.h>, when needed.
33500         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33501         from the library.
33502
33503 2010-05-31  Bruno Haible  <bruno@clisp.org>
33504
33505         Avoid expanding two macros in the wrong order.
33506         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33507         gl_LIBUNISTRING if it is defined.
33508         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33509         autoconf >= 2.64.
33510         Reported by Ludovic Courtès <ludo@gnu.org>.
33511
33512 2010-05-27  Jim Meyering  <meyering@redhat.com>
33513
33514         maint.mk: also prohibit "#undef" of always-defined symbols
33515         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33516         Allow more than one space before the symbol name.
33517         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33518         the regexp uses alternation.
33519
33520 2010-05-26  Eric Blake  <eblake@redhat.com>
33521
33522         maint.mk: avoid echo -e
33523         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33524         Convert all uses of echo -* to printf.
33525         Reported by Matthias Bolte.
33526
33527 2010-05-25  Bruno Haible  <bruno@clisp.org>
33528
33529         Update to GNU gettext 0.18, part 2.
33530         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33531         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33532
33533 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33534
33535         Add missing include in test-pwrite.c.
33536         * tests/test-pwrite.c: Include string.h, for strcmp.
33537
33538 2010-05-24  Bruno Haible  <bruno@clisp.org>
33539
33540         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33541
33542 2010-05-24  Bruno Haible  <bruno@clisp.org>
33543
33544         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33545         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33546         iconveh_error argument.
33547         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33548         U_STRCONV_TO_LOCALE.
33549         * lib/unistr/u16-strcoll.c: Likewise.
33550         * lib/unistr/u32-strcoll.c: Likewise.
33551         * modules/unistr/u8-strcoll (Depends-on): Add
33552         uniconv/u8-strconv-to-enc, localcharset. Remove
33553         uniconv/u8-strconv-to-locale.
33554         (configure.ac): Bump version number.
33555         * modules/unistr/u16-strcoll (Depends-on): Add
33556         uniconv/u16-strconv-to-enc, localcharset. Remove
33557         uniconv/u16-strconv-to-locale.
33558         (configure.ac): Bump version number.
33559         * modules/unistr/u32-strcoll (Depends-on): Add
33560         uniconv/u32-strconv-to-enc, localcharset. Remove
33561         uniconv/u32-strconv-to-locale.
33562         (configure.ac): Bump version number.
33563
33564 2010-05-24  Bruno Haible  <bruno@clisp.org>
33565
33566         Avoid a test failure on NetBSD 5.0.
33567         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33568         an iconv() bug.
33569
33570 2010-05-24  Bruno Haible  <bruno@clisp.org>
33571
33572         Adjust #include directive style.
33573         * modules/regex (Includes): Recommend to write <regex.h>.
33574
33575 2010-05-24  Bruno Haible  <bruno@clisp.org>
33576
33577         regex: Don't require alloca.
33578         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33579         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33580         only inside if (0).
33581
33582 2010-05-23  Jim Meyering  <meyering@redhat.com>
33583
33584         test-renameat.c: include <sys/stat.h>
33585         * tests/test-renameat.c: Include <sys/stat.h>; required for
33586         definition of S_IS* macros.
33587
33588 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33589
33590         Update maintainer documentation for 'relocatable-prog' module.
33591         * doc/relocatable-maint.texi: Update.
33592         Comments by Bruno Haible.
33593
33594 2010-05-23  Bruno Haible  <bruno@clisp.org>
33595
33596         git-merge-changelog: Enable --split-merged-entry by default.
33597         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33598         (usage): Don't mention this option any more.
33599         Reported by Ralf Wildenhues.
33600
33601 2010-05-23  Jim Meyering  <meyering@redhat.com>
33602
33603         test-pwrite: do not leave behind a test file named "out"
33604         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33605         The trivial-looking use of init.sh is really necessary.
33606         It ensures that the temporary file, "out", is created in
33607         a temporary directory, and removed upon termination.
33608         * tests/test-pwrite.sh: Re-add file.
33609         * modules/pwrite-tests: Reference it.
33610
33611 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33612
33613         Fix output redirection buglet in init.sh.
33614         * tests/init.sh: Fix redirection of stderr.
33615
33616 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33617
33618         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33619
33620 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33621
33622         * modules/valgrind-tests: New file.
33623         * m4/valgrind-tests.m4: New file.
33624         * doc/valgrind-tests.texi: New file.
33625         * doc/gnulib.texi (Running self-tests under valgrind): New
33626         section.
33627
33628 2010-05-19  Bruno Haible  <bruno@clisp.org>
33629
33630         Clean up dead code in recent commit.
33631         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33632         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33633         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33634         Suggested by Paolo Bonzini.
33635
33636 2010-05-19  Bruno Haible  <bruno@clisp.org>
33637
33638         Avoid valgrind error reports from libunistring.
33639         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33640         * modules/libunistring (Files): Add it.
33641         * modules/libunistring-optional (Files): Likewise.
33642
33643 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33644             Bruno Haible  <bruno@clisp.org>
33645
33646         New module 'libunistring-optional'.
33647         * modules/libunistring-optional: New file.
33648         * m4/libunistring-base.m4: New file.
33649         * m4/libunistring-optional.m4: New file.
33650         * lib/unicase.in.h: Renamed from lib/unicase.h.
33651         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33652         * lib/unictype.in.h: Renamed from lib/unictype.h.
33653         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33654         * lib/uniname.in.h: Renamed from lib/uniname.h.
33655         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33656         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33657         * lib/unistr.in.h: Renamed from lib/unistr.h.
33658         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33659         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33660         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33661         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33662         gl_LIBUNISTRING. If the library was found, determine the installed
33663         version and set LIBUNISTRING_VERSION.
33664         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33665         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33666         handle a configuration option --with-included-libunistring.
33667         * modules/libunistring (Files): Add m4/absolute-header.m4.
33668         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33669         Add m4/libunistring-base.m4.
33670         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33671         (Makefile.am): Build unicase.h from unicase.in.h.
33672         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33673         Add m4/libunistring-base.m4.
33674         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33675         (Makefile.am): Build uniconv.h from uniconv.in.h.
33676         * modules/unictype/base (Files): Use unictype.in.h instead of
33677         unictype.h. Add m4/libunistring-base.m4.
33678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33679         (Makefile.am): Build unictype.h from unictype.in.h.
33680         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33681         Add m4/libunistring-base.m4.
33682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33683         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33684         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33685         Add m4/libunistring-base.m4.
33686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33687         (Makefile.am): Build uniname.h from uniname.in.h.
33688         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33689         Add m4/libunistring-base.m4.
33690         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33691         (Makefile.am): Build uninorm.h from uninorm.in.h.
33692         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33693         unistdio.h. Add m4/libunistring-base.m4.
33694         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33695         (Makefile.am): Build unistdio.h from unistdio.in.h.
33696         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33697         Add m4/libunistring-base.m4.
33698         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33699         (Makefile.am): Build unistr.h from unistr.in.h.
33700         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33701         Add m4/libunistring-base.m4.
33702         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33703         (Makefile.am): Build unitypes.h from unitypes.in.h.
33704         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33705         Add m4/libunistring-base.m4.
33706         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33707         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33708         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33709         uniwidth.h. Add m4/libunistring-base.m4.
33710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33711         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33712         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33713         instead of augmenting lib_SOURCES.
33714         * modules/unicase/empty-suffix-context: Likewise.
33715         * modules/unicase/locale-language: Likewise.
33716         * modules/unicase/tolower: Likewise.
33717         * modules/unicase/totitle: Likewise.
33718         * modules/unicase/toupper: Likewise.
33719         * modules/unicase/u8-casecmp: Likewise.
33720         * modules/unicase/u8-casecoll: Likewise.
33721         * modules/unicase/u8-casefold: Likewise.
33722         * modules/unicase/u8-casexfrm: Likewise.
33723         * modules/unicase/u8-ct-casefold: Likewise.
33724         * modules/unicase/u8-ct-tolower: Likewise.
33725         * modules/unicase/u8-ct-totitle: Likewise.
33726         * modules/unicase/u8-ct-toupper: Likewise.
33727         * modules/unicase/u8-is-cased: Likewise.
33728         * modules/unicase/u8-is-casefolded: Likewise.
33729         * modules/unicase/u8-is-lowercase: Likewise.
33730         * modules/unicase/u8-is-titlecase: Likewise.
33731         * modules/unicase/u8-is-uppercase: Likewise.
33732         * modules/unicase/u8-prefix-context: Likewise.
33733         * modules/unicase/u8-suffix-context: Likewise.
33734         * modules/unicase/u8-tolower: Likewise.
33735         * modules/unicase/u8-totitle: Likewise.
33736         * modules/unicase/u8-toupper: Likewise.
33737         * modules/unicase/u16-casecmp: Likewise.
33738         * modules/unicase/u16-casecoll: Likewise.
33739         * modules/unicase/u16-casefold: Likewise.
33740         * modules/unicase/u16-casexfrm: Likewise.
33741         * modules/unicase/u16-ct-casefold: Likewise.
33742         * modules/unicase/u16-ct-tolower: Likewise.
33743         * modules/unicase/u16-ct-totitle: Likewise.
33744         * modules/unicase/u16-ct-toupper: Likewise.
33745         * modules/unicase/u16-is-cased: Likewise.
33746         * modules/unicase/u16-is-casefolded: Likewise.
33747         * modules/unicase/u16-is-lowercase: Likewise.
33748         * modules/unicase/u16-is-titlecase: Likewise.
33749         * modules/unicase/u16-is-uppercase: Likewise.
33750         * modules/unicase/u16-prefix-context: Likewise.
33751         * modules/unicase/u16-suffix-context: Likewise.
33752         * modules/unicase/u16-tolower: Likewise.
33753         * modules/unicase/u16-totitle: Likewise.
33754         * modules/unicase/u16-toupper: Likewise.
33755         * modules/unicase/u32-casecmp: Likewise.
33756         * modules/unicase/u32-casecoll: Likewise.
33757         * modules/unicase/u32-casefold: Likewise.
33758         * modules/unicase/u32-casexfrm: Likewise.
33759         * modules/unicase/u32-ct-casefold: Likewise.
33760         * modules/unicase/u32-ct-tolower: Likewise.
33761         * modules/unicase/u32-ct-totitle: Likewise.
33762         * modules/unicase/u32-ct-toupper: Likewise.
33763         * modules/unicase/u32-is-cased: Likewise.
33764         * modules/unicase/u32-is-casefolded: Likewise.
33765         * modules/unicase/u32-is-lowercase: Likewise.
33766         * modules/unicase/u32-is-titlecase: Likewise.
33767         * modules/unicase/u32-is-uppercase: Likewise.
33768         * modules/unicase/u32-prefix-context: Likewise.
33769         * modules/unicase/u32-suffix-context: Likewise.
33770         * modules/unicase/u32-tolower: Likewise.
33771         * modules/unicase/u32-totitle: Likewise.
33772         * modules/unicase/u32-toupper: Likewise.
33773         * modules/unicase/ulc-casecmp: Likewise.
33774         * modules/unicase/ulc-casecoll: Likewise.
33775         * modules/unicase/ulc-casexfrm: Likewise.
33776         * modules/uniconv/u8-conv-from-enc: Likewise.
33777         * modules/uniconv/u8-conv-to-enc: Likewise.
33778         * modules/uniconv/u8-strconv-from-enc: Likewise.
33779         * modules/uniconv/u8-strconv-from-locale: Likewise.
33780         * modules/uniconv/u8-strconv-to-enc: Likewise.
33781         * modules/uniconv/u8-strconv-to-locale: Likewise.
33782         * modules/uniconv/u16-conv-from-enc: Likewise.
33783         * modules/uniconv/u16-conv-to-enc: Likewise.
33784         * modules/uniconv/u16-strconv-from-enc: Likewise.
33785         * modules/uniconv/u16-strconv-from-locale: Likewise.
33786         * modules/uniconv/u16-strconv-to-enc: Likewise.
33787         * modules/uniconv/u16-strconv-to-locale: Likewise.
33788         * modules/uniconv/u32-conv-from-enc: Likewise.
33789         * modules/uniconv/u32-conv-to-enc: Likewise.
33790         * modules/uniconv/u32-strconv-from-enc: Likewise.
33791         * modules/uniconv/u32-strconv-from-locale: Likewise.
33792         * modules/uniconv/u32-strconv-to-enc: Likewise.
33793         * modules/uniconv/u32-strconv-to-locale: Likewise.
33794         * modules/unictype/bidicategory-byname: Likewise.
33795         * modules/unictype/bidicategory-name: Likewise.
33796         * modules/unictype/bidicategory-of: Likewise.
33797         * modules/unictype/bidicategory-test: Likewise.
33798         * modules/unictype/block-list: Likewise.
33799         * modules/unictype/block-test: Likewise.
33800         * modules/unictype/category-C: Likewise.
33801         * modules/unictype/category-Cc: Likewise.
33802         * modules/unictype/category-Cf: Likewise.
33803         * modules/unictype/category-Cn: Likewise.
33804         * modules/unictype/category-Co: Likewise.
33805         * modules/unictype/category-Cs: Likewise.
33806         * modules/unictype/category-L: Likewise.
33807         * modules/unictype/category-Ll: Likewise.
33808         * modules/unictype/category-Lm: Likewise.
33809         * modules/unictype/category-Lo: Likewise.
33810         * modules/unictype/category-Lt: Likewise.
33811         * modules/unictype/category-Lu: Likewise.
33812         * modules/unictype/category-M: Likewise.
33813         * modules/unictype/category-Mc: Likewise.
33814         * modules/unictype/category-Me: Likewise.
33815         * modules/unictype/category-Mn: Likewise.
33816         * modules/unictype/category-N: Likewise.
33817         * modules/unictype/category-Nd: Likewise.
33818         * modules/unictype/category-Nl: Likewise.
33819         * modules/unictype/category-No: Likewise.
33820         * modules/unictype/category-P: Likewise.
33821         * modules/unictype/category-Pc: Likewise.
33822         * modules/unictype/category-Pd: Likewise.
33823         * modules/unictype/category-Pe: Likewise.
33824         * modules/unictype/category-Pf: Likewise.
33825         * modules/unictype/category-Pi: Likewise.
33826         * modules/unictype/category-Po: Likewise.
33827         * modules/unictype/category-Ps: Likewise.
33828         * modules/unictype/category-S: Likewise.
33829         * modules/unictype/category-Sc: Likewise.
33830         * modules/unictype/category-Sk: Likewise.
33831         * modules/unictype/category-Sm: Likewise.
33832         * modules/unictype/category-So: Likewise.
33833         * modules/unictype/category-Z: Likewise.
33834         * modules/unictype/category-Zl: Likewise.
33835         * modules/unictype/category-Zp: Likewise.
33836         * modules/unictype/category-Zs: Likewise.
33837         * modules/unictype/category-and: Likewise.
33838         * modules/unictype/category-and-not: Likewise.
33839         * modules/unictype/category-byname: Likewise.
33840         * modules/unictype/category-name: Likewise.
33841         * modules/unictype/category-none: Likewise.
33842         * modules/unictype/category-of: Likewise.
33843         * modules/unictype/category-or: Likewise.
33844         * modules/unictype/category-test: Likewise.
33845         * modules/unictype/combining-class: Likewise.
33846         * modules/unictype/ctype-alnum: Likewise.
33847         * modules/unictype/ctype-alpha: Likewise.
33848         * modules/unictype/ctype-blank: Likewise.
33849         * modules/unictype/ctype-cntrl: Likewise.
33850         * modules/unictype/ctype-digit: Likewise.
33851         * modules/unictype/ctype-graph: Likewise.
33852         * modules/unictype/ctype-lower: Likewise.
33853         * modules/unictype/ctype-print: Likewise.
33854         * modules/unictype/ctype-punct: Likewise.
33855         * modules/unictype/ctype-space: Likewise.
33856         * modules/unictype/ctype-upper: Likewise.
33857         * modules/unictype/ctype-xdigit: Likewise.
33858         * modules/unictype/decimal-digit: Likewise.
33859         * modules/unictype/digit: Likewise.
33860         * modules/unictype/mirror: Likewise.
33861         * modules/unictype/numeric: Likewise.
33862         * modules/unictype/property-alphabetic: Likewise.
33863         * modules/unictype/property-ascii-hex-digit: Likewise.
33864         * modules/unictype/property-bidi-arabic-digit: Likewise.
33865         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33866         * modules/unictype/property-bidi-block-separator: Likewise.
33867         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33868         * modules/unictype/property-bidi-common-separator: Likewise.
33869         * modules/unictype/property-bidi-control: Likewise.
33870         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33871         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33872         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33873         * modules/unictype/property-bidi-european-digit: Likewise.
33874         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33875         * modules/unictype/property-bidi-left-to-right: Likewise.
33876         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33877         * modules/unictype/property-bidi-other-neutral: Likewise.
33878         * modules/unictype/property-bidi-pdf: Likewise.
33879         * modules/unictype/property-bidi-segment-separator: Likewise.
33880         * modules/unictype/property-bidi-whitespace: Likewise.
33881         * modules/unictype/property-byname: Likewise.
33882         * modules/unictype/property-combining: Likewise.
33883         * modules/unictype/property-composite: Likewise.
33884         * modules/unictype/property-currency-symbol: Likewise.
33885         * modules/unictype/property-dash: Likewise.
33886         * modules/unictype/property-decimal-digit: Likewise.
33887         * modules/unictype/property-default-ignorable-code-point: Likewise.
33888         * modules/unictype/property-deprecated: Likewise.
33889         * modules/unictype/property-diacritic: Likewise.
33890         * modules/unictype/property-extender: Likewise.
33891         * modules/unictype/property-format-control: Likewise.
33892         * modules/unictype/property-grapheme-base: Likewise.
33893         * modules/unictype/property-grapheme-extend: Likewise.
33894         * modules/unictype/property-grapheme-link: Likewise.
33895         * modules/unictype/property-hex-digit: Likewise.
33896         * modules/unictype/property-hyphen: Likewise.
33897         * modules/unictype/property-id-continue: Likewise.
33898         * modules/unictype/property-id-start: Likewise.
33899         * modules/unictype/property-ideographic: Likewise.
33900         * modules/unictype/property-ids-binary-operator: Likewise.
33901         * modules/unictype/property-ids-trinary-operator: Likewise.
33902         * modules/unictype/property-ignorable-control: Likewise.
33903         * modules/unictype/property-iso-control: Likewise.
33904         * modules/unictype/property-join-control: Likewise.
33905         * modules/unictype/property-left-of-pair: Likewise.
33906         * modules/unictype/property-line-separator: Likewise.
33907         * modules/unictype/property-logical-order-exception: Likewise.
33908         * modules/unictype/property-lowercase: Likewise.
33909         * modules/unictype/property-math: Likewise.
33910         * modules/unictype/property-non-break: Likewise.
33911         * modules/unictype/property-not-a-character: Likewise.
33912         * modules/unictype/property-numeric: Likewise.
33913         * modules/unictype/property-other-alphabetic: Likewise.
33914         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33915         * modules/unictype/property-other-grapheme-extend: Likewise.
33916         * modules/unictype/property-other-id-continue: Likewise.
33917         * modules/unictype/property-other-id-start: Likewise.
33918         * modules/unictype/property-other-lowercase: Likewise.
33919         * modules/unictype/property-other-math: Likewise.
33920         * modules/unictype/property-other-uppercase: Likewise.
33921         * modules/unictype/property-paired-punctuation: Likewise.
33922         * modules/unictype/property-paragraph-separator: Likewise.
33923         * modules/unictype/property-pattern-syntax: Likewise.
33924         * modules/unictype/property-pattern-white-space: Likewise.
33925         * modules/unictype/property-private-use: Likewise.
33926         * modules/unictype/property-punctuation: Likewise.
33927         * modules/unictype/property-quotation-mark: Likewise.
33928         * modules/unictype/property-radical: Likewise.
33929         * modules/unictype/property-sentence-terminal: Likewise.
33930         * modules/unictype/property-soft-dotted: Likewise.
33931         * modules/unictype/property-space: Likewise.
33932         * modules/unictype/property-terminal-punctuation: Likewise.
33933         * modules/unictype/property-test: Likewise.
33934         * modules/unictype/property-titlecase: Likewise.
33935         * modules/unictype/property-unassigned-code-value: Likewise.
33936         * modules/unictype/property-unified-ideograph: Likewise.
33937         * modules/unictype/property-uppercase: Likewise.
33938         * modules/unictype/property-variation-selector: Likewise.
33939         * modules/unictype/property-white-space: Likewise.
33940         * modules/unictype/property-xid-continue: Likewise.
33941         * modules/unictype/property-xid-start: Likewise.
33942         * modules/unictype/property-zero-width: Likewise.
33943         * modules/unictype/scripts: Likewise.
33944         * modules/unictype/syntax-c-ident: Likewise.
33945         * modules/unictype/syntax-c-whitespace: Likewise.
33946         * modules/unictype/syntax-java-ident: Likewise.
33947         * modules/unictype/syntax-java-whitespace: Likewise.
33948         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33949         * modules/unilbrk/u8-width-linebreaks: Likewise.
33950         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33951         * modules/unilbrk/u16-width-linebreaks: Likewise.
33952         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33953         * modules/unilbrk/u32-width-linebreaks: Likewise.
33954         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33955         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33956         * modules/uniname/uniname: Likewise.
33957         * modules/uninorm/canonical-decomposition: Likewise.
33958         * modules/uninorm/composition: Likewise.
33959         * modules/uninorm/decomposing-form: Likewise.
33960         * modules/uninorm/decomposition: Likewise.
33961         * modules/uninorm/filter: Likewise.
33962         * modules/uninorm/nfc: Likewise.
33963         * modules/uninorm/nfd: Likewise.
33964         * modules/uninorm/nfkc: Likewise.
33965         * modules/uninorm/nfkd: Likewise.
33966         * modules/uninorm/u8-normalize: Likewise.
33967         * modules/uninorm/u8-normcmp: Likewise.
33968         * modules/uninorm/u8-normcoll: Likewise.
33969         * modules/uninorm/u8-normxfrm: Likewise.
33970         * modules/uninorm/u16-normalize: Likewise.
33971         * modules/uninorm/u16-normcmp: Likewise.
33972         * modules/uninorm/u16-normcoll: Likewise.
33973         * modules/uninorm/u16-normxfrm: Likewise.
33974         * modules/uninorm/u32-normalize: Likewise.
33975         * modules/uninorm/u32-normcmp: Likewise.
33976         * modules/uninorm/u32-normcoll: Likewise.
33977         * modules/uninorm/u32-normxfrm: Likewise.
33978         * modules/unistdio/u8-asnprintf: Likewise.
33979         * modules/unistdio/u8-asprintf: Likewise.
33980         * modules/unistdio/u8-snprintf: Likewise.
33981         * modules/unistdio/u8-sprintf: Likewise.
33982         * modules/unistdio/u8-u8-asnprintf: Likewise.
33983         * modules/unistdio/u8-u8-asprintf: Likewise.
33984         * modules/unistdio/u8-u8-snprintf: Likewise.
33985         * modules/unistdio/u8-u8-sprintf: Likewise.
33986         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33987         * modules/unistdio/u8-u8-vasprintf: Likewise.
33988         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33989         * modules/unistdio/u8-u8-vsprintf: Likewise.
33990         * modules/unistdio/u8-vasnprintf: Likewise.
33991         * modules/unistdio/u8-vasprintf: Likewise.
33992         * modules/unistdio/u8-vsnprintf: Likewise.
33993         * modules/unistdio/u8-vsprintf: Likewise.
33994         * modules/unistdio/u16-asnprintf: Likewise.
33995         * modules/unistdio/u16-asprintf: Likewise.
33996         * modules/unistdio/u16-snprintf: Likewise.
33997         * modules/unistdio/u16-sprintf: Likewise.
33998         * modules/unistdio/u16-u16-asnprintf: Likewise.
33999         * modules/unistdio/u16-u16-asprintf: Likewise.
34000         * modules/unistdio/u16-u16-snprintf: Likewise.
34001         * modules/unistdio/u16-u16-sprintf: Likewise.
34002         * modules/unistdio/u16-u16-vasnprintf: Likewise.
34003         * modules/unistdio/u16-u16-vasprintf: Likewise.
34004         * modules/unistdio/u16-u16-vsnprintf: Likewise.
34005         * modules/unistdio/u16-u16-vsprintf: Likewise.
34006         * modules/unistdio/u16-vasnprintf: Likewise.
34007         * modules/unistdio/u16-vasprintf: Likewise.
34008         * modules/unistdio/u16-vsnprintf: Likewise.
34009         * modules/unistdio/u16-vsprintf: Likewise.
34010         * modules/unistdio/u32-asnprintf: Likewise.
34011         * modules/unistdio/u32-asprintf: Likewise.
34012         * modules/unistdio/u32-snprintf: Likewise.
34013         * modules/unistdio/u32-sprintf: Likewise.
34014         * modules/unistdio/u32-u32-asnprintf: Likewise.
34015         * modules/unistdio/u32-u32-asprintf: Likewise.
34016         * modules/unistdio/u32-u32-snprintf: Likewise.
34017         * modules/unistdio/u32-u32-sprintf: Likewise.
34018         * modules/unistdio/u32-u32-vasnprintf: Likewise.
34019         * modules/unistdio/u32-u32-vasprintf: Likewise.
34020         * modules/unistdio/u32-u32-vsnprintf: Likewise.
34021         * modules/unistdio/u32-u32-vsprintf: Likewise.
34022         * modules/unistdio/u32-vasnprintf: Likewise.
34023         * modules/unistdio/u32-vasprintf: Likewise.
34024         * modules/unistdio/u32-vsnprintf: Likewise.
34025         * modules/unistdio/u32-vsprintf: Likewise.
34026         * modules/unistdio/ulc-asnprintf: Likewise.
34027         * modules/unistdio/ulc-asprintf: Likewise.
34028         * modules/unistdio/ulc-fprintf: Likewise.
34029         * modules/unistdio/ulc-snprintf: Likewise.
34030         * modules/unistdio/ulc-sprintf: Likewise.
34031         * modules/unistdio/ulc-vasnprintf: Likewise.
34032         * modules/unistdio/ulc-vasprintf: Likewise.
34033         * modules/unistdio/ulc-vfprintf: Likewise.
34034         * modules/unistdio/ulc-vsnprintf: Likewise.
34035         * modules/unistdio/ulc-vsprintf: Likewise.
34036         * modules/unistr/u8-check: Likewise.
34037         * modules/unistr/u8-chr: Likewise.
34038         * modules/unistr/u8-cmp: Likewise.
34039         * modules/unistr/u8-cmp2: Likewise.
34040         * modules/unistr/u8-cpy: Likewise.
34041         * modules/unistr/u8-cpy-alloc: Likewise.
34042         * modules/unistr/u8-endswith: Likewise.
34043         * modules/unistr/u8-mblen: Likewise.
34044         * modules/unistr/u8-mbsnlen: Likewise.
34045         * modules/unistr/u8-mbtouc: Likewise.
34046         * modules/unistr/u8-mbtouc-unsafe: Likewise.
34047         * modules/unistr/u8-mbtoucr: Likewise.
34048         * modules/unistr/u8-move: Likewise.
34049         * modules/unistr/u8-next: Likewise.
34050         * modules/unistr/u8-prev: Likewise.
34051         * modules/unistr/u8-set: Likewise.
34052         * modules/unistr/u8-startswith: Likewise.
34053         * modules/unistr/u8-stpcpy: Likewise.
34054         * modules/unistr/u8-stpncpy: Likewise.
34055         * modules/unistr/u8-strcat: Likewise.
34056         * modules/unistr/u8-strchr: Likewise.
34057         * modules/unistr/u8-strcmp: Likewise.
34058         * modules/unistr/u8-strcoll: Likewise.
34059         * modules/unistr/u8-strcpy: Likewise.
34060         * modules/unistr/u8-strcspn: Likewise.
34061         * modules/unistr/u8-strdup: Likewise.
34062         * modules/unistr/u8-strlen: Likewise.
34063         * modules/unistr/u8-strmblen: Likewise.
34064         * modules/unistr/u8-strmbtouc: Likewise.
34065         * modules/unistr/u8-strncat: Likewise.
34066         * modules/unistr/u8-strncmp: Likewise.
34067         * modules/unistr/u8-strncpy: Likewise.
34068         * modules/unistr/u8-strnlen: Likewise.
34069         * modules/unistr/u8-strpbrk: Likewise.
34070         * modules/unistr/u8-strrchr: Likewise.
34071         * modules/unistr/u8-strspn: Likewise.
34072         * modules/unistr/u8-strstr: Likewise.
34073         * modules/unistr/u8-strtok: Likewise.
34074         * modules/unistr/u8-to-u16: Likewise.
34075         * modules/unistr/u8-to-u32: Likewise.
34076         * modules/unistr/u8-uctomb: Likewise.
34077         * modules/unistr/u16-check: Likewise.
34078         * modules/unistr/u16-chr: Likewise.
34079         * modules/unistr/u16-cmp: Likewise.
34080         * modules/unistr/u16-cmp2: Likewise.
34081         * modules/unistr/u16-cpy: Likewise.
34082         * modules/unistr/u16-cpy-alloc: Likewise.
34083         * modules/unistr/u16-endswith: Likewise.
34084         * modules/unistr/u16-mblen: Likewise.
34085         * modules/unistr/u16-mbsnlen: Likewise.
34086         * modules/unistr/u16-mbtouc: Likewise.
34087         * modules/unistr/u16-mbtouc-unsafe: Likewise.
34088         * modules/unistr/u16-mbtoucr: Likewise.
34089         * modules/unistr/u16-move: Likewise.
34090         * modules/unistr/u16-next: Likewise.
34091         * modules/unistr/u16-prev: Likewise.
34092         * modules/unistr/u16-set: Likewise.
34093         * modules/unistr/u16-startswith: Likewise.
34094         * modules/unistr/u16-stpcpy: Likewise.
34095         * modules/unistr/u16-stpncpy: Likewise.
34096         * modules/unistr/u16-strcat: Likewise.
34097         * modules/unistr/u16-strchr: Likewise.
34098         * modules/unistr/u16-strcmp: Likewise.
34099         * modules/unistr/u16-strcoll: Likewise.
34100         * modules/unistr/u16-strcpy: Likewise.
34101         * modules/unistr/u16-strcspn: Likewise.
34102         * modules/unistr/u16-strdup: Likewise.
34103         * modules/unistr/u16-strlen: Likewise.
34104         * modules/unistr/u16-strmblen: Likewise.
34105         * modules/unistr/u16-strmbtouc: Likewise.
34106         * modules/unistr/u16-strncat: Likewise.
34107         * modules/unistr/u16-strncmp: Likewise.
34108         * modules/unistr/u16-strncpy: Likewise.
34109         * modules/unistr/u16-strnlen: Likewise.
34110         * modules/unistr/u16-strpbrk: Likewise.
34111         * modules/unistr/u16-strrchr: Likewise.
34112         * modules/unistr/u16-strspn: Likewise.
34113         * modules/unistr/u16-strstr: Likewise.
34114         * modules/unistr/u16-strtok: Likewise.
34115         * modules/unistr/u16-to-u32: Likewise.
34116         * modules/unistr/u16-to-u8: Likewise.
34117         * modules/unistr/u16-uctomb: Likewise.
34118         * modules/unistr/u32-check: Likewise.
34119         * modules/unistr/u32-chr: Likewise.
34120         * modules/unistr/u32-cmp: Likewise.
34121         * modules/unistr/u32-cmp2: Likewise.
34122         * modules/unistr/u32-cpy: Likewise.
34123         * modules/unistr/u32-cpy-alloc: Likewise.
34124         * modules/unistr/u32-endswith: Likewise.
34125         * modules/unistr/u32-mblen: Likewise.
34126         * modules/unistr/u32-mbsnlen: Likewise.
34127         * modules/unistr/u32-mbtouc: Likewise.
34128         * modules/unistr/u32-mbtouc-unsafe: Likewise.
34129         * modules/unistr/u32-mbtoucr: Likewise.
34130         * modules/unistr/u32-move: Likewise.
34131         * modules/unistr/u32-next: Likewise.
34132         * modules/unistr/u32-prev: Likewise.
34133         * modules/unistr/u32-set: Likewise.
34134         * modules/unistr/u32-startswith: Likewise.
34135         * modules/unistr/u32-stpcpy: Likewise.
34136         * modules/unistr/u32-stpncpy: Likewise.
34137         * modules/unistr/u32-strcat: Likewise.
34138         * modules/unistr/u32-strchr: Likewise.
34139         * modules/unistr/u32-strcmp: Likewise.
34140         * modules/unistr/u32-strcoll: Likewise.
34141         * modules/unistr/u32-strcpy: Likewise.
34142         * modules/unistr/u32-strcspn: Likewise.
34143         * modules/unistr/u32-strdup: Likewise.
34144         * modules/unistr/u32-strlen: Likewise.
34145         * modules/unistr/u32-strmblen: Likewise.
34146         * modules/unistr/u32-strmbtouc: Likewise.
34147         * modules/unistr/u32-strncat: Likewise.
34148         * modules/unistr/u32-strncmp: Likewise.
34149         * modules/unistr/u32-strncpy: Likewise.
34150         * modules/unistr/u32-strnlen: Likewise.
34151         * modules/unistr/u32-strpbrk: Likewise.
34152         * modules/unistr/u32-strrchr: Likewise.
34153         * modules/unistr/u32-strspn: Likewise.
34154         * modules/unistr/u32-strstr: Likewise.
34155         * modules/unistr/u32-strtok: Likewise.
34156         * modules/unistr/u32-to-u16: Likewise.
34157         * modules/unistr/u32-to-u8: Likewise.
34158         * modules/unistr/u32-uctomb: Likewise.
34159         * modules/uniwbrk/u8-wordbreaks: Likewise.
34160         * modules/uniwbrk/u16-wordbreaks: Likewise.
34161         * modules/uniwbrk/u32-wordbreaks: Likewise.
34162         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34163         * modules/uniwbrk/wordbreak-property: Likewise.
34164         * modules/uniwidth/u8-strwidth: Likewise.
34165         * modules/uniwidth/u8-width: Likewise.
34166         * modules/uniwidth/u16-strwidth: Likewise.
34167         * modules/uniwidth/u16-width: Likewise.
34168         * modules/uniwidth/u32-strwidth: Likewise.
34169         * modules/uniwidth/u32-width: Likewise.
34170         * modules/uniwidth/width: Likewise.
34171         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34172         with $(LIBUNISTRING).
34173         * modules/unicase/ignorable-tests: Likewise.
34174         * modules/unicase/locale-language-tests: Likewise.
34175         * modules/unicase/tolower-tests: Likewise.
34176         * modules/unicase/totitle-tests: Likewise.
34177         * modules/unicase/toupper-tests: Likewise.
34178         * modules/unicase/u8-casecmp-tests: Likewise.
34179         * modules/unicase/u8-casecoll-tests: Likewise.
34180         * modules/unicase/u8-casefold-tests: Likewise.
34181         * modules/unicase/u8-is-cased-tests: Likewise.
34182         * modules/unicase/u8-is-casefolded-tests: Likewise.
34183         * modules/unicase/u8-is-lowercase-tests: Likewise.
34184         * modules/unicase/u8-is-titlecase-tests: Likewise.
34185         * modules/unicase/u8-is-uppercase-tests: Likewise.
34186         * modules/unicase/u8-tolower-tests: Likewise.
34187         * modules/unicase/u8-totitle-tests: Likewise.
34188         * modules/unicase/u8-toupper-tests: Likewise.
34189         * modules/unicase/u16-casecmp-tests: Likewise.
34190         * modules/unicase/u16-casecoll-tests: Likewise.
34191         * modules/unicase/u16-casefold-tests: Likewise.
34192         * modules/unicase/u16-is-cased-tests: Likewise.
34193         * modules/unicase/u16-is-casefolded-tests: Likewise.
34194         * modules/unicase/u16-is-lowercase-tests: Likewise.
34195         * modules/unicase/u16-is-titlecase-tests: Likewise.
34196         * modules/unicase/u16-is-uppercase-tests: Likewise.
34197         * modules/unicase/u16-tolower-tests: Likewise.
34198         * modules/unicase/u16-totitle-tests: Likewise.
34199         * modules/unicase/u16-toupper-tests: Likewise.
34200         * modules/unicase/u32-casecmp-tests: Likewise.
34201         * modules/unicase/u32-casecoll-tests: Likewise.
34202         * modules/unicase/u32-casefold-tests: Likewise.
34203         * modules/unicase/u32-is-cased-tests: Likewise.
34204         * modules/unicase/u32-is-casefolded-tests: Likewise.
34205         * modules/unicase/u32-is-lowercase-tests: Likewise.
34206         * modules/unicase/u32-is-titlecase-tests: Likewise.
34207         * modules/unicase/u32-is-uppercase-tests: Likewise.
34208         * modules/unicase/u32-tolower-tests: Likewise.
34209         * modules/unicase/u32-totitle-tests: Likewise.
34210         * modules/unicase/u32-toupper-tests: Likewise.
34211         * modules/unicase/ulc-casecmp-tests: Likewise.
34212         * modules/unicase/ulc-casecoll-tests: Likewise.
34213         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34214         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34215         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34216         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34217         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34218         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34219         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34220         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34221         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34222         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34223         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34224         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34225         * modules/unictype/bidicategory-byname-tests: Likewise.
34226         * modules/unictype/bidicategory-name-tests: Likewise.
34227         * modules/unictype/bidicategory-of-tests: Likewise.
34228         * modules/unictype/bidicategory-test-tests: Likewise.
34229         * modules/unictype/block-list-tests: Likewise.
34230         * modules/unictype/block-of-tests: Likewise.
34231         * modules/unictype/block-test-tests: Likewise.
34232         * modules/unictype/category-C-tests: Likewise.
34233         * modules/unictype/category-Cc-tests: Likewise.
34234         * modules/unictype/category-Cf-tests: Likewise.
34235         * modules/unictype/category-Cn-tests: Likewise.
34236         * modules/unictype/category-Co-tests: Likewise.
34237         * modules/unictype/category-Cs-tests: Likewise.
34238         * modules/unictype/category-L-tests: Likewise.
34239         * modules/unictype/category-Ll-tests: Likewise.
34240         * modules/unictype/category-Lm-tests: Likewise.
34241         * modules/unictype/category-Lo-tests: Likewise.
34242         * modules/unictype/category-Lt-tests: Likewise.
34243         * modules/unictype/category-Lu-tests: Likewise.
34244         * modules/unictype/category-M-tests: Likewise.
34245         * modules/unictype/category-Mc-tests: Likewise.
34246         * modules/unictype/category-Me-tests: Likewise.
34247         * modules/unictype/category-Mn-tests: Likewise.
34248         * modules/unictype/category-N-tests: Likewise.
34249         * modules/unictype/category-Nd-tests: Likewise.
34250         * modules/unictype/category-Nl-tests: Likewise.
34251         * modules/unictype/category-No-tests: Likewise.
34252         * modules/unictype/category-P-tests: Likewise.
34253         * modules/unictype/category-Pc-tests: Likewise.
34254         * modules/unictype/category-Pd-tests: Likewise.
34255         * modules/unictype/category-Pe-tests: Likewise.
34256         * modules/unictype/category-Pf-tests: Likewise.
34257         * modules/unictype/category-Pi-tests: Likewise.
34258         * modules/unictype/category-Po-tests: Likewise.
34259         * modules/unictype/category-Ps-tests: Likewise.
34260         * modules/unictype/category-S-tests: Likewise.
34261         * modules/unictype/category-Sc-tests: Likewise.
34262         * modules/unictype/category-Sk-tests: Likewise.
34263         * modules/unictype/category-Sm-tests: Likewise.
34264         * modules/unictype/category-So-tests: Likewise.
34265         * modules/unictype/category-Z-tests: Likewise.
34266         * modules/unictype/category-Zl-tests: Likewise.
34267         * modules/unictype/category-Zp-tests: Likewise.
34268         * modules/unictype/category-Zs-tests: Likewise.
34269         * modules/unictype/category-and-not-tests: Likewise.
34270         * modules/unictype/category-and-tests: Likewise.
34271         * modules/unictype/category-byname-tests: Likewise.
34272         * modules/unictype/category-name-tests: Likewise.
34273         * modules/unictype/category-none-tests: Likewise.
34274         * modules/unictype/category-of-tests: Likewise.
34275         * modules/unictype/category-or-tests: Likewise.
34276         * modules/unictype/category-test-withtable-tests: Likewise.
34277         * modules/unictype/combining-class-tests: Likewise.
34278         * modules/unictype/ctype-alnum-tests: Likewise.
34279         * modules/unictype/ctype-alpha-tests: Likewise.
34280         * modules/unictype/ctype-blank-tests: Likewise.
34281         * modules/unictype/ctype-cntrl-tests: Likewise.
34282         * modules/unictype/ctype-digit-tests: Likewise.
34283         * modules/unictype/ctype-graph-tests: Likewise.
34284         * modules/unictype/ctype-lower-tests: Likewise.
34285         * modules/unictype/ctype-print-tests: Likewise.
34286         * modules/unictype/ctype-punct-tests: Likewise.
34287         * modules/unictype/ctype-space-tests: Likewise.
34288         * modules/unictype/ctype-upper-tests: Likewise.
34289         * modules/unictype/ctype-xdigit-tests: Likewise.
34290         * modules/unictype/decimal-digit-tests: Likewise.
34291         * modules/unictype/digit-tests: Likewise.
34292         * modules/unictype/mirror-tests: Likewise.
34293         * modules/unictype/numeric-tests: Likewise.
34294         * modules/unictype/property-alphabetic-tests: Likewise.
34295         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34296         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34297         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34298         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34299         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34300         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34301         * modules/unictype/property-bidi-control-tests: Likewise.
34302         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34303         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34304         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34305         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34306         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34307         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34308         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34309         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34310         * modules/unictype/property-bidi-pdf-tests: Likewise.
34311         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34312         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34313         * modules/unictype/property-byname-tests: Likewise.
34314         * modules/unictype/property-combining-tests: Likewise.
34315         * modules/unictype/property-composite-tests: Likewise.
34316         * modules/unictype/property-currency-symbol-tests: Likewise.
34317         * modules/unictype/property-dash-tests: Likewise.
34318         * modules/unictype/property-decimal-digit-tests: Likewise.
34319         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34320         * modules/unictype/property-deprecated-tests: Likewise.
34321         * modules/unictype/property-diacritic-tests: Likewise.
34322         * modules/unictype/property-extender-tests: Likewise.
34323         * modules/unictype/property-format-control-tests: Likewise.
34324         * modules/unictype/property-grapheme-base-tests: Likewise.
34325         * modules/unictype/property-grapheme-extend-tests: Likewise.
34326         * modules/unictype/property-grapheme-link-tests: Likewise.
34327         * modules/unictype/property-hex-digit-tests: Likewise.
34328         * modules/unictype/property-hyphen-tests: Likewise.
34329         * modules/unictype/property-id-continue-tests: Likewise.
34330         * modules/unictype/property-id-start-tests: Likewise.
34331         * modules/unictype/property-ideographic-tests: Likewise.
34332         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34333         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34334         * modules/unictype/property-ignorable-control-tests: Likewise.
34335         * modules/unictype/property-iso-control-tests: Likewise.
34336         * modules/unictype/property-join-control-tests: Likewise.
34337         * modules/unictype/property-left-of-pair-tests: Likewise.
34338         * modules/unictype/property-line-separator-tests: Likewise.
34339         * modules/unictype/property-logical-order-exception-tests: Likewise.
34340         * modules/unictype/property-lowercase-tests: Likewise.
34341         * modules/unictype/property-math-tests: Likewise.
34342         * modules/unictype/property-non-break-tests: Likewise.
34343         * modules/unictype/property-not-a-character-tests: Likewise.
34344         * modules/unictype/property-numeric-tests: Likewise.
34345         * modules/unictype/property-other-alphabetic-tests: Likewise.
34346         * modules/unictype/property-other-default-ignorable-code-point-tests:
34347         Likewise.
34348         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34349         * modules/unictype/property-other-id-continue-tests: Likewise.
34350         * modules/unictype/property-other-id-start-tests: Likewise.
34351         * modules/unictype/property-other-lowercase-tests: Likewise.
34352         * modules/unictype/property-other-math-tests: Likewise.
34353         * modules/unictype/property-other-uppercase-tests: Likewise.
34354         * modules/unictype/property-paired-punctuation-tests: Likewise.
34355         * modules/unictype/property-paragraph-separator-tests: Likewise.
34356         * modules/unictype/property-pattern-syntax-tests: Likewise.
34357         * modules/unictype/property-pattern-white-space-tests: Likewise.
34358         * modules/unictype/property-private-use-tests: Likewise.
34359         * modules/unictype/property-punctuation-tests: Likewise.
34360         * modules/unictype/property-quotation-mark-tests: Likewise.
34361         * modules/unictype/property-radical-tests: Likewise.
34362         * modules/unictype/property-sentence-terminal-tests: Likewise.
34363         * modules/unictype/property-soft-dotted-tests: Likewise.
34364         * modules/unictype/property-space-tests: Likewise.
34365         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34366         * modules/unictype/property-test-tests: Likewise.
34367         * modules/unictype/property-titlecase-tests: Likewise.
34368         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34369         * modules/unictype/property-unified-ideograph-tests: Likewise.
34370         * modules/unictype/property-uppercase-tests: Likewise.
34371         * modules/unictype/property-variation-selector-tests: Likewise.
34372         * modules/unictype/property-white-space-tests: Likewise.
34373         * modules/unictype/property-xid-continue-tests: Likewise.
34374         * modules/unictype/property-xid-start-tests: Likewise.
34375         * modules/unictype/property-zero-width-tests: Likewise.
34376         * modules/unictype/scripts-tests: Likewise.
34377         * modules/unictype/syntax-c-ident-tests: Likewise.
34378         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34379         * modules/unictype/syntax-java-ident-tests: Likewise.
34380         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34381         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34382         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34383         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34384         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34385         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34386         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34387         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34388         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34389         * modules/uniname/uniname-tests: Likewise.
34390         * modules/uninorm/canonical-decomposition-tests: Likewise.
34391         * modules/uninorm/compat-decomposition-tests: Likewise.
34392         * modules/uninorm/composition-tests: Likewise.
34393         * modules/uninorm/decomposing-form-tests: Likewise.
34394         * modules/uninorm/decomposition-tests: Likewise.
34395         * modules/uninorm/filter-tests: Likewise.
34396         * modules/uninorm/nfc-tests: Likewise.
34397         * modules/uninorm/nfd-tests: Likewise.
34398         * modules/uninorm/nfkc-tests: Likewise.
34399         * modules/uninorm/nfkd-tests: Likewise.
34400         * modules/uninorm/u8-normcmp-tests: Likewise.
34401         * modules/uninorm/u8-normcoll-tests: Likewise.
34402         * modules/uninorm/u16-normcmp-tests: Likewise.
34403         * modules/uninorm/u16-normcoll-tests: Likewise.
34404         * modules/uninorm/u32-normcmp-tests: Likewise.
34405         * modules/uninorm/u32-normcoll-tests: Likewise.
34406         * modules/unistdio/u8-asnprintf-tests: Likewise.
34407         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34408         * modules/unistdio/u8-vasprintf-tests: Likewise.
34409         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34410         * modules/unistdio/u8-vsprintf-tests: Likewise.
34411         * modules/unistdio/u16-asnprintf-tests: Likewise.
34412         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34413         * modules/unistdio/u16-vasprintf-tests: Likewise.
34414         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34415         * modules/unistdio/u16-vsprintf-tests: Likewise.
34416         * modules/unistdio/u32-asnprintf-tests: Likewise.
34417         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34418         * modules/unistdio/u32-vasprintf-tests: Likewise.
34419         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34420         * modules/unistdio/u32-vsprintf-tests: Likewise.
34421         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34422         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34423         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34424         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34425         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34426         * modules/unistr/u8-check-tests: Likewise.
34427         * modules/unistr/u8-chr-tests: Likewise.
34428         * modules/unistr/u8-cmp-tests: Likewise.
34429         * modules/unistr/u8-cmp2-tests: Likewise.
34430         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34431         * modules/unistr/u8-cpy-tests: Likewise.
34432         * modules/unistr/u8-mblen-tests: Likewise.
34433         * modules/unistr/u8-mbsnlen-tests: Likewise.
34434         * modules/unistr/u8-mbtouc-tests: Likewise.
34435         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34436         * modules/unistr/u8-mbtoucr-tests: Likewise.
34437         * modules/unistr/u8-move-tests: Likewise.
34438         * modules/unistr/u8-next-tests: Likewise.
34439         * modules/unistr/u8-prev-tests: Likewise.
34440         * modules/unistr/u8-set-tests: Likewise.
34441         * modules/unistr/u8-stpcpy-tests: Likewise.
34442         * modules/unistr/u8-stpncpy-tests: Likewise.
34443         * modules/unistr/u8-strcat-tests: Likewise.
34444         * modules/unistr/u8-strcmp-tests: Likewise.
34445         * modules/unistr/u8-strcoll-tests: Likewise.
34446         * modules/unistr/u8-strcpy-tests: Likewise.
34447         * modules/unistr/u8-strdup-tests: Likewise.
34448         * modules/unistr/u8-strlen-tests: Likewise.
34449         * modules/unistr/u8-strmblen-tests: Likewise.
34450         * modules/unistr/u8-strmbtouc-tests: Likewise.
34451         * modules/unistr/u8-strncat-tests: Likewise.
34452         * modules/unistr/u8-strncmp-tests: Likewise.
34453         * modules/unistr/u8-strncpy-tests: Likewise.
34454         * modules/unistr/u8-strnlen-tests: Likewise.
34455         * modules/unistr/u8-to-u16-tests: Likewise.
34456         * modules/unistr/u8-to-u32-tests: Likewise.
34457         * modules/unistr/u8-uctomb-tests: Likewise.
34458         * modules/unistr/u16-check-tests: Likewise.
34459         * modules/unistr/u16-chr-tests: Likewise.
34460         * modules/unistr/u16-cmp-tests: Likewise.
34461         * modules/unistr/u16-cmp2-tests: Likewise.
34462         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34463         * modules/unistr/u16-cpy-tests: Likewise.
34464         * modules/unistr/u16-mblen-tests: Likewise.
34465         * modules/unistr/u16-mbsnlen-tests: Likewise.
34466         * modules/unistr/u16-mbtouc-tests: Likewise.
34467         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34468         * modules/unistr/u16-mbtoucr-tests: Likewise.
34469         * modules/unistr/u16-move-tests: Likewise.
34470         * modules/unistr/u16-next-tests: Likewise.
34471         * modules/unistr/u16-prev-tests: Likewise.
34472         * modules/unistr/u16-set-tests: Likewise.
34473         * modules/unistr/u16-stpcpy-tests: Likewise.
34474         * modules/unistr/u16-stpncpy-tests: Likewise.
34475         * modules/unistr/u16-strcat-tests: Likewise.
34476         * modules/unistr/u16-strcmp-tests: Likewise.
34477         * modules/unistr/u16-strcoll-tests: Likewise.
34478         * modules/unistr/u16-strcpy-tests: Likewise.
34479         * modules/unistr/u16-strdup-tests: Likewise.
34480         * modules/unistr/u16-strlen-tests: Likewise.
34481         * modules/unistr/u16-strmblen-tests: Likewise.
34482         * modules/unistr/u16-strmbtouc-tests: Likewise.
34483         * modules/unistr/u16-strncat-tests: Likewise.
34484         * modules/unistr/u16-strncmp-tests: Likewise.
34485         * modules/unistr/u16-strncpy-tests: Likewise.
34486         * modules/unistr/u16-strnlen-tests: Likewise.
34487         * modules/unistr/u16-to-u32-tests: Likewise.
34488         * modules/unistr/u16-to-u8-tests: Likewise.
34489         * modules/unistr/u16-uctomb-tests: Likewise.
34490         * modules/unistr/u32-check-tests: Likewise.
34491         * modules/unistr/u32-chr-tests: Likewise.
34492         * modules/unistr/u32-cmp-tests: Likewise.
34493         * modules/unistr/u32-cmp2-tests: Likewise.
34494         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34495         * modules/unistr/u32-cpy-tests: Likewise.
34496         * modules/unistr/u32-mblen-tests: Likewise.
34497         * modules/unistr/u32-mbsnlen-tests: Likewise.
34498         * modules/unistr/u32-mbtouc-tests: Likewise.
34499         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34500         * modules/unistr/u32-mbtoucr-tests: Likewise.
34501         * modules/unistr/u32-move-tests: Likewise.
34502         * modules/unistr/u32-next-tests: Likewise.
34503         * modules/unistr/u32-prev-tests: Likewise.
34504         * modules/unistr/u32-set-tests: Likewise.
34505         * modules/unistr/u32-stpcpy-tests: Likewise.
34506         * modules/unistr/u32-stpncpy-tests: Likewise.
34507         * modules/unistr/u32-strcat-tests: Likewise.
34508         * modules/unistr/u32-strcmp-tests: Likewise.
34509         * modules/unistr/u32-strcoll-tests: Likewise.
34510         * modules/unistr/u32-strcpy-tests: Likewise.
34511         * modules/unistr/u32-strdup-tests: Likewise.
34512         * modules/unistr/u32-strlen-tests: Likewise.
34513         * modules/unistr/u32-strmblen-tests: Likewise.
34514         * modules/unistr/u32-strmbtouc-tests: Likewise.
34515         * modules/unistr/u32-strncat-tests: Likewise.
34516         * modules/unistr/u32-strncmp-tests: Likewise.
34517         * modules/unistr/u32-strncpy-tests: Likewise.
34518         * modules/unistr/u32-strnlen-tests: Likewise.
34519         * modules/unistr/u32-to-u16-tests: Likewise.
34520         * modules/unistr/u32-to-u8-tests: Likewise.
34521         * modules/unistr/u32-uctomb-tests: Likewise.
34522         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34523         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34524         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34525         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34526         * modules/uniwidth/u8-strwidth-tests: Likewise.
34527         * modules/uniwidth/u8-width-tests: Likewise.
34528         * modules/uniwidth/u16-strwidth-tests: Likewise.
34529         * modules/uniwidth/u16-width-tests: Likewise.
34530         * modules/uniwidth/u32-strwidth-tests: Likewise.
34531         * modules/uniwidth/u32-width-tests: Likewise.
34532         * modules/uniwidth/width-tests: Likewise.
34533
34534 2010-05-18  Richard Jones  <rjones@redhat.com>
34535
34536         doc: users.txt: list hivex
34537         * users.txt: Add hivex.
34538
34539 2010-05-18  Richard Jones  <rjones@redhat.com>
34540
34541         doc: users.txt: list febootstrap
34542         * users.txt: Add febootstrap.
34543
34544 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34545
34546         bootstrap: fix an error when gnulib is not used as a git submodule
34547         * build-aux/bootstrap (gnulib_path): If its length is zero then
34548         assign "gnulib" to it.
34549         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34550
34551 2010-05-16  Bruno Haible  <bruno@clisp.org>
34552
34553         Avoid autoconf warnings about AM_ICONV.
34554         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34555         2.64.
34556
34557 2010-05-16  Bruno Haible  <bruno@clisp.org>
34558
34559         absolute-header: Make the macro usable in more situations.
34560         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34561         from gl_ABSOLUTE_HEADER.
34562         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34563
34564 2010-05-16  James Youngman  <jay@gnu.org>
34565
34566         doc: update users.txt
34567         * users.txt: Add CSSC.
34568
34569 2010-05-16  Jim Meyering  <meyering@redhat.com>
34570
34571         init.sh: fix an error in the previous change; add more comments
34572         * tests/init.sh: Compare exit code in loop against 9, not 2.
34573         Patch by Bruno Haible.
34574         Make the two tests more similar by adding an empty "then" clause.
34575         Add comments.
34576
34577         init.sh: avoid unnecessary shell re-exec
34578         * tests/init.sh: Improve the re-exec-required check to first test the
34579         current shell.  If it passes the test, do not search for a shell that
34580         does pass, and do not re-exec.  This test is particularly contorted to
34581         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34582         of $(...) evokes a syntax error and causes immediate shell exit with
34583         status 2.  Bruno Haible reported that the re-exec made it impossible
34584         to single-step through any init.sh-using script.
34585
34586 2010-05-16  Bruno Haible  <bruno@clisp.org>
34587
34588         Fix collision between gnulib's and libintl's printf replacements.
34589         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34590         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34591         (printf): When using GNU C, map the __printf__ function to rpl_printf
34592         via __asm__. When not using GNU C, define rpl_printf instead of
34593         __printf__.
34594         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34595         commit.
34596         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34597         commit.
34598         * m4/asm-underscore.m4: New file.
34599         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34600         * modules/stdio (Files): Add m4/asm-underscore.m4.
34601         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34602         Reported by Ben Pfaff.
34603
34604 2010-05-16  Bruno Haible  <bruno@clisp.org>
34605
34606         verify: Avoid skipping the test on openSUSE 11.0.
34607         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34608
34609 2010-05-13  Bruno Haible  <bruno@clisp.org>
34610
34611         Avoid useless warnings from G++.
34612         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34613         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34614         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34615
34616 2010-05-11  Jim Meyering  <meyering@redhat.com>
34617
34618         maint.mk: tweak preceding change
34619         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34620         regexps tighter by anchoring at EOL, and make the new group "shy"
34621         for slightly decreased overhead.
34622
34623 2010-05-11  Eric Blake  <eblake@redhat.com>
34624
34625         maint.mk: gnulib doesn't guarantee NSIG
34626         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34627
34628 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34629
34630         test-pwrite.c: Remove unused variable declaration.
34631         * tests/test-pwrite.c (main): Remove read_buf declaration.
34632
34633         Remove useless test-pwrite.sh file.
34634         * tests/test-pwrite.sh: Delete file.
34635         * modules/pwrite-tests: Remove references.
34636         Reported by Bruno Haible.
34637
34638 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34639
34640         init.sh: fix a typo
34641         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34642
34643 2010-05-10  Jim Meyering  <meyering@redhat.com>
34644
34645         maint.mk: avoid using a temporary file in the always-defined-macros check
34646         * top/maint.mk (.re-defmac): Remove rule.
34647         (gl_trap_): Remove definition.
34648         (sc_prohibit_always-defined_macros): Rewrite not to create and
34649         depend on a temporary file.  Instead, depend on GNU grep's ability
34650         to read a list of regular expressions from stdin when given "-f -".
34651
34652 2010-05-09  Bruno Haible  <bruno@clisp.org>
34653
34654         Update to GNU gettext 0.18, part 1.
34655         * m4/gettext.m4: Update to GNU gettext 0.18.
34656         * m4/intl.m4: Likewise.
34657         * m4/po.m4: Likewise.
34658         * modules/gettext (Files): Add m4/fcntl-o.m4.
34659         (configure.ac): Require gettext infrastructure from version 0.18.
34660
34661 2010-05-09  Jim Meyering  <meyering@redhat.com>
34662
34663         init.sh: enable MALLOC_PERTURB_
34664         * tests/init.sh: Enable glibc's malloc-perturbing option.
34665
34666         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34667         With my recent change in init.sh from the two-line form:
34668             -#   : ${srcdir=.}
34669             -#   . "$srcdir/init.sh"; path_prepend_ .
34670             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34671         I noticed that using the one-line form would cause this test
34672         to fail with a false-positive, or to stop working altogether,
34673         depending on whether help-version changed or all the tests did.
34674         * top/maint.mk (_hv_regex): Remove this definition.
34675         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34676         (_hv_regex_strong): Use a stronger regex to check for conformance.
34677         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34678         Give a separate diagnostic for lack of conforming use.
34679
34680         maint.mk: prohibit definition of symbols defined by gnulib
34681         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34682         definition of symbols defined by gnulib.
34683
34684 2010-05-09  Bruno Haible  <bruno@clisp.org>
34685
34686         acl: Avoid test failure on Cygwin-hosted mingw.
34687         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34688
34689 2010-05-09  Bruno Haible  <bruno@clisp.org>
34690
34691         error: Use system's fcntl function.
34692         * lib/error.c (fcntl): Undefine.
34693
34694 2010-05-09  Jim Meyering  <meyering@redhat.com>
34695
34696         verify: adjust formatting to be more consistent
34697         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34698         argument-list '('s, and after one comma.
34699
34700 2010-05-09  Bruno Haible  <bruno@clisp.org>
34701
34702         error: More reliable output on mingw.
34703         * lib/error.c: Include <windows.h>.
34704         (is_open): New function.
34705         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34706         defined.
34707
34708 2010-05-09  Bruno Haible  <bruno@clisp.org>
34709
34710         vasnprintf: Fix syntax errors in libintl build on mingw.
34711         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34712         pad_ourselves and prec_ourselves after use.
34713
34714 2010-05-08  Bruno Haible  <bruno@clisp.org>
34715
34716         * lib/config.charset: Update comments for Cygwin 1.7.
34717         * lib/localcharset.c: Likewise.
34718
34719 2010-05-07  Jim Meyering  <meyering@redhat.com>
34720
34721         init.sh: improve comments
34722         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34723         . "${srcdir=.}/init.sh"; path_prepend_ .
34724         Add a note about path_prepend_ and the alternative of using
34725         TESTS_ENVIRONMENT.
34726
34727 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34728
34729         exclude: Unescape hashed patterns in wildcard mode.
34730         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34731         to the hash list.
34732         * tests/test-exclude8.sh: New test case.
34733         * modules/exclude-tests: Add new test.
34734
34735 2010-05-05  Eric Blake  <eblake@redhat.com>
34736
34737         verify: automate tests
34738         * modules/verify-tests: New module.
34739         * tests/test-verify.sh: New file.
34740         * tests/test-verify.c: Guard each negative test with a unique id.
34741         Also avoid warning about unused left hand of comma expressions.
34742
34743 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34744
34745         Further improvements to verify.h, suggested by Eric Blake.
34746         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34747         the GL_* versions, to avoid collision with OpenGL.
34748         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34749         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34750         than testing merely whether it's defined.
34751
34752         Modify verify.h to pacify gcc -Wredundant_decls.
34753         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34754         These use the prefix "GL_" since they're likely to be useful elsewhere.
34755         We may need to break them out into a different .h file.
34756         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34757         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34758         of verify_function__.
34759
34760 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34761
34762         Tests for module pwrite.
34763         * modules/pwrite-tests: New file.
34764         * tests/test-pwrite.sh: New file.
34765         * tests/test-pwrite.c: New file.
34766
34767         New module pwrite.
34768         * lib/unistd.in.h (pwrite): New declaration.
34769         * lib/pwrite.c: New file, from glibc with modifications.
34770         * m4/pwrite.m4: New file.
34771         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34772         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34773         REPLACE_PWRITE.
34774         * modules/pwrite: New file.
34775         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34776         REPLACE_PWRITE.
34777         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34778         * doc/posix-functions/pwrite.texi: Mention the new module.
34779
34780 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34781
34782         pread: Update documentation.
34783         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34784
34785 2010-05-04  Eric Blake  <eblake@redhat.com>
34786
34787         docs: update cygwin progress
34788         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34789         this bug.
34790         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34791         Added in cygwin 1.7.2.
34792         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34793         Likewise.
34794         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34795         Likewise.
34796         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34797         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34798         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34799         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34800         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34801         Mention nproc module.
34802         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34803         bug in cygwin 1.7.5 addition.
34804         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34805         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34806         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34807         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34808         1.7.5.
34809         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34810         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34811         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34812         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34813         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34814         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34815         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34816         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34817         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34818         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34819         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34820         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34821         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34822         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34823         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34824         Likewise.
34825         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34826         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34827         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34828         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34829         Likewise.
34830         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34831         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34832         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34833         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34834         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34835         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34836         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34837         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34838         Likewise.
34839         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34840         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34841         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34842         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34843         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34844         Likewise.
34845         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34846         Likewise.
34847         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34848         Likewise.
34849         * doc/glibc-functions/xdrrec_endofrecord.texi
34850         (xdrrec_endofrecord): Likewise.
34851         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34852         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34853         Likewise.
34854         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34855         Likewise.
34856
34857 2010-05-04  Jim Meyering  <meyering@redhat.com>
34858
34859         gendocs.sh: make its "-s FILE" option more useful
34860         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34861         $PACKAGE to reflect the probably-different basename of "FILE".
34862
34863 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34864
34865         bootstrap: don't ignore download_po_files failure
34866         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34867         failure.
34868
34869 2010-05-03  Jim Meyering  <meyering@redhat.com>
34870
34871         maint.mk: allow to pass options to gendocs.sh
34872         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34873         (gendocs_options_): New overridable variable.
34874
34875         gnu-web-doc-update: don't ignore configure or build failure
34876         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34877
34878         announce-gen: backslash-escape '@'s in --help output
34879         * build-aux/announce-gen: Fix syntax errors.
34880
34881         maint.mk, announce-gen: allow project-specific announcement mail headers
34882         * top/maint.mk (translation_project_): Define default.
34883         (announcement_Cc_, announcement_mail_headers_): Likewise.
34884         (announcement): Invoke announce-gen with new --mail-headers option.
34885         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34886
34887         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34888         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34889         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34890         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34891         line in the "err2" output file when running "make check" in verbose
34892         mode (i.e., with set -x enabled).
34893
34894 2010-05-03  Bruno Haible  <bruno@clisp.org>
34895
34896         wctob: Fix for weird platforms.
34897         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34898         argument value.
34899
34900 2010-05-03  Jim Meyering  <meyering@redhat.com>
34901
34902         maint.mk: prohibit unwarranted use of <strings.h>
34903         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34904         strings.h in a file that does not also use strcasecmp, strncasecmp,
34905         ffs or ffsll.
34906
34907         maint.mk: remove obsolete comments
34908         * top/maint.mk: Remove stale, commented-out rules.
34909
34910 2010-05-02  Bruno Haible  <bruno@clisp.org>
34911
34912         wcwidth: Declare also when it's aliased.
34913         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34914         macro.
34915
34916 2010-05-02  Bruno Haible  <bruno@clisp.org>
34917
34918         Fix regression from 2010-04-25.
34919         * gnulib-tool (func_modules_transitive_closure): Check the status of
34920         all modules, not only of the tests that are of the form foo-tests where
34921         foo is a module.
34922
34923 2010-05-02  Bruno Haible  <bruno@clisp.org>
34924
34925         wctob: Work around nasty Cygwin 1.7.2 bug.
34926         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34927         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34928
34929 2010-05-01  Bruno Haible  <bruno@clisp.org>
34930
34931         fpurge: Sharper test.
34932         * tests/test-fpurge.c (main): Add one more ftell check.
34933         * modules/fpurge-tests (Depends-on): Add ftell.
34934         Suggested by Eric Blake.
34935
34936 2010-05-01  Bruno Haible  <bruno@clisp.org>
34937
34938         ftello: Another test.
34939         * tests/test-ftello3.c: New file.
34940         * modules/ftello-tests (Files): Add it.
34941         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34942         MOSTLYCLEANFILES.
34943
34944         ftell: Another test.
34945         * tests/test-ftell3.c: New file.
34946         * modules/ftell-tests (Files): Add it.
34947         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34948         MOSTLYCLEANFILES.
34949
34950 2010-05-01  Bruno Haible  <bruno@clisp.org>
34951
34952         ftell, ftello: Work around Solaris bug.
34953         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34954         * lib/ftello.c: Include stdio-impl.h.
34955         (ftello): On Solaris, when _IOWRT is set, compute the result without
34956         looking at _IOREAD.
34957         * modules/ftello (Files): Add lib/stdio-impl.h.
34958         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34959         * doc/posix-functions/ftello.texi: Likewise.
34960         Reported by Eric Blake.
34961
34962 2010-05-01  Bruno Haible  <bruno@clisp.org>
34963
34964         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34965         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34966         the _IOWRT flag is also set.
34967
34968 2010-05-01  Bruno Haible  <bruno@clisp.org>
34969
34970         Fix doc about a HP-UX stdio bug.
34971         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34972         * doc/posix-functions/ftello.texi: Likewise.
34973
34974 2010-05-01  Bruno Haible  <bruno@clisp.org>
34975
34976         lseek test: Fix failure on Solaris.
34977         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34978         output.
34979
34980 2010-04-30  Jim Meyering  <meyering@redhat.com>
34981
34982         bootstrap: don't ignore failure to generate po*/Makevars
34983         * build-aux/bootstrap (with_gettext): Don't ignore failure
34984         to create po/Makevars or runtime-po/Makevars.
34985
34986 2010-04-29  Eric Blake  <eblake@redhat.com>
34987
34988         headers: relax license to LGPLv2+
34989         * modules/fcntl-h (License): Relax license.
34990         * modules/getopt-posix (License): Likewise.
34991         * modules/locale (License): Likewise.
34992         * modules/math (License): Likewise.
34993         * modules/pty (License): Likewise.
34994         * modules/sched (License): Likewise.
34995         * modules/search (License): Likewise.
34996         * modules/spawn (License): Likewise.
34997         * modules/stdarg (License): Likewise.
34998         * modules/sysexits (License): Likewise.
34999
35000 2010-04-29  Jim Meyering  <meyering@redhat.com>
35001
35002         inttypes: relax license to LGPLv2+
35003         * modules/inttypes (License): Relax license.
35004
35005 2010-04-29  Simon Josefsson  <simon@josefsson.org>
35006
35007         * top/maint.mk (indent): Run twice to produce idempotent results.
35008
35009 2010-04-28  Bruno Haible  <bruno@clisp.org>
35010
35011         getdate: Generate getdate.c in the source directory.
35012         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
35013         MOSTLYCLEANFILES.
35014         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
35015
35016 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
35017
35018         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
35019         is not declared as a const *; avoid warnings in that case.
35020
35021 2010-04-28  Eric Blake  <eblake@redhat.com>
35022
35023         canonicalize-lgpl: avoid compiler warning
35024         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
35025         declaration' / 'extraneous semicolon' warning with some compilers.
35026         Reported by Andreas Gruenbacher.
35027
35028 2010-04-28  Jim Meyering  <meyering@redhat.com>
35029
35030         init.sh: ensure a more reliable exit status when exiting via trap
35031         * tests/init.sh (setup_): Don't rely on $? in signal handler.
35032         Inspired by patches from Dmitry V. Levin.
35033         Also trap on signal 3 (SIGQUIT).
35034
35035 2010-04-27  Bruno Haible  <bruno@clisp.org>
35036
35037         Update doc about utimes().
35038         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
35039         'utimens' module.
35040         Reported by Andreas Gruenbacher <agruen@suse.de>.
35041
35042 2010-04-27  Eric Blake  <eblake@redhat.com>
35043
35044         full-read, full-write: relax license
35045         * modules/full-read (License): Drop to LGPLv2+.
35046         * modules/full-write (License): Likewise.
35047         * modules/safe-read (License): Likewise.
35048         * modules/safe-write (License): Likewise.
35049
35050         pthread: mention library for linking
35051         * modules/pthread (Link): Mention $(LIB_PTHREAD).
35052
35053 2010-04-27  Jim Meyering  <meyering@redhat.com>
35054
35055         maint.mk: fix a bug introduced in last change
35056         * top/maint.mk (gl_assured_headers_): Now that all names are on
35057         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
35058         is not anchored to end of word, it should be adequate.
35059
35060         maint.mk: avoid side-effect in latest syntax-check
35061         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
35062         to run commands via $(shell...), and hence to incur cost only when
35063         the new rule is actually run.
35064
35065         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
35066         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
35067         and use that to create a regexp used to detect all #if HAVE_..._H uses.
35068         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
35069         (gl_assured_headers_, az_, AZ_): Define.
35070         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
35071
35072 2010-04-26  Jim Meyering  <jim@meyering.net>
35073             Bruno Haible  <bruno@clisp.org>
35074
35075         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
35076         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
35077         Prompted by an exchange with Gilles Espinasse.
35078
35079 2010-04-26  Jim Meyering  <meyering@redhat.com>
35080
35081         git-version-gen: aesthetic tweak
35082         * build-aux/git-version-gen: Use "$nl" rather than a literal,
35083         so that the command remains on a single line.
35084
35085 2010-04-26  Eric Blake  <eblake@redhat.com>
35086
35087         git-version-gen: allow use on EBCDIC hosts
35088         * build-aux/git-version-gen (dirty): Use literal rather than tying
35089         ourselves to ascii.
35090         Reported by Steve Goetze.
35091
35092 2010-04-25  Bruno Haible  <bruno@clisp.org>
35093
35094         netdb: Add support for GNULIB_POSIXCHECK.
35095         * lib/netdb.in.h: Include warn-on-use.h.
35096         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
35097         functions are used when GNULIB_POSIXCHECK is defined and the
35098         getaddrinfo module is not in use.
35099         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
35100         freeaddrinfo, gai_strerror, getnameinfo are declared.
35101         * modules/netdb (Depends-on): Add warn-on-use.
35102         (Makefile.am): Include warn-on-use.h in netdb.h.
35103
35104 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
35105
35106         build: avoid "make check" failure without .git/ directory
35107         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
35108         there is no .git/ directory.
35109
35110 2010-04-25  Bruno Haible  <bruno@clisp.org>
35111
35112         ptsname: Fix misuse of ttyname_r.
35113         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
35114         of errno.
35115
35116 2010-04-25  Bruno Haible  <bruno@clisp.org>
35117
35118         ttyname_r: Make it work on Solaris 10.
35119         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
35120         if the system function has the POSIX declaration. Test whether the
35121         function fails if the buffer is less than 128 bytes large.
35122         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
35123         system's ttyname_r function. Provide a reasonably large buffer.
35124         * modules/ttyname_r (Depends-on): Add extensions.
35125         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
35126
35127 2010-04-25  Bruno Haible  <bruno@clisp.org>
35128
35129         Use the 'extensions' module for some more functions on Solaris.
35130         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
35131         module.
35132         * doc/posix-functions/ctime_r.texi: Likewise.
35133         * doc/posix-functions/getgrgid_r.texi: Likewise.
35134         * doc/posix-functions/getgrnam_r.texi: Likewise.
35135         * doc/posix-functions/getpwnam_r.texi: Likewise.
35136         * doc/posix-functions/getpwuid_r.texi: Likewise.
35137         * doc/posix-functions/readdir_r.texi: Likewise.
35138         * doc/posix-functions/sigwait.texi: Likewise.
35139         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
35140         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
35141
35142 2010-04-25  Bruno Haible  <bruno@clisp.org>
35143
35144         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35145         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35146         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35147         * lib/ttyname_r.c: Include <limits.h>.
35148         (ttyname_r): Define using the system's ttyname_r function, if it exists
35149         and not on Solaris.
35150         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35151         set.
35152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35153         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35154         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35155         Reported by Simon Josefsson.
35156
35157 2010-04-25  Bruno Haible  <bruno@clisp.org>
35158
35159         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35160         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35161         * doc/posix-functions/ctime_r.texi: Likewise.
35162         * doc/posix-functions/getgrgid_r.texi: Likewise.
35163         * doc/posix-functions/getgrnam_r.texi: Likewise.
35164         * doc/posix-functions/getlogin_r.texi: Likewise.
35165         * doc/posix-functions/getpwnam_r.texi: Likewise.
35166         * doc/posix-functions/getpwuid_r.texi: Likewise.
35167         * doc/posix-functions/readdir_r.texi: Likewise.
35168         * doc/posix-functions/sigwait.texi: Likewise.
35169         * doc/posix-functions/ttyname_r.texi: Likewise.
35170         Reported by Simon Josefsson.
35171
35172 2010-04-25  Bruno Haible  <bruno@clisp.org>
35173
35174         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35175         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35176         also to --create-testdir.
35177         (func_acceptable): Don't consider the status of *-tests modules here.
35178         (func_modules_transitive_closure): Consider it here, before including a
35179         test module.
35180         (func_import, func_create_testdir): Set inc_all_direct_tests,
35181         inc_all_indirect_tests.
35182         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35183         --create-testdir and --create-megatestdir.
35184
35185 2010-04-25  Bruno Haible  <bruno@clisp.org>
35186
35187         gnulib-tool: Add --without-*-tests options.
35188         * gnulib-tool (func_usage): Document the --without-*-tests options.
35189         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35190         excl_unportable_tests): New variables.
35191         Fail if they are specified with --import or --update.
35192         (func_acceptable): Respect the excl_*_tests variables.
35193         (func_import): Set the excl_*_tests variables to empty.
35194
35195 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35196             Bruno Haible  <bruno@clisp.org>
35197
35198         Work around a MacOS X 10.4 bug with openpty.
35199         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35200         * tests/test-openpty.c (main): Close the master side explicitly.
35201
35202 2010-04-25  Bruno Haible  <bruno@clisp.org>
35203
35204         strnlen: Fix a C++ test error on MacOS X and Solaris.
35205         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35206         the function is not declared.
35207         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35208         Simon Josefsson.
35209
35210 2010-04-24  Bruno Haible  <bruno@clisp.org>
35211
35212         Avoid a gcc warning.
35213         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35214         of correct type for %08lx directive.
35215         Reported by Eric Blake.
35216
35217 2010-04-24  Bruno Haible  <bruno@clisp.org>
35218
35219         vasnprintf: Correct errno value in case of out-of-memory.
35220         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35221         or sprintf. Use the errno value from SNPRINTF or sprintf.
35222         Reported by Ian Beckwith <ianb@erislabs.net>.
35223
35224 2010-04-24  Bruno Haible  <bruno@clisp.org>
35225
35226         ansi-c++-opt: Find correct compiler when cross-compiling.
35227         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35228         AC_CHECK_PROGS.
35229         Reported by Simon Josefsson.
35230
35231 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35232
35233         vc-list-files: Add support for subversion
35234         * build-aux/vc-list-files: Use "svn list" to generate the list of
35235         files controlled by subversion.
35236
35237 2010-04-23  Jim Meyering  <meyering@redhat.com>
35238
35239         vc-list-files tests: convert to use init.sh
35240         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35241         path_prepend_.
35242         Use Exit, not exit.
35243         Use skip_ rather than open coding it.
35244         Remove trap set-up and compare definitions.
35245         * tests/test-vc-list-files-git.sh: Likewise.
35246         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35247
35248 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35249
35250         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35251         backup files.
35252
35253 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35254
35255         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35256
35257 2010-04-20  Eric Blake  <eblake@redhat.com>
35258
35259         tests: be robust to ignored SIGPIPE
35260         * tests/test-select-in.sh: Consume all output.
35261         * tests/test-lseek.sh: Check correct exit status, while avoiding
35262         EPIPE.
35263
35264 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35265             Bruno Haible  <bruno@clisp.org>
35266
35267         visibility: Don't use -fvisibility if it leads to a warning.
35268         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35269         yes, don't pretend that visibility works if it leads to a warning.
35270         Reported by Mike Gran <spk121@yahoo.com>.
35271
35272 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35273
35274         * build-aux/bootstrap: Use "git -h" for testing for supported options
35275         instead of "git --help".  The short-form option only shows a summary,
35276         and doesn't layout the full man page.  Grep for the full option name
35277         in the summary, too.
35278
35279 2010-04-19  Bruno Haible  <bruno@clisp.org>
35280
35281         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35282         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35283         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35284         mention of RELOCATABLE_STRIP.
35285         Reported by Sylvain Beucler <beuc@beuc.net>.
35286
35287 2010-04-19  Bruno Haible  <bruno@clisp.org>
35288
35289         * lib/diffseq.h: Fix typo in comment.
35290         Reported by Eric Blake.
35291
35292 2010-04-19  Bruno Haible  <bruno@clisp.org>
35293
35294         ioctl: Move autoconf macro to a .m4 file.
35295         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35296         * modules/ioctl (Files): Add it.
35297         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35298         Reported by Ian Beckwith <ianb@erislabs.net>.
35299
35300 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35301             Bruno Haible  <bruno@clisp.org>
35302
35303         diffseq: Accommodate use-case with abstract arrays.
35304         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35305         is not defined.
35306         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35307         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35308
35309 2010-04-18  Bruno Haible  <bruno@clisp.org>
35310
35311         * doc/posix-headers/stdbool.texi: More precise wording.
35312
35313 2010-04-17  Jim Meyering  <meyering@redhat.com>
35314
35315         maint.mk: use gnu-style indentation in an embedded perl script
35316         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35317         Rename variable: s/two/last_two_bytes/
35318
35319 2010-04-16  Eric Blake  <eblake@redhat.com>
35320
35321         test-stdbool: skip test that fails with Solaris CC
35322         * tests/test-stdbool.c (f): Skip test that causes compilation
35323         error under buggy C++ compiler.
35324         * lib/stdbool.in.h: Document the limitation.
35325         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35326
35327         setenv: allow compilation with C++
35328         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35329         register keyword.
35330
35331         stdint: allow test to pass with C++
35332         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35333
35334         getopt: allow compilation with C++
35335         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35336         struct.
35337         * lib/getopt.c (_getopt_internal_r): Use correct type.
35338         Reported by Dagobert Michelson, via Joel E. Denny.
35339
35340 2010-04-16  Bruno Haible  <bruno@clisp.org>
35341
35342         Override netdb.h always.
35343         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35344         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35345         Reported by Ludovic Courtès <ludo@gnu.org>.
35346
35347 2010-04-15  Bruno Haible  <bruno@clisp.org>
35348
35349         openpty: Fix mistake from 2010-03-21.
35350         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35351         Reported by Simon Josefsson.
35352
35353 2010-04-15  Eric Blake  <eblake@redhat.com>
35354
35355         test-forkpty: fix expected signature
35356         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35357         Reported by Simon Josefsson.
35358
35359 2010-04-15  Jim Meyering  <meyering@redhat.com>
35360
35361         maint.mk: texinfo_suffix_re_: correct the default regexp
35362         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35363
35364         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35365         make it configurable via texinfo_suffix_re_.
35366
35367 2010-04-14  Eric Blake  <eblake@redhat.com>
35368
35369         strtok_r: relax license to LGPLv2+
35370         * modules/strtok_r (License): Relax license.
35371         Reported by Matthias Bolte.
35372
35373 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35374
35375         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35376         version 1.4.4 by default instead of requiring the libgcrypt
35377         version used during build.  This makes it possible to use the
35378         application with older but still binary compatible libgcrypt
35379         versions.
35380
35381 2010-04-13  Eric Blake  <eblake@redhat.com>
35382
35383         getopt-gnu: match recent glibc fixes and posix ruling
35384         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35385         '+' handling, when requesting extensions.
35386         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35387         'W;' handling.
35388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35389         * doc/posix-functions/getopt.texi (getopt): Document this.
35390         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35391         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35392         Likewise.
35393
35394         getopt: merge bug fixes from glibc
35395         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35396         diagnostics.  Honor '+:' correctly.  Reject ';'.
35397
35398         getopt-posix: detect MacOS bug
35399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35400         optind when missing a required argument.
35401         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35402         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35403         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35404         Likewise.
35405
35406         getopt-posix: avoid spurious failure on Solaris
35407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35408         an indicator that setting optind=1 is sufficient for reset.
35409
35410         getopt-posix: avoid spurious failure on FreeBSD
35411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35412         in POSIX mode, since the m4 test uses it.
35413
35414         gnulib-tool: silence warning on BSD sh
35415         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35416
35417 2010-04-13  Jim Meyering  <meyering@redhat.com>
35418
35419         doc: users.txt: GNU patch now uses gnulib
35420         * users.txt: Add patch.
35421
35422 2010-04-12  Jim Meyering  <meyering@redhat.com>
35423
35424         maint.mk: generate more concise timing data for syntax-check rules
35425         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35426         " done" from each line that reports a syntax-check test duration.
35427
35428 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35429
35430         git-version-gen: use "git update-index..." rather than "git status"
35431         * build-aux/git-version-gen: Use git update-index --refresh, not
35432         "git status".  With some versions of git, "git status" would fail
35433         to update the index and result in an unwarranted "-dirty" suffix.
35434
35435 2010-04-11  Jim Meyering  <meyering@redhat.com>
35436
35437         openat: correct formatting (no semantic change)
35438         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35439         Suggested by Bruno Haible.
35440
35441 2010-04-11  Bruno Haible  <bruno@clisp.org>
35442
35443         Stricter declaration checking in testdirs.
35444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35445         If for_tests is true, augment AM_CPPFLAGS to define
35446         GNULIB_STRICT_CHECKING.
35447         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35448         GNULIB_STRICT_CHECKING is defined, verify that the function is
35449         declared.
35450
35451 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35452             Bruno Haible  <bruno@clisp.org>
35453
35454         libunistring: Improve configure output.
35455         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35456         Don't say "consider installing GNU libunistring" when checking again
35457         with libiconv.
35458
35459 2010-04-11  Bruno Haible  <bruno@clisp.org>
35460
35461         libunistring: Correct value of $LTLIBUNISTRING.
35462         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35463         correct the value of $LTLIBUNISTRING.
35464
35465 2010-04-11  Bruno Haible  <bruno@clisp.org>
35466
35467         havelib: Add static libraries to LIBS in the right order.
35468         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35469         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35470
35471 2010-04-11  Bruno Haible  <bruno@clisp.org>
35472
35473         libunistring: Detect libunistring also when it depends on libiconv.
35474         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35475         the second AC_LIB_HAVE_LINKFLAGS invocation.
35476
35477 2010-04-11  James Youngman  <jay@gnu.org>
35478
35479         close-stream: declare local scalars to be "const"
35480         * lib/close-stream.c (close_stream): Make boolean variables const
35481         to document the fact that we set but do not change them.
35482
35483 2010-04-11  Bruno Haible  <bruno@clisp.org>
35484
35485         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35486
35487 2010-04-11  Jim Meyering  <meyering@redhat.com>
35488
35489         maint.mk: don't include dist-check.mk
35490         * top/maint.mk: Remove bogus include directive.
35491
35492         maint.mk: improve empty-line-at-EOF check
35493         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35494         solution, rather than tail+Perl-based one.  The latter would read
35495         a few kilobytes from the end of each file, and did not handle empty
35496         files properly.
35497
35498         maint.mk: print the elapsed time for each syntax-check rule
35499         * top/maint.mk (sc_m_rules_): Save start time in a file.
35500         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35501         (local-check): Interpose the .z rules
35502
35503 2010-04-11  Jim Meyering  <meyering@redhat.com>
35504
35505         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35506         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35507         empty file with one that ends in an empty line.
35508
35509 2010-04-10  Bruno Haible  <bruno@clisp.org>
35510
35511         mkdir: Make it work on mingw64.
35512         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35513         * lib/mkdir.c: Update comment.
35514         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35515
35516 2010-04-10  Bruno Haible  <bruno@clisp.org>
35517
35518         Don't override improved macro from newer autoconf.
35519         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35520         autoconf >= 2.62.
35521         Reported by Joel E. Denny <jdenny@clemson.edu>.
35522
35523 2010-04-10  Jim Meyering  <meyering@redhat.com>
35524
35525         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35526         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35527
35528         maint.mk: correct a diagnostic
35529         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35530         in diagnostic; now use $prohibit.
35531
35532 2010-04-10  Bruno Haible  <address@hidden>
35533
35534         fchownat: Fix a C++ test error on Solaris 8.
35535         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35536         the function does not exist.
35537
35538 2010-04-10  Bruno Haible  <bruno@clisp.org>
35539
35540         vasnprintf: Add more tests.
35541         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35542         (test_function): Test converting an invalid wide string.
35543
35544         vasnprintf: Correct handling of unconvertible wide string arguments.
35545         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35546         VASNPRINTF.
35547         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35548         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35549         smaller than the expected maximum need for the directive. Set errno to
35550         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35551         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35552         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35553         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35554         * modules/vasnprintf (Files): Add m4/printf.m4.
35555         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35556
35557 2010-04-10  Bruno Haible  <bruno@clisp.org>
35558
35559         vasnprintf: Fix crash in %ls directive.
35560         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35561         string is passed as argument to %ls, with no precision and no width.
35562         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35563
35564 2010-04-10  Bruno Haible  <bruno@clisp.org>
35565
35566         vasnprintf: Fix multiple test failures on mingw.
35567         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35568         _snprintf, or snwprintf, not _snwprintf.
35569
35570 2010-04-10  Bruno Haible  <bruno@clisp.org>
35571
35572         write: Fix a C++ test error on mingw.
35573         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35574
35575 2010-04-10  Bruno Haible  <bruno@clisp.org>
35576
35577         vasnprintf test: Reduce code duplication.
35578         * tests/test-vasnprintf.c (test_function): New function, extracted from
35579         test_vasnprintf.
35580         (test_vasnprintf, test_asnprintf): Invoke it.
35581
35582 2010-04-10  Bruno Haible  <bruno@clisp.org>
35583
35584         strnlen: Fix warning in C++ mode on MacOS X.
35585         * lib/string.in.h (strnlen): Use the modern idiom.
35586         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35587         defining strnlen as a macro already in <config.h>.
35588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35589         REPLACE_STRNLEN.
35590         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35591         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35592
35593 2010-04-08  James Youngman  <jay@gnu.org>
35594
35595         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35596         the example.
35597
35598 2010-04-09  Jim Meyering  <meyering@redhat.com>
35599
35600         maint.mk: print better diagnostic when there is no $(_hv_file)
35601         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35602         announce that when $(_hv_file) (aka help-version) does not exist.
35603
35604         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35605         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35606         not try to interpret its random input bytes.  Jarno Rajahalme reported
35607         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35608         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35609         (mktempd_): Likewise, just in case.
35610
35611         ftruncate: add two years to projected module removal date: 2012
35612         * m4/ftruncate.m4: Adjust comments.
35613
35614         ftruncate: mark module as obsolete; even MinGW provides it, now
35615         * modules/ftruncate (Status): Obsolete.
35616         (Notice): Say that.
35617         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35618         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35619
35620 2010-04-08  Bruno Haible  <bruno@clisp.org>
35621
35622         Fix side effects from tests-related modules.
35623         * modules/dprintf-posix (Comment): New section.
35624         * modules/fprintf-posix (Comment): Likewise.
35625         * modules/obstack-printf-posix (Comment): Likewise.
35626         * modules/printf-posix (Comment): Likewise.
35627         * modules/snprintf-posix (Comment): Likewise.
35628         * modules/sprintf-posix (Comment): Likewise.
35629         * modules/vasnprintf-posix (Comment): Likewise.
35630         * modules/vasprintf-posix (Comment): Likewise.
35631         * modules/vdprintf-posix (Comment): Likewise.
35632         * modules/vfprintf-posix (Comment): Likewise.
35633         * modules/vprintf-posix (Comment): Likewise.
35634         * modules/vsnprintf-posix (Comment): Likewise.
35635         * modules/vsprintf-posix (Comment): Likewise.
35636         * modules/xprintf-posix (Comment): Likewise.
35637         * modules/xvasprintf-posix (Comment): Likewise.
35638         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35639         * modules/floorf-tests (Depends-on): Likewise.
35640         * modules/round-tests (Depends-on): Likewise.
35641         * modules/roundf-tests (Depends-on): Likewise.
35642         * modules/trunc-tests (Depends-on): Likewise.
35643         * modules/truncf-tests (Depends-on): Likewise.
35644         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35645         'fprintf-posix' module is not present.
35646         * tests/test-floorf2.c (check): Likewise.
35647         * tests/test-trunc2.c (check): Likewise.
35648         * tests/test-truncf2.c (check): Likewise.
35649         * tests/test-round2.c (equal): Likewise.
35650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35651
35652 2010-04-07  Karl Berry  <karl@gnu.org>
35653
35654         * config/srclist.txt,
35655         * config/srclistvars.sh,
35656         * config/srclist-update: doc fixes.
35657
35658 2010-04-07  Jim Meyering  <meyering@redhat.com>
35659
35660         maint.mk: add a PATH crosschecking syntax-check rule
35661         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35662         Useful if you use a test like the one in help-version (coreutils,
35663         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35664         printed by prog --version.
35665
35666 2010-04-06  Bruno Haible  <bruno@clisp.org>
35667
35668         Fix link error on mingw.
35669         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35670         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35671
35672 2010-04-06  Bruno Haible  <bruno@clisp.org>
35673
35674         Assume rmdir exists.
35675         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35676
35677 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35678
35679         doc: update users.txt
35680         * users.txt: Add gcal.
35681
35682 2010-04-06  Jim Meyering  <meyering@redhat.com>
35683
35684         init.sh: simply unset TMPDIR rather than risking env -i
35685         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35686         although it probably works fine on all Unix-based systems, some
35687         systems (Cygwin?) cannot tolerate a totally cleared environment.
35688         Suggestion from Eric Blake.
35689
35690 2010-04-06  Jim Meyering  <meyering@redhat.com>
35691
35692         init.sh: portability fix: use env's POSIX-specified -i option not -u
35693         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35694         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35695
35696 2010-04-05  Bruno Haible  <bruno@clisp.org>
35697
35698         btowc: Work around Cygwin 1.7.2 bug.
35699         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35700         does not map NUL to 0.
35701         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35702
35703 2010-04-05  Bruno Haible  <bruno@clisp.org>
35704
35705         Make the multithread modules work on Cygwin 1.7.2.
35706         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35707         imported symbols can be declared weak, so that it returns "no" on
35708         Cygwin 1.7.2.
35709
35710 2010-04-05  Bruno Haible  <bruno@clisp.org>
35711
35712         Use the module 'strncat'.
35713         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35714
35715         Tests for module 'strncat'.
35716         * modules/strncat-tests: New file.
35717         * tests/test-strncat.c: New file.
35718
35719         New module 'strncat'.
35720         * lib/string.in.h (strncat): New declaration.
35721         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35722         * m4/strncat.m4: New file, based on m4/memchr.m4.
35723         * modules/strncat: New file.
35724         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35725         is declared.
35726         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35727         REPLACE_STRNCAT.
35728         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35729         REPLACE_STRNCAT.
35730         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35731         module.
35732         * tests/test-string-c++.cc: Check signature of strncat.
35733
35734 2010-04-05  Jim Meyering  <meyering@redhat.com>
35735
35736         xstrtoumax-tests: convert to use init.sh
35737         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35738         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35739         Use Exit, not exit.
35740         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35741
35742         xstrtoimax-tests: convert to use init.sh
35743         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35744         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35745         Use Exit, not exit.
35746         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35747
35748 2010-04-05  Bruno Haible  <bruno@clisp.org>
35749
35750         sys_socket: Avoid #define replacements in C++ mode.
35751         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35752         warning to the function if possible, rather than #defining the symbol
35753         to a dysfunctional alias.
35754
35755 2010-04-05  Bruno Haible  <bruno@clisp.org>
35756
35757         fseeko: Fix C++ test error on mingw.
35758         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35759         gl_FUNC_FSEEKO.
35760         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35761         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35762         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35763         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35764
35765 2010-04-05  Bruno Haible  <bruno@clisp.org>
35766
35767         duplocale: Improve test output.
35768         * tests/test-duplocale.c (main): Print reason for skipped test.
35769
35770 2010-04-05  Bruno Haible  <bruno@clisp.org>
35771
35772         Assume rmdir exists.
35773         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35774         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35775
35776 2010-04-05  Bruno Haible  <bruno@clisp.org>
35777
35778         Fix link error on Solaris 8 with cc.
35779         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35780
35781 2010-04-05  Bruno Haible  <bruno@clisp.org>
35782
35783         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35784         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35785
35786 2010-04-05  Bruno Haible  <bruno@clisp.org>
35787
35788         vasprintf: Update documentation.
35789         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35790
35791 2010-04-05  Bruno Haible  <bruno@clisp.org>
35792
35793         ptsname: Improve test.
35794         * tests/test-ptsname.c (main): Also try the various master names of BSD
35795         systems.
35796
35797 2010-04-05  Bruno Haible  <bruno@clisp.org>
35798
35799         memchr: Avoid a possible C++ test error.
35800         * lib/string.in.h (memchr): Provide declaration if function is missing.
35801         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35802         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35804         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35805
35806 2010-04-05  Bruno Haible  <bruno@clisp.org>
35807
35808         strtok_r: Improve idiom.
35809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35810         AC_LIBOBJ is used.
35811
35812 2010-04-05  Bruno Haible  <bruno@clisp.org>
35813
35814         strdup: Improve idiom.
35815         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35816         AC_LIBOBJ is used.
35817         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35818         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35819         when AC_LIBOBJ is used.
35820
35821 2010-04-05  Bruno Haible  <bruno@clisp.org>
35822
35823         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35824         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35825         don't set REPLACE_MBSINIT to 1.
35826         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35827         don't set REPLACE_MBRTOWC to 1.
35828         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35829         exist, don't set REPLACE_MBSRTOWCS to 1.
35830         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35831         exist, don't set REPLACE_MBSNRTOWCS to 1.
35832         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35833         don't set REPLACE_WCRTOMB to 1.
35834         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35835         exist, don't set REPLACE_WCSRTOMBS to 1.
35836         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35837         exist, don't set REPLACE_WCSNRTOMBS to 1.
35838
35839 2010-04-05  Bruno Haible  <bruno@clisp.org>
35840
35841         ldexpl: Improve idiom.
35842         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35843         make sure to set HAVE_DECL_LDEXPL to 0.
35844
35845 2010-04-05  Jim Meyering  <meyering@redhat.com>
35846
35847         xstrtol-tests: convert to use init.sh
35848         * modules/xstrtol-tests (Files): Add tests/init.sh.
35849         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35850         Use Exit, not exit.
35851         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35852
35853         atexit-tests: convert to use init.sh
35854         * modules/atexit-tests (Files): Add tests/init.sh.
35855         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35856         Use Exit, not exit.
35857         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35858
35859         init.sh: fix typo
35860         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35861
35862         init.sh: make it easier for a test script to write to the tty, ...
35863         when using automake's parallel-tests mode.
35864         * tests/init.sh (stderr_fileno_): Define overridable variable.
35865         (warn_): New function, to use it.
35866         (fail_, skip_, framework_failure_): Use warn_.
35867
35868 2010-04-04  Bruno Haible  <bruno@clisp.org>
35869
35870         btowc: Avoid warning.
35871         * lib/btowc.c: Include <stdlib.h>.
35872         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35873
35874 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35875             Bruno Haible  <bruno@clisp.org>
35876
35877         wchar: Port to NetBSD 1.5.
35878         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35879         * lib/wctype.in.h (WEOF): Likewise.
35880
35881 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35882             Bruno Haible  <bruno@clisp.org>
35883
35884         Port extended stdio to NetBSD 1.5.
35885         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35886         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35887         older.
35888
35889 2010-04-04  Bruno Haible  <bruno@clisp.org>
35890
35891         string: Remove unused substitution.
35892         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35893         HAVE_DECL_STRERROR.
35894         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35895
35896 2010-04-04  Bruno Haible  <bruno@clisp.org>
35897
35898         strtod: Avoid a possible C++ test error.
35899         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35900         set REPLACE_STRTOD.
35901
35902 2010-04-04  Bruno Haible  <bruno@clisp.org>
35903
35904         strerror: Update documentation.
35905         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35906
35907 2010-04-04  Bruno Haible  <bruno@clisp.org>
35908
35909         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35910         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35911         _GL_CXXALIAS_SYS_CAST.
35912
35913 2010-04-04  Bruno Haible  <bruno@clisp.org>
35914
35915         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35916         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35917         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35918         REPLACE_FREXPL to 1.
35919         * doc/posix-functions/frexpl.texi: Update documentation.
35920
35921 2010-04-04  Bruno Haible  <bruno@clisp.org>
35922
35923         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35924         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35925
35926 2010-04-04  Bruno Haible  <bruno@clisp.org>
35927
35928         Implement nanosleep for native Windows.
35929         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35930
35931 2010-04-04  Bruno Haible  <bruno@clisp.org>
35932
35933         math: Fix some C++ test errors on Solaris 8.
35934         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35935
35936 2010-04-04  Bruno Haible  <bruno@clisp.org>
35937
35938         math: Fix some C++ test errors on Cygwin.
35939         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35940         truncl): Provide declaration if the system does not have it.
35941         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35942         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35943         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35944         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35945         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35946         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35947         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35948         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35949         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35950         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35951         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35952         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35953         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35954         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35955         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35956         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35958         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35959         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35960         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35961         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35962         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35963
35964 2010-04-04  Bruno Haible  <bruno@clisp.org>
35965
35966         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35967         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35968         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35969         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35970         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35971         * m4/isinf.m4 (gl_ISINF): Likewise.
35972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35973
35974 2010-04-04  Bruno Haible  <bruno@clisp.org>
35975
35976         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35977         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35978
35979 2010-04-04  Bruno Haible  <bruno@clisp.org>
35980
35981         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35982         * modules/tmpfile (configure.ac): Update.
35983
35984         tmpfile: Fix C++ test error on mingw.
35985         * lib/stdio.in.h (tmpfile): New declaration.
35986         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35987         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35988         * modules/tmpfile (Depends-on): Add stdio.
35989         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35990         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35991         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35992         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35993         REPLACE_TMPFILE.
35994         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35995
35996 2010-04-04  Bruno Haible  <bruno@clisp.org>
35997
35998         ioctl: Fix C++ test error on mingw.
35999         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
36000         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
36001         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
36002
36003 2010-04-03  Bruno Haible  <bruno@clisp.org>
36004
36005         wcwidth: Fix C++ test error on mingw.
36006         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
36007         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
36008         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
36009
36010 2010-04-03  Bruno Haible  <bruno@clisp.org>
36011
36012         nanosleep: Fix C++ test error on mingw.
36013         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
36014         * lib/time.in.h (nanosleep): Use modern idiom.
36015         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
36016         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
36017         REPLACE_NANOSLEEP to 1.
36018         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
36019         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
36020
36021 2010-04-03  Bruno Haible  <bruno@clisp.org>
36022
36023         strptime: Fix C++ test error on mingw.
36024         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
36025         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
36026         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
36027         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
36028         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
36029         not REPLACE_STRPTIME.
36030         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
36031         REPLACE_STRPTIME.
36032
36033 2010-04-03  Bruno Haible  <bruno@clisp.org>
36034
36035         timegm: Fix C++ test error on mingw.
36036         * lib/time.in.h (timegm): Use modern idiom.
36037         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
36038         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
36039         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
36040         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
36041
36042 2010-04-03  Bruno Haible  <bruno@clisp.org>
36043
36044         timegm: Assume declaration if function exists.
36045         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
36046         if it exists. Don't clobber ac_cv_func_timegm.
36047
36048 2010-04-03  Bruno Haible  <bruno@clisp.org>
36049
36050         time_r: Fix C++ test error on mingw.
36051         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
36052         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
36053         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
36054         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
36055         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
36056
36057 2010-04-03  Bruno Haible  <bruno@clisp.org>
36058
36059         time_r: Minor updates.
36060         * modules/time_r (Description): Mention the provided functions.
36061         * lib/time_r.c: Don't include <string.h>.
36062         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
36063         * doc/posix-functions/localtime_r.texi: Likewise.
36064
36065 2010-04-03  Bruno Haible  <bruno@clisp.org>
36066
36067         time: Fix regression introduced on 2010-03-08.
36068         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
36069         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
36070
36071 2010-04-03  Jim Meyering  <meyering@redhat.com>
36072
36073         maint.mk: don't silently disable project-specific syntax-check rules
36074         * top/maint.mk (_prohibit_regexp): Define, to help people realize
36075         that they need to convert their project-specific syntax-check rules
36076         to use the new _sc_search_regexp.
36077
36078 2010-04-03  Bruno Haible  <bruno@clisp.org>
36079
36080         fchdir: Fix regression introduced on 2010-03-08.
36081         * lib/unistd.in.h (fchdir): Fix declaration.
36082         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
36083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
36084         REPLACE_FCHDIR.
36085         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
36086         REPLACE_FCHDIR.
36087
36088 2010-04-03  Bruno Haible  <bruno@clisp.org>
36089
36090         getpagesize: Fix C++ test error on mingw.
36091         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
36092         system does not declare the function.
36093         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
36094         declared.
36095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36096         HAVE_DECL_GETPAGESIZE.
36097         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
36098
36099 2010-04-03  Bruno Haible  <bruno@clisp.org>
36100
36101         stdio: Make C++ tests work on mingw.
36102         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
36103         does not declare the function.
36104
36105 2010-04-03  Bruno Haible  <bruno@clisp.org>
36106
36107         ftello: Fix C++ test error on mingw.
36108         * lib/stdio.in.h (ftello): Use modern idiom.
36109         * lib/ftello.c (ftello): Renamed from rpl_ftello.
36110         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
36111         is missing and that it needs to be replaced.
36112         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
36113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
36114         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
36115
36116 2010-04-03  Bruno Haible  <bruno@clisp.org>
36117
36118         fseeko: Fix C++ test error on mingw.
36119         * lib/stdio.in.h (fseeko): Use modern idiom.
36120         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
36121         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
36122         is missing and that it needs to be replaced.
36123         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
36124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
36125         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
36126
36127 2010-04-03  Bruno Haible  <bruno@clisp.org>
36128
36129         mkstemp: Fix C++ test error on mingw.
36130         * lib/stdlib.in.h (mkstemp): Use modern idiom.
36131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
36132         function is missing and that it needs to be replaced.
36133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
36134         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
36135
36136 2010-04-03  Bruno Haible  <bruno@clisp.org>
36137
36138         stpncpy: Fix C++ test error on mingw.
36139         * lib/string.in.h (stpncpy): Use modern idiom.
36140         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
36141         function is missing and that it needs to be replaced.
36142         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36143         REPLACE_STPNCPY.
36144         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36145
36146 2010-04-03  Bruno Haible  <bruno@clisp.org>
36147
36148         sys_stat: Fix C++ test error on mingw.
36149         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36150         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36151
36152 2010-04-03  Bruno Haible  <bruno@clisp.org>
36153
36154         pty: Update doc.
36155         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36156
36157 2010-04-03  Bruno Haible  <bruno@clisp.org>
36158
36159         unistd: Fix C++ test error on mingw.
36160         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36161
36162 2010-04-03  Bruno Haible  <bruno@clisp.org>
36163
36164         Update doc regarding mingw.
36165         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36166         * doc/glibc-functions/login_tty.texi: Likewise.
36167         * doc/glibc-functions/forkpty.texi: Likewise.
36168
36169 2010-04-03  Bruno Haible  <bruno@clisp.org>
36170
36171         stdlib: Avoid compilation failure of c-strtold on mingw.
36172         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36173
36174 2010-04-03  Bruno Haible  <bruno@clisp.org>
36175
36176         locale: Make C++ tests work on Cygwin and mingw.
36177         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36178         cannot provide the function.
36179         Reported by Simon Josefsson.
36180
36181 2010-04-03  Bruno Haible  <bruno@clisp.org>
36182
36183         localename: Port to MacOS X 10.6.
36184         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36185         memory layout of the locales in MacOS X 10.6 as well.
36186         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36187
36188 2010-04-02  Bruno Haible  <bruno@clisp.org>
36189
36190         gnulib-tool: Ensure that long-running tests are executed last.
36191         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36192         running tests after the one for the other tests.
36193
36194 2010-04-02  Bruno Haible  <bruno@clisp.org>
36195
36196         gnulib-tool: Ensure the tests in the main directory are executed first.
36197         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36198         start with the current directory.
36199
36200 2010-04-02  Bruno Haible  <bruno@clisp.org>
36201
36202         Tests for module 'havelib', moved here from GNU gettext.
36203         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36204         modifications.
36205         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36206         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36207         with modifications.
36208         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36209         modifications.
36210         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36211         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36212         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36213         with modifications.
36214         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36215         with modifications.
36216         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36217         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36218         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36219         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36220         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36221         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36222         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36223         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36224         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36225         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36226         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36227         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36228         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36229         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36230         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36231         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36232         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36233         with modifications.
36234         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36235         with modifications.
36236         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36237         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36238         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36239         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36240         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36241         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36242         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36243         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36244         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36245         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36246         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36247         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36248         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36249         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36250         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36251         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36252         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36253         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36254         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36255         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36256         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36257         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36258         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36259         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36260         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36261         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36262         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36263         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36264         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36265         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36266         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36267         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36268         * tests/havelib/rpathx/rpathx.c: New file, from
36269         gettext/autoconf-lib-link.
36270         * tests/havelib/rpathx/Makefile.am: New file, from
36271         gettext/autoconf-lib-link.
36272         * tests/havelib/rpathx/configure.ac: New file, from
36273         gettext/autoconf-lib-link with modifications.
36274         * tests/havelib/rpathy/rpathy.c: New file, from
36275         gettext/autoconf-lib-link.
36276         * tests/havelib/rpathy/Makefile.am: New file, from
36277         gettext/autoconf-lib-link.
36278         * tests/havelib/rpathy/configure.ac: New file, from
36279         gettext/autoconf-lib-link with modifications.
36280         * tests/havelib/rpathz/rpathz.c: New file, from
36281         gettext/autoconf-lib-link.
36282         * tests/havelib/rpathz/Makefile.am: New file, from
36283         gettext/autoconf-lib-link.
36284         * tests/havelib/rpathz/configure.ac: New file, from
36285         gettext/autoconf-lib-link with modifications.
36286         * tests/havelib/rpathlx/usex.c: New file, from
36287         gettext/autoconf-lib-link.
36288         * tests/havelib/rpathlx/Makefile.am: New file, from
36289         gettext/autoconf-lib-link.
36290         * tests/havelib/rpathlx/configure.ac: New file, from
36291         gettext/autoconf-lib-link with modifications.
36292         * tests/havelib/rpathly/usey.c: New file, from
36293         gettext/autoconf-lib-link.
36294         * tests/havelib/rpathly/Makefile.am: New file, from
36295         gettext/autoconf-lib-link.
36296         * tests/havelib/rpathly/configure.ac: New file, from
36297         gettext/autoconf-lib-link with modifications.
36298         * tests/havelib/rpathlz/usez.c: New file, from
36299         gettext/autoconf-lib-link.
36300         * tests/havelib/rpathlz/Makefile.am: New file, from
36301         gettext/autoconf-lib-link.
36302         * tests/havelib/rpathlz/configure.ac: New file, from
36303         gettext/autoconf-lib-link with modifications.
36304         * tests/havelib/rpathlyx/usey.c: New file, from
36305         gettext/autoconf-lib-link.
36306         * tests/havelib/rpathlyx/Makefile.am: New file, from
36307         gettext/autoconf-lib-link.
36308         * tests/havelib/rpathlyx/configure.ac: New file, from
36309         gettext/autoconf-lib-link with modifications.
36310         * tests/havelib/rpathlzyx/usez.c: New file, from
36311         gettext/autoconf-lib-link.
36312         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36313         gettext/autoconf-lib-link.
36314         * tests/havelib/rpathlzyx/configure.ac: New file, from
36315         gettext/autoconf-lib-link with modifications.
36316         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36317         with modifications.
36318
36319 2010-04-02  Bruno Haible  <bruno@clisp.org>
36320
36321         gnulib-tool: Create distributed built sources also for the tests.
36322         * gnulib-tool (func_create_testdir): Also generate distributed built
36323         sources in the tests directory.
36324
36325 2010-04-02  Bruno Haible  <bruno@clisp.org>
36326
36327         gnulib-tool: Obey user's environment variables.
36328         * gnulib-tool (func_create_testdir): When creating built sources,
36329         respect the environment variables for autoconf, automake, etc. given by
36330         the user.
36331
36332 2010-04-02  Bruno Haible  <bruno@clisp.org>
36333
36334         gnulib-tool: Provide the value of --m4-base to modules.
36335         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36336         of gl_m4_base.
36337
36338 2010-04-02  Eric Blake  <eblake@redhat.com>
36339
36340         maint.mk: fix some fallout
36341         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36342         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36343
36344 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36345
36346         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36347         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36348         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36349         (sc_cast_of_x_alloc_return_value): Likewise.
36350         (sc_cast_of_alloca_return_value): Likewise.
36351         (sc_space_tab): Likewise.
36352         (sc_prohibit_atoi_atof): Likewise.
36353         (sc_prohibit_magic_number_exit): Likewise.
36354         (sc_error_exit_success): Likewise.
36355         (sc_file_system): Likewise.
36356         (sc_prohibit_have_config_h): Likewise.
36357         (sc_require_config_h): Likewise.
36358         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36359         (sc_obsolete_symbols): Likewise.
36360         (sc_changelog): Likewise.
36361         (sc_program_name): Likewise.
36362         (sc_the_the): Likewise.
36363         (sc_trailing_blank): Likewise.
36364         (sc_two_space_separator_in_usage): Likewise.
36365         (sc_useless_cpp_parens): Likewise.
36366         (sc_GPL_version): Likewise.
36367         (sc_GFDL_version): Likewise.
36368         (sc_texinfo_acronym): Likewise.
36369         (sc_prohibit_cvs_keyword): Likewise.
36370         (sc_prohibit_stat_st_blocks): Likewise.
36371         (sc_prohibit_S_IS_definition): Likewise.
36372         (sc_redundant_const): Likewise.
36373         (sc_makefile_TAB_only_indentation): Likewise.
36374         (sc_m4_quote_check): Likewise.
36375         (sc_makefile_path_separator_check): Likewise.
36376         (sc_copyright_check): Likewise.
36377         (sc_Wundef_boolean): Likewise.
36378         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36379
36380         maint.mk: match 0 or more whitespace-before-function-call '('
36381         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36382         that have zero or two-and-more spaces between the function name
36383         and the open parenthesis.
36384         (sc_error_message_warn_fatal): Likewise.
36385         (sc_error_message_uppercase): Likewise.
36386         (sc_error_message_period): Likewise.
36387
36388 2010-03-31  Eric Blake  <eblake@redhat.com>
36389
36390         maint.mk: check for [ as well as test
36391         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36392         Based on a libvirt report by Matthias Bolte.
36393
36394         gnumakefile: don't squelch _version output
36395         * top/GNUmakefile (_version): Create one-shot dependency rather
36396         than using $(shell) when version must be regenerated.
36397         (_autoreconf): Run verbosely, by default.
36398
36399         sys_time: avoid compiler warnings
36400         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36401         unconditional, fixing regression from 2010-03-29.
36402         Reported by Simon Josefsson.
36403
36404 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36405
36406         maint.mk: s/_header_without_use/_sc_header_without_use/
36407         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36408         (sc_prohibit_assert_without_use): Use the new name.
36409         (sc_prohibit_close_stream_without_use): Likewise.
36410         (sc_prohibit_getopt_without_use): Likewise.
36411         (sc_prohibit_quotearg_without_use): Likewise.
36412         (sc_prohibit_quote_without_use): Likewise.
36413         (sc_prohibit_long_options_without_use): Likewise.
36414         (sc_prohibit_inttostr_without_use): Likewise.
36415         (sc_prohibit_ignore_value_without_use): Likewise.
36416         (sc_prohibit_error_without_use): Likewise.
36417         (sc_prohibit_xalloc_without_use): Likewise.
36418         (sc_prohibit_hash_without_use): Likewise.
36419         (sc_prohibit_hash_pjw_without_use): Likewise.
36420         (sc_prohibit_safe_read_without_use): Likewise.
36421         (sc_prohibit_argmatch_without_use): Likewise.
36422         (sc_prohibit_canonicalize_without_use): Likewise.
36423         (sc_prohibit_root_dev_ino_without_use): Likewise.
36424         (sc_prohibit_openat_without_use): Likewise.
36425         (sc_prohibit_c_ctype_without_use): Likewise.
36426         (sc_prohibit_signal_without_use): Likewise.
36427         (sc_prohibit_intprops_without_use): Likewise.
36428
36429 2010-03-30  Eric Blake  <eblake@redhat.com>
36430
36431         maint: improve module indicators
36432         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36433         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36434         columns, and avoid extra macro expansion.
36435
36436         fdopendir: work around FreeBSD bug
36437         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36438         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36439         * modules/dirent (Makefile.am): Substitute it.
36440         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36441         declaration.
36442         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36443         fix.
36444         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36445
36446 2010-03-29  Bruno Haible  <bruno@clisp.org>
36447
36448         Emit #pragma system_header after the inclusion guard, not before.
36449         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36450         guard that spans the entire file, not before. This enables an
36451         optimization in GCC's preprocessor.
36452         * lib/ctype.in.h: Likewise.
36453         * lib/dirent.in.h: Likewise.
36454         * lib/errno.in.h: Likewise.
36455         * lib/float.in.h: Likewise.
36456         * lib/getopt.in.h: Likewise.
36457         * lib/iconv.in.h: Likewise.
36458         * lib/langinfo.in.h: Likewise.
36459         * lib/locale.in.h: Likewise.
36460         * lib/math.in.h: Likewise.
36461         * lib/netdb.in.h: Likewise.
36462         * lib/netinet_in.in.h: Likewise.
36463         * lib/pty.in.h: Likewise.
36464         * lib/sched.in.h: Likewise.
36465         * lib/se-selinux.in.h: Likewise.
36466         * lib/search.in.h: Likewise.
36467         * lib/spawn.in.h: Likewise.
36468         * lib/stdarg.in.h: Likewise.
36469         * lib/stdint.in.h: Likewise.
36470         * lib/string.in.h: Likewise.
36471         * lib/strings.in.h: Likewise.
36472         * lib/sys_file.in.h: Likewise.
36473         * lib/sys_ioctl.in.h: Likewise.
36474         * lib/sys_time.in.h: Likewise.
36475         * lib/sys_times.in.h: Likewise.
36476         * lib/sys_utsname.in.h: Likewise.
36477         * lib/sys_wait.in.h: Likewise.
36478         * lib/sysexits.in.h: Likewise.
36479         * lib/wctype.in.h: Likewise.
36480
36481 2010-03-28  James Youngman  <jay@gnu.org>
36482
36483         save-cwd: don't leak a file descriptor when the caller execs.
36484         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36485         saved file descriptor.
36486         * modules/save-cwd (Depends-on): Depend on cloexec.
36487
36488 2010-03-29  Bruno Haible  <bruno@clisp.org>
36489
36490         Remove vestiges of fts-lgpl module.
36491         * lib/fts_.h: Assume GNULIB_FTS is 1.
36492         * lib/fts.c: Likewise.
36493         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36494
36495 2010-03-28  Bruno Haible  <bruno@clisp.org>
36496
36497         Fix definition of tests witness macro.
36498         * gnulib-tool (func_import): Fix definition of witness macro.
36499
36500 2010-03-28  Bruno Haible  <bruno@clisp.org>
36501
36502         Fix ioctl's protoype on glibc systems.
36503         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36504         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36505         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36506         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36507         signature. If not, arrange to replace the ioctl function.
36508         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36509         REPLACE_IOCTL.
36510         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36511         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36512         Reported by Ludovic Courtès <ludo@gnu.org>.
36513
36514 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36515
36516         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36517         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36518         made it so grep -r --include=GLOB* ... did not work.
36519
36520 2010-03-26  Jim Meyering  <meyering@redhat.com>
36521             Eric Blake  <eblake@redhat.com>
36522
36523         maint.mk: prohibit use of test's -o and -a operators
36524         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36525
36526 2010-03-28  Bruno Haible  <bruno@clisp.org>
36527
36528         Remove unused GNULIB_XYZ macro definitions.
36529         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36530         invocation.
36531
36532 2010-03-28  Bruno Haible  <bruno@clisp.org>
36533
36534         Mark privileged tests modules.
36535         * modules/idpriv-drop-tests (Status): New section.
36536         * modules/idpriv-droptemp-tests (Status): New section.
36537
36538 2010-03-28  Bruno Haible  <bruno@clisp.org>
36539
36540         Split C++ tests into separate tests modules.
36541         * modules/dirent-c++-tests: New file, extracted from
36542         modules/dirent-tests.
36543         * modules/dirent-tests: Depend on it.
36544         * modules/fcntl-h-c++-tests: New file, extracted from
36545         modules/fcntl-h-tests.
36546         * modules/fcntl-h-tests: Depend on it.
36547         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36548         * modules/glob-tests: Depend on it.
36549         * modules/iconv-h-c++-tests: New file, extracted from
36550         modules/iconv-h-tests.
36551         * modules/iconv-h-tests: Depend on it.
36552         * modules/langinfo-c++-tests: New file, extracted from
36553         modules/langinfo-tests.
36554         * modules/langinfo-tests: Depend on it.
36555         * modules/locale-c++-tests: New file, extracted from
36556         modules/locale-tests.
36557         * modules/locale-tests: Depend on it.
36558         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36559         * modules/math-tests: Depend on it.
36560         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36561         * modules/pty-tests: Depend on it.
36562         * modules/search-c++-tests: New file, extracted from
36563         modules/search-tests.
36564         * modules/search-tests: Depend on it.
36565         * modules/signal-c++-tests: New file, extracted from
36566         modules/signal-tests.
36567         * modules/signal-tests: Depend on it.
36568         * modules/spawn-c++-tests: New file, extracted from
36569         modules/spawn-tests.
36570         * modules/spawn-tests: Depend on it.
36571         * modules/stdio-c++-tests: New file, extracted from
36572         modules/stdio-tests.
36573         * modules/stdio-tests: Depend on it.
36574         * modules/stdlib-c++-tests: New file, extracted from
36575         modules/stdlib-tests.
36576         * modules/stdlib-tests: Depend on it.
36577         * modules/string-c++-tests: New file, extracted from
36578         modules/string-tests.
36579         * modules/string-tests: Depend on it.
36580         * modules/sys_ioctl-c++-tests: New file, extracted from
36581         modules/sys_ioctl-tests.
36582         * modules/sys_ioctl-tests: Depend on it.
36583         * modules/sys_select-c++-tests: New file, extracted from
36584         modules/sys_select-tests.
36585         * modules/sys_select-tests: Depend on it.
36586         * modules/sys_socket-c++-tests: New file, extracted from
36587         modules/sys_socket-tests.
36588         * modules/sys_socket-tests: Depend on it.
36589         * modules/sys_stat-c++-tests: New file, extracted from
36590         modules/sys_stat-tests.
36591         * modules/sys_stat-tests: Depend on it.
36592         * modules/sys_time-c++-tests: New file, extracted from
36593         modules/sys_time-tests.
36594         * modules/sys_time-tests: Depend on it.
36595         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36596         * modules/time-tests: Depend on it.
36597         * modules/unistd-c++-tests: New file, extracted from
36598         modules/unistd-tests.
36599         * modules/unistd-tests: Depend on it.
36600         * modules/wchar-c++-tests: New file, extracted from
36601         modules/wchar-tests.
36602         * modules/wchar-tests: Depend on it.
36603         * modules/wctype-c++-tests: New file, extracted from
36604         modules/wctype-tests.
36605         * modules/wctype-tests: Depend on it.
36606         Reported by Simon Josefsson.
36607
36608 2010-03-28  Bruno Haible  <bruno@clisp.org>
36609
36610         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36611         * gnulib-tool (func_exists_module): New function, extracted from
36612         func_verify_module.
36613         (func_verify_module): Use it.
36614         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36615         'foo' only if 'foo' exists.
36616         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36617         module.
36618
36619 2010-03-28  Bruno Haible  <bruno@clisp.org>
36620
36621         gnulib-tool: Add support for special categories of tests.
36622         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36623         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36624         (func_usage): Document them.
36625         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36626         inc_unportable_tests, inc_all_tests): New variables.
36627         (func_acceptable): Consider these variables.
36628         (func_modules_transitive_closure): Make it work when the 'Status' field
36629         consists of multiple words.
36630         (func_import): Store and restore the values of inc_cxx_tests,
36631         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36632         inc_all_tests in gnulib-comp.m4.
36633         (func_create_testdir): Set inc_all_tests to true.
36634         * doc/gnulib.texi (Extra tests modules): New section.
36635         Suggested by Jim Meyering.
36636
36637 2010-03-28  Bruno Haible  <bruno@clisp.org>
36638
36639         ansi-c++-opt: Allow turning off the C++ build by default.
36640         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36641         gl_CXX_CHOICE_DEFAULT_NO is defined.
36642         Requested by Eric Blake.
36643
36644 2010-03-28  Bruno Haible  <bruno@clisp.org>
36645
36646         unistd: Avoid #define replacements in C++ mode.
36647         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36648         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36649         setsockopt, shutdown, select): In C++, attach a warning to the function
36650         if possible, rather than #defining the symbol to a dysfunctional alias.
36651         Reported by John W. Eaton <jwe@gnu.org>.
36652
36653 2010-03-28  Bruno Haible  <bruno@clisp.org>
36654
36655         Fix link errors on mingw.
36656         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36657         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36658         $(LIBSOCKET).
36659         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36660         $(LIBSOCKET).
36661
36662 2010-03-28  Bruno Haible  <bruno@clisp.org>
36663             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36664
36665         lib-ignore: Determine different options for different compilers.
36666         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36667         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36668         Add comments.
36669         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36670         * NEWS: Mention the change.
36671
36672 2010-03-27  Bruno Haible  <bruno@clisp.org>
36673
36674         Remove unused GNULIB_XYZ macro definitions.
36675         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36676         * modules/fseek (configure.ac): Likewise.
36677         * modules/ioctl (configure.ac): Likewise.
36678         * modules/open (configure.ac): Likewise.
36679         * modules/stdlib-safer (configure.ac): Likewise.
36680
36681 2010-03-27  Bruno Haible  <bruno@clisp.org>
36682
36683         Add a remark about certain modules.
36684         * modules/malloc (Comment): New section.
36685         * modules/realloc (Comment): Likewise.
36686         * modules/sigpipe (Comment): Likewise.
36687
36688 2010-03-27  Bruno Haible  <bruno@clisp.org>
36689
36690         Resolve conflict between the two kinds of module indicators.
36691         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36692         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36693         * modules/canonicalize (configure.ac): Invoke
36694         gl_MODULE_INDICATOR_FOR_TESTS.
36695         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36696         GNULIB_XYZ.
36697         * tests/test-dirent-c++.cc: Likewise.
36698         * tests/test-dirent-safer.c: Likewise.
36699         * tests/test-dup2.c: Likewise.
36700         * tests/test-fchdir.c: Likewise.
36701         * tests/test-fcntl-h-c++.cc: Likewise.
36702         * tests/test-getopt.c: Likewise.
36703         * tests/test-getopt.h: Likewise.
36704         * tests/test-langinfo-c++.cc: Likewise.
36705         * tests/test-locale-c++.cc: Likewise.
36706         * tests/test-math-c++.cc: Likewise.
36707         * tests/test-pty-c++.cc: Likewise.
36708         * tests/test-search-c++.cc: Likewise.
36709         * tests/test-signal-c++.cc: Likewise.
36710         * tests/test-spawn-c++.cc: Likewise.
36711         * tests/test-stdio-c++.cc: Likewise.
36712         * tests/test-stdlib-c++.cc: Likewise.
36713         * tests/test-string-c++.cc: Likewise.
36714         * tests/test-sys_ioctl-c++.cc: Likewise.
36715         * tests/test-sys_select-c++.cc: Likewise.
36716         * tests/test-sys_socket-c++.cc: Likewise.
36717         * tests/test-sys_stat-c++.cc: Likewise.
36718         * tests/test-sys_time-c++.cc: Likewise.
36719         * tests/test-time-c++.cc: Likewise.
36720         * tests/test-unistd-c++.cc: Likewise.
36721         * tests/test-wchar-c++.cc: Likewise.
36722         * tests/uninorm/test-u8-nfc.c: Likewise.
36723         * tests/uninorm/test-u8-nfd.c: Likewise.
36724         * tests/uninorm/test-u8-nfkc.c: Likewise.
36725         * tests/uninorm/test-u8-nfkd.c: Likewise.
36726         * tests/uninorm/test-u16-nfc.c: Likewise.
36727         * tests/uninorm/test-u16-nfd.c: Likewise.
36728         * tests/uninorm/test-u16-nfkc.c: Likewise.
36729         * tests/uninorm/test-u16-nfkd.c: Likewise.
36730         * tests/uninorm/test-u32-nfc.c: Likewise.
36731         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36732         * tests/uninorm/test-u32-nfd.c: Likewise.
36733         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36734         * tests/uninorm/test-u32-nfkc.c: Likewise.
36735         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36736         * tests/uninorm/test-u32-nfkd.c: Likewise.
36737         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36738         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36739
36740 2010-03-27  Bruno Haible  <bruno@clisp.org>
36741
36742         Distinguish two kinds of module indicators.
36743         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36744         gl_MODULE_INDICATOR.
36745         (gl_MODULE_INDICATOR): New macro.
36746         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36747         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36748         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36749         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36750         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36751         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36752         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36753         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36754         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36755         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36756         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36757         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36760         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36761         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36762         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36763         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36764         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36765         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36766         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36767         * modules/cloexec (configure.ac): Likewise.
36768         * modules/getopt-gnu (configure.ac): Likewise.
36769         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36770         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36771         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36772         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36773
36774 2010-03-27  Bruno Haible  <bruno@clisp.org>
36775
36776         New module description field 'Comment'.
36777         * gnulib-tool: New option --extract-comment.
36778         (func_usage): Document it.
36779         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36780         (func_get_comment): New function.
36781         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36782
36783 2010-03-27  Bruno Haible  <bruno@clisp.org>
36784
36785         Addendum to 2010-02-07 commit.
36786         * gnulib-tool (func_usage): Document --extract-applicability option.
36787
36788 2010-03-27  Bruno Haible  <bruno@clisp.org>
36789
36790         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36791         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36792         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36793         rather than link errors.
36794
36795 2010-03-27  Bruno Haible  <bruno@clisp.org>
36796
36797         Avoid side effects from tests-related modules on the compilation of lib.
36798         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36799         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36800         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36801         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36802         macro.
36803         (func_import): Define a witness macro. Assign it a value that depends
36804         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36805         tests-related modules.
36806         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36807         Reported by Jim Meyering.
36808
36809 2010-03-27  Bruno Haible  <bruno@clisp.org>
36810
36811         Factorize common .m4 code.
36812         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36813         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36814         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36815         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36816         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36817         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36818         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36819         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36820         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36821         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36822         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36823         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36824         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36825         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36826         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36827         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36828         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36829         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36831         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36832         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36833         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36834         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36835         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36836         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36837         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36838         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36839         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36840         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36841         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36842         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36843         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36844
36845 2010-03-27  Bruno Haible  <bruno@clisp.org>
36846
36847         Fix a compilation error on Cygwin with g++ >= 4.3.
36848         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36849         if it is undefined or if we alias it to chmod.
36850         (lstat): Don't warn about the use of this function if it is undefined
36851         or if we alias it to stat.
36852         Reported by Simon Josefsson.
36853
36854 2010-03-27  Bruno Haible  <bruno@clisp.org>
36855
36856         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36857         * modules/getlogin (configure.ac): Update.
36858
36859         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36860         * modules/getlogin_r (configure.ac): Update.
36861
36862         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36863         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36864         * modules/inet_ntop (configure.ac): Update.
36865
36866         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36867         * modules/inet_pton (configure.ac): Update.
36868
36869         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36870         * modules/mbslen (configure.ac): Update.
36871
36872         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36873         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36874         * modules/forkpty (configure.ac): Update.
36875         * modules/openpty (configure.ac): Update.
36876
36877 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36878
36879         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36880         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36881
36882 2010-03-25  Eric Blake  <eblake@redhat.com>
36883
36884         maint: use pragma consistently across replacement headers
36885         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36886         * lib/dirent.in.h (system_header): Likewise.
36887         * lib/errno.in.h (system_header): Likewise.
36888         * lib/float.in.h (system_header): Likewise.
36889         * lib/getopt.in.h (system_header): Likewise.
36890         * lib/iconv.in.h (system_header): Likewise.
36891         * lib/inttypes.in.h (system_header): Likewise.
36892         * lib/langinfo.in.h (system_header): Likewise.
36893         * lib/locale.in.h (system_header): Likewise.
36894         * lib/math.in.h (system_header): Likewise.
36895         * lib/netdb.in.h (system_header): Likewise.
36896         * lib/netinet_in.in.h (system_header): Likewise.
36897         * lib/pty.in.h (system_header): Likewise.
36898         * lib/sched.in.h (system_header): Likewise.
36899         * lib/se-selinux.in.h (system_header): Likewise.
36900         * lib/search.in.h (system_header): Likewise.
36901         * lib/spawn.in.h (system_header): Likewise.
36902         * lib/stdarg.in.h (system_header): Likewise.
36903         * lib/stdint.in.h (system_header): Likewise.
36904         * lib/string.in.h (system_header): Likewise.
36905         * lib/strings.in.h (system_header): Likewise.
36906         * lib/sys_file.in.h (system_header): Likewise.
36907         * lib/sys_ioctl.in.h (system_header): Likewise.
36908         * lib/sys_socket.in.h (system_header): Likewise.
36909         * lib/sys_times.in.h (system_header): Likewise.
36910         * lib/sys_utsname.in.h (system_header): Likewise.
36911         * lib/sys_wait.in.h (system_header): Likewise.
36912         * lib/sysexits.in.h (system_header): Likewise.
36913         * lib/unistd.in.h (system_header): Likewise.
36914         * lib/wctype.in.h (system_header): Likewise.
36915
36916         arpa/inet: fix mingw compilation warning
36917         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36918         Reported by Matthew Bolte.
36919
36920 2010-03-25  Bruno Haible  <bruno@clisp.org>
36921
36922         Avoid collision between gnulib wrapper and libintl wrapper.
36923         * lib/printf.c (printf): Don't define if a printf wrapper is already
36924         defined in intl/printf.c.
36925         Reported by Michel Boaventura <michel@michelboaventura.com>.
36926
36927 2010-03-25  Bruno Haible  <bruno@clisp.org>
36928
36929         Use ANSI C.
36930         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36931
36932 2010-03-25  Bruno Haible  <bruno@clisp.org>
36933
36934         Minor formatting changes.
36935         * lib/acosl.c: Insert space before function argument list.
36936         * lib/argz.c: Likewise.
36937         * lib/asinl.c: Likewise.
36938         * lib/expl.c: Likewise.
36939         * lib/gen-uni-tables.c: Likewise.
36940         * lib/gettext.h: Likewise.
36941         * lib/glthread/lock.h: Likewise.
36942         * lib/tanl.c: Likewise.
36943         * lib/uniname/uniname.c: Likewise.
36944         * tests/test-idpriv-drop.c: Likewise.
36945         * tests/test-idpriv-droptemp.c: Likewise.
36946         * tests/test-lock.c: Likewise.
36947         * tests/test-tls.c: Likewise.
36948         * lib/argp-help.c: Insert space before function-like macro argument
36949         list.
36950         * lib/memcmp.c: Likewise.
36951         * tests/test-base64.c: Likewise.
36952         * lib/localename.c: Insert space before sizeof's argument list.
36953         * lib/safe-alloc.h: Likewise.
36954         * lib/file-set.h: Insert space before macro argument list.
36955         * tests/test-argp.c: Likewise.
36956         * lib/argp-namefrob.h: Insert space before function parameter list.
36957         * lib/getaddrinfo.c: Likewise.
36958         * lib/netdb.in.h: Likewise.
36959         * lib/parse-duration.h: Likewise.
36960         * lib/parse-duration.c: Likewise.
36961         * lib/poll.c: Likewise.
36962         * lib/select.c: Likewise.
36963         * lib/trim.h: Likewise.
36964         * tests/test-usleep.c: Likewise.
36965         * lib/ldexpl.c: Insert space before function parameter list and before
36966         function argument list.
36967         * lib/logl.c: Likewise.
36968         * lib/sqrtl.c: Likewise.
36969         * lib/trim.c: Likewise.
36970         * lib/cosl.c: Use GNU style indentation. Insert space before function
36971         argument list.
36972         * lib/sinl.c: Likewise.
36973         * lib/tsearch.c: Insert space after 'for'.
36974         Reported by Jim Meyering.
36975
36976 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36977
36978         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36979         config header before grepping, as it's not present before
36980         autoreconf/configure are run.  Reported by Simon Josefsson.
36981
36982 2010-03-23  Bruno Haible  <bruno@clisp.org>
36983
36984         pt_chown: Make it work with automake < 1.11.
36985         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36986         Reported by Simon Josefsson.
36987
36988 2010-03-23  Bruno Haible  <bruno@clisp.org>
36989
36990         pt_chown: Don't depend on GPLed modules.
36991         * lib/pt_chown.c: Don't include idpriv.h.
36992         (main): Don't drop privileges.
36993         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36994         Reported by Simon Josefsson.
36995
36996 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36997
36998         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36999         suggestions from karl@freefriends.org (Karl Berry).
37000
37001 2010-03-22  Eric Blake  <eblake@redhat.com>
37002
37003         gethostname: further tweaks
37004         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
37005         are overriding gethostname.
37006         Suggested by Bruno Haible.
37007
37008 2010-03-21  Bruno Haible  <bruno@clisp.org>
37009
37010         Fix comments.
37011         * lib/forkpty.c (rpl_forkpty): Fix comment.
37012         * lib/openpty.c (rpl_openpty): Likewise.
37013         Reported by Eric Blake.
37014
37015 2010-03-22  Eric Blake  <eblake@redhat.com>
37016
37017         gethostname: fix build on mingw
37018         * lib/unistd.in.h (includes): Work around fact that mingw
37019         <winsock2.h> re-includes <unistd.h>, by avoiding any
37020         redeclarations if we are being included by <winsock2.h>.
37021         Reported by Matthias Bolte.
37022
37023 2010-03-21  Bruno Haible  <bruno@clisp.org>
37024
37025         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
37026         * lib/forkpty.c (forkpty): New replacement function, from glibc with
37027         modifications.
37028         * lib/pty.in.h (forkpty): Update declaration. Add comments.
37029         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
37030         provide the replacement.
37031         * modules/forkpty (Depends-on): Add openpty, login_tty.
37032         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
37033         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
37034         * doc/glibc-functions/forkpty.texi: More supported platforms.
37035         * config/srclist.txt: Add forkpty.c (commented).
37036
37037 2010-03-21  Bruno Haible  <bruno@clisp.org>
37038
37039         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
37040         (Makefile.am): Verify that PTY_LIB is defined.
37041
37042         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
37043
37044 2010-03-21  Bruno Haible  <bruno@clisp.org>
37045
37046         Tests for module 'login_tty'.
37047         * modules/login_tty-tests: New file.
37048         * tests/test-login_tty.c: New file.
37049
37050         New module 'login_tty'.
37051         * lib/login_tty.c: New file.
37052         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
37053         * modules/login_tty: New file.
37054         * doc/glibc-functions/login_tty.texi: Mention the new module.
37055
37056 2010-03-21  Bruno Haible  <bruno@clisp.org>
37057
37058         login_tty: Documentation.
37059         * doc/glibc-functions/login_tty.texi: New file.
37060         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
37061
37062 2010-03-21  Bruno Haible  <bruno@clisp.org>
37063
37064         pty: Consistent macro naming.
37065         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
37066         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
37067         * modules/pty (configure.ac): Update.
37068
37069 2010-03-21  Bruno Haible  <bruno@clisp.org>
37070
37071         Tests for openpty: Make stricter.
37072         * tests/test-openpty.c (main): Add test of canonical processing and
37073         erase.
37074         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
37075
37076         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
37077         * lib/openpty.c (openpty): New replacement function.
37078         * lib/pty.in.h: Include <termios.h>.
37079         (openpty): Update declaration. Add comments.
37080         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
37081         is not declared, arrange to provide the replacement. Check for _getpty
37082         and posix_openpt.
37083         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
37084         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
37085         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
37086         * modules/pty-tests (test_pty_c___LDADD): New variable.
37087         * doc/glibc-functions/openpty.texi: More supported platforms.
37088
37089 2010-03-21  Bruno Haible  <bruno@clisp.org>
37090
37091         setenv: Tweaks.
37092         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
37093         the test program.
37094         * doc/posix-functions/setenv.texi: Update platforms list.
37095
37096 2010-03-21  Bruno Haible  <bruno@clisp.org>
37097
37098         New module 'unlockpt'.
37099         * lib/unlockpt.c: New file, from glibc with modifications.
37100         * m4/unlockpt.m4: New file.
37101         * modules/unlockpt: New file.
37102         * lib/stdlib.in.h (unlockpt): New declaration.
37103         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
37104         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
37105         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
37106         HAVE_UNLOCKPT.
37107         * doc/posix-functions/unlockpt.texi: Mention the new module.
37108         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
37109         * config/srclist.txt: Add unlockpt.c (commented).
37110
37111 2010-03-21  Jim Meyering  <meyering@redhat.com>
37112
37113         maint.mk: prohibit inclusion of "intprops.h" without use
37114         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
37115
37116 2010-03-21  Bruno Haible  <bruno@clisp.org>
37117
37118         New module 'grantpt'.
37119         * lib/grantpt.c: New file, from glibc with modifications.
37120         * m4/grantpt.m4: New file.
37121         * modules/grantpt: New file.
37122         * lib/stdlib.in.h (grantpt): New declaration.
37123         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
37124         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
37125         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
37126         HAVE_GRANTPT.
37127         * doc/posix-functions/grantpt.texi: Mention the new module.
37128         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
37129         * config/srclist.txt: Add grantpt.c (commented).
37130
37131 2010-03-21  Bruno Haible  <bruno@clisp.org>
37132
37133         New module 'pt_chown'.
37134         * lib/pt_chown.c: New file, from glibc with modifications.
37135         * lib/pty-private.h: New file, from glibc with modifications.
37136         * modules/pt_chown: New file.
37137         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
37138
37139 2010-03-21  Bruno Haible  <bruno@clisp.org>
37140
37141         Tests for module 'ptsname'.
37142         * modules/ptsname-tests: New file.
37143         * tests/test-ptsname.c: New file.
37144
37145         New module 'ptsname'.
37146         * lib/ptsname.c: New file, from glibc with modifications.
37147         * m4/ptsname.m4: New file.
37148         * modules/ptsname: New file.
37149         * lib/stdlib.in.h (ptsname): New declaration.
37150         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37151         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37152         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37153         HAVE_PTSNAME.
37154         * doc/posix-functions/ptsname.texi: Mention the new module.
37155         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37156         * config/srclist.txt: Add ptsname.c (commented).
37157
37158 2010-03-21  Bruno Haible  <bruno@clisp.org>
37159
37160         Tests for module 'ttyname_r'.
37161         * modules/ttyname_r-tests: New file.
37162         * tests/test-ttyname_r.c: New file.
37163
37164         New module 'ttyname_r'.
37165         * lib/ttyname_r.c: New file.
37166         * m4/ttyname_r.m4: New file.
37167         * modules/ttyname_r: New file.
37168         * lib/unistd.in.h (ttyname_r): New declaration.
37169         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37170         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37171         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37172         HAVE_TTYNAME_R.
37173         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37174         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37175
37176 2010-03-20  Bruno Haible  <bruno@clisp.org>
37177
37178         signal: Undefine macro definitions in C++ mode.
37179         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37180         sigfillset): Undefine macro definitions from the system header in C++
37181         mode.
37182         Reported by John W. Eaton <jwe@gnu.org>.
37183
37184 2010-03-20  Bruno Haible  <bruno@clisp.org>
37185
37186         Ensure no #include statements inside extern "C" { ... }.
37187         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37188         contain #include statements.
37189         * lib/time.in.h: Likewise.
37190
37191 2010-03-20  Bruno Haible  <bruno@clisp.org>
37192
37193         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37194         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37195         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37196         Reported by John W. Eaton <jwe@gnu.org>.
37197
37198 2010-03-20  Bruno Haible  <bruno@clisp.org>
37199
37200         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37201         Reported by Jim Meyering.
37202
37203 2010-03-20  Bruno Haible  <bruno@clisp.org>
37204
37205         pipe: Set errno upon failure.
37206         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37207         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37208         errno value in error message.
37209
37210 2010-03-20  Bruno Haible  <bruno@clisp.org>
37211             Jim Meyering  <meyering@redhat.com>
37212
37213         lchown: Avoid "unused variable" warning.
37214         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37215
37216 2010-03-20  Bruno Haible  <bruno@clisp.org>
37217
37218         Work around unlink() bug on MacOS X 10.5.6.
37219         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37220         attempting to unlink a parent directory.
37221         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37222         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37223         activate for the replacement function.
37224         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37225
37226 2010-03-20  Bruno Haible  <bruno@clisp.org>
37227
37228         Fix link errors on Solaris 8.
37229         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37230         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37231
37232 2010-03-19  Jim Meyering  <meyering@redhat.com>
37233
37234         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37235         The _LIBC implementation of build_range_exp correctly honors the
37236         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37237         However, the non-_LIBC implementation would ignore that syntax-bit
37238         flag and return REG_ERANGE unconditionally.
37239         This change makes it honor that flag.
37240         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37241         Make two pointer parameters "const".
37242         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37243         (parse_bracket_exp): Update caller.
37244
37245         regex.m4: correct the reversed range endpoint ([b-a]) test
37246         * m4/regex.m4: When requiring that [b-a] evoke failure,
37247         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37248         test pass once again for x86-based systems.
37249
37250 2010-03-19  Bruno Haible  <bruno@clisp.org>
37251
37252         scandir: Fix link error on Solaris 8.
37253         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37254         macros.
37255
37256 2010-03-19  Bruno Haible  <bruno@clisp.org>
37257
37258         getusershell: Fix documentation.
37259         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37260         module.
37261         * doc/glibc-functions/setusershell.texi: Likewise.
37262
37263         getusershell: Provide declaration, missing on Solaris 9.
37264         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37265         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37266         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37267         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37269         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37270         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37271         HAVE_GETUSERSHELL.
37272         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37273
37274 2010-03-19  Bruno Haible  <bruno@clisp.org>
37275
37276         wctype: Provide iswblank function.
37277         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37278         exists and is fine.
37279         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37280         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37281         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37282         * doc/posix-functions/iswblank.texi: Update.
37283
37284 2010-03-19  Bruno Haible  <bruno@clisp.org>
37285
37286         Tests of module 'pty' in C++ mode.
37287         * modules/pty-tests: New file.
37288         * tests/test-pty-c++.cc: New file.
37289         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37290
37291 2010-03-19  Eric Blake  <eblake@redhat.com>
37292
37293         logb: fix documentation
37294         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37295         1.5 declaration bug.
37296
37297         forkpty, openpty: prefer glibc's const-safe prototype
37298         * lib/forkpty.c (rpl_forkpty): New file.
37299         * lib/openpty.c (rpl_openpty): Likewise.
37300         * modules/forkpty (Files): Distribute it.
37301         * modules/openpty (Files): Likewise.
37302         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37303         check...
37304         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37305         replacement for for non-const BSD signature.
37306         * modules/pty (Makefile.am): Substitute witnesses.
37307         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37308         * tests/test-forkpty.c: Update signature check.
37309         * tests/test-openpty.c: Likewise.
37310         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37311         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37312
37313         forkpty, openpty: split functions into new modules
37314         * modules/pty (Makefile.am): Substitute new witnesses.
37315         (Libraries): Move library detection...
37316         * modules/forkpty: ...into new module.
37317         * modules/openpty: Another new module.
37318         * modules/pty-tests: Rename and split...
37319         * modules/forkpty-tests: ...to this...
37320         * modules/openpty-tests: ...and this.
37321         * tests/test-pty.c: Rename and split...
37322         * tests/test-forkpty.c: ...to this...
37323         * tests/test-openpty.c: ...and this.
37324         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37325         (gl_PTY): Split library searching...
37326         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37327         (gl_FORKPTY, gl_OPENPTY): New macros.
37328         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37329         * NEWS: Mention the split.
37330         * MODULES.html.sh (Misc): Document the modules.
37331         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37332         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37333
37334         pty: improve replacement header
37335         * lib/pty.in.h: New file.
37336         * modules/pty (Files): Ship it.
37337         (Makefile.am): Always build replacement.
37338         * m4/pty.m4: Rename...
37339         * m4/pty_h.m4: ...to this.
37340         (gl_PTY): Modernize setting of witness macros; update check of
37341         forkpty to take proper advantage of cache.
37342         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37343
37344         getopt: avoid compiler warning
37345         * lib/getopt.c (attribute_hidden): Remove unused macro.
37346
37347 2010-03-18  Bruno Haible  <bruno@clisp.org>
37348
37349         Fix link errors on Solaris 8.
37350         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37351         * modules/search-tests (test_search_c___LDADD): Likewise.
37352         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37353         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37354         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37355         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37356         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37357         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37358         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37359
37360 2010-03-18  Bruno Haible  <bruno@clisp.org>
37361
37362         Fix bug introduced on 2010-03-14.
37363         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37364         (gl_SPAWN_H): Require it.
37365         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37366         Reported by Simon Josefsson.
37367
37368 2010-03-18  Bruno Haible  <bruno@clisp.org>
37369
37370         Fix typo introduced on 2009-12-31.
37371         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37372         posix_spawn_file_actions_adddup2.
37373
37374 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37375         and Eric Blake  <eblake@redhat.com>
37376
37377         test-vc-list-files-git: make more robust
37378         * tests/test-vc-list-files-git.sh: Unset problematic environment
37379         variables.  Chain commands together.
37380
37381 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37382
37383         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37384         `AC_CHECK_DECL' invocation.
37385
37386 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37387
37388         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37389         appears before executable statements. Suggested by Petr Sumbera
37390         <Petr.Sumbera@Sun.COM>.
37391
37392 2010-03-14  Bruno Haible  <bruno@clisp.org>
37393
37394         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37395         portability problems. Instead use a simpler test.
37396         (main): Check that invalid arguments are rejected only on Linux.
37397
37398 2010-03-14  Bruno Haible  <bruno@clisp.org>
37399
37400         Fix bug introduced on 2009-12-31.
37401         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37402         gl_PREREQ_SYS_H_WINSOCK2 always.
37403         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37404         SYS_SOCKET_H variable.
37405         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37406         Update comments.
37407         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37408         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37409         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37411         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37412
37413 2010-03-14  Bruno Haible  <bruno@clisp.org>
37414
37415         Fix values returned by sinl, cosl.
37416         * lib/trigl.h: Add specification comments.
37417         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37418         that combines the values from the precomputed table with the values of
37419         the Chebyshev polynomials.
37420
37421 2010-03-14  Bruno Haible  <bruno@clisp.org>
37422
37423         Fix compilation error when modules 'posix_spawn[p]' are not used.
37424         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37426
37427 2010-03-14  Bruno Haible  <bruno@clisp.org>
37428
37429         Fix compilation error on mingw when module 'time_r' is not used.
37430         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37431         is 1.
37432         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37433         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37434         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37435         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37436
37437 2010-03-14  Bruno Haible  <bruno@clisp.org>
37438
37439         Fix compilation error with Sun C.
37440         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37441         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37442         instead of GCC specific ULONG_LONG_MAX.
37443         * lib/xstrtoll.c: Likewise.
37444         * lib/xstrtoull.c: Likewise.
37445
37446 2010-03-13  Bruno Haible  <bruno@clisp.org>
37447
37448         Allow the user to disable C++ code and tests.
37449         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37450         (gl_PROG_ANSI_CXX): Require it.
37451
37452 2010-03-13  Bruno Haible  <bruno@clisp.org>
37453
37454         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37455         cases.
37456
37457 2010-03-13  Bruno Haible  <bruno@clisp.org>
37458
37459         Test that gnulib does not break the standard C++ headers.
37460         * tests/test-locale-c++2.cc: New file.
37461         * modules/locale-tests (Files): Add it.
37462         (Makefile.am): Compile it for test-locale-c++.
37463         * tests/test-math-c++2.cc: New file.
37464         * modules/math-tests (Files): Add it.
37465         (Makefile.am): Compile it for test-math-c++.
37466         * tests/test-signal-c++2.cc: New file.
37467         * modules/signal-tests (Files): Add it.
37468         (Makefile.am): Compile it for test-signal-c++.
37469         * tests/test-stdio-c++2.cc: New file.
37470         * modules/stdio-tests (Files): Add it.
37471         (Makefile.am): Compile it for test-stdio-c++.
37472         * tests/test-stdlib-c++2.cc: New file.
37473         * modules/stdlib-tests (Files): Add it.
37474         (Makefile.am): Compile it for test-stdlib-c++.
37475         * tests/test-string-c++2.cc: New file.
37476         * modules/string-tests (Files): Add it.
37477         (Makefile.am): Compile it for test-string-c++.
37478         * tests/test-time-c++2.cc: New file.
37479         * modules/time-tests (Files): Add it.
37480         (Makefile.am): Compile it for test-time-c++.
37481         Reported by John W. Eaton <jwe@gnu.org>.
37482
37483 2010-03-13  Bruno Haible  <bruno@clisp.org>
37484
37485         * gnulib-tool (func_usage): Clarify which options are available for
37486         --create-testdir and --create-megatestdir.
37487
37488 2010-03-13  Bruno Haible  <bruno@clisp.org>
37489
37490         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37491         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37492         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37493         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37494         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37495         when appropriate.
37496         Reported by Jim Meyering.
37497
37498 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37499
37500         * gnulib-tool (func_import): Explain origin of code.
37501
37502 2010-03-12  Bruno Haible  <bruno@clisp.org>
37503
37504         Fix problem with automake's definition of CXXLINK.
37505         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37506         Reported by Simon Josefsson and Ludovic Courtès.
37507
37508 2010-03-12  Bruno Haible  <bruno@clisp.org>
37509
37510         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37511         stable releases.
37512
37513 2010-03-11  Bruno Haible  <bruno@clisp.org>
37514
37515         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37516         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37517         whether the system provides one variant or multiple variants of the
37518         function.
37519         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37520         C++ compilers.
37521         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37522         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37523         Reported by Jim Meyering.
37524
37525 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37526
37527         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37528
37529 2010-03-08  Bruno Haible  <bruno@clisp.org>
37530
37531         gnulib-tool: Add support for --libtool in --create-testdir.
37532         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37533         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37534
37535 2010-03-08  Eric Blake  <eblake@redhat.com>
37536
37537         gnulib-tool.texi: mention possibility of git submodule
37538         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37539         submodules.
37540         * doc/.gitignore: Ignore another generated file.
37541
37542 2010-03-08  Karl Berry  <karl@gnu.org>
37543
37544         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37545         of committing gnulib files while skipping others.
37546
37547 2010-03-07  Bruno Haible  <bruno@clisp.org>
37548
37549         Tests of module 'wctype' in C++ mode.
37550         * tests/test-wctype-c++.cc: New file.
37551         * modules/wctype-tests (Files): Add it and tests/signature.h.
37552         (Depends-on): Add ansi-c++-opt.
37553         (Makefile.am): Arrange to compile and run test-wctype-c++.
37554
37555         Tests of module 'wchar' in C++ mode.
37556         * tests/test-wchar-c++.cc: New file.
37557         * modules/wchar-tests (Files): Add it and tests/signature.h.
37558         (Depends-on): Add ansi-c++-opt.
37559         (Makefile.am): Arrange to compile and run test-wchar-c++.
37560         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37561         gl_MODULE_INDICATOR.
37562
37563         Tests of module 'unistd' in C++ mode.
37564         * tests/test-unistd-c++.cc: New file.
37565         * modules/unistd-tests (Files): Add it and tests/signature.h.
37566         (Depends-on): Add ansi-c++-opt.
37567         (Makefile.am): Arrange to compile and run test-unistd-c++.
37568         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37569         gl_MODULE_INDICATOR.
37570
37571         Tests of module 'time' in C++ mode.
37572         * tests/test-time-c++.cc: New file.
37573         * modules/time-tests (Files): Add it and tests/signature.h.
37574         (Depends-on): Add ansi-c++-opt.
37575         (Makefile.am): Arrange to compile and run test-time-c++.
37576         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37577
37578         Tests of module 'sys_time' in C++ mode.
37579         * tests/test-sys_time-c++.cc: New file.
37580         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37581         (Depends-on): Add ansi-c++-opt.
37582         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37583         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37584         gl_MODULE_INDICATOR.
37585
37586         Tests of module 'sys_stat' in C++ mode.
37587         * tests/test-sys_stat-c++.cc: New file.
37588         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37589         (Depends-on): Add ansi-c++-opt.
37590         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37591         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37592         gl_MODULE_INDICATOR.
37593
37594         Tests of module 'sys_socket' in C++ mode.
37595         * tests/test-sys_socket-c++.cc: New file.
37596         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37597         (Depends-on): Add ansi-c++-opt.
37598         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37599         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37600         gl_MODULE_INDICATOR.
37601
37602         Tests of module 'sys_select' in C++ mode.
37603         * tests/test-sys_select-c++.cc: New file.
37604         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37605         (Depends-on): Add ansi-c++-opt.
37606         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37607         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37608         gl_MODULE_INDICATOR.
37609
37610         Tests of module 'sys_ioctl' in C++ mode.
37611         * tests/test-sys_ioctl-c++.cc: New file.
37612         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37613         (Depends-on): Add ansi-c++-opt.
37614         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37615         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37616         gl_MODULE_INDICATOR.
37617
37618         Tests of module 'string' in C++ mode.
37619         * tests/test-string-c++.cc: New file.
37620         * modules/string-tests (Files): Add it and tests/signature.h.
37621         (Depends-on): Add ansi-c++-opt.
37622         (Makefile.am): Arrange to compile and run test-string-c++.
37623         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37624         gl_MODULE_INDICATOR.
37625
37626         Tests of module 'stdlib' in C++ mode.
37627         * tests/test-stdlib-c++.cc: New file.
37628         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37629         (Depends-on): Add ansi-c++-opt.
37630         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37631         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37632         gl_MODULE_INDICATOR.
37633
37634         Tests of module 'stdio' in C++ mode.
37635         * tests/test-stdio-c++.cc: New file.
37636         * modules/stdio-tests (Files): Add it and tests/signature.h.
37637         (Depends-on): Add ansi-c++-opt.
37638         (Makefile.am): Arrange to compile and run test-stdio-c++.
37639         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37640         gl_MODULE_INDICATOR.
37641
37642         Tests of module 'spawn' in C++ mode.
37643         * tests/test-spawn-c++.cc: New file.
37644         * modules/spawn-tests (Files): Add it and tests/signature.h.
37645         (Depends-on): Add ansi-c++-opt.
37646         (Makefile.am): Arrange to compile and run test-spawn-c++.
37647         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37648         gl_MODULE_INDICATOR.
37649
37650         Tests of module 'signal' in C++ mode.
37651         * tests/test-signal-c++.cc: New file.
37652         * modules/signal-tests (Files): Add it and tests/signature.h.
37653         (Depends-on): Add ansi-c++-opt.
37654         (Makefile.am): Arrange to compile and run test-signal-c++.
37655         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37656         gl_MODULE_INDICATOR.
37657
37658         Tests of module 'search' in C++ mode.
37659         * tests/test-search-c++.cc: New file.
37660         * modules/search-tests (Files): Add it and tests/signature.h.
37661         (Depends-on): Add ansi-c++-opt.
37662         (Makefile.am): Arrange to compile and run test-search-c++.
37663         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37664         gl_MODULE_INDICATOR.
37665
37666         Tests of module 'math' in C++ mode.
37667         * tests/test-math-c++.cc: New file.
37668         * modules/math-tests (Files): Add it and tests/signature.h.
37669         (Depends-on): Add ansi-c++-opt.
37670         (Makefile.am): Arrange to compile and run test-math-c++.
37671         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37672
37673         Tests of module 'locale' in C++ mode.
37674         * tests/test-locale-c++.cc: New file.
37675         * modules/locale-tests (Files): Add it and tests/signature.h.
37676         (Depends-on): Add ansi-c++-opt.
37677         (Makefile.am): Arrange to compile and run test-locale-c++.
37678         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37679         gl_MODULE_INDICATOR.
37680
37681         Tests of module 'langinfo' in C++ mode.
37682         * tests/test-langinfo-c++.cc: New file.
37683         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37684         (Depends-on): Add ansi-c++-opt.
37685         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37686         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37687         gl_MODULE_INDICATOR.
37688
37689         Tests of module 'iconv-h' in C++ mode.
37690         * tests/test-iconv-h-c++.cc: New file.
37691         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37692         (Depends-on): Add ansi-c++-opt.
37693         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37694
37695         Tests of module 'glob' in C++ mode.
37696         * tests/test-glob-c++.cc: New file.
37697         * modules/glob-tests (Files): Add it.
37698         (Depends-on): Add ansi-c++-opt.
37699         (Makefile.am): Arrange to compile and run test-glob-c++.
37700
37701         Tests of module 'fcntl-h' in C++ mode.
37702         * tests/test-fcntl-h-c++.cc: New file.
37703         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37704         (Depends-on): Add ansi-c++-opt.
37705         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37706         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37707         gl_MODULE_INDICATOR.
37708
37709         Tests of module 'dirent' in C++ mode.
37710         * tests/test-dirent-c++.cc: New file.
37711         * modules/dirent-tests (Files): Add it and tests/signature.h.
37712         (Depends-on): Add ansi-c++-opt.
37713         (Makefile.am): Arrange to compile and run test-dirent-c++.
37714         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37715         gl_MODULE_INDICATOR.
37716
37717         New module 'ansi-c++-opt'.
37718         * modules/ansi-c++-opt: New file.
37719         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37720
37721         Document C++ namespace mode.
37722         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37723
37724         wctype: Avoid #define replacements in C++ mode.
37725         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37726         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37727         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37728         In C++, define a namespaced alias symbol.
37729         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37730         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37731         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37732         rule.
37733
37734         wchar: Avoid #define replacements in C++ mode.
37735         * lib/wchar.in.h: Include c++defs.h.
37736         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37737         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37738         symbol.
37739         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37740         * modules/wchar (Depends-on): Add c++defs.
37741         (Makefile.am): Update wchar.h rule.
37742
37743         unistd: Avoid #define replacements in C++ mode.
37744         * lib/unistd.in.h: Include c++defs.h.
37745         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37746         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37747         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37748         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37749         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37750         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37751         symbol.
37752         (environ): Update.
37753         * modules/unistd (Depends-on): Add c++defs.
37754         (Makefile.am): Update unistd.h rule.
37755
37756         time: Avoid #define replacements in C++ mode.
37757         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37758         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37759         define a namespaced alias symbol.
37760         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37761         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37762         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37763         * modules/time (Depends-on): Add c++defs, warn-on-use.
37764         (Makefile.am): Update time.h rule.
37765         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37766         * modules/nanosleep (configure.ac): Likewise.
37767         * modules/strptime (configure.ac): Likewise.
37768         * modules/timegm (configure.ac): Likewise.
37769
37770         sys_time: Avoid #define replacements in C++ mode.
37771         * lib/sys_time.in.h: Include c++defs.h.
37772         (gettimeofday): In C++, define a namespaced alias symbol.
37773         * modules/sys_time (Depends-on): Add c++defs.
37774         (Makefile.am): Update sys/time.h rule.
37775
37776         sys_stat: Avoid #define replacements in C++ mode.
37777         * lib/sys_stat.in.h: Include c++defs.h.
37778         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37779         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37780         namespaced alias symbol.
37781         In C++, define a namespaced alias symbol.
37782         * modules/sys_stat (Depends-on): Add c++defs.
37783         (Makefile.am): Update sys/stat.h rule.
37784
37785         sys_socket: Avoid #define replacements in C++ mode.
37786         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37787         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37788         definitions also when the system has a <sys/socket.h>.
37789         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37790         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37791         In C++, define a namespaced alias symbol.
37792         * modules/sys_socket (Depends-on): Add c++defs.
37793         (Makefile.am): Update sys/socket.h rule.
37794
37795         sys_select: Avoid #define replacements in C++ mode.
37796         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37797         definitions also when the system has a <sys/select.h>.
37798         (select): In C++, define a namespaced alias symbol.
37799         * modules/sys_select (Depends-on): Add c++defs.
37800         (Makefile.am): Update sys/select.h rule.
37801
37802         sys_ioctl: Avoid #define replacements in C++ mode.
37803         * lib/sys_ioctl.in.h: Include c++defs.h.
37804         (ioctl): In C++, define a namespaced alias symbol.
37805         * modules/sys_ioctl (Depends-on): Add c++defs.
37806         (Makefile.am): Update sys/ioctl.h rule.
37807
37808         string: Avoid #define replacements in C++ mode.
37809         * lib/string.in.h: Include c++defs.h.
37810         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37811         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37812         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37813         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37814         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37815         * modules/string (Depends-on): Add c++defs.
37816         (Makefile.am): Update string.h rule.
37817
37818         stdlib: Avoid #define replacements in C++ mode.
37819         * lib/stdlib.in.h: Include c++defs.h.
37820         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37821         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37822         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37823         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37824         symbol.
37825         * modules/stdlib (Depends-on): Add c++defs.
37826         (Makefile.am): Update stdlib.h rule.
37827
37828         stdio: Avoid #define replacements in C++ mode.
37829         * lib/stdio.in.h: Include c++defs.h.
37830         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37831         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37832         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37833         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37834         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37835         namespaced alias symbol.
37836         * modules/stdio (Depends-on): Add c++defs.
37837         (Makefile.am): Update stdio.h rule.
37838
37839         spawn: Avoid #define replacements in C++ mode.
37840         * lib/spawn.in.h: Include c++defs.h.
37841         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37842         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37843         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37844         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37845         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37846         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37847         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37848         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37849         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37850         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37851         In C++, define a namespaced alias symbol.
37852         * modules/spawn (Depends-on): Add c++defs.
37853         (Makefile.am): Update spawn.h rule.
37854
37855         signal: Avoid #define replacements in C++ mode.
37856         * lib/signal.in.h: Include c++defs.h.
37857         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37858         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37859         namespaced alias symbol.
37860         * modules/signal (Depends-on): Add c++defs.
37861         (Makefile.am): Update signal.h rule.
37862
37863         search: Avoid #define replacements in C++ mode.
37864         * lib/search.in.h: Include c++defs.h.
37865         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37866         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37867         symbol.
37868         * modules/search (Depends-on): Add c++defs.
37869         (Makefile.am): Update search.h rule.
37870
37871         math: Avoid #define replacements in C++ mode.
37872         * lib/math.in.h: Include c++defs.h.
37873         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37874         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37875         trunc, truncl): In C++, define a namespaced alias symbol.
37876         * modules/math (Depends-on): Add c++defs.
37877         (Makefile.am): Update math.h rule.
37878
37879         locale: Avoid #define replacements in C++ mode.
37880         * lib/locale.in.h: Include c++defs.h.
37881         (duplocale): In C++, define a namespaced alias symbol.
37882         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37883         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37884         * modules/locale (Depends-on): Add c++defs.
37885         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37886
37887         langinfo: Avoid #define replacements in C++ mode.
37888         * lib/langinfo.in.h: Include c++defs.h.
37889         (nl_langinfo): In C++, define a namespaced alias symbol.
37890         * modules/langinfo (Depends-on): Add c++defs.
37891         (Makefile.am): Update langinfo.h rule.
37892
37893         iconv-h: Avoid #define replacements in C++ mode.
37894         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37895         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37896         symbol.
37897         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37898         whenever iconv is present.
37899         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37900         (Makefile.am): Update iconv.h rule.
37901
37902         glob: Avoid #define replacements in C++ mode.
37903         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37904         (_gl_glob_errfunc_fn): New type.
37905         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37906         symbol.
37907         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37908         (Makefile.am): Update glob.h rule.
37909
37910         fcntl-h: Avoid #define replacements in C++ mode.
37911         * lib/fcntl.in.h: Include c++defs.h.
37912         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37913         * modules/fcntl-h (Depends-on): Add c++defs.
37914         (Makefile.am): Update fcntl.h rule.
37915
37916         dirent: Avoid #define replacements in C++ mode.
37917         * lib/dirent.in.h: Include c++defs.h.
37918         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37919         namespaced alias symbol.
37920         (dirfd): Update declaration.
37921         * modules/dirent (Depends-on): Add c++defs.
37922         (Makefile.am): Update dirent.h rule.
37923
37924         ctype: Make it usable in C++ code.
37925         * lib/ctype.in.h: Include c++defs.h.
37926         (isblank): Declare as extern "C".
37927         * modules/ctype (Depends-on): Add c++defs.
37928         (Makefile.am): Update ctype.h rule.
37929
37930         New module 'c++defs'.
37931         * modules/c++defs: New file.
37932         * build-aux/c++defs.h: New file.
37933         Reported by John W. Eaton <jwe@gnu.org>.
37934
37935 2010-03-07  Bruno Haible  <bruno@clisp.org>
37936
37937         logb: Provide missing declaration for Cygwin.
37938         * lib/math.in.h (logb): New declaration.
37939         * m4/logb.m4: New file.
37940         * modules/logb (Files): Add m4/logb.m4.
37941         (Depends-on): Add math.
37942         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37943         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37945         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37946         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37947
37948 2010-03-07  Bruno Haible  <bruno@clisp.org>
37949
37950         Fix test-cond link error.
37951         * tests/test-cond.c: Include <stdio.h>.
37952
37953 2010-03-07  Bruno Haible  <bruno@clisp.org>
37954
37955         Fix test-dirent-safer link error.
37956         * modules/dirent-safer-tests (Makefile.am): Define
37957         test_dirent_safer_LDADD.
37958
37959 2010-03-07  Bruno Haible  <bruno@clisp.org>
37960
37961         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37962         among default module list.
37963
37964 2010-03-07  Bruno Haible  <bruno@clisp.org>
37965
37966         Fix link error on platforms with GNU libiconv.
37967         * modules/unistr/u8-strcoll-tests (Makefile): Define
37968         test_u8_strcoll_LDADD.
37969         * modules/unistr/u16-strcoll-tests (Makefile): Define
37970         test_u16_strcoll_LDADD.
37971         * modules/unistr/u32-strcoll-tests (Makefile): Define
37972         test_u32_strcoll_LDADD.
37973
37974 2010-03-07  Bruno Haible  <bruno@clisp.org>
37975
37976         Use POSIX declarations for socket functions.
37977         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37978         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37979         rpl_sendto): Change declaration to match POSIX.
37980         * lib/connect.c (rpl_connect): Likewise.
37981         * lib/accept.c (rpl_accept): Likewise.
37982         * lib/bind.c (rpl_bind): Likewise.
37983         * lib/getpeername.c (rpl_getpeername): Likewise.
37984         * lib/getsockname.c (rpl_getsockname): Likewise.
37985         * lib/recv.c (rpl_recv): Likewise.
37986         * lib/send.c (rpl_send): Likewise.
37987         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37988         * lib/sendto.c (rpl_sendto): Likewise.
37989
37990 2010-03-06  Bruno Haible  <bruno@clisp.org>
37991
37992         Clarify access, euidaccess, faccessat.
37993         * doc/posix-functions/faccessat.texi: Mention security problem under
37994         "Other problems", not "Portability problems".
37995         * doc/posix-functions/access.texi: Likewise. Mention a related security
37996         problem.
37997         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37998         * lib/euidaccess.c: Add comments about platforms.
37999         * lib/unistd.in.h (access, euidaccess): Add warnings.
38000
38001 2010-03-07  Bruno Haible  <bruno@clisp.org>
38002
38003         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
38004         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
38005         (POSIX_SPAWN_SETSCHEDULER): Likewise.
38006         (POSIX_SPAWN_USEVFORK): Define in a way that works when
38007         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
38008         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
38009         declare when POSIX_SPAWN_SETSCHEDULER is zero.
38010         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
38011         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
38012         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
38013         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
38014         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
38015         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
38016         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
38017         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
38018         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
38019         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
38020         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
38021         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
38022         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
38023         Likewise.
38024         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
38025         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
38026         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
38027         Likewise.
38028         * tests/test-spawn.c (main): Make it work when
38029         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
38030
38031 2010-03-07  Bruno Haible  <bruno@clisp.org>
38032
38033         Fix incorrect Makefile.am generation in German locale.
38034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38035         Execute sed command with character range in C locale.
38036
38037 2010-03-06  Bruno Haible  <bruno@clisp.org>
38038
38039         Tests for module 'iconv-h'.
38040         * modules/iconv-h-tests: New file.
38041         * tests/test-iconv-h.c: New file.
38042
38043         New module 'iconv-h'.
38044         * modules/iconv-h: New file.
38045         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
38046         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
38047         (configure.ac): Remove gl_ICONV_H.
38048         (Makefile.am): Remove rule for iconv.h.
38049
38050 2010-03-06  Bruno Haible  <bruno@clisp.org>
38051
38052         More consistent naming of *.m4 files.
38053         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
38054         * modules/wctype (Files): Update.
38055
38056         More consistent naming of *.m4 files.
38057         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
38058         * modules/wchar (Files): Update.
38059
38060 2010-03-06  Jim Meyering  <meyering@redhat.com>
38061
38062         euidaccess: relax license to LGPLv2+
38063         * modules/euidaccess (License): Relax to LGPLv2+.
38064
38065 2010-03-06  Bruno Haible  <bruno@clisp.org>
38066
38067         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
38068         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
38069         (Makefile.am): Augment lib_SOURCES instead.
38070
38071 2010-03-04  Jim Meyering  <meyering@redhat.com>
38072
38073         utime: remove obsolete module
38074         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
38075         unnecessary for years, and has been marked as obsolete for 10 months.
38076         * modules/utime: Remove file.
38077         * lib/utime.c: Remove file.
38078         * m4/utime.m4: Remove file.
38079         * m4/utimes-null.m4: Remove file.
38080         * doc/posix-functions/utime.texi (utime): Remove reference to
38081         the module.  Move the sole "fixed by gnulib" item into the
38082         "problems not fixed by Gnulib" list.
38083         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
38084
38085 2010-03-05  Simon Josefsson  <simon@josefsson.org>
38086
38087         * modules/exit (License): Relax license to LGPLv2+.
38088         (Status): Mark as obsolete.
38089         * NEWS: Mention deprecated 'exit' module.
38090         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
38091         of now obsolete 'exit'.
38092
38093 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38094
38095         fts-lgpl: remove unused module
38096         * modules/fts-lgpl: Remove.
38097         * MODULES.html.sh (func_all_modules): Adjust.
38098         * check-module (find_included_lib_files): Adjust.
38099         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
38100
38101 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
38102
38103         copy-acl: enhance Solaris ACL error handling
38104         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
38105         * lib/set-mode-acl.c (qset_acl): Likewise.
38106
38107 2010-03-02  Bruno Haible  <bruno@clisp.org>
38108
38109         spawn: Don't override the system defined values on FreeBSD 8.
38110         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
38111         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
38112         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
38113         if HAVE_POSIX_SPAWN is 1.
38114         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
38115
38116 2010-03-01  Bruno Haible  <bruno@clisp.org>
38117
38118         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
38119         regarding Automake.
38120
38121 2010-02-25  Bruno Haible  <bruno@clisp.org>
38122
38123         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
38124         * gnulib-tool: Define 'echo' as a function only before the ksh alias
38125         setting, not afterwards.
38126         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
38127
38128 2010-02-24  Eric Blake  <eblake@redhat.com>
38129
38130         bootstrap, git-version-gen: use timestamp
38131         * build-aux/git-version-gen (scriptversion): Force UTC.
38132         * build-aux/bootstrap (scriptversion): New variable.
38133
38134         bootstrap: allow older git
38135         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
38136         older than 1.6.4.  Requested by the libvirt project.
38137
38138 2010-02-23  Eric Blake  <eblake@redhat.com>
38139
38140         warn-on-use: work with old autoconf
38141         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
38142         AS_VAR semantics of autoconf 2.60.
38143         Reported by Bruno Haible.
38144
38145         bootstrap: improve some comments
38146         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38147         clarification comments.
38148
38149         gettimeofday: provide correct function
38150         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38151         when replacement is declared, otherwise provide gettimeofday.
38152         Reported by Michael Goffioul.
38153
38154 2010-02-23  Jim Meyering  <meyering@redhat.com>
38155
38156         lib-ignore: relax license to "unlimited", not LGPLv2+
38157         * modules/lib-ignore (License): Relax to "unlimited".
38158
38159 2010-02-23  Jim Meyering  <meyering@redhat.com>
38160
38161         lib-ignore: relax license to LGPLv2+
38162         * modules/lib-ignore (License): Relax to LGPLv2+.
38163
38164 2010-02-22  Eric Blake  <eblake@redhat.com>
38165
38166         lseek: avoid bash 3.2 broken pipe bug
38167         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38168         warning from bash 3.2.
38169         Reported by Ben Pfaff, with analysis from Bruno Haible.
38170
38171         bootstrap: support non-FSF copyright holder
38172         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38173         bootstrap.conf override of COPYRIGHT_HOLDER.
38174         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38175
38176         bootstrap: interoperate with gettext 0.14.1
38177         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38178
38179         bootstrap: allow for alternate submodule location
38180         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38181         hardcoding submodule location.
38182         (gnulib_mk): Allow direct use of Makefile.am.
38183
38184         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38185         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38186         rather than reconfiguring where the submodule points.
38187
38188         gettimeofday: restore support for platforms that lack function
38189         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38190         replacement if function is missing.
38191         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38192         * modules/sys_time (Makefile.am): Substitute it.
38193         * lib/sys_time.in.h (gettimeofday): Check it.
38194         Reported by Michael Goffioul.
38195
38196 2010-02-21  Bruno Haible  <bruno@clisp.org>
38197
38198         * lib/stdio.in.h (obstack_printf): Fix typo.
38199
38200 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38201
38202         vc-list-files: use bzr ls's -R option
38203         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38204         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38205
38206 2010-02-21  Jim Meyering  <meyering@redhat.com>
38207
38208         init.sh: fix EXEEXT shims to work also for names like test-prog
38209         * tests/init.sh: Re-exec a better shell, when needed.
38210         If the current shell lacks support for posix $(...), an init.sh-using
38211         test will now try to find a shell that supports that.  If EXEEXT is
38212         nonempty, we also require support for hyphen-in-alias-name and shell
38213         substitutions like ${var#glob}.  Failure to find such a shell results
38214         in a skipped test.
38215
38216 2010-02-21  Bruno Haible  <bruno@clisp.org>
38217
38218         Really work around around "broken pipe" error message from bash 3.2.
38219         * gnulib-tool (func_reset_sigpipe): Remove function.
38220         (echo): In bash 3.2, define to a function that uses printf.
38221         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38222
38223 2010-02-20  Bruno Haible  <bruno@clisp.org>
38224
38225         Restore support for automake 1.9.6 with autoconf 2.61.
38226         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38227         Reported by James Youngman <jay@gnu.org>.
38228
38229 2010-02-20  Bruno Haible  <bruno@clisp.org>
38230
38231         Improve *printf warning condition.
38232         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38233         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38234         and the function is overridden due to SIGPIPE emulation.
38235
38236 2010-02-20  Bruno Haible  <bruno@clisp.org>
38237
38238         * lib/stdio.in.h: Tweak comments.
38239
38240 2010-02-19  Bruno Haible  <bruno@clisp.org>
38241
38242         Make it easier to find modules. New gnulib-tool option '--find'.
38243         * gnulib-tool: New option --find.
38244         (func_usage): Document it.
38245         (func_sanitize_modulelist): New function, extracted from
38246         func_all_modules.
38247         (func_all_modules): Invoke it.
38248         * doc/gnulib-tool.texi (Which modules?): New node.
38249
38250 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38251
38252         * lib/sys_select.in.h: Provide select replacement even if
38253         sys/select.h exists on a system, for Interix.
38254
38255 2010-02-18  Jim Meyering  <meyering@redhat.com>
38256
38257         init.sh: don't use $(...) just yet
38258         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38259         to accommodate e.g., Solaris' /bin/sh.
38260
38261 2010-02-17  Bruno Haible  <bruno@clisp.org>
38262
38263         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38264         Reported by Ludovic Courtès <ludo@gnu.org>.
38265
38266 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38267
38268         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38269         linking with -lintl.
38270
38271 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38272
38273         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38274         if not provided by the system's netdb.h.  Reported by
38275         ludo@gnu.org (Ludovic Courtès).
38276
38277 2010-02-15  Jim Meyering  <meyering@redhat.com>
38278
38279         init.sh: improve portability and efficiency
38280         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38281         "dummy" in a for loop.
38282         Use '!', not '^' to select the complement of a character set used
38283         in a "case" statement.
38284         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38285         Suggestions from Eric Blake.
38286
38287         init.sh: automatically accommodate programs with the .exe suffix
38288         Automatically arrange for an invocation of "prog" to execute the
38289         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38290         may use the simpler "prog", yet still work when built on a system
38291         that requires specifying the added suffix.
38292         Do this by constructing a function named "prog" that invokes
38293         "prog.exe" for each .exe file in selected directories.
38294         * tests/init.sh (find_exe_basenames_): New function.
38295         (create_exe_shim_functions_): New function.
38296         (path_prepend_): Use it.
38297
38298         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38299         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38300         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38301
38302 2010-02-14  Jim Meyering  <meyering@redhat.com>
38303
38304         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38305         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38306         (sc_prohibit_hash_pjw_without_use): New rule.
38307
38308         maint.mk: allow the default upload destination dir to be overridden
38309         * top/maint.mk (upload_dest_dir_): Define with a default that
38310         preserves the status quo.
38311         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38312         Reported by Peter Simons.
38313
38314         maint.mk: prohibit inclusion of "hash.h" without_use
38315         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38316
38317 2010-02-10  Jim Meyering  <meyering@redhat.com>
38318
38319         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38320         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38321
38322 2010-02-09  Eric Blake  <ebb9@byu.net>
38323         and Bruno Haible  <bruno@clisp.org>
38324
38325         obstack-printf-posix: ensure declaration
38326         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38327         extracted from gl_FUNC_OBSTACK_PRINTF.
38328         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38329         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38330         Likewise.
38331         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38332         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38333         0.
38334
38335 2010-02-08  Bruno Haible  <bruno@clisp.org>
38336
38337         gnulib-tool: Fix typo in 2010-02-07 commit.
38338         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38339         Reported by Eric Blake.
38340
38341 2010-02-07  Bruno Haible  <bruno@clisp.org>
38342
38343         gnulib-tool: Fix up caching patches.
38344         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38345         option --no-cache. Use associative arrays when supported by the shell.
38346         (sed_comments): New variable.
38347         (modcache): Renamed from do_cache.
38348         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38349         abbreviate unnecessarily.
38350         (have_associative): New variable.
38351         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38352         way also for ksh and zsh.
38353         (func_init_sed_convert_to_cache_statements): New function, extracted
38354         from func_cache_lookup_module. Add support for associative arrays.
38355         Don't set the c_MODULE_cached variable here. Ignore all lines before
38356         the first field header. Remove only the final newline, not all trailing
38357         newlines. Support empty fields correctly. Limit the use of 'eval' to
38358         assignments.
38359         (func_get_description, func_get_status, func_get_notice,
38360         func_get_applicability, func_get_filelist, func_get_dependencies,
38361         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38362         func_get_automake_snippet, func_get_include_directive,
38363         func_get_link_directive, func_get_license, func_get_maintainer):
38364         Update documentation. List the unoptimized code first. Add support for
38365         associative arrays. Limit the use of 'eval' to assignments.
38366         (func_get_applicability): Undo stylistic pessimisations.
38367         (func_get_automake_snippet, func_get_include_directive): Reduce code
38368         duplication.
38369         (func_modules_transitive_closure, func_modules_add_dummy,
38370         func_modules_notice, func_modules_to_filelist, func_add_file,
38371         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38372         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38373         func_create_testdir, func_create_megatestdir): Update documentation.
38374
38375 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38376
38377         * gnulib-tool (func_cache_lookup_module): Store the module name
38378         belonging to the cache variable; error out if two different
38379         module names map to the same cache variable name.
38380
38381 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38382
38383         gnulib-tool: Make caching optional.
38384         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38385         Update matching short versions of --no-changelog.
38386         (func_usage): Update.
38387         (sed_extract_cache_prog): Renamed from ...
38388         (sed_extract_prog): ... this; revert to old extraction script.
38389         (func_get_description, func_get_status)
38390         (func_get_notice, func_get_applicability, func_get_filelist)
38391         (func_get_dependencies, func_get_autoconf_early_snippet)
38392         (func_get_autoconf_snippet, func_get_automake_snippet)
38393         (func_get_include_directive, func_get_link_directive)
38394         (func_get_license, func_get_maintainer): If $do_cache is false,
38395         use old, non-caching extraction scripts.
38396         Suggestion by Bruno Haible.
38397
38398 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38399
38400         gnulib-tool: cache module metainformation.
38401         * gnulib-tool (sed_extract_prog): Match newline before each
38402         header, and rewrite header to a shell variable suffix.
38403         (func_cache_var, func_cache_lookup_module): New functions,
38404         to turn a module name into a cache variable prefix, and to
38405         look up and cache module metainformation.
38406         (func_get_description, func_get_status)
38407         (func_get_notice, func_get_applicability, func_get_filelist)
38408         (func_get_dependencies, func_get_autoconf_early_snippet)
38409         (func_get_autoconf_snippet, func_get_automake_snippet)
38410         (func_get_include_directive, func_get_link_directive)
38411         (func_get_license, func_get_maintainer): Use
38412         func_cache_lookup_module.
38413
38414 2010-02-07  Bruno Haible  <bruno@clisp.org>
38415
38416         fnctl: Fix missing dependency.
38417         * modules/fcntl (Depends-on): Add getdtablesize.
38418         Reported by John W. Eaton <jwe@gnu.org>.
38419
38420 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38421
38422         Argp: fix recognition of short alias options.
38423
38424         * lib/argp-parse.c (convert_options): Fix improper use of
38425         `|' between character values.
38426         * tests/test-argp.c (group1_option): New alias option
38427         --read (-r).
38428         (group1_parser): Special handling for 'r'.
38429         (test15): New test case.
38430         (test_fun): Add test15.
38431         * tests/test-argp-2.sh: Update expected --help and --usage
38432         outputs.
38433
38434 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38435
38436         * tests/test-argp.c: Fix indentation.
38437
38438 2010-02-04  Eric Blake  <ebb9@byu.net>
38439
38440         gettimeofday: expose type of second argument
38441         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38442         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38443         * tests/test-gettimeofday.c: Use it to silence warning.
38444         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38445         the issue.
38446
38447 2010-02-03  Jim Meyering  <meyering@redhat.com>
38448
38449         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38450         * lib/regcomp.c (TYPE_SIGNED): Define.
38451         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38452
38453         regcomp.c: avoid a new -Wshadow warning
38454         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38455
38456 2010-02-01  Jim Meyering  <meyering@redhat.com>
38457
38458         removing useless parentheses in cpp #define directives
38459         For motivation, see commit c0221df4, "define STREQ(a,b)
38460         consistently, removing useless parentheses"
38461         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38462         * lib/mountlist.c (MNT_IGNORE): Likewise.
38463         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38464
38465 2010-02-01  Eric Blake  <ebb9@byu.net>
38466
38467         sys_time: use link-warning
38468         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38469         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38470         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38471         * modules/sys_time (Depends-on): Add warn-on-use.
38472         (Makefile.am): Always build replacement.
38473         (configure.ac): Update substitutions.
38474         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38475         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38476         bother with SYS_TIME_H.
38477         * modules/gettimeofday (configure.ac): Declare indicator.
38478         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38479         in use.
38480
38481         closein-tests: silence compiler warning
38482         * tests/test-closein.c (main): Ignore fread result.
38483         * modules/closein-tests (Depends-on): Add ignore-value.
38484
38485         tests: silence warning about system return
38486         * tests/test-areadlink-with-size.c (main): Ignore system result.
38487         * tests/test-areadlink.c (main): Likewise.
38488         * tests/test-areadlinkat-with-size.c (main): Likewise.
38489         * tests/test-areadlinkat.c (main): Likewise.
38490         * tests/test-canonicalize-lgpl.c (main): Likewise.
38491         * tests/test-canonicalize.c (main): Likewise.
38492         * tests/test-chown.c (main): Likewise.
38493         * tests/test-fchownat.c (main): Likewise.
38494         * tests/test-fdutimensat.c (main): Likewise.
38495         * tests/test-fstatat.c (main): Likewise.
38496         * tests/test-futimens.c (main): Likewise.
38497         * tests/test-lchown.c (main): Likewise.
38498         * tests/test-link.c (main): Likewise.
38499         * tests/test-linkat.c (main): Likewise.
38500         * tests/test-lstat.c (main): Likewise.
38501         * tests/test-mkdir.c (main): Likewise.
38502         * tests/test-mkdirat.c (main): Likewise.
38503         * tests/test-mkfifo.c (main): Likewise.
38504         * tests/test-mkfifoat.c (main): Likewise.
38505         * tests/test-mknod.c (main): Likewise.
38506         * tests/test-readlink.c (main): Likewise.
38507         * tests/test-remove.c (main): Likewise.
38508         * tests/test-rename.c (main): Likewise.
38509         * tests/test-renameat.c (main): Likewise.
38510         * tests/test-rmdir.c (main): Likewise.
38511         * tests/test-symlink.c (main): Likewise.
38512         * tests/test-symlinkat.c (main): Likewise.
38513         * tests/test-unlink.c (main): Likewise.
38514         * tests/test-unlinkat.c (main): Likewise.
38515         * tests/test-utimens.c (main): Likewise.
38516         * tests/test-utimensat.c (main): Likewise.
38517         * modules/areadlink-tests (Depends-on): Add ignore-value.
38518         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38519         * modules/areadlinkat-tests (Depends-on): Likewise.
38520         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38521         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38522         * modules/canonicalize-tests (Depends-on): Likewise.
38523         * modules/chown-tests (Depends-on): Likewise.
38524         * modules/fdutimensat-tests (Depends-on): Likewise.
38525         * modules/futimens-tests (Depends-on): Likewise.
38526         * modules/lchown-tests (Depends-on): Likewise.
38527         * modules/link-tests (Depends-on): Likewise.
38528         * modules/linkat-tests (Depends-on): Likewise.
38529         * modules/lstat-tests (Depends-on): Likewise.
38530         * modules/mkdir-tests (Depends-on): Likewise.
38531         * modules/mkfifo-tests (Depends-on): Likewise.
38532         * modules/mkfifoat-tests (Depends-on): Likewise.
38533         * modules/mknod-tests (Depends-on): Likewise.
38534         * modules/openat-tests (Depends-on): Likewise.
38535         * modules/readlink-tests (Depends-on): Likewise.
38536         * modules/remove-tests (Depends-on): Likewise.
38537         * modules/rename-tests (Depends-on): Likewise.
38538         * modules/renameat-tests (Depends-on): Likewise.
38539         * modules/rmdir-tests (Depends-on): Likewise.
38540         * modules/symlink-tests (Depends-on): Likewise.
38541         * modules/symlinkat-tests (Depends-on): Likewise.
38542         * modules/unlink-tests (Depends-on): Likewise.
38543         * modules/utimens-tests (Depends-on): Likewise.
38544         * modules/utimensat-tests (Depends-on): Likewise.
38545
38546 2010-01-31  Bruno Haible  <bruno@clisp.org>
38547
38548         Perform the same test for many <math.h> functions.
38549         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38550         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38551         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38552         of gl_MATHFUNC.
38553         * modules/acos (configure.ac): Likewise.
38554         * modules/asin (configure.ac): Likewise.
38555         * modules/atan (configure.ac): Likewise.
38556         * modules/atan2 (configure.ac): Likewise.
38557         * modules/cbrt (configure.ac): Likewise.
38558         * modules/copysign (configure.ac): Likewise.
38559         * modules/cos (configure.ac): Likewise.
38560         * modules/cosh (configure.ac): Likewise.
38561         * modules/erf (configure.ac): Likewise.
38562         * modules/erfc (configure.ac): Likewise.
38563         * modules/exp (configure.ac): Likewise.
38564         * modules/fmod (configure.ac): Likewise.
38565         * modules/hypot (configure.ac): Likewise.
38566         * modules/j0 (configure.ac): Likewise.
38567         * modules/j1 (configure.ac): Likewise.
38568         * modules/jn (configure.ac): Likewise.
38569         * modules/lgamma (configure.ac): Likewise.
38570         * modules/log (configure.ac): Likewise.
38571         * modules/log10 (configure.ac): Likewise.
38572         * modules/log1p (configure.ac): Likewise.
38573         * modules/pow (configure.ac): Likewise.
38574         * modules/remainder (configure.ac): Likewise.
38575         * modules/sin (configure.ac): Likewise.
38576         * modules/sinh (configure.ac): Likewise.
38577         * modules/tan (configure.ac): Likewise.
38578         * modules/tanh (configure.ac): Likewise.
38579         * modules/y0 (configure.ac): Likewise.
38580         * modules/y1 (configure.ac): Likewise.
38581         * modules/yn (configure.ac): Likewise.
38582         Suggested by Paolo Bonzini.
38583
38584 2010-01-31  Bruno Haible  <bruno@clisp.org>
38585
38586         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38587
38588 2010-01-31  Bruno Haible  <bruno@clisp.org>
38589
38590         Work around getdelim() bug on FreeBSD 8.0.
38591         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38592         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38593         not work.
38594         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38595         is 1.
38596         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38597         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38598         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38599         a non-zero size.
38600         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38601
38602 2010-01-31  Bruno Haible  <bruno@clisp.org>
38603
38604         Work around getline() bug on FreeBSD 8.0.
38605         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38606         and a non-zero size.
38607         * tests/test-getline.c (main): Likewise.
38608         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38609         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38610
38611 2010-01-28  Eric Blake  <ebb9@byu.net>
38612
38613         regex: fix build failure
38614         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38615         platforms.
38616
38617 2010-01-28  Jim Meyering  <meyering@redhat.com>
38618
38619         regex: do not ignore memory allocation failure
38620         * lib/regex_internal.c (create_cd_newstate): Detect
38621         re_node_set_init_copy failure.   Extracted from glibc commit
38622         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38623
38624         regex: sync more white-space changes from libc
38625         * lib/regex_internal.c: White-space only changes.
38626         * lib/regexec.c: Likewise.
38627
38628         regex: add many uses of __attribute_warn_unused_result__
38629         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38630         * lib/regexec.c: Likewise.
38631         Extracted from a messy glibc commit.
38632
38633         regcomp.c: spelling and merge-artifact from glibc
38634         * lib/regcomp.c: Merge remainder of glibc's
38635         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38636
38637         regcomp.c: sync white-space changes from glibc
38638         * lib/regcomp.c: Merge to accommodate white space
38639         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38640
38641         regcomp.c: do not ignore internal return values
38642         * lib/regcomp.c: Do not ignore internal return values.
38643         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38644         but without its white-space changes and spelling fixes.
38645
38646         regex_internal.h: define __attribute_warn_unused_result__
38647         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38648
38649         maint: add a syntax-check rule to check for vulnerable Makefile.in
38650         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38651
38652 2010-01-27  Jim Meyering  <meyering@redhat.com>
38653
38654         ncftpput-ftp: clean up spaces
38655         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38656         Remove trailing blanks.
38657
38658 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38659
38660         * build-aux/git-version-gen: Fix copyright statement.
38661         * build-aux/gnupload: Likewise.
38662         * tests/test-arcfour.c: Likewise.
38663         * tests/test-arctwo.c: Likewise.
38664         * tests/test-count-one-bits.c: Likewise.
38665         * tests/test-crc.c: Likewise.
38666         * tests/test-des.c: Likewise.
38667         * tests/test-gc-arcfour.c: Likewise.
38668         * tests/test-gc-arctwo.c: Likewise.
38669         * tests/test-gc-des.c: Likewise.
38670         * tests/test-gc-hmac-md5.c: Likewise.
38671         * tests/test-gc-hmac-sha1.c: Likewise.
38672         * tests/test-gc-md2.c: Likewise.
38673         * tests/test-gc-md4.c: Likewise.
38674         * tests/test-gc-md5.c: Likewise.
38675         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38676         * tests/test-gc-rijndael.c: Likewise.
38677         * tests/test-gc-sha1.c: Likewise.
38678         * tests/test-gc.c: Likewise.
38679         * tests/test-gethostname.c: Likewise.
38680         * tests/test-gettimeofday.c: Likewise.
38681         * tests/test-hash.c: Likewise.
38682         * tests/test-hmac-md5.c: Likewise.
38683         * tests/test-hmac-sha1.c: Likewise.
38684         * tests/test-md2.c: Likewise.
38685         * tests/test-md4.c: Likewise.
38686         * tests/test-md5.c: Likewise.
38687         * tests/test-memchr.c: Likewise.
38688         * tests/test-memchr2.c: Likewise.
38689         * tests/test-memcmp.c: Likewise.
38690         * tests/test-memmem.c: Likewise.
38691         * tests/test-memrchr.c: Likewise.
38692         * tests/test-rawmemchr.c: Likewise.
38693         * tests/test-read-file.c: Likewise.
38694         * tests/test-rijndael.c: Likewise.
38695         * tests/test-sockets.c: Likewise.
38696         * tests/test-strchrnul.c: Likewise.
38697         * tests/test-strstr.c: Likewise.
38698         * tests/test-strtod.c: Likewise.
38699         * build-aux/ncftpput-ftp: Likewise.
38700
38701 2010-01-26  Eric Blake  <ebb9@byu.net>
38702
38703         ignore-value: update recommended header name
38704         * modules/ignore-value (Include): Only use <> for headers that
38705         exist in glibc.
38706
38707 2010-01-26  Jim Meyering  <meyering@redhat.com>
38708
38709         test-userspec.c: avoid compiler warnings
38710         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38711         and "initialization discards qualifiers..." warnings.
38712         Put the first "uid" in its own scope, and make char* members "const".
38713
38714 2010-01-25  Bruno Haible  <bruno@clisp.org>
38715
38716         gnulib-tool: Make warning diagnostics consistent.
38717         * gnulib-tool (func_warning): New function.
38718         Use it everywhere where gnulib-tool produces output to stderr and it is
38719         not a fatal error.
38720
38721 2010-01-25  Bruno Haible  <bruno@clisp.org>
38722
38723         Fix test dependencies.
38724         * modules/xstrtol-tests (Depends-on): Add inttypes.
38725         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38726
38727 2010-01-25 Pádraig Brady <P@draigBrady.com>
38728
38729         syntax-check: detect incorrect boolean macro values in config.h
38730         * modules/maintainer-makefile (configure.ac): Parameterize the location
38731         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38732         The logic is from Eric Blake and the location indicated by Jim Meyering.
38733         Note the more natural CONFIG_HEADER name is prohibited by automake
38734         for backwards compatibility reasons.
38735         * top/maint.mk (sc_Wundef_boolean): New rule.
38736
38737 2010-01-25  Jim Meyering  <meyering@redhat.com>
38738
38739         bootstrap: detect MacOS 10.6's shasum, too
38740         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38741         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38742
38743 2010-01-23  Jim Meyering  <meyering@redhat.com>
38744
38745         xstrtoll: new module
38746         * modules/xstrtoll: New file.
38747         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38748         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38749         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38750         ./configure fails if you use this module and lack "long long".
38751         * modules/xstrtoll-tests: New module.
38752         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38753         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38754         new init.sh-based test framework.
38755
38756 2010-01-24  Bruno Haible  <bruno@clisp.org>
38757
38758         Tests for module 'yn'.
38759         * modules/yn-tests: New file.
38760         * tests/test-yn.c: New file.
38761
38762         Tests for module 'y1'.
38763         * modules/y1-tests: New file.
38764         * tests/test-y1.c: New file.
38765
38766         Tests for module 'y0'.
38767         * modules/y0-tests: New file.
38768         * tests/test-y0.c: New file.
38769
38770         Tests for module 'tanh'.
38771         * modules/tanh-tests: New file.
38772         * tests/test-tanh.c: New file.
38773
38774         Tests for module 'tan'.
38775         * modules/tan-tests: New file.
38776         * tests/test-tan.c: New file.
38777
38778         Tests for module 'sqrt'.
38779         * modules/sqrt-tests: New file.
38780         * tests/test-sqrt.c: New file.
38781
38782         Tests for module 'sinh'.
38783         * modules/sinh-tests: New file.
38784         * tests/test-sinh.c: New file.
38785
38786         Tests for module 'sin'.
38787         * modules/sin-tests: New file.
38788         * tests/test-sin.c: New file.
38789
38790         Tests for module 'rint'.
38791         * modules/rint-tests: New file.
38792         * tests/test-rint.c: New file.
38793
38794         Tests for module 'remainder'.
38795         * modules/remainder-tests: New file.
38796         * tests/test-remainder.c: New file.
38797
38798         Tests for module 'pow'.
38799         * modules/pow-tests: New file.
38800         * tests/test-pow.c: New file.
38801
38802         Tests for module 'nextafter'.
38803         * modules/nextafter-tests: New file.
38804         * tests/test-nextafter.c: New file.
38805
38806         Tests for module 'modf'.
38807         * modules/modf-tests: New file.
38808         * tests/test-modf.c: New file.
38809
38810         Tests for module 'logb'.
38811         * modules/logb-tests: New file.
38812         * tests/test-logb.c: New file.
38813
38814         Tests for module 'log1p'.
38815         * modules/log1p-tests: New file.
38816         * tests/test-log1p.c: New file.
38817
38818         Tests for module 'log10'.
38819         * modules/log10-tests: New file.
38820         * tests/test-log10.c: New file.
38821
38822         Tests for module 'log'.
38823         * modules/log-tests: New file.
38824         * tests/test-log.c: New file.
38825
38826         Tests for module 'lgamma'.
38827         * modules/lgamma-tests: New file.
38828         * tests/test-lgamma.c: New file.
38829
38830         Tests for module 'ldexp'.
38831         * modules/ldexp-tests: New file.
38832         * tests/test-ldexp.c: New file.
38833
38834         Tests for module 'jn'.
38835         * modules/jn-tests: New file.
38836         * tests/test-jn.c: New file.
38837
38838         Tests for module 'j1'.
38839         * modules/j1-tests: New file.
38840         * tests/test-j1.c: New file.
38841
38842         Tests for module 'j0'.
38843         * modules/j0-tests: New file.
38844         * tests/test-j0.c: New file.
38845
38846         Tests for module 'hypot'.
38847         * modules/hypot-tests: New file.
38848         * tests/test-hypot.c: New file.
38849
38850         Tests for module 'fmod'.
38851         * modules/fmod-tests: New file.
38852         * tests/test-fmod.c: New file.
38853
38854         Tests for module 'fabs'.
38855         * modules/fabs-tests: New file.
38856         * tests/test-fabs.c: New file.
38857
38858         Tests for module 'exp'.
38859         * modules/exp-tests: New file.
38860         * tests/test-exp.c: New file.
38861
38862         Tests for module 'erfc'.
38863         * modules/erfc-tests: New file.
38864         * tests/test-erfc.c: New file.
38865
38866         Tests for module 'erf'.
38867         * modules/erf-tests: New file.
38868         * tests/test-erf.c: New file.
38869
38870         Tests for module 'cosh'.
38871         * modules/cosh-tests: New file.
38872         * tests/test-cosh.c: New file.
38873
38874         Tests for module 'cos'.
38875         * modules/cos-tests: New file.
38876         * tests/test-cos.c: New file.
38877
38878         Tests for module 'copysign'.
38879         * modules/copysign-tests: New file.
38880         * tests/test-copysign.c: New file.
38881
38882         Tests for module 'cbrt'.
38883         * modules/cbrt-tests: New file.
38884         * tests/test-cbrt.c: New file.
38885
38886         Tests for module 'atan2'.
38887         * modules/atan2-tests: New file.
38888         * tests/test-atan2.c: New file.
38889
38890         Tests for module 'atan'.
38891         * modules/atan-tests: New file.
38892         * tests/test-atan.c: New file.
38893
38894         Tests for module 'asin'.
38895         * modules/asin-tests: New file.
38896         * tests/test-asin.c: New file.
38897
38898         Tests for module 'acos'.
38899         * modules/acos-tests: New file.
38900         * tests/test-acos.c: New file.
38901
38902 2010-01-24  Bruno Haible  <bruno@clisp.org>
38903
38904         Fix tests for common <math.h> functions.
38905         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38906         code snippet that references the function pointer, rather than merely
38907         calling the function. Substitute the FUNC_LIBM variable.
38908         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38909         * modules/acos (configure.ac): Likewise.
38910         * modules/asin (configure.ac): Likewise.
38911         * modules/atan (configure.ac): Likewise.
38912         * modules/atan2 (configure.ac): Likewise.
38913         * modules/cbrt (configure.ac): Likewise.
38914         * modules/copysign (configure.ac): Likewise.
38915         * modules/cos (configure.ac): Likewise.
38916         * modules/cosh (configure.ac): Likewise.
38917         * modules/erf (configure.ac): Likewise.
38918         * modules/erfc (configure.ac): Likewise.
38919         * modules/exp (configure.ac): Likewise.
38920         * modules/fabs (configure.ac): Likewise.
38921         * modules/fmod (configure.ac): Likewise.
38922         * modules/hypot (configure.ac): Likewise.
38923         * modules/j0 (configure.ac): Likewise.
38924         * modules/j1 (configure.ac): Likewise.
38925         * modules/jn (configure.ac): Likewise.
38926         * modules/ldexp (configure.ac): Likewise.
38927         * modules/lgamma (configure.ac): Likewise.
38928         * modules/log (configure.ac): Likewise.
38929         * modules/log10 (configure.ac): Likewise.
38930         * modules/log1p (configure.ac): Likewise.
38931         * modules/logb (configure.ac): Likewise.
38932         * modules/modf (configure.ac): Likewise.
38933         * modules/nextafter (configure.ac): Likewise.
38934         * modules/pow (configure.ac): Likewise.
38935         * modules/remainder (configure.ac): Likewise.
38936         * modules/rint (configure.ac): Likewise.
38937         * modules/sin (configure.ac): Likewise.
38938         * modules/sinh (configure.ac): Likewise.
38939         * modules/tan (configure.ac): Likewise.
38940         * modules/tanh (configure.ac): Likewise.
38941         * modules/y0 (configure.ac): Likewise.
38942         * modules/y1 (configure.ac): Likewise.
38943         * modules/yn (configure.ac): Likewise.
38944
38945 2010-01-24  Bruno Haible  <bruno@clisp.org>
38946
38947         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38948         * tests/test-acosl.c (x): New variable.
38949         (main): Store argument in x and fetch it from x.
38950         * tests/test-asinl.c (x): New variable.
38951         (main): Store argument in x and fetch it from x.
38952         * tests/test-atanl.c (x): New variable.
38953         (main): Store argument in x and fetch it from x.
38954         * tests/test-cosl.c (x): New variable.
38955         (main): Store argument in x and fetch it from x.
38956         * tests/test-expl.c (x): New variable.
38957         (main): Store argument in x and fetch it from x.
38958         * tests/test-logl.c (x): New variable.
38959         (main): Store argument in x and fetch it from x.
38960         * tests/test-sinl.c (x): New variable.
38961         (main): Store argument in x and fetch it from x.
38962         * tests/test-sqrtl.c (x): New variable.
38963         (main): Store argument in x and fetch it from x.
38964         * tests/test-tanl.c (x): New variable.
38965         (main): Store argument in x and fetch it from x.
38966
38967 2010-01-24  Bruno Haible  <bruno@clisp.org>
38968
38969         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38970         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38971         assignments to the initial TESTS_ENVIRONMENT.
38972         * doc/gnulib.texi (Unit test modules): Document it.
38973         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38974         TESTS_ENVIRONMENT.
38975         * modules/btowc-tests (Makefile.am): Likewise.
38976         * modules/c-stack-tests (Makefile.am): Likewise.
38977         * modules/c-strcase-tests (Makefile.am): Likewise.
38978         * modules/copy-file-tests (Makefile.am): Likewise.
38979         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38980         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38981         * modules/mbrtowc-tests (Makefile.am): Likewise.
38982         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38983         * modules/mbscasestr-tests (Makefile.am): Likewise.
38984         * modules/mbschr-tests (Makefile.am): Likewise.
38985         * modules/mbscspn-tests (Makefile.am): Likewise.
38986         * modules/mbsinit-tests (Makefile.am): Likewise.
38987         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38988         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38989         * modules/mbspbrk-tests (Makefile.am): Likewise.
38990         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38991         * modules/mbsrchr-tests (Makefile.am): Likewise.
38992         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38993         * modules/mbsspn-tests (Makefile.am): Likewise.
38994         * modules/mbsstr-tests (Makefile.am): Likewise.
38995         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38996         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38997         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38998         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38999         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39000         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39001         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
39002         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39003         * modules/wcrtomb-tests (Makefile.am): Likewise.
39004         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
39005         * modules/wcsrtombs-tests (Makefile.am): Likewise.
39006         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
39007         assignments from TESTS_ENVIRONMENT.
39008         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
39009         augmentation.
39010         * modules/argp-version-etc-tests (Makefile.am): Likewise.
39011         * modules/atexit-tests (Makefile.am): Likewise.
39012         * modules/binary-io-tests (Makefile.am): Likewise.
39013         * modules/closein-tests (Makefile.am): Likewise.
39014         * modules/dprintf-posix-tests (Makefile.am): Likewise.
39015         * modules/exclude-tests (Makefile.am): Likewise.
39016         * modules/fflush-tests (Makefile.am): Likewise.
39017         * modules/fpending-tests (Makefile.am): Likewise.
39018         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39019         * modules/freadahead-tests (Makefile.am): Likewise.
39020         * modules/freadptr-tests (Makefile.am): Likewise.
39021         * modules/freadseek-tests (Makefile.am): Likewise.
39022         * modules/fseek-tests (Makefile.am): Likewise.
39023         * modules/fseeko-tests (Makefile.am): Likewise.
39024         * modules/ftell-tests (Makefile.am): Likewise.
39025         * modules/ftello-tests (Makefile.am): Likewise.
39026         * modules/idpriv-drop-tests (Makefile.am): Likewise.
39027         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
39028         * modules/lseek-tests (Makefile.am): Likewise.
39029         * modules/parse-duration-tests (Makefile.am): Likewise.
39030         * modules/perror-tests (Makefile.am): Likewise.
39031         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
39032         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
39033         * modules/pipe-tests (Makefile.am): Likewise.
39034         * modules/pread-tests (Makefile.am): Likewise.
39035         * modules/printf-posix-tests (Makefile.am): Likewise.
39036         * modules/select-tests (Makefile.am): Likewise.
39037         * modules/sigpipe-tests (Makefile.am): Likewise.
39038         * modules/tsearch-tests (Makefile.am): Likewise.
39039         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
39040         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
39041         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39042         * modules/uniwidth/width-tests (Makefile.am): Likewise.
39043         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
39044         * modules/version-etc-tests (Makefile.am): Likewise.
39045         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39046         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39047         * modules/xalloc-die-tests (Makefile.am): Likewise.
39048         * modules/xprintf-posix-tests (Makefile.am): Likewise.
39049         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39050         * modules/xstrtol-tests (Makefile.am): Likewise.
39051         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39052         * modules/yesno-tests (Makefile.am): Likewise.
39053         Suggested by Jim Meyering.
39054
39055 2010-01-24  Bruno Haible  <bruno@clisp.org>
39056
39057         More documentation.
39058         * doc/gnulib.texi (Writing modules): New chapter.
39059         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
39060         the new chapter.
39061
39062 2010-01-24  Jim Meyering  <meyering@redhat.com>
39063
39064         maint.mk: do not prepend "./" after filtering
39065         * top/maint.mk (_prepend_srcdir_prefix): New variable
39066         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
39067         "./" when $(srcdir) is ".".
39068
39069         define STREQ(a,b) consistently, removing useless parentheses
39070         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
39071         since the only risk is that "a" or "b" contains an unparenthesized
39072         comma, but if either did that, STREQ would have 3 or more arguments.
39073         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
39074         * lib/fts.c (STREQ): Remove unnecessary parentheses.
39075         * lib/hash-triple.c (STREQ): Likewise.
39076         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
39077         * lib/getugroups.c (STREQ): Likewise.
39078
39079 2010-01-23  Jim Meyering  <meyering@redhat.com>
39080
39081         maint.mk: fix syntax-check in a non-srcdir build directory
39082         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
39083         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
39084
39085 2010-01-22  Jim Meyering  <meyering@redhat.com>
39086
39087         userspec: add unit tests
39088         * tests/test-userspec.c: New file.
39089         * modules/userspec-tests: Likewise.
39090
39091 2010-01-21  Jim Meyering  <meyering@redhat.com>
39092
39093         maint.mk: handle source file names containing "." robustly
39094         * top/maint.mk (_dot_escaped_srcdir): Define.
39095         (VC_LIST): Use it in LHS of sed substitution.
39096
39097 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
39098
39099         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
39100         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
39101         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
39102         from a non-srcdir build.
39103
39104 2010-01-20  Eric Blake  <ebb9@byu.net>
39105
39106         warn-on-use: use instead of link-warning
39107         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
39108         * modules/unistd (Depends-on, Makefile.am): Likewise.
39109         * modules/arpa_inet (Depends-on): Replace link-warning with
39110         warn-on-use.
39111         (Makefile.am): Update rules accordingly.
39112         * modules/ctype (Depends-on, Makefile.am): Likewise.
39113         * modules/dirent (Depends-on, Makefile.am): Likewise.
39114         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
39115         * modules/inttypes (Depends-on, Makefile.am): Likewise.
39116         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39117         * modules/locale (Depends-on, Makefile.am): Likewise.
39118         * modules/math (Depends-on, Makefile.am): Likewise.
39119         * modules/search (Depends-on, Makefile.am): Likewise.
39120         * modules/signal (Depends-on, Makefile.am): Likewise.
39121         * modules/spawn (Depends-on, Makefile.am): Likewise.
39122         * modules/stdlib (Depends-on, Makefile.am): Likewise.
39123         * modules/string (Depends-on, Makefile.am): Likewise.
39124         * modules/strings (Depends-on, Makefile.am): Likewise.
39125         * modules/sys_file (Depends-on, Makefile.am): Likewise.
39126         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
39127         * modules/sys_select (Depends-on, Makefile.am): Likewise.
39128         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
39129         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
39130         * modules/sys_times (Depends-on, Makefile.am): Likewise.
39131         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39132         * modules/wchar (Depends-on, Makefile.am): Likewise.
39133         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
39134         should be poisoned.
39135         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
39136         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
39137         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
39138         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39139         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39140         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39141         * m4/math_h.m4 (gl_MATH_H): Likewise.
39142         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39143         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39144         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39145         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39146         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39147         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39148         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39149         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39150         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39151         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39152         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39153         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39154         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39155         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39156         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39157         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39158         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39159         GL_LINK_WARNING.
39160         * lib/ctype.in.h: Likewise.
39161         * lib/dirent.in.h: Likewise.
39162         * lib/fcntl.in.h: Likewise.
39163         * lib/inttypes.in.h: Likewise.
39164         * lib/langinfo.in.h: Likewise.
39165         * lib/locale.in.h: Likewise.
39166         * lib/math.in.h: Likewise.
39167         * lib/search.in.h: Likewise.
39168         * lib/signal.in.h: Likewise.
39169         * lib/spawn.in.h: Likewise.
39170         * lib/stdio.in.h: Likewise.
39171         * lib/stdlib.in.h: Likewise.
39172         * lib/string.in.h: Likewise.
39173         * lib/strings.in.h: Likewise.
39174         * lib/sys_file.in.h: Likewise.
39175         * lib/sys_ioctl.in.h: Likewise.
39176         * lib/sys_select.in.h: Likewise.
39177         * lib/sys_socket.in.h: Likewise.
39178         * lib/sys_stat.in.h: Likewise.
39179         * lib/sys_times.in.h: Likewise.
39180         * lib/sys_utsname.in.h: Likewise.
39181         * lib/unistd.in.h: Likewise.
39182         * lib/wchar.in.h: Likewise.
39183
39184 2010-01-20  Bruno Haible  <bruno@clisp.org>
39185
39186         Avoid duplicate -lm.
39187         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39188         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39189         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39190         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39191         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39192         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39193         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39194         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39195         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39196         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39197         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39198         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39199         Reported by Paolo Bonzini.
39200
39201 2010-01-19  Bruno Haible  <bruno@clisp.org>
39202
39203         langinfo, nl_langinfo: Relicense under LGPLv2+.
39204         * modules/langinfo (License): Change to LGPLv2+.
39205         * modules/nl_langinfo (License): Likewise.
39206         Patch by David Lutterkort <lutter@redhat.com>.
39207
39208 2010-01-19  Bruno Haible  <bruno@clisp.org>
39209
39210         Avoid compilation error with cc on OSF/1 5.1.
39211         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39212         statement, not before.
39213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39214
39215 2010-01-18  Bruno Haible  <bruno@clisp.org>
39216
39217         Avoid a link error due to the __printf__ symbol.
39218         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39219         and 2.6.x.
39220         (__format__, __printf__): Remove definitions.
39221         * lib/argp-fmtstream.h: Likewise.
39222         * lib/argp.h: Likewise.
39223         * lib/error.h: Likewise.
39224         * lib/vasnprintf.h: Likewise.
39225         * lib/xprintf.h: Likewise.
39226         * lib/xvasprintf.h: Likewise.
39227         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39228
39229 2010-01-18  Bruno Haible  <bruno@clisp.org>
39230
39231         Tests for module 'tanl'.
39232         * modules/tanl-tests: New file.
39233         * tests/test-tanl.c: New file.
39234
39235         Tests for module 'sqrtl'.
39236         * modules/sqrtl-tests: New file.
39237         * tests/test-sqrtl.c: New file.
39238
39239         Tests for module 'sinl'.
39240         * modules/sinl-tests: New file.
39241         * tests/test-sinl.c: New file.
39242
39243         Tests for module 'logl'.
39244         * modules/logl-tests: New file.
39245         * tests/test-logl.c: New file.
39246
39247         Tests for module 'expl'.
39248         * modules/expl-tests: New file.
39249         * tests/test-expl.c: New file.
39250
39251         Tests for module 'cosl'.
39252         * modules/cosl-tests: New file.
39253         * tests/test-cosl.c: New file.
39254
39255         Tests for module 'atanl'.
39256         * modules/atanl-tests: New file.
39257         * tests/test-atanl.c: New file.
39258
39259         Tests for module 'asinl'.
39260         * modules/asinl-tests: New file.
39261         * tests/test-asinl.c: New file.
39262
39263         Tests for module 'acosl'.
39264         * modules/acosl-tests: New file.
39265         * tests/test-acosl.c: New file.
39266
39267         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39268         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39269         tanl): Use the standard gnulib idiom.
39270         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39271         * lib/sinl.c: Likewise.
39272         * lib/tanl.c: Don't include trigl.c.
39273         (kernel_tanl): Make static.
39274         * lib/sincosl.c: Include trigl.h first.
39275         * lib/trigl.c: Likewise.
39276         * m4/acosl.m4: New file.
39277         * m4/asinl.m4: New file.
39278         * m4/atanl.m4: New file.
39279         * m4/cosl.m4: New file.
39280         * m4/expl.m4: New file.
39281         * m4/logl.m4: New file.
39282         * m4/sinl.m4: New file.
39283         * m4/sqrtl.m4: New file.
39284         * m4/tanl.m4: New file.
39285         * m4/mathl.m4: Remove file.
39286         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39287         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39288         Don't initialize GNULIB_MATHL.
39289         * modules/acosl: New file.
39290         * modules/asinl: New file.
39291         * modules/atanl: New file.
39292         * modules/cosl: New file.
39293         * modules/expl: New file.
39294         * modules/logl: New file.
39295         * modules/sinl: New file.
39296         * modules/sqrtl: New file.
39297         * modules/tanl: New file.
39298         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39299         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39300         substitute GNULIB_MATHL.
39301         * modules/mathl: Rewritten.
39302         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39303         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39304         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39305         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39306         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39307         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39308         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39309         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39310         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39311
39312 2010-01-18  Bruno Haible  <bruno@clisp.org>
39313
39314         sqrt: Make gl_FUNC_SQRT requirable.
39315         * m4/sqrt.m4: New file.
39316         * modules/sqrt (Files): Add it.
39317         (configure.ac): Invoke gl_FUNC_SQRT.
39318
39319 2010-01-18  Bruno Haible  <bruno@clisp.org>
39320
39321         New modules for common <math.h> functions.
39322         * m4/mathfunc.m4: New file.
39323         * modules/acos: New file.
39324         * modules/asin: New file.
39325         * modules/atan: New file.
39326         * modules/atan2: New file.
39327         * modules/cbrt: New file.
39328         * modules/copysign: New file.
39329         * modules/cos: New file.
39330         * modules/cosh: New file.
39331         * modules/erf: New file.
39332         * modules/erfc: New file.
39333         * modules/exp: New file.
39334         * modules/fabs: New file.
39335         * modules/fmod: New file.
39336         * modules/hypot: New file.
39337         * modules/j0: New file.
39338         * modules/j1: New file.
39339         * modules/jn: New file.
39340         * modules/ldexp: New file.
39341         * modules/lgamma: New file.
39342         * modules/log: New file.
39343         * modules/log10: New file.
39344         * modules/log1p: New file.
39345         * modules/logb: New file.
39346         * modules/modf: New file.
39347         * modules/nextafter: New file.
39348         * modules/pow: New file.
39349         * modules/remainder: New file.
39350         * modules/rint: New file.
39351         * modules/sin: New file.
39352         * modules/sinh: New file.
39353         * modules/sqrt: New file.
39354         * modules/tan: New file.
39355         * modules/tanh: New file.
39356         * modules/y0: New file.
39357         * modules/y1: New file.
39358         * modules/yn: New file.
39359         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39360         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39361         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39362         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39363         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39364         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39365         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39366         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39367         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39368         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39369         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39370         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39371         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39372         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39373         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39374         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39375         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39376         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39377         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39378         * doc/posix-functions/log.texi: Mention the 'log' module.
39379         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39380         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39381         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39382         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39383         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39384         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39385         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39386         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39387         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39388         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39389         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39390         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39391         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39392         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39393         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39394         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39395
39396 2010-01-18  Jim Meyering  <meyering@redhat.com>
39397
39398         ignore-value: relax license to LGPLv2+
39399         * modules/ignore-value (License): Relax to LGPLv2+.
39400
39401         getdate: don't leak when TZ contains two or more '"'s
39402         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39403         double quote in TZ after the first one.
39404
39405         readtokens: do not leak internal token_lengths buffer
39406         * lib/readtokens.c (readtokens): Free the local, lengths,
39407         when the supplied "token_lengths" parameter is NULL.
39408
39409 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39410
39411         Fix a couple of missing LIBTHREAD link failures on AIX.
39412         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39413         $(LIBTHREAD).
39414         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39415
39416         Link test-poll against INET_PTON_LIB.
39417         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39418         for inet_pton on Solaris 10.
39419
39420 2010-01-17  Bruno Haible  <bruno@clisp.org>
39421
39422         unistdio/*-sprintf: Fix typo in module description.
39423         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39424         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39425         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39426         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39427         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39428         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39429         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39431
39432 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39433
39434         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39435         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39436         variables in shell case patterns, for AIX and HP-UX ksh.
39437
39438         Split large sed scripts, for HP-UX sed.
39439         * modules/stdio: Split sed scripts around 50 sed commands,
39440         to avoid HP-UX limit of 99 commands, in the near future.
39441         * modules/string: Likewise.
39442         * modules/unistd: Likewise.
39443
39444         gnulib-tool: avoid writing in the current directory.
39445         * gnulib-tool (func_emit_lib_Makefile_am)
39446         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39447         not in the current directory, so concurrent gnulib-tool
39448         instances do not interfere.
39449
39450 2010-01-16  Jim Meyering  <meyering@redhat.com>
39451
39452         doc: update users.txt
39453         * users.txt: Add grep.
39454         (diffutils, gzip): Update URLs.
39455
39456 2010-01-12  Bruno Haible  <bruno@clisp.org>
39457
39458         posix_spawn: Avoid test failure on Cygwin.
39459         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39460         characters.
39461         Reported by Simon Josefsson.
39462
39463 2010-01-12  Bruno Haible  <bruno@clisp.org>
39464
39465         * tests/test-cond.c (main): When skipping the test, show the reason.
39466
39467 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39468
39469         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39470
39471 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39472
39473         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39474         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39475
39476 2010-01-12  Eric Blake  <ebb9@byu.net>
39477
39478         build: guarantee AS_VAR_IF
39479         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39480         (gl_AS_VAR_IF): Move...
39481         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39482         Reported by Simon Josefsson.
39483
39484 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39485
39486         * lib/stdio.in.h: Fix typo.
39487
39488 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39489
39490         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39491         libgpg-error.
39492
39493 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39494
39495         * tests/test-xalloc-die.sh: Use $EXEEXT.
39496
39497 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39498             Bruno Haible  <bruno@clisp.org>
39499
39500         getlogin, getlogin_r: Avoid test failure.
39501         * tests/test-getlogin.c: Include <stdio.h>.
39502         (main): Skip the test when the function fails because stdin is not a
39503         tty.
39504         * tests/test-getlogin_r.c: Include <stdio.h>.
39505         (main): Skip the test when the function fails because stdin is not a
39506         tty.
39507
39508 2010-01-11  Eric Blake  <ebb9@byu.net>
39509
39510         tests: avoid more large file warnings
39511         * tests/test-fflush.c: Avoid warning about ftell use.
39512         * tests/test-fseek.c: Avoid warning about fseek use.
39513
39514 2010-01-10  Bruno Haible  <bruno@clisp.org>
39515
39516         nproc: Work better on Linux when /proc and /sys are not mounted.
39517         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39518         as lower bound when, on glibc/Linux systems,
39519         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39520         Suggested by Pádraig Brady <P@draigbrady.com>.
39521         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39522
39523         nproc: Refactor.
39524         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39525         extracted from num_processors.
39526         (num_processors): Call it.
39527
39528 2010-01-11  Jim Meyering  <meyering@redhat.com>
39529
39530         utimecmp: avoid new warning from upcoming gcc-4.5.0
39531         * lib/utimecmp.c (BILLION): Define using #define rather than an
39532         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39533
39534 2010-01-11  Eric Blake  <ebb9@byu.net>
39535
39536         math: add portability warnings for classification macros
39537         * modules/math (Depends-on): Add warn-on-use.
39538         (Makefile.am): Provide new substitutions.
39539         * m4/math_h.m4 (gl_MATH_H): Require inline.
39540         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39541         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39542         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39543         implement warnings.
39544
39545         unistd: warn on use of environ without module
39546         * modules/unistd (Depends-on): Add warn-on-use.
39547         (Makefile.am): Provide new substitutions.
39548         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39549         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39550
39551         stdio: warn on suspicious uses
39552         * modules/stdio (Depends-on): Add warn-on-use.
39553         (Makefile.am): Provide new substitutions.
39554         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39555         fseeko.
39556         * lib/stdio.in.h (gets): Always warn on use.
39557         (fseek, ftell): Adjust when warnings are issued, and honor
39558         _GL_NO_LARGE_FILES as a way to silence the warning.
39559         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39560         any warning about large file offsets.
39561         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39562         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39563         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39564         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39565         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39566         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39567         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39568         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39569
39570         warn-on-use: new module
39571         * modules/warn-on-use: New file.
39572         * build-aux/warn-on-use.h: Likewise.
39573         * m4/warn-on-use.m4: Likewise.
39574         * MODULES.html.sh (Support for building): Mention it.
39575
39576 2010-01-10  Bruno Haible  <bruno@clisp.org>
39577
39578         Tests for module 'unistr/u32-strdup'.
39579         * modules/unistr/u32-strdup-tests: New file.
39580         * tests/unistr/test-u32-strdup.c: New file.
39581
39582         Tests for module 'unistr/u16-strdup'.
39583         * modules/unistr/u16-strdup-tests: New file.
39584         * tests/unistr/test-u16-strdup.c: New file.
39585
39586         Tests for module 'unistr/u8-strdup'.
39587         * modules/unistr/u8-strdup-tests: New file.
39588         * tests/unistr/test-u8-strdup.c: New file.
39589         * tests/unistr/test-strdup.h: New file.
39590
39591         Tests for module 'unistr/u32-strncmp'.
39592         * modules/unistr/u32-strncmp-tests: New file.
39593         * tests/unistr/test-u32-strncmp.c: New file.
39594
39595         Tests for module 'unistr/u16-strncmp'.
39596         * modules/unistr/u16-strncmp-tests: New file.
39597         * tests/unistr/test-u16-strncmp.c: New file.
39598
39599         Tests for module 'unistr/u8-strncmp'.
39600         * modules/unistr/u8-strncmp-tests: New file.
39601         * tests/unistr/test-u8-strncmp.c: New file.
39602         * tests/unistr/test-strncmp.h: New file.
39603
39604         Tests for module 'unistr/u32-strcoll'.
39605         * modules/unistr/u32-strcoll-tests: New file.
39606         * tests/unistr/test-u32-strcoll.c: New file.
39607
39608         Tests for module 'unistr/u16-strcoll'.
39609         * modules/unistr/u16-strcoll-tests: New file.
39610         * tests/unistr/test-u16-strcoll.c: New file.
39611
39612         Tests for module 'unistr/u8-strcoll'.
39613         * modules/unistr/u8-strcoll-tests: New file.
39614         * tests/unistr/test-u8-strcoll.c: New file.
39615
39616         Tests for module 'unistr/u32-strcmp'.
39617         * modules/unistr/u32-strcmp-tests: New file.
39618         * tests/unistr/test-u32-strcmp.c: New file.
39619         * tests/unistr/test-u32-strcmp.h: New file.
39620
39621         Tests for module 'unistr/u16-strcmp'.
39622         * modules/unistr/u16-strcmp-tests: New file.
39623         * tests/unistr/test-u16-strcmp.c: New file.
39624         * tests/unistr/test-u16-strcmp.h: New file.
39625
39626         Tests for module 'unistr/u8-strcmp'.
39627         * modules/unistr/u8-strcmp-tests: New file.
39628         * tests/unistr/test-u8-strcmp.c: New file.
39629         * tests/unistr/test-u8-strcmp.h: New file.
39630         * tests/unistr/test-strcmp.h: New file.
39631
39632         Tests for module 'unistr/u32-strncat'.
39633         * modules/unistr/u32-strncat-tests: New file.
39634         * tests/unistr/test-u32-strncat.c: New file.
39635
39636         Tests for module 'unistr/u16-strncat'.
39637         * modules/unistr/u16-strncat-tests: New file.
39638         * tests/unistr/test-u16-strncat.c: New file.
39639
39640         Tests for module 'unistr/u8-strncat'.
39641         * modules/unistr/u8-strncat-tests: New file.
39642         * tests/unistr/test-u8-strncat.c: New file.
39643         * tests/unistr/test-strncat.h: New file.
39644
39645         Tests for module 'unistr/u32-strcat'.
39646         * modules/unistr/u32-strcat-tests: New file.
39647         * tests/unistr/test-u32-strcat.c: New file.
39648
39649         Tests for module 'unistr/u16-strcat'.
39650         * modules/unistr/u16-strcat-tests: New file.
39651         * tests/unistr/test-u16-strcat.c: New file.
39652
39653         Tests for module 'unistr/u8-strcat'.
39654         * modules/unistr/u8-strcat-tests: New file.
39655         * tests/unistr/test-u8-strcat.c: New file.
39656         * tests/unistr/test-strcat.h: New file.
39657
39658         Tests for module 'unistr/u32-stpncpy'.
39659         * modules/unistr/u32-stpncpy-tests: New file.
39660         * tests/unistr/test-u32-stpncpy.c: New file.
39661
39662         Tests for module 'unistr/u16-stpncpy'.
39663         * modules/unistr/u16-stpncpy-tests: New file.
39664         * tests/unistr/test-u16-stpncpy.c: New file.
39665
39666         Tests for module 'unistr/u8-stpncpy'.
39667         * modules/unistr/u8-stpncpy-tests: New file.
39668         * tests/unistr/test-u8-stpncpy.c: New file.
39669         * tests/unistr/test-stpncpy.h: New file.
39670
39671         Tests for module 'unistr/u32-strncpy'.
39672         * modules/unistr/u32-strncpy-tests: New file.
39673         * tests/unistr/test-u32-strncpy.c: New file.
39674
39675         Tests for module 'unistr/u16-strncpy'.
39676         * modules/unistr/u16-strncpy-tests: New file.
39677         * tests/unistr/test-u16-strncpy.c: New file.
39678
39679         Tests for module 'unistr/u8-strncpy'.
39680         * modules/unistr/u8-strncpy-tests: New file.
39681         * tests/unistr/test-u8-strncpy.c: New file.
39682         * tests/unistr/test-strncpy.h: New file.
39683
39684         Tests for module 'unistr/u32-stpcpy'.
39685         * modules/unistr/u32-stpcpy-tests: New file.
39686         * tests/unistr/test-u32-stpcpy.c: New file.
39687
39688         Tests for module 'unistr/u16-stpcpy'.
39689         * modules/unistr/u16-stpcpy-tests: New file.
39690         * tests/unistr/test-u16-stpcpy.c: New file.
39691
39692         Tests for module 'unistr/u8-stpcpy'.
39693         * modules/unistr/u8-stpcpy-tests: New file.
39694         * tests/unistr/test-u8-stpcpy.c: New file.
39695         * tests/unistr/test-stpcpy.h: New file.
39696
39697         Tests for module 'unistr/u32-strcpy'.
39698         * modules/unistr/u32-strcpy-tests: New file.
39699         * tests/unistr/test-u32-strcpy.c: New file.
39700
39701         Tests for module 'unistr/u16-strcpy'.
39702         * modules/unistr/u16-strcpy-tests: New file.
39703         * tests/unistr/test-u16-strcpy.c: New file.
39704
39705         Tests for module 'unistr/u8-strcpy'.
39706         * modules/unistr/u8-strcpy-tests: New file.
39707         * tests/unistr/test-u8-strcpy.c: New file.
39708         * tests/unistr/test-strcpy.h: New file.
39709
39710         Tests for module 'unistr/u32-strnlen'.
39711         * modules/unistr/u32-strnlen-tests: New file.
39712         * tests/unistr/test-u32-strnlen.c: New file.
39713
39714         Tests for module 'unistr/u16-strnlen'.
39715         * modules/unistr/u16-strnlen-tests: New file.
39716         * tests/unistr/test-u16-strnlen.c: New file.
39717
39718         Tests for module 'unistr/u8-strnlen'.
39719         * modules/unistr/u8-strnlen-tests: New file.
39720         * tests/unistr/test-u8-strnlen.c: New file.
39721         * tests/unistr/test-strnlen.h: New file.
39722
39723         Tests for module 'unistr/u32-strlen'.
39724         * modules/unistr/u32-strlen-tests: New file.
39725         * tests/unistr/test-u32-strlen.c: New file.
39726
39727         Tests for module 'unistr/u16-strlen'.
39728         * modules/unistr/u16-strlen-tests: New file.
39729         * tests/unistr/test-u16-strlen.c: New file.
39730
39731         Tests for module 'unistr/u8-strlen'.
39732         * modules/unistr/u8-strlen-tests: New file.
39733         * tests/unistr/test-u8-strlen.c: New file.
39734
39735         Tests for module 'unistr/u32-prev'.
39736         * modules/unistr/u32-prev-tests: New file.
39737         * tests/unistr/test-u32-prev.c: New file.
39738
39739         Tests for module 'unistr/u16-prev'.
39740         * modules/unistr/u16-prev-tests: New file.
39741         * tests/unistr/test-u16-prev.c: New file.
39742
39743         Tests for module 'unistr/u8-prev'.
39744         * modules/unistr/u8-prev-tests: New file.
39745         * tests/unistr/test-u8-prev.c: New file.
39746
39747         Tests for module 'unistr/u32-next'.
39748         * modules/unistr/u32-next-tests: New file.
39749         * tests/unistr/test-u32-next.c: New file.
39750
39751         Tests for module 'unistr/u16-next'.
39752         * modules/unistr/u16-next-tests: New file.
39753         * tests/unistr/test-u16-next.c: New file.
39754
39755         Tests for module 'unistr/u8-next'.
39756         * modules/unistr/u8-next-tests: New file.
39757         * tests/unistr/test-u8-next.c: New file.
39758
39759         Tests for module 'unistr/u32-strmbtouc'.
39760         * modules/unistr/u32-strmbtouc-tests: New file.
39761         * tests/unistr/test-u32-strmbtouc.c: New file.
39762
39763         Tests for module 'unistr/u16-strmbtouc'.
39764         * modules/unistr/u16-strmbtouc-tests: New file.
39765         * tests/unistr/test-u16-strmbtouc.c: New file.
39766
39767         Tests for module 'unistr/u8-strmbtouc'.
39768         * modules/unistr/u8-strmbtouc-tests: New file.
39769         * tests/unistr/test-u8-strmbtouc.c: New file.
39770
39771         Tests for module 'unistr/u32-strmblen'.
39772         * modules/unistr/u32-strmblen-tests: New file.
39773         * tests/unistr/test-u32-strmblen.c: New file.
39774
39775         Tests for module 'unistr/u16-strmblen'.
39776         * modules/unistr/u16-strmblen-tests: New file.
39777         * tests/unistr/test-u16-strmblen.c: New file.
39778
39779         Tests for module 'unistr/u8-strmblen'.
39780         * modules/unistr/u8-strmblen-tests: New file.
39781         * tests/unistr/test-u8-strmblen.c: New file.
39782
39783         Tests for module 'unistr/u32-cpy-alloc'.
39784         * modules/unistr/u32-cpy-alloc-tests: New file.
39785         * tests/unistr/test-u32-cpy-alloc.c: New file.
39786
39787         Tests for module 'unistr/u16-cpy-alloc'.
39788         * modules/unistr/u16-cpy-alloc-tests: New file.
39789         * tests/unistr/test-u16-cpy-alloc.c: New file.
39790
39791         Tests for module 'unistr/u8-cpy-alloc'.
39792         * modules/unistr/u8-cpy-alloc-tests: New file.
39793         * tests/unistr/test-u8-cpy-alloc.c: New file.
39794         * tests/unistr/test-cpy-alloc.h: New file.
39795
39796         Tests for module 'unistr/u32-mbsnlen'.
39797         * modules/unistr/u32-mbsnlen-tests: New file.
39798         * tests/unistr/test-u32-mbsnlen.c: New file.
39799
39800         Tests for module 'unistr/u16-mbsnlen'.
39801         * modules/unistr/u16-mbsnlen-tests: New file.
39802         * tests/unistr/test-u16-mbsnlen.c: New file.
39803
39804         Tests for module 'unistr/u8-mbsnlen'.
39805         * modules/unistr/u8-mbsnlen-tests: New file.
39806         * tests/unistr/test-u8-mbsnlen.c: New file.
39807
39808         Tests for module 'unistr/u32-chr'.
39809         * modules/unistr/u32-chr-tests: New file.
39810         * tests/unistr/test-u32-chr.c: New file.
39811
39812         Tests for module 'unistr/u16-chr'.
39813         * modules/unistr/u16-chr-tests: New file.
39814         * tests/unistr/test-u16-chr.c: New file.
39815
39816         Tests for module 'unistr/u8-chr'.
39817         * modules/unistr/u8-chr-tests: New file.
39818         * tests/unistr/test-u8-chr.c: New file.
39819         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39820
39821         Tests for module 'unistr/u32-cmp2'.
39822         * modules/unistr/u32-cmp2-tests: New file.
39823         * tests/unistr/test-u32-cmp2.c: New file.
39824
39825         Tests for module 'unistr/u16-cmp2'.
39826         * modules/unistr/u16-cmp2-tests: New file.
39827         * tests/unistr/test-u16-cmp2.c: New file.
39828
39829         Tests for module 'unistr/u8-cmp2'.
39830         * modules/unistr/u8-cmp2-tests: New file.
39831         * tests/unistr/test-u8-cmp2.c: New file.
39832         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39833
39834         Tests for module 'unistr/u32-cmp'.
39835         * modules/unistr/u32-cmp-tests: New file.
39836         * tests/unistr/test-u32-cmp.c: New file.
39837
39838         Tests for module 'unistr/u16-cmp'.
39839         * modules/unistr/u16-cmp-tests: New file.
39840         * tests/unistr/test-u16-cmp.c: New file.
39841
39842         Tests for module 'unistr/u8-cmp'.
39843         * modules/unistr/u8-cmp-tests: New file.
39844         * tests/unistr/test-u8-cmp.c: New file.
39845         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39846
39847         Tests for module 'unistr/u32-set'.
39848         * modules/unistr/u32-set-tests: New file.
39849         * tests/unistr/test-u32-set.c: New file.
39850
39851         Tests for module 'unistr/u16-set'.
39852         * modules/unistr/u16-set-tests: New file.
39853         * tests/unistr/test-u16-set.c: New file.
39854
39855         Tests for module 'unistr/u8-set'.
39856         * modules/unistr/u8-set-tests: New file.
39857         * tests/unistr/test-u8-set.c: New file.
39858         * tests/unistr/test-set.h: New file.
39859
39860         Tests for module 'unistr/u32-move'.
39861         * modules/unistr/u32-move-tests: New file.
39862         * tests/unistr/test-u32-move.c: New file.
39863
39864         Tests for module 'unistr/u16-move'.
39865         * modules/unistr/u16-move-tests: New file.
39866         * tests/unistr/test-u16-move.c: New file.
39867
39868         Tests for module 'unistr/u8-move'.
39869         * modules/unistr/u8-move-tests: New file.
39870         * tests/unistr/test-u8-move.c: New file.
39871         * tests/unistr/test-move.h: New file.
39872
39873         Tests for module 'unistr/u32-cpy'.
39874         * modules/unistr/u32-cpy-tests: New file.
39875         * tests/unistr/test-u32-cpy.c: New file.
39876
39877         Tests for module 'unistr/u16-cpy'.
39878         * modules/unistr/u16-cpy-tests: New file.
39879         * tests/unistr/test-u16-cpy.c: New file.
39880
39881         Tests for module 'unistr/u8-cpy'.
39882         * modules/unistr/u8-cpy-tests: New file.
39883         * tests/unistr/test-u8-cpy.c: New file.
39884         * tests/unistr/test-cpy.h: New file.
39885
39886 2010-01-09  Bruno Haible  <bruno@clisp.org>
39887
39888         Tests for module 'unistr/u32-uctomb'.
39889         * modules/unistr/u32-uctomb-tests: New file.
39890         * tests/unistr/test-u32-uctomb.c: New file.
39891
39892         Tests for module 'unistr/u16-uctomb'.
39893         * modules/unistr/u16-uctomb-tests: New file.
39894         * tests/unistr/test-u16-uctomb.c: New file.
39895
39896         Tests for module 'unistr/u8-uctomb'.
39897         * modules/unistr/u8-uctomb-tests: New file.
39898         * tests/unistr/test-u8-uctomb.c: New file.
39899
39900         Tests for module 'unistr/u32-mbtoucr'.
39901         * modules/unistr/u32-mbtoucr-tests: New file.
39902         * tests/unistr/test-u32-mbtoucr.c: New file.
39903
39904         Tests for module 'unistr/u16-mbtoucr'.
39905         * modules/unistr/u16-mbtoucr-tests: New file.
39906         * tests/unistr/test-u16-mbtoucr.c: New file.
39907
39908         Tests for module 'unistr/u8-mbtoucr'.
39909         * modules/unistr/u8-mbtoucr-tests: New file.
39910         * tests/unistr/test-u8-mbtoucr.c: New file.
39911
39912         Tests for module 'unistr/u32-mbtouc'.
39913         * modules/unistr/u32-mbtouc-tests: New file.
39914         * tests/unistr/test-u32-mbtouc.c: New file.
39915
39916         Tests for module 'unistr/u16-mbtouc'.
39917         * modules/unistr/u16-mbtouc-tests: New file.
39918         * tests/unistr/test-u16-mbtouc.c: New file.
39919
39920         Tests for module 'unistr/u8-mbtouc'.
39921         * modules/unistr/u8-mbtouc-tests: New file.
39922         * tests/unistr/test-u8-mbtouc.c: New file.
39923
39924         Tests for module 'unistr/u32-mbtouc-unsafe'.
39925         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39926         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39927         * tests/unistr/test-u32-mbtouc.h: New file.
39928
39929         Tests for module 'unistr/u16-mbtouc-unsafe'.
39930         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39931         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39932         * tests/unistr/test-u16-mbtouc.h: New file.
39933
39934         Tests for module 'unistr/u8-mbtouc-unsafe'.
39935         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39936         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39937         * tests/unistr/test-u8-mbtouc.h: New file.
39938
39939         Tests for module 'unistr/u32-mblen'.
39940         * modules/unistr/u32-mblen-tests: New file.
39941         * tests/unistr/test-u32-mblen.c: New file.
39942
39943         Tests for module 'unistr/u16-mblen'.
39944         * modules/unistr/u16-mblen-tests: New file.
39945         * tests/unistr/test-u16-mblen.c: New file.
39946
39947         Tests for module 'unistr/u8-mblen'.
39948         * modules/unistr/u8-mblen-tests: New file.
39949         * tests/unistr/test-u8-mblen.c: New file.
39950
39951         Tests for module 'unistr/u32-to-u16'.
39952         * modules/unistr/u32-to-u16-tests: New file.
39953         * tests/unistr/test-u32-to-u16.c: New file.
39954
39955         Tests for module 'unistr/u32-to-u8'.
39956         * modules/unistr/u32-to-u8-tests: New file.
39957         * tests/unistr/test-u32-to-u8.c: New file.
39958
39959         Tests for module 'unistr/u16-to-u32'.
39960         * modules/unistr/u16-to-u32-tests: New file.
39961         * tests/unistr/test-u16-to-u32.c: New file.
39962
39963         Tests for module 'unistr/u16-to-u8'.
39964         * modules/unistr/u16-to-u8-tests: New file.
39965         * tests/unistr/test-u16-to-u8.c: New file.
39966
39967         Tests for module 'unistr/u8-to-u32'.
39968         * modules/unistr/u8-to-u32-tests: New file.
39969         * tests/unistr/test-u8-to-u32.c: New file.
39970
39971         Tests for module 'unistr/u8-to-u16'.
39972         * modules/unistr/u8-to-u16-tests: New file.
39973         * tests/unistr/test-u8-to-u16.c: New file.
39974
39975         Tests for module 'unistr/u32-check'.
39976         * modules/unistr/u32-check-tests: New file.
39977         * tests/unistr/test-u32-check.c: New file.
39978
39979         Tests for module 'unistr/u16-check'.
39980         * modules/unistr/u16-check-tests: New file.
39981         * tests/unistr/test-u16-check.c: New file.
39982
39983         Tests for module 'unistr/u8-check'.
39984         * modules/unistr/u8-check-tests: New file.
39985         * tests/unistr/test-u8-check.c: New file.
39986
39987         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39988         (category_equals): New function.
39989         (main): Add more tests.
39990         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39991
39992         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39993
39994 2010-01-10  Bruno Haible  <bruno@clisp.org>
39995
39996         unistr/u*-strcoll: Try harder to distinguish different strings.
39997         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39998         compare s1 and s2 to see if they are different.
39999
40000 2010-01-10  Bruno Haible  <bruno@clisp.org>
40001
40002         unistr/u*-stpncpy: Fix the return value.
40003         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
40004         description of the return value consistent with stpncpy in glibc.
40005         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
40006         written non-NUL unit.
40007
40008 2010-01-10  Bruno Haible  <bruno@clisp.org>
40009
40010         unistr/u*-next: Add missing dependencies.
40011         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
40012         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
40013         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
40014
40015 2010-01-10  Bruno Haible  <bruno@clisp.org>
40016
40017         unistr/u8-mbsnlen: Fix return value for incomplete character.
40018         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
40019         u8_mblen.
40020         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
40021         Remove unistr/u8-mblen.
40022         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
40023         u16_mblen.
40024         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
40025         Remove unistr/u16-mblen.
40026
40027 2010-01-10  Bruno Haible  <bruno@clisp.org>
40028
40029         wchar: Fix compilation error when <wchar.h> is used from coreutils.
40030         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
40031         Reported by Brian Gough <bjg@gnu.org> and
40032         Chris Clayton <chris2553@googlemail.com> via
40033         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
40034
40035 2010-01-09  Bruno Haible  <bruno@clisp.org>
40036
40037         unistr/u16-to-u32: Reject invalid input.
40038         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
40039         u16_mbtouc.
40040         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
40041         Remove unistr/u16-mbtouc.
40042
40043         unistr/u16-to-u8: Reject invalid input.
40044         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
40045         u16_mbtouc.
40046         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
40047         Remove unistr/u16-mbtouc.
40048
40049         unistr/u8-to-u32: Reject invalid input.
40050         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
40051         u8_mbtouc.
40052         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
40053         Remove unistr/u8-mbtouc.
40054
40055         unistr/u8-to-u16: Reject invalid input.
40056         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
40057         u8_mbtouc.
40058         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
40059         Remove unistr/u8-mbtouc.
40060
40061 2010-01-09  Bruno Haible  <bruno@clisp.org>
40062
40063         Tests for module 'getlogin'.
40064         * modules/getlogin-tests: New file.
40065         * tests/test-getlogin.c: New file.
40066
40067         New module 'getlogin'.
40068         * lib/unistd.in.h (getlogin): New declaration.
40069         * lib/getlogin.c: New file.
40070         * m4/getlogin.m4: New file.
40071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
40072         HAVE_GETLOGIN.
40073         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
40074         HAVE_GETLOGIN.
40075         * modules/getlogin: New file.
40076         * doc/posix-functions/getlogin.texi: Mention the new module.
40077         Reported by John W. Eaton <jwe@gnu.org>.
40078
40079 2010-01-09  Bruno Haible  <bruno@clisp.org>
40080
40081         getlogin_r: Support for native Windows.
40082         * lib/getlogin_r.c: Include <windows.h>
40083         (getlogin_r): Implement for native Windows.
40084         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
40085         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
40086         via John W. Eaton <jwe@gnu.org>.
40087
40088 2010-01-09  Bruno Haible  <bruno@clisp.org>
40089
40090         getlogin_r: Small fixes.
40091         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
40092         succeeds.
40093         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
40094         before testing whether getlogin_r is declared. No need to set
40095         HAVE_DECL_GETLOGIN_R to 1.
40096         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
40097
40098 2010-01-09  Bruno Haible  <bruno@clisp.org>
40099
40100         * lib/unistd.in.h (getlogin_r): Add comment.
40101
40102 2010-01-09  Bruno Haible  <bruno@clisp.org>
40103
40104         Tests for module 'getlogin_r'.
40105         * modules/getlogin_r-tests: New file.
40106         * tests/test-getlogin_r.c: New file.
40107
40108 2010-01-09  Jim Meyering  <meyering@redhat.com>
40109
40110         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
40111         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
40112         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
40113
40114 2010-01-08  Simon Josefsson  <simon@josefsson.org>
40115
40116         * lib/dup2.c (rpl_dup2): Improve comment.
40117
40118 2010-01-08  Eric Blake  <ebb9@byu.net>
40119
40120         maint.mk: allow packages to add makefile @@ exceptions
40121         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
40122         (sc_makefile_check): Rename...
40123         (sc_makefile_at_at_check): ...to this, and use hook.
40124
40125         dup2: work around mingw bug
40126         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
40127         Reported by Simon Josefsson.
40128
40129 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
40130
40131         glob: Fix C++ compilation.
40132         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
40133         C++.
40134
40135 2010-01-07  Bruno Haible  <bruno@clisp.org>
40136
40137         Fix indentation of wctype.in.h, broken since 2007-01-06.
40138         * lib/wctype.in.h: Fix indentation of preprocessor directives.
40139
40140 2010-01-07  Bruno Haible  <bruno@clisp.org>
40141
40142         mbslen: Avoid collision with system function.
40143         * lib/string.in.h [MirBSD]: Include <wchar.h>.
40144         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40145         * m4/mbslen.m4: New file.
40146         * modules/mbslen (Files): Add it.
40147         (configure.ac): Invoke gl_MBSLEN.
40148         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40149         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40150         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40151         via Ian Beckwith <ianb@erislabs.net>.
40152
40153 2010-01-07  Bruno Haible  <bruno@clisp.org>
40154
40155         dirent: Document the last fix.
40156         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40157
40158 2010-01-07  Bruno Haible  <bruno@clisp.org>
40159
40160         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40161         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40162         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40163         va_list are defined.
40164         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40165         Reported by Eric Blake.
40166
40167 2010-01-07  Bruno Haible  <bruno@clisp.org>
40168
40169         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40170         * modules/xlist (Depends-on): Add 'list',
40171         * modules/xoset (Depends-on): Add 'oset'.
40172         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40173
40174 2010-01-07  Bruno Haible  <bruno@clisp.org>
40175
40176         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40177         * doc/posix-functions/strncasecmp.texi: Likewise.
40178
40179 2010-01-07  Bruno Haible  <bruno@clisp.org>
40180
40181         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40182
40183 2010-01-07  John W. Eaton  <jwe@octave.org>
40184
40185         wctype: allow C++ use
40186         * lib/wctype.in.h: Add extern "C" block for C++.
40187
40188 2010-01-06  Eric Blake  <ebb9@byu.net>
40189
40190         maint.mk: detect incorrect GFDL usage
40191         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40192
40193 2010-01-06  Jim Meyering  <meyering@redhat.com>
40194         and Eric Blake  <ebb9@byu.net>
40195
40196         maint.mk: ignore multi-line copyright in NEWS
40197         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40198
40199 2010-01-06  Eric Blake  <ebb9@byu.net>
40200
40201         select: add missing dependency
40202         * modules/select-tests (Depends-on): Move sockets dependency...
40203         * modules/select (Depends-on): ...here.
40204         Reported by Ian Beckwith.
40205
40206         doc: regenerate INSTALL
40207         * doc/INSTALL: Reflect recent autoconf update.
40208         * doc/INSTALL.ISO: Likewise.
40209         * doc/INSTALL.UTF-8: Likewise.
40210
40211         pread: fix compilation on glibc
40212         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40213         Reported by Ralf Wildenhues.
40214
40215         dirent: fix test failure
40216         * lib/dirent.in.h (includes): Guarantee ino_t.
40217         Reported by Ralf Wildenhues.
40218
40219 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40220
40221         linkat, renameat: avoid bad free
40222         * lib/at-func2.c (at_func2): Fix typo.
40223         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40224
40225 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40226
40227         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40228         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40229         to avoid failure of symlink test later.
40230
40231 2010-01-06  Eric Blake  <ebb9@byu.net>
40232
40233         stdio, unistd: guarantee ssize_t
40234         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40235         2008 are exposed when needed.
40236         * lib/stdio.in.h (includes): Likewise.
40237         Reported by Ralf Wildenhues.
40238
40239 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40240
40241         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40242         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40243         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40244
40245 2010-01-06  Jim Meyering  <meyering@redhat.com>
40246
40247         readtokens: this module *does* require xalloc.h
40248         It uses only functions that were omitted by the old syntax-check rule.
40249         * lib/readtokens.c: Include "xalloc.h" once again.
40250         * modules/readtokens (Depends-on): Add xalloc.
40251         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40252
40253 2010-01-05  Eric Blake  <ebb9@byu.net>
40254
40255         maint: support 'make announcement' from a VPATH build
40256         * top/maint.mk (announcement): Look for correct NEWS file.
40257
40258 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40259
40260         utimens (fdutimens): ignore a negative FD, per contract
40261         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40262         when we have a valid file descriptor.  Otherwise, using a brand
40263         new glibc (with just-patched futimens that now fails with EBADF)
40264         would cause this function to fail with ENOSYS.
40265         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40266         See also http://bugzilla.redhat.com/552320.
40267
40268 2010-01-05  Eric Blake  <ebb9@byu.net>
40269
40270         strcase: document what it provides
40271         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40272         gnulib module.
40273         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40274         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40275
40276 2010-01-05  Jim Meyering  <meyering@redhat.com>
40277
40278         maint: remove useless inclusions of "xalloc.h"
40279         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40280         * lib/readtokens.c: Likewise.
40281         * lib/same.c: Likewise.
40282         * modules/getloadavg (Depends-on): Remove xalloc.
40283         * modules/readtokens: Likewise.
40284         * modules/same: Likewise.
40285
40286         maint.mk: include 4 more function names in alloca.h-checking regexp
40287         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40288         regexp.  Before, we would give a false-positive (saying alloca.h
40289         is included unnecessarily) when the only uses involved omitted symbols.
40290
40291         xalloc.h: use consistent formatting
40292         * lib/xalloc.h: Move declarations to start in the first column.
40293
40294 2010-01-05  Eric Blake  <ebb9@byu.net>
40295
40296         mkdir: avoid xalloc
40297         * lib/mkdir.c (includes): Drop unused header.
40298         Reported by John W. Eaton.
40299
40300 2010-01-04  Jim Meyering  <meyering@redhat.com>
40301
40302         nl_langinfo: avoid configure-time syntax error
40303         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40304         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40305         the empty string.  Don't let that provoke a shell syntax error.
40306
40307         regcomp, regexec, fnmatch: avoid array bounds read error
40308         * lib/regcomp.c (build_equiv_class): From glibc:
40309         Use only the low 24 bits of a findidx return value as an index
40310         into the weights array.  Patch by Ulrich Drepper:
40311         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40312         * lib/regexec.c (check_node_accept_bytes): Likewise.
40313         * lib/fnmatch_loop.c (FCT): Likewise.
40314
40315         regcomp: skip collseq lookup when there are no rules
40316         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40317         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40318
40319         regcomp: recognize ill-formed { } expressions
40320         * lib/regcomp.c (parse_dup_op): From glibc:
40321         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40322
40323         regcomp: fix typo in comment
40324         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40325         s/satisfy/satisfies/.
40326
40327         regcomp: sync from glibc: remove dead store
40328         * lib/regcomp.c (duplicate_node_closure): Remove useless
40329         search_duplicated_node call and dead store.
40330
40331         regcomp: sync from glibc; always use nl_langinfo
40332         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40333         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40334         * modules/regex (Depends-on): Add nl_langinfo.
40335
40336 2010-01-04  Eric Blake  <ebb9@byu.net>
40337
40338         fdopendir: fix configure test
40339         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40340
40341 2010-01-01  Bruno Haible  <bruno@clisp.org>
40342
40343         wchar: Remove unused configure check.
40344         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40345
40346 2010-01-01  Eric Blake  <ebb9@byu.net>
40347
40348         headers: make check of system header explicit
40349         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40350         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40351         ourselves.
40352         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40353         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40354         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40355         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40356         internals.
40357         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40358         missing.
40359         Suggested by Bruno Haible.
40360
40361 2010-01-01  Jim Meyering  <meyering@redhat.com>
40362
40363         ChangeLog: tweak to eliminate unnecessary copyright line
40364         * ChangeLog: Remove a copyright line that was mistakenly updated
40365         by today's update-copyright run.  Reported by Eric Blake.
40366
40367         test-update-copyright: don't let envvar setting cause test failure
40368         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40369
40370 2010-01-01  Bruno Haible  <bruno@clisp.org>
40371
40372         localename: Avoid gcc warning.
40373         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40374         function if it is not used.
40375
40376 2010-01-01  Jim Meyering  <meyering@redhat.com>
40377
40378         update nearly all FSF copyright year lists to include 2010
40379         Use the same procedure as for 2009, outlined in
40380         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40381
40382         version-etc: set COPYRIGHT_YEAR to 2010
40383         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40384
40385 2009-12-31  Eric Blake  <ebb9@byu.net>
40386
40387         doc: correct availability of cygwin 1.5.x getopt
40388         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40389         variables.
40390         * doc/posix-functions/opterr.texi (opterr): Likewise.
40391         * doc/posix-functions/optind.texi (optind): Likewise.
40392         * doc/posix-functions/optopt.texi (optopt): Likewise.
40393         * doc/posix-functions/tzname.texi (tzname): Likewise.
40394
40395         openat: update maintainer
40396         * modules/openat (Maintainer): Add myself.
40397
40398         utimens: avoid shadowing warning
40399         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40400         buffers into one, to avoid shadowing, as well as avoiding a
40401         redundant stat.
40402         Reported by Jim Meyering.
40403
40404         test-dup2: avoid compiler warning
40405         * tests/test-dup2.c (is_inheritable): Only define if used.
40406
40407 2010-01-01  Bruno Haible  <bruno@clisp.org>
40408
40409         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40410         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40411         defined, use wctomb instead of wcrtomb.
40412
40413 2010-01-01  Bruno Haible  <bruno@clisp.org>
40414
40415         iconv: Reject native Solaris iconv.
40416         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40417         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40418
40419 2009-12-31  Bruno Haible  <bruno@clisp.org>
40420
40421         * tests/test-signal.c (main): Remove test of 'SIG'.
40422
40423 2009-12-31  Bruno Haible  <bruno@clisp.org>
40424
40425         spawn: Fix incomplete fix.
40426         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40427         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40428         warnings for GNULIB_POSIXCHECK again.
40429         Reported by Eric Blake.
40430
40431 2009-12-31  Bruno Haible  <bruno@clisp.org>
40432
40433         Avoid namespace pollution on glibc systems.
40434         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40435         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40436         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40437         glibc systems.
40438
40439 2009-12-31  Bruno Haible  <bruno@clisp.org>
40440
40441         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40442         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40443         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40444         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40445         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40446         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40447         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40448
40449 2009-12-31  Bruno Haible  <bruno@clisp.org>
40450
40451         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40452         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40453         afterwards.
40454
40455 2009-12-31  Bruno Haible  <bruno@clisp.org>
40456
40457         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40458         SYS_UTSNAME_H.
40459
40460 2009-12-31  Bruno Haible  <bruno@clisp.org>
40461
40462         spawn: Fix misapplied patch.
40463         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40464         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40465         warnings for GNULIB_POSIXCHECK.
40466
40467 2009-12-31  Bruno Haible  <bruno@clisp.org>
40468
40469         times: Update after sys_times changed.
40470         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40471         * modules/times (Files): Add it.
40472         (configure.ac): Invoke gl_FUNC_TIMES.
40473
40474 2009-12-31  Bruno Haible  <bruno@clisp.org>
40475
40476         Use AC_C_INLINE where necessary.
40477         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40478         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40479         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40480         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40481         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40482         * m4/mbiter.m4 (gl_MBITER): Likewise.
40483         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40484         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40485         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40486         * modules/u64 (configure.ac): Likewise.
40487
40488 2009-12-31  Bruno Haible  <bruno@clisp.org>
40489
40490         Use AC_C_INLINE instead of module 'inline' where possible.
40491         * modules/inline (Description): Clarify purpose.
40492         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40493         * modules/count-one-bits (Depends-on): Remove inline.
40494         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40495         * modules/openat (Depends-on): Remove inline.
40496         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40497         instead of depending on module 'inline'.
40498         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40499         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40500         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40501         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40502         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40503         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40504         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40505         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40506         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40507         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40508         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40509         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40510         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40511         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40512         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40513         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40514         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40515         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40516         Likewise.
40517         * modules/unictype/property-ascii-hex-digit (Depends-on,
40518         configure.ac): Likewise.
40519         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40520         configure.ac): Likewise.
40521         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40522         configure.ac): Likewise.
40523         * modules/unictype/property-bidi-block-separator (Depends-on,
40524         configure.ac): Likewise.
40525         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40526         configure.ac): Likewise.
40527         * modules/unictype/property-bidi-common-separator (Depends-on,
40528         configure.ac): Likewise.
40529         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40530         Likewise.
40531         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40532         configure.ac): Likewise.
40533         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40534         configure.ac): Likewise.
40535         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40536         configure.ac): Likewise.
40537         * modules/unictype/property-bidi-european-digit (Depends-on,
40538         configure.ac): Likewise.
40539         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40540         configure.ac): Likewise.
40541         * modules/unictype/property-bidi-left-to-right (Depends-on,
40542         configure.ac): Likewise.
40543         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40544         configure.ac): Likewise.
40545         * modules/unictype/property-bidi-other-neutral (Depends-on,
40546         configure.ac): Likewise.
40547         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40548         Likewise.
40549         * modules/unictype/property-bidi-segment-separator (Depends-on,
40550         configure.ac): Likewise.
40551         * modules/unictype/property-bidi-whitespace (Depends-on,
40552         configure.ac): Likewise.
40553         * modules/unictype/property-combining (Depends-on, configure.ac):
40554         Likewise.
40555         * modules/unictype/property-composite (Depends-on, configure.ac):
40556         Likewise.
40557         * modules/unictype/property-currency-symbol (Depends-on,
40558         configure.ac): Likewise.
40559         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40560         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40561         Likewise.
40562         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40563         configure.ac): Likewise.
40564         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40565         Likewise.
40566         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40567         Likewise.
40568         * modules/unictype/property-extender (Depends-on, configure.ac):
40569         Likewise.
40570         * modules/unictype/property-format-control (Depends-on, configure.ac):
40571         Likewise.
40572         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40573         Likewise.
40574         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40575         Likewise.
40576         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40577         Likewise.
40578         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40579         Likewise.
40580         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40581         Likewise.
40582         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40583         Likewise.
40584         * modules/unictype/property-id-start (Depends-on, configure.ac):
40585         Likewise.
40586         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40587         Likewise.
40588         * modules/unictype/property-ids-binary-operator (Depends-on,
40589         configure.ac): Likewise.
40590         * modules/unictype/property-ids-trinary-operator (Depends-on,
40591         configure.ac): Likewise.
40592         * modules/unictype/property-ignorable-control (Depends-on,
40593         configure.ac): Likewise.
40594         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40595         Likewise.
40596         * modules/unictype/property-join-control (Depends-on, configure.ac):
40597         Likewise.
40598         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40599         Likewise.
40600         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40601         Likewise.
40602         * modules/unictype/property-logical-order-exception (Depends-on,
40603         configure.ac): Likewise.
40604         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40605         Likewise.
40606         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40607         * modules/unictype/property-non-break (Depends-on, configure.ac):
40608         Likewise.
40609         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40610         Likewise.
40611         * modules/unictype/property-numeric (Depends-on, configure.ac):
40612         Likewise.
40613         * modules/unictype/property-other-alphabetic (Depends-on,
40614         configure.ac): Likewise.
40615         * modules/unictype/property-other-default-ignorable-code-point
40616         (Depends-on, configure.ac): Likewise.
40617         * modules/unictype/property-other-grapheme-extend (Depends-on,
40618         configure.ac): Likewise.
40619         * modules/unictype/property-other-id-continue (Depends-on,
40620         configure.ac): Likewise.
40621         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40622         Likewise.
40623         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40624         Likewise.
40625         * modules/unictype/property-other-math (Depends-on, configure.ac):
40626         Likewise.
40627         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40628         Likewise.
40629         * modules/unictype/property-paired-punctuation (Depends-on,
40630         configure.ac): Likewise.
40631         * modules/unictype/property-paragraph-separator (Depends-on,
40632         configure.ac): Likewise.
40633         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40634         Likewise.
40635         * modules/unictype/property-pattern-white-space (Depends-on,
40636         configure.ac): Likewise.
40637         * modules/unictype/property-private-use (Depends-on, configure.ac):
40638         Likewise.
40639         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40640         Likewise.
40641         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40642         Likewise.
40643         * modules/unictype/property-radical (Depends-on, configure.ac):
40644         Likewise.
40645         * modules/unictype/property-sentence-terminal (Depends-on,
40646         configure.ac): Likewise.
40647         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40648         Likewise.
40649         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40650         * modules/unictype/property-terminal-punctuation (Depends-on,
40651         configure.ac): Likewise.
40652         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40653         Likewise.
40654         * modules/unictype/property-unassigned-code-value (Depends-on,
40655         configure.ac): Likewise.
40656         * modules/unictype/property-unified-ideograph (Depends-on,
40657         configure.ac): Likewise.
40658         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40659         Likewise.
40660         * modules/unictype/property-variation-selector (Depends-on,
40661         configure.ac): Likewise.
40662         * modules/unictype/property-white-space (Depends-on, configure.ac):
40663         Likewise.
40664         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40665         Likewise.
40666         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40667         Likewise.
40668         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40669         Likewise.
40670         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40671         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40672         Likewise.
40673
40674 2009-12-31  Bruno Haible  <bruno@clisp.org>
40675
40676         Remove unnecessary AC_C_INLINE invocation.
40677         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40678         since 2009-08-21.
40679
40680 2009-12-31  Jim Meyering  <meyering@redhat.com>
40681
40682         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40683         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40684         With this change, we can all remove the gpg_key_ID = ... definition
40685         from our respective cfg.mk files.
40686
40687         maint.mk: create announcement template in ~/, not in /tmp
40688         * top/maint.mk (emit_upload_commands): Adjust.
40689         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40690         Remove temporary file, .ci-msg.
40691
40692 2009-12-31  Eric Blake  <ebb9@byu.net>
40693
40694         link-warning: always build headers with link warnings
40695         * modules/arpa_inet (Makefile.am): Always build replacement
40696         header.
40697         * modules/ctype (Makefile.am): Likewise.
40698         * modules/dirent (Makefile.am): Likewise.
40699         * modules/inttypes (Makefile.am): Likewise.
40700         * modules/langinfo (Makefile.am): Likewise.
40701         * modules/locale (Makefile.am): Likewise.
40702         * modules/spawn (Makefile.am): Likewise.
40703         * modules/sys_file (Makefile.am): Likewise.
40704         * modules/sys_ioctl (Makefile.am): Likewise.
40705         * modules/sys_select (Makefile.am): Likewise.
40706         * modules/sys_socket (Makefile.am): Likewise.
40707         * modules/sys_times (Makefile.am): Likewise.
40708         * modules/sys_utsname (Makefile.am): Likewise.
40709         * modules/sys_wait (Makefile.am): Likewise.
40710         * modules/wchar (Makefile.am): Likewise.
40711         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40712         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40713         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40714         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40715         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40716         Likewise.
40717         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40718         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40719         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40720         Likewise.
40721         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40722         Likewise.
40723         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40724         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40725         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40726         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40727         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40728         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40729         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40730         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40731         (gl_WCHAR_H_DEFAULTS): Likewise.
40732
40733 2009-12-31  Eric Blake  <ebb9@byu.net>
40734
40735         signal, spawn: use link warnings
40736         * lib/signal.in.h (sigset_t): Make unconditional.
40737         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40738         (sigpending, sigprocmask, sigaction): Add link warnings.
40739         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40740         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40741         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40742         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40743         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40744         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40745         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40746         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40747         (posix_spawn_file_actions_destroy)
40748         (posix_spawn_file_actions_addopen)
40749         (posix_spawn_file_actions_addclose)
40750         (posix_spawn_file_actions_adddup2): Likewise.
40751         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40752         * tests/test-signal.c (main): Enhance test.
40753
40754         spawn: improve wrapper support
40755         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40756         (gl_SPAWN_H_DEFAULTS): New defaults.
40757         * modules/spawn (Makefile.am): Substitute them.
40758         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40759         Only declare if missing or broken.
40760
40761         sys_times, sys_utsname: use include_next
40762         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40763         header.
40764         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40765         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40766         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40767         * modules/sys_times (Depends-on): Add include_next.
40768         (Makefile.am): Substitute additional values.
40769         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40770         * lib/sys_times.in.h (includes): Include native header, if
40771         available.
40772         * lib/sys_utsname.in.h (includes): Likewise.
40773         * tests/test-sys_times.c (main): Enhance test.
40774
40775         fdutimensat: revert prior patch
40776         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40777         utimens.h.
40778         Reported by Bruno Haible.
40779
40780 2009-12-30  Eric Blake  <ebb9@byu.net>
40781
40782         sys_wait: drop link-warning dependency
40783         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40784         link-warning efforts.
40785         * lib/sys_wait.in.h: Likewise.
40786
40787         fdutimensat: remove bogus dependency
40788         * modules/fdutimensat (Depends-on): Drop inline.
40789
40790         unistd: fix typo
40791         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40792
40793 2009-12-30  Bruno Haible  <bruno@clisp.org>
40794
40795         Fix compilation error with Solaris cc.
40796         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40797         * lib/unicase/u16-is-invariant.c: Likewise.
40798         * lib/unicase/u32-is-invariant.c: Likewise.
40799         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40800
40801 2009-12-30  Bruno Haible  <bruno@clisp.org>
40802
40803         Fix test crash.
40804         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40805         locales.
40806         Reported by Simon Josefsson <simon@josefsson.org>.
40807
40808 2009-12-30  Bruno Haible  <bruno@clisp.org>
40809
40810         Fix compilation error on most platforms.
40811         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40812         Reported by Simon Josefsson <simon@josefsson.org>
40813         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40814
40815 2009-12-30  Eric Blake  <ebb9@byu.net>
40816
40817         futimens, utimensat: work around ntfs-3g bug
40818         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40819         a ctime bug is present, and expand workaround to cover ntfs-3g.
40820         * lib/utimens.c (fdutimens, lutimens): Likewise.
40821         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40822         (validate_timespec): Adjust return value.
40823         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40824         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40825         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40826
40827 2009-12-29  Eric Blake  <ebb9@byu.net>
40828
40829         link-warning: make usage consistent
40830         * modules/ctype (Depends-on): Add link-warning.
40831         (Makefile.am): Update rules accordingly.
40832         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40833         * modules/locale (Depends-on, Makefile.am): Likewise.
40834         * modules/sys_file (Makefile.am): Likewise.
40835         * modules/getopt-posix (Makefile.am): Delete unused link warning
40836         efforts.
40837         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40838         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40839         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40840         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40841
40842         stdio: remove unused variables
40843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40844         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40845         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40846
40847         tests: test more substitute headers
40848         * modules/ctype-tests: New file.
40849         * modules/dirent-tests: Likewise.
40850         * modules/spawn-tests: Likewise.
40851         * modules/sys_file-tests: Likewise.
40852         * modules/sys_ioctl-tests: Likewise.
40853         * modules/sys_wait-tests: Likewise.
40854         * tests/test-ctype.c: Likewise.
40855         * tests/test-dirent.c: Likewise.
40856         * tests/test-spawn.c: Likewise.
40857         * tests/test-sys_file.c: Likewise.
40858         * tests/test-sys_ioctl.c: Likewise.
40859         * tests/test-sys_wait.c: Likewise.
40860         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40861         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40862         whether or not flock is in use.
40863
40864         tests: remove License section from module
40865         * modules/arpa_inet-tests: Remove unneeded section.
40866         * modules/byteswap-tests: Likewise.
40867         * modules/ceilf-tests: Likewise.
40868         * modules/ceill-tests: Likewise.
40869         * modules/crypto/des-tests: Likewise.
40870         * modules/crypto/gc-arcfour-tests: Likewise.
40871         * modules/crypto/gc-arctwo-tests: Likewise.
40872         * modules/crypto/gc-des-tests: Likewise.
40873         * modules/crypto/gc-hmac-md5-tests: Likewise.
40874         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40875         * modules/crypto/gc-md2-tests: Likewise.
40876         * modules/crypto/gc-md4-tests: Likewise.
40877         * modules/crypto/gc-md5-tests: Likewise.
40878         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40879         * modules/crypto/gc-rijndael-tests: Likewise.
40880         * modules/crypto/gc-sha1-tests: Likewise.
40881         * modules/crypto/gc-tests: Likewise.
40882         * modules/crypto/md2-tests: Likewise.
40883         * modules/crypto/md4-tests: Likewise.
40884         * modules/fcntl-h-tests: Likewise.
40885         * modules/floorf-tests: Likewise.
40886         * modules/floorl-tests: Likewise.
40887         * modules/frexp-nolibm-tests: Likewise.
40888         * modules/frexp-tests: Likewise.
40889         * modules/frexpl-nolibm-tests: Likewise.
40890         * modules/frexpl-tests: Likewise.
40891         * modules/getaddrinfo-tests: Likewise.
40892         * modules/inttypes-tests: Likewise.
40893         * modules/isfinite-tests: Likewise.
40894         * modules/isinf-tests: Likewise.
40895         * modules/ldexpl-tests: Likewise.
40896         * modules/locale-tests: Likewise.
40897         * modules/math-tests: Likewise.
40898         * modules/netdb-tests: Likewise.
40899         * modules/netinet_in-tests: Likewise.
40900         * modules/printf-frexp-tests: Likewise.
40901         * modules/printf-frexpl-tests: Likewise.
40902         * modules/priv-set-tests: Likewise.
40903         * modules/random_r-tests: Likewise.
40904         * modules/round-tests: Likewise.
40905         * modules/roundf-tests: Likewise.
40906         * modules/roundl-tests: Likewise.
40907         * modules/search-tests: Likewise.
40908         * modules/select-tests: Likewise.
40909         * modules/signal-tests: Likewise.
40910         * modules/stdbool-tests: Likewise.
40911         * modules/stddef-tests: Likewise.
40912         * modules/stdint-tests: Likewise.
40913         * modules/stdio-tests: Likewise.
40914         * modules/stdlib-tests: Likewise.
40915         * modules/string-tests: Likewise.
40916         * modules/strings-tests: Likewise.
40917         * modules/sys_select-tests: Likewise.
40918         * modules/sys_socket-tests: Likewise.
40919         * modules/sys_stat-tests: Likewise.
40920         * modules/sys_time-tests: Likewise.
40921         * modules/sys_utsname-tests: Likewise.
40922         * modules/sysexits-tests: Likewise.
40923         * modules/time-tests: Likewise.
40924         * modules/trunc-tests: Likewise.
40925         * modules/truncf-tests: Likewise.
40926         * modules/truncl-tests: Likewise.
40927         * modules/tsearch-tests: Likewise.
40928         * modules/unistd-tests: Likewise.
40929         * modules/wchar-tests: Likewise.
40930         * modules/wctype-tests: Likewise.
40931
40932         tests: fix license on several tests
40933         * tests/test-des.c: Update to GPLv3+.
40934         * tests/test-flock.c: Likewise.
40935         * tests/test-fsync.c: Likewise.
40936         * tests/test-futimens.h: Likewise.
40937         * tests/test-gc-arcfour.c: Likewise.
40938         * tests/test-gc-arctwo.c: Likewise.
40939         * tests/test-gc-des.c: Likewise.
40940         * tests/test-gc-hmac-md5.c: Likewise.
40941         * tests/test-gc-hmac-sha1.c: Likewise.
40942         * tests/test-gc-md2.c: Likewise.
40943         * tests/test-gc-md4.c: Likewise.
40944         * tests/test-gc-md5.c: Likewise.
40945         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40946         * tests/test-gc-rijndael.c: Likewise.
40947         * tests/test-gc-sha1.c: Likewise.
40948         * tests/test-gc.c: Likewise.
40949         * tests/test-getcwd.c: Likewise.
40950         * tests/test-link.c: Likewise.
40951         * tests/test-link.h: Likewise.
40952         * tests/test-lutimens.h: Likewise.
40953         * tests/test-md2.c: Likewise.
40954         * tests/test-md4.c: Likewise.
40955         * tests/test-mkdir.h: Likewise.
40956         * tests/test-rename.c: Likewise.
40957         * tests/test-rename.h: Likewise.
40958         * tests/test-safe-alloc.c: Likewise.
40959         * tests/test-utimens-common.h: Likewise.
40960         * tests/test-utimens.h: Likewise.
40961
40962         maint: sync license texts
40963         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40964         * doc/gpl-3.0.texi: Revert copyright year update.
40965         * doc/lgpl-3.0.texi: Likewise.
40966
40967 2009-12-29  Jim Meyering  <meyering@redhat.com>
40968
40969         update nearly all FSF copyright year lists to include 2009
40970         The files named by the following are exempted:
40971             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40972               test -f "$dst" && { echo "$dst"; continue; }
40973               test -d "$dst" || continue
40974               echo "$dst"/$(basename "$src")
40975             done > exempt
40976             git ls-files tests/unictype >> exempt
40977         In the remaining files, convert to all-interval notation if
40978         - there is already at least one year interval like 2000-2003
40979         - the file is maintained by me
40980         - the file is in lib/uni*/, where that style already prevails
40981         Otherwise, use update-copyright's default.
40982
40983 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40984         and Eric Blake  <ebb9@byu.net>
40985
40986         tests: don't require debug system() to pass
40987         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40988         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40989         * tests/test-unlink.h (test_unlink_func): Likewise.
40990         * tests/test-fstatat.c (main): ...into callers.
40991         * tests/test-lstat.c (main): Likewise.
40992         * tests/test-rmdir.c (main): Likewise.
40993         * tests/test-unlink.c (main): Likewise.
40994         * tests/test-unlinkat.c (main): Likewise.
40995         * tests/test-areadlink-with-size.c (main): Don't require a
40996         debug-only system call to pass, aiding cross-testing to mingw.
40997         * tests/test-areadlink.c (main): Likewise.
40998         * tests/test-areadlinkat-with-size.c (main): Likewise.
40999         * tests/test-areadlinkat.c (main): Likewise.
41000         * tests/test-canonicalize-lgpl.c (main): Likewise.
41001         * tests/test-canonicalize.c (main): Likewise.
41002         * tests/test-chown.c (main): Likewise.
41003         * tests/test-fchownat.c (main): Likewise.
41004         * tests/test-lchown.c (main): Likewise.
41005         * tests/test-fdutimensat.c (main): Likewise.
41006         * tests/test-futimens.c (main): Likewise.
41007         * tests/test-link.c (main): Likewise.
41008         * tests/test-linkat.c (main): Likewise.
41009         * tests/test-mkdir.c (main): Likewise.
41010         * tests/test-mkdirat.c (main): Likewise.
41011         * tests/test-mkfifo.c (main): Likewise.
41012         * tests/test-mkfifoat.c (main): Likewise.
41013         * tests/test-mknod.c (main): Likewise.
41014         * tests/test-readlink.c (main): Likewise.
41015         * tests/test-remove.c (main): Likewise.
41016         * tests/test-rename.c (main): Likewise.
41017         * tests/test-renameat.c (main): Likewise.
41018         * tests/test-symlink.c (main): Likewise.
41019         * tests/test-symlinkat.c (main): Likewise.
41020         * tests/test-utimens.c (main): Likewise.
41021         * tests/test-utimensat.c (main): Likewise.
41022
41023 2009-12-29  Simon Josefsson  <simon@josefsson.org>
41024
41025         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
41026         on $(UNUSED_PARAMETER_H) to avoid build failure.
41027
41028 2009-12-28  Jim Meyering  <meyering@redhat.com>
41029
41030         update-copyright: you may specify a max. line length other than 72
41031         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
41032
41033         maint: use consistent FSF copyright line syntax
41034         * lib/posixtm.c: Add missing comma in FSF copyright line.
41035         * lib/posixtm.h: Likewise.
41036         * lib/getugroups.c: Add missing ", Inc.".
41037
41038         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
41039         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
41040         FSF copyright line.  Remove trailing blanks.
41041
41042 2009-12-28  Eric Blake  <ebb9@byu.net>
41043
41044         test-dup2: reduce dependencies
41045         * modules/cloexec (Configure.ac): Set witness.
41046         * modules/dup2-tests (Depends-on): Drop cloexec.
41047         * tests/test-dup2.c (main): Skip portion of test if cloexec module
41048         not present.
41049         Suggested by Bruno Haible.
41050
41051 2009-12-26  Bruno Haible  <bruno@clisp.org>
41052
41053         Remove an unneeded dependency.
41054         * modules/fseterr (Depends-on): Remove dup2.
41055
41056 2009-12-26  Eric Blake  <ebb9@byu.net>
41057
41058         tests: use macros.h in more places
41059         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
41060         (ASSERT_STREAM): Provide default of stderr.
41061         * tests/test-dirent-safer.c: Include macros.h, using alternate
41062         stream for assertions.
41063         * tests/test-dup-safer.c: Likewise.
41064         * tests/test-freopen-safer.c: Likewise.
41065         * tests/test-getopt.c: Likewise.
41066         * tests/test-openat-safer.c: Likewise.
41067         * tests/test-pipe.c: Likewise.
41068         * tests/test-popen-safer.c: Likewise.
41069         * modules/dirent-safer-tests (Files): Include macros.h.
41070         * modules/unistd-safer-tests (Files): Likewise.
41071         * modules/freopen-safer-tests (Files): Likewise.
41072         * modules/getopt-posix-tests (Files): Likewise.
41073         * modules/openat-safer-tests (Files): Likewise.
41074         * modules/pipe-tests (Files): Likewise.
41075
41076 2009-12-26  Bruno Haible  <bruno@clisp.org>
41077
41078         javacomp: Portability fix.
41079         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
41080         that it also works on Solaris.
41081
41082 2009-12-26  Bruno Haible  <bruno@clisp.org>
41083
41084         localename: Fix storage allocation of gl_locale_name_thread's result.
41085         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
41086         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
41087         all platforms that have 'uselocale'.
41088         (gl_locale_name_thread_unsafe): New function, extracted from
41089         gl_locale_name_thread.
41090         (gl_locale_name_thread): Call struniq on all platforms that have
41091         'uselocale'.
41092         * tests/test-localename.c (test_locale_name_thread): Check that the
41093         resulting strings are permanently allocated.
41094         * modules/localename-tests (Depends-on): Add strdup.
41095
41096 2009-12-26  Bruno Haible  <bruno@clisp.org>
41097
41098         * tests/test-localename.c (categories): Fill in the strings.
41099
41100 2009-12-26  Jim Meyering  <meyering@redhat.com>
41101
41102         isdir: complete the removal of m4/isdir.m4
41103         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
41104
41105         isdir: clean up, since at least grep still uses it
41106         * lib/isdir.c: Include "isdir.h".
41107         (S_ISDIR): Remove now-unneeded definition.
41108         * modules/isdir (Files): Add lib/isdir.h.
41109         * lib/isdir.h: New file, with declaration.
41110         * m4/isdir.m4: Remove file -- unneeded.
41111
41112 2009-12-25  Bruno Haible  <bruno@clisp.org>
41113
41114         selinux-h: Make generated .h files standalone.
41115         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
41116         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
41117         * lib/se-selinux.in.h: Likewise.
41118         * modules/selinux-h (Depends-on): Add unused-parameter.
41119         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
41120         selinux/selinux.h and selinux/context.h.
41121         Suggested by Eric Blake.
41122
41123 2009-12-25  Bruno Haible  <bruno@clisp.org>
41124
41125         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
41126         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
41127         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
41128         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
41129         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
41130
41131 2009-12-24  Bruno Haible  <bruno@clisp.org>
41132
41133         openat: Fix warning.
41134         * lib/openat-proc.c: Include <unistd.h>.
41135
41136 2009-12-24  Bruno Haible  <bruno@clisp.org>
41137
41138         New module 'unused-parameter'.
41139         * build-aux/unused-parameter.h: New file, extracted from earlier
41140         gnulib-common.m4.
41141         * modules/unused-parameter: New file.
41142         * lib/unistr.h: Include unused-parameter.h.
41143         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
41144         _GL_UNUSED.
41145         * modules/unistr/base (Depends-on): Add unused-parameter.
41146
41147 2009-12-24  Bruno Haible  <bruno@clisp.org>
41148
41149         Add missing dependencies to 'extensions' module.
41150         * m4/extensions.m4: Add comment.
41151         * modules/accept4 (Depends-on): Add extensions.
41152         * modules/dup3 (Depends-on): Likewise.
41153         * modules/fcntl (Depends-on): Likewise.
41154         * modules/futimens (Depends-on): Likewise.
41155         * modules/mknod (Depends-on): Likewise.
41156         * modules/pipe2 (Depends-on): Likewise.
41157         * modules/stat-time (Depends-on): Likewise.
41158         * modules/strcasestr-simple (Depends-on): Likewise.
41159         * modules/strsignal (Depends-on): Likewise.
41160         * modules/utimensat (Depends-on): Likewise.
41161         * modules/localcharset (Depends-on): Likewise. Needed because of
41162         gl_FCNTL_O_FLAGS.
41163         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41164         AC_TYPE_MBSTATE_T.
41165         * modules/wcsnrtombs (Depends-on): Likewise.
41166         * modules/wcsrtombs (Depends-on): Likewise.
41167
41168 2009-12-24  Bruno Haible  <bruno@clisp.org>
41169
41170         binary-io: Avoid gcc warning due to SET_BINARY.
41171         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41172         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41173
41174 2009-12-24  Bruno Haible  <bruno@clisp.org>
41175
41176         Avoid future namespace pollution on glibc systems.
41177         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41178         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41179         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41180         glibc systems.
41181
41182 2009-12-24  Bruno Haible  <bruno@clisp.org>
41183
41184         Refactor common macros used in tests.
41185         * tests/macros.h: New file.
41186         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41187         and/or <stdlib.h>, if appropriate.
41188         (ASSERT, SIZEOF): Remove macros.
41189         * tests/test-areadlink-with-size.c: Likewise.
41190         * tests/test-areadlinkat.c: Likewise.
41191         * tests/test-areadlinkat-with-size.c: Likewise.
41192         * tests/test-argmatch.c: Likewise.
41193         * tests/test-argv-iter.c: Likewise.
41194         * tests/test-array-mergesort.c: Likewise.
41195         * tests/test-array_list.c: Likewise.
41196         * tests/test-array_oset.c: Likewise.
41197         * tests/test-avltree_list.c: Likewise.
41198         * tests/test-avltree_oset.c: Likewise.
41199         * tests/test-avltreehash_list.c: Likewise.
41200         * tests/test-base64.c: Likewise.
41201         * tests/test-binary-io.c: Likewise.
41202         * tests/test-bitrotate.c: Likewise.
41203         * tests/test-btowc.c: Likewise.
41204         * tests/test-byteswap.c: Likewise.
41205         * tests/test-c-ctype.c: Likewise.
41206         * tests/test-c-stack.c: Likewise.
41207         * tests/test-c-strcasecmp.c: Likewise.
41208         * tests/test-c-strcasestr.c: Likewise.
41209         * tests/test-c-strncasecmp.c: Likewise.
41210         * tests/test-c-strstr.c: Likewise.
41211         * tests/test-canonicalize-lgpl.c: Likewise.
41212         * tests/test-canonicalize.c: Likewise.
41213         * tests/test-carray_list.c: Likewise.
41214         * tests/test-ceilf1.c: Likewise.
41215         * tests/test-ceilf2.c: Likewise.
41216         * tests/test-ceill.c: Likewise.
41217         * tests/test-chown.c: Likewise.
41218         * tests/test-cloexec.c: Likewise.
41219         * tests/test-copy-acl.c: Likewise.
41220         * tests/test-copy-file.c: Likewise.
41221         * tests/test-count-one-bits.c: Likewise.
41222         * tests/test-dprintf-posix.c: Likewise.
41223         * tests/test-dup2.c: Likewise.
41224         * tests/test-dup3.c: Likewise.
41225         * tests/test-duplocale.c: Likewise.
41226         * tests/test-fbufmode.c: Likewise.
41227         * tests/test-fchdir.c: Likewise.
41228         * tests/test-fchownat.c: Likewise.
41229         * tests/test-fcntl-safer.c: Likewise.
41230         * tests/test-fcntl.c: Likewise.
41231         * tests/test-fdopendir.c: Likewise.
41232         * tests/test-fdutimensat.c: Likewise.
41233         * tests/test-fflush2.c: Likewise.
41234         * tests/test-file-has-acl.c: Likewise.
41235         * tests/test-filevercmp.c: Likewise.
41236         * tests/test-flock.c: Likewise.
41237         * tests/test-floorf1.c: Likewise.
41238         * tests/test-floorf2.c: Likewise.
41239         * tests/test-floorl.c: Likewise.
41240         * tests/test-fnmatch.c: Likewise.
41241         * tests/test-fopen.h: Likewise.
41242         * tests/test-fpending.c: Likewise.
41243         * tests/test-fprintf-posix.c: Likewise.
41244         * tests/test-fpurge.c: Likewise.
41245         * tests/test-freadable.c: Likewise.
41246         * tests/test-freadahead.c: Likewise.
41247         * tests/test-freading.c: Likewise.
41248         * tests/test-freadptr.c: Likewise.
41249         * tests/test-freadptr2.c: Likewise.
41250         * tests/test-freadseek.c: Likewise.
41251         * tests/test-freopen.c: Likewise.
41252         * tests/test-frexp.c: Likewise.
41253         * tests/test-frexpl.c: Likewise.
41254         * tests/test-fseek.c: Likewise.
41255         * tests/test-fseeko.c: Likewise.
41256         * tests/test-fstatat.c: Likewise.
41257         * tests/test-fstrcmp.c: Likewise.
41258         * tests/test-fsync.c: Likewise.
41259         * tests/test-ftell.c: Likewise.
41260         * tests/test-ftello.c: Likewise.
41261         * tests/test-func.c: Likewise.
41262         * tests/test-futimens.c: Likewise.
41263         * tests/test-fwritable.c: Likewise.
41264         * tests/test-fwriting.c: Likewise.
41265         * tests/test-getcwd.c: Likewise.
41266         * tests/test-getdate.c: Likewise.
41267         * tests/test-getdelim.c: Likewise.
41268         * tests/test-getdtablesize.c: Likewise.
41269         * tests/test-getgroups.c: Likewise.
41270         * tests/test-getline.c: Likewise.
41271         * tests/test-getndelim2.c: Likewise.
41272         * tests/test-glob.c: Likewise.
41273         * tests/test-hash.c: Likewise.
41274         * tests/test-i-ring.c: Likewise.
41275         * tests/test-iconv-utf.c: Likewise.
41276         * tests/test-iconv.c: Likewise.
41277         * tests/test-idpriv-drop.c: Likewise.
41278         * tests/test-idpriv-droptemp.c: Likewise.
41279         * tests/test-inet_ntop.c: Likewise.
41280         * tests/test-inet_pton.c: Likewise.
41281         * tests/test-isblank.c: Likewise.
41282         * tests/test-isfinite.c: Likewise.
41283         * tests/test-isinf.c: Likewise.
41284         * tests/test-isnan.c: Likewise.
41285         * tests/test-isnand.h: Likewise.
41286         * tests/test-isnanf.h: Likewise.
41287         * tests/test-isnanl.h: Likewise.
41288         * tests/test-lchown.c: Likewise.
41289         * tests/test-ldexpl.c: Likewise.
41290         * tests/test-link.c: Likewise.
41291         * tests/test-linkat.c: Likewise.
41292         * tests/test-linked_list.c: Likewise.
41293         * tests/test-linkedhash_list.c: Likewise.
41294         * tests/test-localename.c: Likewise.
41295         * tests/test-lseek.c: Likewise.
41296         * tests/test-lstat.c: Likewise.
41297         * tests/test-mbmemcasecmp.c: Likewise.
41298         * tests/test-mbmemcasecoll.c: Likewise.
41299         * tests/test-mbrtowc.c: Likewise.
41300         * tests/test-mbscasecmp.c: Likewise.
41301         * tests/test-mbscasestr1.c: Likewise.
41302         * tests/test-mbscasestr2.c: Likewise.
41303         * tests/test-mbscasestr3.c: Likewise.
41304         * tests/test-mbscasestr4.c: Likewise.
41305         * tests/test-mbschr.c: Likewise.
41306         * tests/test-mbscspn.c: Likewise.
41307         * tests/test-mbsinit.c: Likewise.
41308         * tests/test-mbsncasecmp.c: Likewise.
41309         * tests/test-mbsnrtowcs.c: Likewise.
41310         * tests/test-mbspbrk.c: Likewise.
41311         * tests/test-mbspcasecmp.c: Likewise.
41312         * tests/test-mbsrchr.c: Likewise.
41313         * tests/test-mbsrtowcs.c: Likewise.
41314         * tests/test-mbsspn.c: Likewise.
41315         * tests/test-mbsstr1.c: Likewise.
41316         * tests/test-mbsstr2.c: Likewise.
41317         * tests/test-mbsstr3.c: Likewise.
41318         * tests/test-memchr.c: Likewise.
41319         * tests/test-memchr2.c: Likewise.
41320         * tests/test-memcmp.c: Likewise.
41321         * tests/test-memmem.c: Likewise.
41322         * tests/test-memrchr.c: Likewise.
41323         * tests/test-mkdir.c: Likewise.
41324         * tests/test-mkdirat.c: Likewise.
41325         * tests/test-mkfifo.c: Likewise.
41326         * tests/test-mkfifoat.c: Likewise.
41327         * tests/test-mknod.c: Likewise.
41328         * tests/test-nanosleep.c: Likewise.
41329         * tests/test-nl_langinfo.c: Likewise.
41330         * tests/test-obstack-printf.c: Likewise.
41331         * tests/test-open.c: Likewise.
41332         * tests/test-openat.c: Likewise.
41333         * tests/test-pipe-filter-gi1.c: Likewise.
41334         * tests/test-pipe-filter-gi2-main.c: Likewise.
41335         * tests/test-pipe-filter-ii1.c: Likewise.
41336         * tests/test-pipe-filter-ii2-main.c: Likewise.
41337         * tests/test-pipe2.c: Likewise.
41338         * tests/test-popen.h: Likewise.
41339         * tests/test-posixtm.c: Likewise.
41340         * tests/test-pread.c: Likewise.
41341         * tests/test-printf-frexp.c: Likewise.
41342         * tests/test-printf-frexpl.c: Likewise.
41343         * tests/test-printf-posix.c: Likewise.
41344         * tests/test-priv-set.c: Likewise.
41345         * tests/test-quotearg.c: Likewise.
41346         * tests/test-random_r.c: Likewise.
41347         * tests/test-rawmemchr.c: Likewise.
41348         * tests/test-rbtree_list.c: Likewise.
41349         * tests/test-rbtree_oset.c: Likewise.
41350         * tests/test-rbtreehash_list.c: Likewise.
41351         * tests/test-readlink.c: Likewise.
41352         * tests/test-remove.c: Likewise.
41353         * tests/test-rename.c: Likewise.
41354         * tests/test-renameat.c: Likewise.
41355         * tests/test-rmdir.c: Likewise.
41356         * tests/test-round1.c: Likewise.
41357         * tests/test-roundf1.c: Likewise.
41358         * tests/test-roundl.c: Likewise.
41359         * tests/test-safe-alloc.c: Likewise.
41360         * tests/test-sameacls.c: Likewise.
41361         * tests/test-set-mode-acl.c: Likewise.
41362         * tests/test-setenv.c: Likewise.
41363         * tests/test-sigaction.c: Likewise.
41364         * tests/test-signbit.c: Likewise.
41365         * tests/test-sleep.c: Likewise.
41366         * tests/test-snprintf-posix.c: Likewise.
41367         * tests/test-snprintf.c: Likewise.
41368         * tests/test-sprintf-posix.c: Likewise.
41369         * tests/test-stat-time.c: Likewise.
41370         * tests/test-stat.c: Likewise.
41371         * tests/test-strcasestr.c: Likewise.
41372         * tests/test-strchrnul.c: Likewise.
41373         * tests/test-strerror.c: Likewise.
41374         * tests/test-striconv.c: Likewise.
41375         * tests/test-striconveh.c: Likewise.
41376         * tests/test-striconveha.c: Likewise.
41377         * tests/test-strsignal.c: Likewise.
41378         * tests/test-strstr.c: Likewise.
41379         * tests/test-strtod.c: Likewise.
41380         * tests/test-strverscmp.c: Likewise.
41381         * tests/test-symlink.c: Likewise.
41382         * tests/test-symlinkat.c: Likewise.
41383         * tests/test-trunc1.c: Likewise.
41384         * tests/test-trunc2.c: Likewise.
41385         * tests/test-truncf1.c: Likewise.
41386         * tests/test-truncf2.c: Likewise.
41387         * tests/test-truncl.c: Likewise.
41388         * tests/test-uname.c: Likewise.
41389         * tests/test-unlink.c: Likewise.
41390         * tests/test-unlinkat.c: Likewise.
41391         * tests/test-unsetenv.c: Likewise.
41392         * tests/test-usleep.c: Likewise.
41393         * tests/test-utimens.c: Likewise.
41394         * tests/test-utimensat.c: Likewise.
41395         * tests/test-vasnprintf-posix.c: Likewise.
41396         * tests/test-vasnprintf-posix2.c: Likewise.
41397         * tests/test-vasnprintf.c: Likewise.
41398         * tests/test-vasprintf-posix.c: Likewise.
41399         * tests/test-vasprintf.c: Likewise.
41400         * tests/test-vdprintf-posix.c: Likewise.
41401         * tests/test-vfprintf-posix.c: Likewise.
41402         * tests/test-vprintf-posix.c: Likewise.
41403         * tests/test-vsnprintf-posix.c: Likewise.
41404         * tests/test-vsnprintf.c: Likewise.
41405         * tests/test-vsprintf-posix.c: Likewise.
41406         * tests/test-wcrtomb.c: Likewise.
41407         * tests/test-wcsnrtombs.c: Likewise.
41408         * tests/test-wcsrtombs.c: Likewise.
41409         * tests/test-wctype.c: Likewise.
41410         * tests/test-wcwidth.c: Likewise.
41411         * tests/test-xfprintf-posix.c: Likewise.
41412         * tests/test-xmemdup0.c: Likewise.
41413         * tests/test-xprintf-posix.c: Likewise.
41414         * tests/test-xvasprintf.c: Likewise.
41415         * tests/unicase/test-locale-language.c: Likewise.
41416         * tests/unicase/test-mapping-part1.h: Likewise.
41417         * tests/unicase/test-predicate-part1.h: Likewise.
41418         * tests/unicase/test-u8-casecmp.c: Likewise.
41419         * tests/unicase/test-u8-casecoll.c: Likewise.
41420         * tests/unicase/test-u8-casefold.c: Likewise.
41421         * tests/unicase/test-u8-is-cased.c: Likewise.
41422         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41423         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41424         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41425         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41426         * tests/unicase/test-u8-tolower.c: Likewise.
41427         * tests/unicase/test-u8-totitle.c: Likewise.
41428         * tests/unicase/test-u8-toupper.c: Likewise.
41429         * tests/unicase/test-u16-casecmp.c: Likewise.
41430         * tests/unicase/test-u16-casecoll.c: Likewise.
41431         * tests/unicase/test-u16-casefold.c: Likewise.
41432         * tests/unicase/test-u16-is-cased.c: Likewise.
41433         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41434         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41435         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41436         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41437         * tests/unicase/test-u16-tolower.c: Likewise.
41438         * tests/unicase/test-u16-totitle.c: Likewise.
41439         * tests/unicase/test-u16-toupper.c: Likewise.
41440         * tests/unicase/test-u32-casecmp.c: Likewise.
41441         * tests/unicase/test-u32-casecoll.c: Likewise.
41442         * tests/unicase/test-u32-casefold.c: Likewise.
41443         * tests/unicase/test-u32-is-cased.c: Likewise.
41444         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41445         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41446         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41447         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41448         * tests/unicase/test-u32-tolower.c: Likewise.
41449         * tests/unicase/test-u32-totitle.c: Likewise.
41450         * tests/unicase/test-u32-toupper.c: Likewise.
41451         * tests/unicase/test-ulc-casecmp.c: Likewise.
41452         * tests/unicase/test-ulc-casecoll.c: Likewise.
41453         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41454         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41455         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41456         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41457         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41458         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41459         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41460         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41461         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41462         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41463         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41464         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41465         * tests/unictype/test-bidi_byname.c: Likewise.
41466         * tests/unictype/test-bidi_name.c: Likewise.
41467         * tests/unictype/test-bidi_of.c: Likewise.
41468         * tests/unictype/test-bidi_test.c: Likewise.
41469         * tests/unictype/test-block_list.c: Likewise.
41470         * tests/unictype/test-block_of.c: Likewise.
41471         * tests/unictype/test-block_test.c: Likewise.
41472         * tests/unictype/test-categ_and.c: Likewise.
41473         * tests/unictype/test-categ_and_not.c: Likewise.
41474         * tests/unictype/test-categ_byname.c: Likewise.
41475         * tests/unictype/test-categ_name.c: Likewise.
41476         * tests/unictype/test-categ_none.c: Likewise.
41477         * tests/unictype/test-categ_of.c: Likewise.
41478         * tests/unictype/test-categ_or.c: Likewise.
41479         * tests/unictype/test-categ_test_withtable.c: Likewise.
41480         * tests/unictype/test-combining.c: Likewise.
41481         * tests/unictype/test-decdigit.c: Likewise.
41482         * tests/unictype/test-digit.c: Likewise.
41483         * tests/unictype/test-mirror.c: Likewise.
41484         * tests/unictype/test-numeric.c: Likewise.
41485         * tests/unictype/test-pr_byname.c: Likewise.
41486         * tests/unictype/test-pr_test.c: Likewise.
41487         * tests/unictype/test-predicate-part1.h: Likewise.
41488         * tests/unictype/test-scripts.c: Likewise.
41489         * tests/unictype/test-sy_c_ident.c: Likewise.
41490         * tests/unictype/test-sy_java_ident.c: Likewise.
41491         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41492         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41493         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41494         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41495         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41496         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41497         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41498         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41499         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41500         * tests/uninorm/test-compat-decomposition.c: Likewise.
41501         * tests/uninorm/test-composition.c: Likewise.
41502         * tests/uninorm/test-decomposing-form.c: Likewise.
41503         * tests/uninorm/test-decomposition.c: Likewise.
41504         * tests/uninorm/test-u8-nfc.c: Likewise.
41505         * tests/uninorm/test-u8-nfd.c: Likewise.
41506         * tests/uninorm/test-u8-nfkc.c: Likewise.
41507         * tests/uninorm/test-u8-nfkd.c: Likewise.
41508         * tests/uninorm/test-u8-normcmp.c: Likewise.
41509         * tests/uninorm/test-u8-normcoll.c: Likewise.
41510         * tests/uninorm/test-u16-nfc.c: Likewise.
41511         * tests/uninorm/test-u16-nfd.c: Likewise.
41512         * tests/uninorm/test-u16-nfkc.c: Likewise.
41513         * tests/uninorm/test-u16-nfkd.c: Likewise.
41514         * tests/uninorm/test-u16-normcmp.c: Likewise.
41515         * tests/uninorm/test-u16-normcoll.c: Likewise.
41516         * tests/uninorm/test-u32-nfc.c: Likewise.
41517         * tests/uninorm/test-u32-nfd.c: Likewise.
41518         * tests/uninorm/test-u32-nfkc.c: Likewise.
41519         * tests/uninorm/test-u32-nfkd.c: Likewise.
41520         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41521         * tests/uninorm/test-u32-normcmp.c: Likewise.
41522         * tests/uninorm/test-u32-normcoll.c: Likewise.
41523         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41524         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41525         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41526         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41527         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41528         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41529         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41530         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41531         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41532         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41533         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41534         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41535         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41536         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41537         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41538         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41539         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41540         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41541         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41542         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41543         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41544         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41545         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41546         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41547         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41548         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41549         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41550         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41551         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41552         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41553         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41554         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41555         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41556         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41557         * tests/uniwidth/test-u8-width.c: Likewise.
41558         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41559         * tests/uniwidth/test-u16-width.c: Likewise.
41560         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41561         * tests/uniwidth/test-u32-width.c: Likewise.
41562         * tests/uniwidth/test-uc_width.c: Likewise.
41563         * tests/uniwidth/test-uc_width2.c: Likewise.
41564         * modules/acl-tests (Files): Add tests/macros.h.
41565         * modules/areadlink-tests (Files): Likewise.
41566         * modules/areadlink-with-size-tests (Files): Likewise.
41567         * modules/areadlinkat-tests (Files): Likewise.
41568         * modules/areadlinkat-with-size-tests (Files): Likewise.
41569         * modules/argmatch-tests (Files): Likewise.
41570         * modules/argv-iter-tests (Files): Likewise.
41571         * modules/array-list-tests (Files): Likewise.
41572         * modules/array-mergesort-tests (Files): Likewise.
41573         * modules/array-oset-tests (Files): Likewise.
41574         * modules/avltree-list-tests (Files): Likewise.
41575         * modules/avltree-oset-tests (Files): Likewise.
41576         * modules/avltreehash-list-tests (Files): Likewise.
41577         * modules/base64-tests (Files): Likewise.
41578         * modules/binary-io-tests (Files): Likewise.
41579         * modules/bitrotate-tests (Files): Likewise.
41580         * modules/btowc-tests (Files): Likewise.
41581         * modules/byteswap-tests (Files): Likewise.
41582         * modules/c-ctype-tests (Files): Likewise.
41583         * modules/c-stack-tests (Files): Likewise.
41584         * modules/c-strcase-tests (Files): Likewise.
41585         * modules/c-strcasestr-tests (Files): Likewise.
41586         * modules/c-strstr-tests (Files): Likewise.
41587         * modules/canonicalize-lgpl-tests (Files): Likewise.
41588         * modules/canonicalize-tests (Files): Likewise.
41589         * modules/carray-list-tests (Files): Likewise.
41590         * modules/ceilf-tests (Files): Likewise.
41591         * modules/ceill-tests (Files): Likewise.
41592         * modules/chown-tests (Files): Likewise.
41593         * modules/cloexec-tests (Files): Likewise.
41594         * modules/copy-file-tests (Files): Likewise.
41595         * modules/count-one-bits-tests (Files): Likewise.
41596         * modules/dprintf-posix-tests (Files): Likewise.
41597         * modules/dup2-tests (Files): Likewise.
41598         * modules/dup3-tests (Files): Likewise.
41599         * modules/duplocale-tests (Files): Likewise.
41600         * modules/fbufmode-tests (Files): Likewise.
41601         * modules/fchdir-tests (Files): Likewise.
41602         * modules/fcntl-safer-tests (Files): Likewise.
41603         * modules/fcntl-tests (Files): Likewise.
41604         * modules/fdopendir-tests (Files): Likewise.
41605         * modules/fdutimensat-tests (Files): Likewise.
41606         * modules/fflush-tests (Files): Likewise.
41607         * modules/filevercmp-tests (Files): Likewise.
41608         * modules/flock-tests (Files): Likewise.
41609         * modules/floorf-tests (Files): Likewise.
41610         * modules/floorl-tests (Files): Likewise.
41611         * modules/fnmatch-tests (Files): Likewise.
41612         * modules/fopen-safer-tests (Files): Likewise.
41613         * modules/fopen-tests (Files): Likewise.
41614         * modules/fpending-tests (Files): Likewise.
41615         * modules/fprintf-posix-tests (Files): Likewise.
41616         * modules/fpurge-tests (Files): Likewise.
41617         * modules/freadable-tests (Files): Likewise.
41618         * modules/freadahead-tests (Files): Likewise.
41619         * modules/freading-tests (Files): Likewise.
41620         * modules/freadptr-tests (Files): Likewise.
41621         * modules/freadseek-tests (Files): Likewise.
41622         * modules/freopen-tests (Files): Likewise.
41623         * modules/frexp-nolibm-tests (Files): Likewise.
41624         * modules/frexp-tests (Files): Likewise.
41625         * modules/frexpl-nolibm-tests (Files): Likewise.
41626         * modules/frexpl-tests (Files): Likewise.
41627         * modules/fseek-tests (Files): Likewise.
41628         * modules/fseeko-tests (Files): Likewise.
41629         * modules/fstrcmp-tests (Files): Likewise.
41630         * modules/fsync-tests (Files): Likewise.
41631         * modules/ftell-tests (Files): Likewise.
41632         * modules/ftello-tests (Files): Likewise.
41633         * modules/func-tests (Files): Likewise.
41634         * modules/futimens-tests (Files): Likewise.
41635         * modules/fwritable-tests (Files): Likewise.
41636         * modules/fwriting-tests (Files): Likewise.
41637         * modules/getcwd-tests (Files): Likewise.
41638         * modules/getdate-tests (Files): Likewise.
41639         * modules/getdelim-tests (Files): Likewise.
41640         * modules/getdtablesize-tests (Files): Likewise.
41641         * modules/getgroups-tests (Files): Likewise.
41642         * modules/getline-tests (Files): Likewise.
41643         * modules/getndelim2-tests (Files): Likewise.
41644         * modules/glob-tests (Files): Likewise.
41645         * modules/hash-tests (Files): Likewise.
41646         * modules/i-ring-tests (Files): Likewise.
41647         * modules/iconv-tests (Files): Likewise.
41648         * modules/iconv_open-utf-tests (Files): Likewise.
41649         * modules/idpriv-drop-tests (Files): Likewise.
41650         * modules/idpriv-droptemp-tests (Files): Likewise.
41651         * modules/inet_ntop-tests (Files): Likewise.
41652         * modules/inet_pton-tests (Files): Likewise.
41653         * modules/isblank-tests (Files): Likewise.
41654         * modules/isfinite-tests (Files): Likewise.
41655         * modules/isinf-tests (Files): Likewise.
41656         * modules/isnan-tests (Files): Likewise.
41657         * modules/isnand-nolibm-tests (Files): Likewise.
41658         * modules/isnand-tests (Files): Likewise.
41659         * modules/isnanf-nolibm-tests (Files): Likewise.
41660         * modules/isnanf-tests (Files): Likewise.
41661         * modules/isnanl-nolibm-tests (Files): Likewise.
41662         * modules/isnanl-tests (Files): Likewise.
41663         * modules/lchown-tests (Files): Likewise.
41664         * modules/ldexpl-tests (Files): Likewise.
41665         * modules/link-tests (Files): Likewise.
41666         * modules/linkat-tests (Files): Likewise.
41667         * modules/linked-list-tests (Files): Likewise.
41668         * modules/linkedhash-list-tests (Files): Likewise.
41669         * modules/localename-tests (Files): Likewise.
41670         * modules/lseek-tests (Files): Likewise.
41671         * modules/lstat-tests (Files): Likewise.
41672         * modules/mbmemcasecmp-tests (Files): Likewise.
41673         * modules/mbmemcasecoll-tests (Files): Likewise.
41674         * modules/mbrtowc-tests (Files): Likewise.
41675         * modules/mbscasecmp-tests (Files): Likewise.
41676         * modules/mbscasestr-tests (Files): Likewise.
41677         * modules/mbschr-tests (Files): Likewise.
41678         * modules/mbscspn-tests (Files): Likewise.
41679         * modules/mbsinit-tests (Files): Likewise.
41680         * modules/mbsncasecmp-tests (Files): Likewise.
41681         * modules/mbsnrtowcs-tests (Files): Likewise.
41682         * modules/mbspbrk-tests (Files): Likewise.
41683         * modules/mbspcasecmp-tests (Files): Likewise.
41684         * modules/mbsrchr-tests (Files): Likewise.
41685         * modules/mbsrtowcs-tests (Files): Likewise.
41686         * modules/mbsspn-tests (Files): Likewise.
41687         * modules/mbsstr-tests (Files): Likewise.
41688         * modules/memchr-tests (Files): Likewise.
41689         * modules/memchr2-tests (Files): Likewise.
41690         * modules/memcmp-tests (Files): Likewise.
41691         * modules/memmem-tests (Files): Likewise.
41692         * modules/memrchr-tests (Files): Likewise.
41693         * modules/mkdir-tests (Files): Likewise.
41694         * modules/mkfifo-tests (Files): Likewise.
41695         * modules/mkfifoat-tests (Files): Likewise.
41696         * modules/mknod-tests (Files): Likewise.
41697         * modules/nanosleep-tests (Files): Likewise.
41698         * modules/nl_langinfo-tests (Files): Likewise.
41699         * modules/obstack-printf-tests (Files): Likewise.
41700         * modules/open-tests (Files): Likewise.
41701         * modules/openat-tests (Files): Likewise.
41702         * modules/pipe-filter-gi-tests (Files): Likewise.
41703         * modules/pipe-filter-ii-tests (Files): Likewise.
41704         * modules/pipe2-tests (Files): Likewise.
41705         * modules/popen-safer-tests (Files): Likewise.
41706         * modules/popen-tests (Files): Likewise.
41707         * modules/posixtm-tests (Files): Likewise.
41708         * modules/pread-tests (Files): Likewise.
41709         * modules/printf-frexp-tests (Files): Likewise.
41710         * modules/printf-frexpl-tests (Files): Likewise.
41711         * modules/printf-posix-tests (Files): Likewise.
41712         * modules/priv-set-tests (Files): Likewise.
41713         * modules/quotearg-tests (Files): Likewise.
41714         * modules/random_r-tests (Files): Likewise.
41715         * modules/rawmemchr-tests (Files): Likewise.
41716         * modules/rbtree-list-tests (Files): Likewise.
41717         * modules/rbtree-oset-tests (Files): Likewise.
41718         * modules/rbtreehash-list-tests (Files): Likewise.
41719         * modules/readlink-tests (Files): Likewise.
41720         * modules/remove-tests (Files): Likewise.
41721         * modules/rename-tests (Files): Likewise.
41722         * modules/renameat-tests (Files): Likewise.
41723         * modules/rmdir-tests (Files): Likewise.
41724         * modules/round-tests (Files): Likewise.
41725         * modules/roundf-tests (Files): Likewise.
41726         * modules/roundl-tests (Files): Likewise.
41727         * modules/safe-alloc-tests (Files): Likewise.
41728         * modules/setenv-tests (Files): Likewise.
41729         * modules/sigaction-tests (Files): Likewise.
41730         * modules/signbit-tests (Files): Likewise.
41731         * modules/sleep-tests (Files): Likewise.
41732         * modules/snprintf-posix-tests (Files): Likewise.
41733         * modules/snprintf-tests (Files): Likewise.
41734         * modules/sprintf-posix-tests (Files): Likewise.
41735         * modules/stat-tests (Files): Likewise.
41736         * modules/stat-time-tests (Files): Likewise.
41737         * modules/strcasestr-tests (Files): Likewise.
41738         * modules/strchrnul-tests (Files): Likewise.
41739         * modules/strerror-tests (Files): Likewise.
41740         * modules/striconv-tests (Files): Likewise.
41741         * modules/striconveh-tests (Files): Likewise.
41742         * modules/striconveha-tests (Files): Likewise.
41743         * modules/strsignal-tests (Files): Likewise.
41744         * modules/strstr-tests (Files): Likewise.
41745         * modules/strtod-tests (Files): Likewise.
41746         * modules/strverscmp-tests (Files): Likewise.
41747         * modules/symlink-tests (Files): Likewise.
41748         * modules/symlinkat-tests (Files): Likewise.
41749         * modules/trunc-tests (Files): Likewise.
41750         * modules/truncf-tests (Files): Likewise.
41751         * modules/truncl-tests (Files): Likewise.
41752         * modules/uname-tests (Files): Likewise.
41753         * modules/unicase/cased-tests (Files): Likewise.
41754         * modules/unicase/ignorable-tests (Files): Likewise.
41755         * modules/unicase/locale-language-tests (Files): Likewise.
41756         * modules/unicase/tolower-tests (Files): Likewise.
41757         * modules/unicase/totitle-tests (Files): Likewise.
41758         * modules/unicase/toupper-tests (Files): Likewise.
41759         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41760         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41761         * modules/unicase/u8-casefold-tests (Files): Likewise.
41762         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41763         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41764         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41765         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41766         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41767         * modules/unicase/u8-tolower-tests (Files): Likewise.
41768         * modules/unicase/u8-totitle-tests (Files): Likewise.
41769         * modules/unicase/u8-toupper-tests (Files): Likewise.
41770         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41771         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41772         * modules/unicase/u16-casefold-tests (Files): Likewise.
41773         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41774         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41775         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41776         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41777         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41778         * modules/unicase/u16-tolower-tests (Files): Likewise.
41779         * modules/unicase/u16-totitle-tests (Files): Likewise.
41780         * modules/unicase/u16-toupper-tests (Files): Likewise.
41781         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41782         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41783         * modules/unicase/u32-casefold-tests (Files): Likewise.
41784         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41785         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41786         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41787         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41788         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41789         * modules/unicase/u32-tolower-tests (Files): Likewise.
41790         * modules/unicase/u32-totitle-tests (Files): Likewise.
41791         * modules/unicase/u32-toupper-tests (Files): Likewise.
41792         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41793         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41794         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41795         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41796         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41797         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41798         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41799         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41800         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41801         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41802         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41803         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41804         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41805         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41806         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41807         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41808         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41809         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41810         * modules/unictype/block-list-tests (Files): Likewise.
41811         * modules/unictype/block-of-tests (Files): Likewise.
41812         * modules/unictype/block-test-tests (Files): Likewise.
41813         * modules/unictype/category-C-tests (Files): Likewise.
41814         * modules/unictype/category-Cc-tests (Files): Likewise.
41815         * modules/unictype/category-Cf-tests (Files): Likewise.
41816         * modules/unictype/category-Cn-tests (Files): Likewise.
41817         * modules/unictype/category-Co-tests (Files): Likewise.
41818         * modules/unictype/category-Cs-tests (Files): Likewise.
41819         * modules/unictype/category-L-tests (Files): Likewise.
41820         * modules/unictype/category-Ll-tests (Files): Likewise.
41821         * modules/unictype/category-Lm-tests (Files): Likewise.
41822         * modules/unictype/category-Lo-tests (Files): Likewise.
41823         * modules/unictype/category-Lt-tests (Files): Likewise.
41824         * modules/unictype/category-Lu-tests (Files): Likewise.
41825         * modules/unictype/category-M-tests (Files): Likewise.
41826         * modules/unictype/category-Mc-tests (Files): Likewise.
41827         * modules/unictype/category-Me-tests (Files): Likewise.
41828         * modules/unictype/category-Mn-tests (Files): Likewise.
41829         * modules/unictype/category-N-tests (Files): Likewise.
41830         * modules/unictype/category-Nd-tests (Files): Likewise.
41831         * modules/unictype/category-Nl-tests (Files): Likewise.
41832         * modules/unictype/category-No-tests (Files): Likewise.
41833         * modules/unictype/category-P-tests (Files): Likewise.
41834         * modules/unictype/category-Pc-tests (Files): Likewise.
41835         * modules/unictype/category-Pd-tests (Files): Likewise.
41836         * modules/unictype/category-Pe-tests (Files): Likewise.
41837         * modules/unictype/category-Pf-tests (Files): Likewise.
41838         * modules/unictype/category-Pi-tests (Files): Likewise.
41839         * modules/unictype/category-Po-tests (Files): Likewise.
41840         * modules/unictype/category-Ps-tests (Files): Likewise.
41841         * modules/unictype/category-S-tests (Files): Likewise.
41842         * modules/unictype/category-Sc-tests (Files): Likewise.
41843         * modules/unictype/category-Sk-tests (Files): Likewise.
41844         * modules/unictype/category-Sm-tests (Files): Likewise.
41845         * modules/unictype/category-So-tests (Files): Likewise.
41846         * modules/unictype/category-Z-tests (Files): Likewise.
41847         * modules/unictype/category-Zl-tests (Files): Likewise.
41848         * modules/unictype/category-Zp-tests (Files): Likewise.
41849         * modules/unictype/category-Zs-tests (Files): Likewise.
41850         * modules/unictype/category-and-not-tests (Files): Likewise.
41851         * modules/unictype/category-and-tests (Files): Likewise.
41852         * modules/unictype/category-byname-tests (Files): Likewise.
41853         * modules/unictype/category-name-tests (Files): Likewise.
41854         * modules/unictype/category-none-tests (Files): Likewise.
41855         * modules/unictype/category-of-tests (Files): Likewise.
41856         * modules/unictype/category-or-tests (Files): Likewise.
41857         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41858         * modules/unictype/combining-class-tests (Files): Likewise.
41859         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41860         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41861         * modules/unictype/ctype-blank-tests (Files): Likewise.
41862         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41863         * modules/unictype/ctype-digit-tests (Files): Likewise.
41864         * modules/unictype/ctype-graph-tests (Files): Likewise.
41865         * modules/unictype/ctype-lower-tests (Files): Likewise.
41866         * modules/unictype/ctype-print-tests (Files): Likewise.
41867         * modules/unictype/ctype-punct-tests (Files): Likewise.
41868         * modules/unictype/ctype-space-tests (Files): Likewise.
41869         * modules/unictype/ctype-upper-tests (Files): Likewise.
41870         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41871         * modules/unictype/decimal-digit-tests (Files): Likewise.
41872         * modules/unictype/digit-tests (Files): Likewise.
41873         * modules/unictype/mirror-tests (Files): Likewise.
41874         * modules/unictype/numeric-tests (Files): Likewise.
41875         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41876         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41877         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41878         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41879         Likewise.
41880         * modules/unictype/property-bidi-block-separator-tests (Files):
41881         Likewise.
41882         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41883         Likewise.
41884         * modules/unictype/property-bidi-common-separator-tests (Files):
41885         Likewise.
41886         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41887         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41888         Likewise.
41889         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41890         Likewise.
41891         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41892         Likewise.
41893         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41894         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41895         Likewise.
41896         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41897         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41898         Likewise.
41899         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41900         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41901         * modules/unictype/property-bidi-segment-separator-tests (Files):
41902         Likewise.
41903         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41904         * modules/unictype/property-byname-tests (Files): Likewise.
41905         * modules/unictype/property-combining-tests (Files): Likewise.
41906         * modules/unictype/property-composite-tests (Files): Likewise.
41907         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41908         * modules/unictype/property-dash-tests (Files): Likewise.
41909         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41910         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41911         Likewise.
41912         * modules/unictype/property-deprecated-tests (Files): Likewise.
41913         * modules/unictype/property-diacritic-tests (Files): Likewise.
41914         * modules/unictype/property-extender-tests (Files): Likewise.
41915         * modules/unictype/property-format-control-tests (Files): Likewise.
41916         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41917         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41918         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41919         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41920         * modules/unictype/property-hyphen-tests (Files): Likewise.
41921         * modules/unictype/property-id-continue-tests (Files): Likewise.
41922         * modules/unictype/property-id-start-tests (Files): Likewise.
41923         * modules/unictype/property-ideographic-tests (Files): Likewise.
41924         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41925         * modules/unictype/property-ids-trinary-operator-tests (Files):
41926         Likewise.
41927         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41928         * modules/unictype/property-iso-control-tests (Files): Likewise.
41929         * modules/unictype/property-join-control-tests (Files): Likewise.
41930         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41931         * modules/unictype/property-line-separator-tests (Files): Likewise.
41932         * modules/unictype/property-logical-order-exception-tests (Files):
41933         Likewise.
41934         * modules/unictype/property-lowercase-tests (Files): Likewise.
41935         * modules/unictype/property-math-tests (Files): Likewise.
41936         * modules/unictype/property-non-break-tests (Files): Likewise.
41937         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41938         * modules/unictype/property-numeric-tests (Files): Likewise.
41939         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41940         * modules/unictype/property-other-default-ignorable-code-point-tests
41941         (Files): Likewise.
41942         * modules/unictype/property-other-grapheme-extend-tests (Files):
41943         Likewise.
41944         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41945         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41946         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41947         * modules/unictype/property-other-math-tests (Files): Likewise.
41948         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41949         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41950         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41951         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41952         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41953         * modules/unictype/property-private-use-tests (Files): Likewise.
41954         * modules/unictype/property-punctuation-tests (Files): Likewise.
41955         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41956         * modules/unictype/property-radical-tests (Files): Likewise.
41957         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41958         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41959         * modules/unictype/property-space-tests (Files): Likewise.
41960         * modules/unictype/property-terminal-punctuation-tests (Files):
41961         Likewise.
41962         * modules/unictype/property-test-tests (Files): Likewise.
41963         * modules/unictype/property-titlecase-tests (Files): Likewise.
41964         * modules/unictype/property-unassigned-code-value-tests (Files):
41965         Likewise.
41966         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41967         * modules/unictype/property-uppercase-tests (Files): Likewise.
41968         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41969         * modules/unictype/property-white-space-tests (Files): Likewise.
41970         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41971         * modules/unictype/property-xid-start-tests (Files): Likewise.
41972         * modules/unictype/property-zero-width-tests (Files): Likewise.
41973         * modules/unictype/scripts-tests (Files): Likewise.
41974         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41975         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41976         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41977         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41978         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41979         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41980         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41981         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41982         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41983         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41984         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41985         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41986         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41987         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41988         * modules/uninorm/composition-tests (Files): Likewise.
41989         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41990         * modules/uninorm/decomposition-tests (Files): Likewise.
41991         * modules/uninorm/filter-tests (Files): Likewise.
41992         * modules/uninorm/nfc-tests (Files): Likewise.
41993         * modules/uninorm/nfd-tests (Files): Likewise.
41994         * modules/uninorm/nfkc-tests (Files): Likewise.
41995         * modules/uninorm/nfkd-tests (Files): Likewise.
41996         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41997         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41998         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41999         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
42000         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
42001         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
42002         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
42003         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
42004         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
42005         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
42006         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
42007         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
42008         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
42009         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
42010         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
42011         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
42012         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
42013         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
42014         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
42015         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
42016         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
42017         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
42018         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42019         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
42020         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
42021         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
42022         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
42023         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
42024         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
42025         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
42026         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
42027         * modules/uniwidth/u8-width-tests (Files): Likewise.
42028         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
42029         * modules/uniwidth/u16-width-tests (Files): Likewise.
42030         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
42031         * modules/uniwidth/u32-width-tests (Files): Likewise.
42032         * modules/uniwidth/width-tests (Files): Likewise.
42033         * modules/unlink-tests (Files): Likewise.
42034         * modules/unsetenv-tests (Files): Likewise.
42035         * modules/usleep-tests (Files): Likewise.
42036         * modules/utimens-tests (Files): Likewise.
42037         * modules/utimensat-tests (Files): Likewise.
42038         * modules/vasnprintf-posix-tests (Files): Likewise.
42039         * modules/vasnprintf-tests (Files): Likewise.
42040         * modules/vasprintf-posix-tests (Files): Likewise.
42041         * modules/vasprintf-tests (Files): Likewise.
42042         * modules/vdprintf-posix-tests (Files): Likewise.
42043         * modules/vfprintf-posix-tests (Files): Likewise.
42044         * modules/vprintf-posix-tests (Files): Likewise.
42045         * modules/vsnprintf-posix-tests (Files): Likewise.
42046         * modules/vsnprintf-tests (Files): Likewise.
42047         * modules/vsprintf-posix-tests (Files): Likewise.
42048         * modules/wcrtomb-tests (Files): Likewise.
42049         * modules/wcsnrtombs-tests (Files): Likewise.
42050         * modules/wcsrtombs-tests (Files): Likewise.
42051         * modules/wctype-tests (Files): Likewise.
42052         * modules/wcwidth-tests (Files): Likewise.
42053         * modules/xmemdup0-tests (Files): Likewise.
42054         * modules/xprintf-posix-tests (Files): Likewise.
42055         * modules/xvasprintf-tests (Files): Likewise.
42056
42057 2009-12-24  Eric Blake  <ebb9@byu.net>
42058
42059         test-nanosleep: fix typo
42060         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
42061         patch.
42062         Reported by Bruno Haible.
42063
42064 2009-12-24  Bruno Haible  <bruno@clisp.org>
42065
42066         Reduce namespace pollution on glibc systems.
42067         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
42068         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
42069         systems.
42070         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
42071         <getopt.h> on glibc systems.
42072         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
42073         systems.
42074         * lib/fcntl.c: Include <unistd.h> here instead.
42075
42076 2009-12-24  Bruno Haible  <bruno@clisp.org>
42077
42078         * lib/stdlib.in.h (includes): Fix typo in today's commit.
42079
42080 2009-12-24  Eric Blake  <ebb9@byu.net>
42081
42082         tests: add signature checks
42083         * tests/signature.h (SIGNATURE_CHECK): New file.
42084         * modules/atexit-tests (Files): Use it.
42085         * modules/btowc-tests (Files): Likewise.
42086         * modules/canonicalize-lgpl-tests (Files): Likewise.
42087         * modules/ceilf-tests (Files): Likewise.
42088         * modules/ceill-tests (Files): Likewise.
42089         * modules/chown-tests (Files): Likewise.
42090         * modules/dprintf-posix-tests (Files): Likewise.
42091         * modules/dup2-tests (Files): Likewise.
42092         * modules/dup3-tests (Files): Likewise.
42093         * modules/duplocale-tests (Files): Likewise.
42094         * modules/fchdir-tests (Files): Likewise.
42095         * modules/fcntl-tests (Files): Likewise.
42096         * modules/fdopendir-tests (Files): Likewise.
42097         * modules/fflush-tests (Files): Likewise.
42098         * modules/flock-tests (Files): Likewise.
42099         * modules/floorf-tests (Files): Likewise.
42100         * modules/floorl-tests (Files): Likewise.
42101         * modules/fnmatch-tests (Files): Likewise.
42102         * modules/fopen-tests (Files): Likewise.
42103         * modules/fprintf-posix-tests (Files): Likewise.
42104         * modules/freopen-tests (Files): Likewise.
42105         * modules/frexp-nolibm-tests (Files): Likewise.
42106         * modules/frexp-tests (Files): Likewise.
42107         * modules/frexpl-nolibm-tests (Files): Likewise.
42108         * modules/frexpl-tests (Files): Likewise.
42109         * modules/fseek-tests (Files): Likewise.
42110         * modules/fseeko-tests (Files): Likewise.
42111         * modules/fsync-tests (Files): Likewise.
42112         * modules/ftell-tests (Files): Likewise.
42113         * modules/ftello-tests (Files): Likewise.
42114         * modules/futimens-tests (Files): Likewise.
42115         * modules/getaddrinfo-tests (Files): Likewise.
42116         * modules/getcwd-tests (Files): Likewise.
42117         * modules/getdelim-tests (Files): Likewise.
42118         * modules/getdtablesize-tests (Files): Likewise.
42119         * modules/getgroups-tests (Files): Likewise.
42120         * modules/gethostname-tests (Files): Likewise.
42121         * modules/getline-tests (Files): Likewise.
42122         * modules/getopt-posix-tests (Files): Likewise.
42123         * modules/gettimeofday-tests (Files): Likewise.
42124         * modules/glob-tests (Files): Likewise.
42125         * modules/iconv-tests (Files): Likewise.
42126         * modules/inet_ntop-tests (Files): Likewise.
42127         * modules/inet_pton-tests (Files): Likewise.
42128         * modules/isblank-tests (Files): Likewise.
42129         * modules/lchown-tests (Files): Likewise.
42130         * modules/ldexpl-tests (Files): Likewise.
42131         * modules/link-tests (Files): Likewise.
42132         * modules/linkat-tests (Files): Likewise.
42133         * modules/lseek-tests (Files): Likewise.
42134         * modules/lstat-tests (Files): Likewise.
42135         * modules/mbrtowc-tests (Files): Likewise.
42136         * modules/mbsinit-tests (Files): Likewise.
42137         * modules/mbsnrtowcs-tests (Files): Likewise.
42138         * modules/mbsrtowcs-tests (Files): Likewise.
42139         * modules/memchr-tests (Files): Likewise.
42140         * modules/memcmp-tests (Files): Likewise.
42141         * modules/memmem-tests (Files): Likewise.
42142         * modules/memrchr-tests (Files): Likewise.
42143         * modules/mkdir-tests (Files): Likewise.
42144         * modules/mkfifo-tests (Files): Likewise.
42145         * modules/mkfifoat-tests (Files): Likewise.
42146         * modules/mknod-tests (Files): Likewise.
42147         * modules/nanosleep-tests (Files): Likewise.
42148         * modules/nl_langinfo-tests (Files): Likewise.
42149         * modules/obstack-printf-tests (Files): Likewise.
42150         * modules/open-tests (Files): Likewise.
42151         * modules/openat-tests (Files): Likewise.
42152         * modules/perror-tests (Files): Likewise.
42153         * modules/pipe2-tests (Files): Likewise.
42154         * modules/poll-tests (Files): Likewise.
42155         * modules/popen-tests (Files): Likewise.
42156         * modules/posix_spawn-tests (Files): Likewise.
42157         * modules/posix_spawnp-tests (Files): Likewise.
42158         * modules/pread-tests (Files): Likewise.
42159         * modules/printf-posix-tests (Files): Likewise.
42160         * modules/pty-tests (Files): Likewise.
42161         * modules/random_r-tests (Files): Likewise.
42162         * modules/rawmemchr-tests (Files): Likewise.
42163         * modules/readlink-tests (Files): Likewise.
42164         * modules/remove-tests (Files): Likewise.
42165         * modules/rename-tests (Files): Likewise.
42166         * modules/renameat-tests (Files): Likewise.
42167         * modules/rmdir-tests (Files): Likewise.
42168         * modules/round-tests (Files): Likewise.
42169         * modules/roundf-tests (Files): Likewise.
42170         * modules/roundl-tests (Files): Likewise.
42171         * modules/select-tests (Files): Likewise.
42172         * modules/setenv-tests (Files): Likewise.
42173         * modules/sigaction-tests (Files): Likewise.
42174         * modules/sleep-tests (Files): Likewise.
42175         * modules/snprintf-posix-tests (Files): Likewise.
42176         * modules/snprintf-tests (Files): Likewise.
42177         * modules/sprintf-posix-tests (Files): Likewise.
42178         * modules/stat-tests (Files): Likewise.
42179         * modules/strcasestr-tests (Files): Likewise.
42180         * modules/strchrnul-tests (Files): Likewise.
42181         * modules/strerror-tests (Files): Likewise.
42182         * modules/strsignal-tests (Files): Likewise.
42183         * modules/strstr-tests (Files): Likewise.
42184         * modules/strtod-tests (Files): Likewise.
42185         * modules/strverscmp-tests (Files): Likewise.
42186         * modules/symlink-tests (Files): Likewise.
42187         * modules/symlinkat-tests (Files): Likewise.
42188         * modules/times-tests (Files): Likewise.
42189         * modules/trunc-tests (Files): Likewise.
42190         * modules/truncf-tests (Files): Likewise.
42191         * modules/truncl-tests (Files): Likewise.
42192         * modules/tsearch-tests (Files): Likewise.
42193         * modules/uname-tests (Files): Likewise.
42194         * modules/unlink-tests (Files): Likewise.
42195         * modules/unsetenv-tests (Files): Likewise.
42196         * modules/usleep-tests (Files): Likewise.
42197         * modules/utimensat-tests (Files): Likewise.
42198         * modules/vasprintf-tests (Files): Likewise.
42199         * modules/vdprintf-posix-tests (Files): Likewise.
42200         * modules/vfprintf-posix-tests (Files): Likewise.
42201         * modules/vprintf-posix-tests (Files): Likewise.
42202         * modules/vsnprintf-posix-tests (Files): Likewise.
42203         * modules/vsnprintf-tests (Files): Likewise.
42204         * modules/vsprintf-posix-tests (Files): Likewise.
42205         * modules/wcrtomb-tests (Files): Likewise.
42206         * modules/wcsnrtombs-tests (Files): Likewise.
42207         * modules/wcsrtombs-tests (Files): Likewise.
42208         * modules/wcwidth-tests (Files): Likewise.
42209         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42210         * tests/test-isinf.c (isinf): Likewise.
42211         * tests/test-isnan.c (isnan): Likewise.
42212         * tests/test-signbit.c (signbit): Likewise.
42213         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42214         declaration, either as macro or with correct signature.
42215         (select): Ensure function under test is declared with correct
42216         signature in correct header.
42217         * tests/test-atexit.c (atexit): Likewise.
42218         * tests/test-btowc.c (btowc): Likewise.
42219         * tests/test-canonicalize-lgpl.c (realpath)
42220         (canonicalize_file_name): Likewise.
42221         * tests/test-ceilf1.c (ceilf): Likewise.
42222         * tests/test-ceill.c (ceill): Likewise.
42223         * tests/test-chown.c (chown): Likewise.
42224         * tests/test-dprintf-posix.c (dprintf): Likewise.
42225         * tests/test-dup2.c (dup2): Likewise.
42226         * tests/test-dup3.c (dup3): Likewise.
42227         * tests/test-duplocale.c (duplocale): Likewise.
42228         * tests/test-fchdir.c (fchdir): Likewise.
42229         * tests/test-fchownat.c (fchownat): Likewise.
42230         * tests/test-fcntl.c (fcntl): Likewise.
42231         * tests/test-fdopendir.c (fdopendir): Likewise.
42232         * tests/test-fflush.c (fflush): Likewise.
42233         * tests/test-flock.c (flock): Likewise.
42234         * tests/test-floorf1.c (floorf): Likewise.
42235         * tests/test-floorl.c (floorl): Likewise.
42236         * tests/test-fnmatch.c (fnmatch): Likewise.
42237         * tests/test-fopen.c (fopen): Likewise.
42238         * tests/test-fprintf-posix.c (fprintf): Likewise.
42239         * tests/test-freopen.c (freopen): Likewise.
42240         * tests/test-frexp.c (frexp): Likewise.
42241         * tests/test-frexpl.c (frexpl): Likewise.
42242         * tests/test-fseek.c (fseek): Likewise.
42243         * tests/test-fseeko.c (fseeko): Likewise.
42244         * tests/test-fstatat.c (fstatat): Likewise.
42245         * tests/test-fsync.c (fsync): Likewise.
42246         * tests/test-ftell.c (ftell): Likewise.
42247         * tests/test-ftello.c (ftello): Likewise.
42248         * tests/test-futimens.c (futimens): Likewise.
42249         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42250         (gai_strerror): Likewise.
42251         * tests/test-getcwd.c (getcwd): Likewise.
42252         * tests/test-getdelim.c (getdelim): Likewise.
42253         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42254         * tests/test-getgroups.c (getgroups): Likewise.
42255         * tests/test-gethostname.c (gethostname): Likewise.
42256         * tests/test-getline.c (getline): Likewise.
42257         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42258         Likewise.
42259         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42260         * tests/test-glob.c (glob, globfree): Likewise.
42261         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42262         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42263         * tests/test-inet_pton.c (inet_pton): Likewise.
42264         * tests/test-isblank.c (isblank): Likewise.
42265         * tests/test-lchown.c (lchown): Likewise.
42266         * tests/test-ldexpl.c (ldexpl): Likewise.
42267         * tests/test-link.c (link): Likewise.
42268         * tests/test-linkat.c (linkat): Likewise.
42269         * tests/test-lseek.c (lseek): Likewise.
42270         * tests/test-lstat.c (lstat): Likewise.
42271         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42272         * tests/test-mbsinit.c (mbsinit): Likewise.
42273         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42274         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42275         * tests/test-memchr.c (memchr): Likewise.
42276         * tests/test-memcmp.c (memcmp): Likewise.
42277         * tests/test-memmem.c (memmem): Likewise.
42278         * tests/test-memrchr.c (memrchr): Likewise.
42279         * tests/test-mkdir.c (mkdir): Likewise.
42280         * tests/test-mkdirat.c (mkdirat): Likewise.
42281         * tests/test-mkfifo.c (mkfifo): Likewise.
42282         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42283         * tests/test-mknod.c (mknod): Likewise.
42284         * tests/test-nanosleep.c (nanosleep): Likewise.
42285         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42286         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42287         Likewise.
42288         * tests/test-open.c (open): Likewise.
42289         * tests/test-openat.c (openat): Likewise.
42290         * tests/test-perror.c (perror): Likewise.
42291         * tests/test-pipe2.c (pipe2): Likewise.
42292         * tests/test-poll.c (poll): Likewise.
42293         * tests/test-popen.c (popen, pclose): Likewise.
42294         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42295         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42296         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42297         (posix_spawn_file_actions_destroy)
42298         (posix_spawn_file_actions_addclose)
42299         (posix_spawn_file_actions_addopen)
42300         (posix_spawn_file_actions_adddup2): Likewise.
42301         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42302         * tests/test-pread.c (pread): Likewise.
42303         * tests/test-printf-posix.c (printf): Likewise.
42304         * tests/test-pty.c (openpty, forkpty): Likewise.
42305         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42306         (random_r): Likewise.
42307         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42308         * tests/test-readlink.c (readlink): Likewise.
42309         * tests/test-remove.c (remove): Likewise.
42310         * tests/test-rename.c (rename): Likewise.
42311         * tests/test-renameat.c (renameat): Likewise.
42312         * tests/test-rmdir.c (rmdir): Likewise.
42313         * tests/test-round1.c (round): Likewise.
42314         * tests/test-roundf1.c (roundf): Likewise.
42315         * tests/test-roundl.c (roundl): Likewise.
42316         * tests/test-setenv.c (setenv): Likewise.
42317         * tests/test-sigaction.c (sigaction): Likewise.
42318         * tests/test-sleep.c (sleep): Likewise.
42319         * tests/test-snprintf.c (snprintf): Likewise.
42320         * tests/test-sprintf-posix.c (sprintf): Likewise.
42321         * tests/test-stat.c (stat): Likewise.
42322         * tests/test-stpncpy.c (stpncpy): Likewise.
42323         * tests/test-strcasestr.c (strcasestr): Likewise.
42324         * tests/test-strchrnul.c (strchrnul): Likewise.
42325         * tests/test-strerror.c (strerror): Likewise.
42326         * tests/test-strsignal.c (strsignal): Likewise.
42327         * tests/test-strstr.c (strstr): Likewise.
42328         * tests/test-strtod.c (strtod): Likewise.
42329         * tests/test-strverscmp.c (strverscmp): Likewise.
42330         * tests/test-symlink.c (symlink): Likewise.
42331         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42332         * tests/test-times.c (times): Likewise.
42333         * tests/test-trunc1.c (trunc): Likewise.
42334         * tests/test-truncf1.c (truncf): Likewise.
42335         * tests/test-truncl.c (truncl): Likewise.
42336         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42337         Likewise.
42338         * tests/test-uname.c (uname): Likewise.
42339         * tests/test-unlink.c (unlink): Likewise.
42340         * tests/test-unlinkat.c (unlinkat): Likewise.
42341         * tests/test-unsetenv.c (unsetenv): Likewise.
42342         * tests/test-usleep.c (usleep): Likewise.
42343         * tests/test-utimensat.c (utimensat): Likewise.
42344         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42345         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42346         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42347         * tests/test-vprintf-posix.c (vprintf): Likewise.
42348         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42349         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42350         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42351         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42352         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42353         * tests/test-wcwidth.c (wcwidth): Likewise.
42354
42355         build: pull in conditional headers during GNULIB_POSIXCHECK
42356         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42357         definitions from any conditionally-included headers.
42358         * lib/stdlib.in.h (includes): Likewise.
42359         * lib/unistd.in.h (includes): Likewise.
42360
42361 2009-12-24  Bruno Haible  <bruno@clisp.org>
42362
42363         * tests/test-argv-iter.c: Include header file being tested immediately
42364         after config.h.
42365         * tests/test-base64.c: Likewise.
42366         * tests/test-flock.c: Likewise.
42367         * tests/test-fsync.c: Likewise.
42368         * tests/test-getdate.c: Likewise.
42369         * tests/test-getndelim2.c: Likewise.
42370         * tests/test-isfinite.c: Likewise.
42371         * tests/test-isinf.c: Likewise.
42372         * tests/test-strerror.c: Likewise.
42373         * tests/test-strsignal.c: Likewise.
42374
42375 2009-12-23  Eric Blake  <ebb9@byu.net>
42376
42377         unistd: work around cygwin bug
42378         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42379         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42380         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42381
42382 2009-12-23  Bruno Haible  <bruno@clisp.org>
42383
42384         localename: More tests.
42385         * tests/test-localename.c (SIZEOF): New macro.
42386         (categories): New variable.
42387         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42388         test_locale_name_default): Add test w.r.t. thread locale.
42389         (test_locale_name_thread): New function.
42390         (main): Invoke it.
42391
42392         localename: Make aware of thread locale.
42393         * lib/localename.h (gl_locale_name_thread): New declaration.
42394         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42395         behaviour with respect to thread locale.
42396         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42397         <langinfo.h>, glthread/lock.h.
42398         (SIZE_BITS): New macro.
42399         (string_hash): New function.
42400         (struct hash_node): New type.
42401         (HASH_TABLE_SIZE): New macro.
42402         (struniq_hash_table, struniq_lock): New variables.
42403         (struniq): New function.
42404         (gl_locale_name_thread): New function.
42405         (gl_locale_name): Invoke it.
42406         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42407         * modules/localename (Depends-on): Add lock.
42408         Reported by Mike Gran <spk121@yahoo.com>.
42409
42410 2009-12-23  Eric Blake  <ebb9@byu.net>
42411
42412         va-args: new module
42413         * modules/va-args: New file.
42414         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42415         * MODULES.html.sh (Core language properties): Mention it.
42416
42417         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42418         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42419         named alias for __attribute__((__unused__)).
42420         * lib/chown.c: Update client.
42421         * lib/fchmodat.c: Likewise.
42422         * lib/fts.c: Likewise.
42423         * lib/getdate.y: Likewise.
42424         * lib/getgroups.c: Likewise.
42425         * lib/getopt.c: Likewise.
42426         * lib/getugroups.c: Likewise.
42427         * lib/mkdir.c: Likewise.
42428         * lib/mkfifo.c: Likewise.
42429         * lib/mkfifoat.c: Likewise.
42430         * lib/mknod.c: Likewise.
42431         * lib/mknodat.c: Likewise.
42432         * lib/readlink.c: Likewise.
42433         * lib/se-context.in.h: Likewise.
42434         * lib/se-selinux.in.h: Likewise.
42435         * lib/sockets.c: Likewise.
42436         * lib/symlink.c: Likewise.
42437         * lib/symlinkat.c: Likewise.
42438         * lib/unicodeio.c: Likewise.
42439         * lib/unistr.h: Likewise.
42440         * tests/test-areadlink.c: Likewise.
42441         * tests/test-areadlinkat.c: Likewise.
42442         * tests/test-filenamecat.c: Likewise.
42443         * tests/test-fseeko.c: Likewise.
42444         * tests/test-ftello.c: Likewise.
42445         * tests/test-getdate.c: Likewise.
42446         * tests/test-getgroups.c: Likewise.
42447         * tests/test-gethostname.c: Likewise.
42448         * tests/test-quotearg.c: Likewise.
42449         * tests/test-version-etc.c: Likewise.
42450         * tests/test-xalloc-die.c: Likewise.
42451         * tests/test-xfprintf-posix.c: Likewise.
42452         * tests/test-xprintf-posix.c: Likewise.
42453         * tests/test-xvasprintf.c: Likewise.
42454
42455         tests: avoid compiler warnings
42456         * tests/test-fcntl.c (main): Delete unused parameters.
42457         * tests/test-freopen-safer.c (main): Likewise.
42458         * tests/test-xalloc-die.c (main): Mark unused parameters.
42459         * tests/test-fseeko.c (main): Likewise.
42460         * tests/test-ftello.c (main): Likewise.
42461         * tests/test-nanosleep.c (main): Avoid declaration warning.
42462         * tests/test-sleep.c (main): Likewise.
42463         * tests/test-unsetenv.c (main): Silence warning about string
42464         literal.
42465         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42466
42467 2009-12-23  Bruno Haible  <bruno@clisp.org>
42468
42469         * tests/test-localename.c (test_locale_name): New function, extracted
42470         from main. Also test mixed situations.
42471         (test_locale_name_posix, test_locale_name_environ,
42472         test_locale_name_default): New functions.
42473         (main): Invoke them all.
42474         * modules/localename-tests (configure.ac): Test for newlocale.
42475
42476 2009-12-23  Bruno Haible  <bruno@clisp.org>
42477
42478         unistd: Ensure getcwd gets declared before being overridden.
42479         * lib/unistd.in.h: Conditionally include <io.h>.
42480
42481 2009-12-22  Bruno Haible  <bruno@clisp.org>
42482
42483         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42484         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42485         (gl_WCHAR_H): Invoke it.
42486         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42487         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42488         Reported by Karl Berry <karl@freefriends.org>.
42489
42490 2009-12-22  Eric Blake  <ebb9@byu.net>
42491
42492         math, unistd: avoid redundant includes
42493         * lib/math.in.h (isnan): No need to re-include <math.h>.
42494         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42495
42496         getsubopt: work around cygwin bug
42497         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42498         avoid conflicting with system getsubopt.
42499         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42500         bug.
42501
42502         getopt: synchronize from glibc
42503         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42504         parameter order.  Adjust all callers.
42505         (_getopt_internal_r, main): Adjust quoting in error messages.
42506         Drop considerations for outdated POSIX 1003.2 error message.
42507         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42508         callers.
42509         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42510
42511         test-getopt: test stderr behavior
42512         * modules/getopt-posix-tests (Depends-on): Add dup2.
42513         * tests/test-getopt.c (ASSERT): Avoid stderr.
42514         (main): Move stderr to a temporary file.
42515         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42516         Instead, add parameter to inform caller if output occurred.
42517         (test_getopt): Adjust all existing tests to expect silence, and
42518         add new tests of leading ":".
42519         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42520         glibc shortcomings with leading "-:" or "+:" in optstring.
42521         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42522         Likewise.
42523         * doc/posix-functions/getopt.texi (getopt): Likewise.
42524
42525         test-getopt: enhance test
42526         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42527         supports optind=0.
42528         * tests/test-getopt.c (OPTIND_MIN): Move...
42529         * tests/test-getopt.h (OPTIND_MIN): ...here.
42530         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42531         Require that optind=0 works, since modern BSD supports it in
42532         addition to optreset, and since coreutils expects it.
42533         (test_getopt_long_only): New test.
42534         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42535         glibc shortcomings with 'W;', and enforcement of optind=0.
42536         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42537         Likewise.
42538
42539 2009-12-21  Bruno Haible  <bruno@clisp.org>
42540
42541         localename: Improvements for MacOS X and Cygwin.
42542         * lib/localename.h (gl_locale_name_environ): New declaration.
42543         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42544         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42545         (gl_locale_name_posix): Invoke it.
42546         (gl_locale_name_default): Add comments. Use Windows native API also on
42547         Cygwin.
42548
42549 2009-12-21  Bruno Haible  <bruno@clisp.org>
42550
42551         Update list of Win32 locale ids.
42552         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42553         (LANG_SAMI): Renamed from LANG_SAAMI.
42554         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42555         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42556         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42557         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42558         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42559         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42560         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42561         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42562         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42563         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42564         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42565         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42566         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42567         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42568         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42569         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42570         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42571         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42572         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42573         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42574         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42575         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42576         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42577         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42578         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42579         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42580         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42581         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42582         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42583         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42584         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42585         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42586         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42587         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42588         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42589         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42590         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42591         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42592         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42593         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42594         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42595         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42596         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42597         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42598         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42599         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42600         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42601         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42602         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42603         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42604         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42605         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42606         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42607         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42608         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42609         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42610         Add more languages and countries for Sami, Sorbian. Add more countries
42611         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42612         for Pashto. Change country for Syriac, Tswana.
42613
42614 2009-12-21  Eric Blake  <ebb9@byu.net>
42615
42616         test-utimens: avoid spurious failure
42617         * tests/test-chown.h (nap): Factor...
42618         * tests/nap.h: ...into new file.
42619         * tests/test-lchown.h (nap): Avoid duplication.
42620         * tests/test-utimens-common.h (nap): Use shared implementation,
42621         necessary on file systems with 1-second resolution.
42622         * modules/chown-tests (Files): Include new file.
42623         * modules/fdutimensat-tests (Files): Likewise.
42624         * modules/futimens-tests (Files): Likewise.
42625         * modules/lchown-tests (Files): Likewise.
42626         * modules/openat-tests (Files): Likewise.
42627         * modules/utimens-tests (Files): Likewise.
42628         * modules/utimensat-tests (Files): Likewise.
42629
42630 2009-12-19  Eric Blake  <ebb9@byu.net>
42631
42632         futimens, utimensat: work around Linux bug
42633         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42634         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42635         * lib/utimensat.c (rpl_utimensat): Work around it.
42636         * lib/futimens.c (rpl_futimens): Adjust comment.
42637
42638         utimens: work around Linux ctime bug
42639         * lib/utimens.c (detect_ctime_bug): New helper function.
42640         (update_timespec): Differentiate between workaround needed for
42641         this bug vs. what is needed for systems that lack utimensat.
42642         (fdutimens, lutimens): Work around bug.
42643
42644         utimens: check for ctime update
42645         * tests/test-utimens-common.h (check_ctime): Define.
42646         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42647         * tests/test-futimens.h (test_futimens): Likewise.
42648         * tests/test-lutimens.h (test_lutimens): Likewise.
42649         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42650         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42651
42652 2009-12-19  Bruno Haible  <bruno@clisp.org>
42653
42654         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42655         * tests/test-dprintf-posix2.sh: New file.
42656         * tests/test-dprintf-posix2.c: New file.
42657         * modules/dprintf-posix-tests (Files): Add them.
42658         (configure.ac): Check for getrlimit and setrlimit.
42659         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42660
42661 2009-12-19  Bruno Haible  <bruno@clisp.org>
42662
42663         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42664         * tests/test-fprintf-posix3.sh: New file.
42665         * tests/test-fprintf-posix3.c: New file.
42666         * modules/fprintf-posix-tests (Files): Add them.
42667         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42668
42669 2009-12-19  Eric Blake  <ebb9@byu.net>
42670
42671         dirfd: fix prototype
42672         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42673         * lib/dirfd.c (dirfd): Likewise.
42674
42675         canonicalize: reduce memory usage
42676         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42677         allocation to size.
42678         Reported by Solar Designer <solar@openwall.com>.
42679
42680 2009-12-19  Bruno Haible  <bruno@clisp.org>
42681
42682         New module attribute 'Applicability'.
42683         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42684         * gnulib-tool: New option --extract-applicability.
42685         (func_usage): Document it.
42686         (sed_extract_prog): Recognize it.
42687         (func_get_applicability): New function.
42688         (func_import): Generalize handling of 'link-warning' module.
42689         * modules/link-warning (Applicability): New section.
42690         * modules/arg-nonnull (Applicability): New section.
42691         Repoted by Simon Josefsson <simon@josefsson.org>.
42692
42693 2009-12-19  Bruno Haible  <bruno@clisp.org>
42694
42695         fflush: tweak
42696         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42697         * lib/fseeko.c (rpl_fseeko): Likewise.
42698
42699 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42700
42701         * lib/gl_list.h: Fix typo in comment.
42702
42703 2009-12-16  Eric Blake  <ebb9@byu.net>
42704
42705         fcntl: use to simplify other modules
42706         * modules/cloexec (Depends-on): Add fcntl.
42707         * modules/fchdir (Depends-on): Likewise.
42708         * modules/fd-safer-flag (Depends-on): Likewise.
42709         * modules/unistd-safer (Depends-on): Likewise.
42710         * modules/dup3 (configure.ac): Set module indicator.
42711         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42712         missing.
42713         * lib/fchdir.c (_gl_register_dup): Fix comment.
42714         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42715         * lib/dup-safer.c (dup_safer): Likewise.
42716         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42717         * lib/dup3.c (dup3): Likewise.
42718         * tests/test-fchdir.c (main): Enhance test.
42719         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42720
42721         fcntl: port portions of fcntl to mingw
42722         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42723         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42724         replacement for mingw.
42725         * modules/fcntl (Description): Update.
42726         (Depends-on): Add dup2.
42727         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42728         * modules/fcntl-h (Makefile.am): Substitute it.
42729         * lib/fcntl.in.h (fcntl): Update declaration.
42730         (F_DUPFD, F_GETFD): New macros, when needed.
42731         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42732         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42733         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42734         we now guarantee.
42735
42736         fcntl: work around cygwin bug in F_DUPFD
42737         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42738         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42739         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42740         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42741         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42742
42743         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42744         * modules/fcntl (Files): List new files.
42745         (configure.ac): Run a test.
42746         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42747         * lib/fcntl.c (rpl_fcntl): Likewise.
42748         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42749         (gl_FCNTL_H): Always replace fcntl.h.
42750         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42751         * lib/fcntl.in.h (fcntl): Declare replacement.
42752         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42753         needed, plus a witness.
42754         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42755         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42756         * tests/test-fcntl.c: New file.
42757         * modules/fcntl-tests: Likewise.
42758
42759         binary-io: avoid potential compilation warning
42760         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42761         directives.
42762
42763         fflush: avoid compilation error on NetBSD
42764         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42765         between off_t and fpos_t, since the latter is sometimes a struct.
42766         * lib/fseeko.c (rpl_fseeko): Likewise.
42767         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42768
42769 2009-12-15  Eric Blake  <ebb9@byu.net>
42770
42771         fcntl-h, stdio, sys_ioctl: fix declarations
42772         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42773         function must not take arguments.
42774         * lib/sys_ioctl.in.h (ioctl): Likewise.
42775         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42776         (open): Add a link warning.
42777
42778 2009-12-15  Jim Meyering  <meyering@redhat.com>
42779
42780         areadlink, areadlink-with-size: relax license to LGPLv2+
42781         * modules/areadlink (License): Relax to LGPLv2+.
42782         * modules/areadlink-with-size (License): Likewise.
42783
42784 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42785             Bruno Haible  <bruno@clisp.org>
42786
42787         *printf: Fix memory leak.
42788         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42789         * lib/vfprintf.c (vfprintf): Likewise.
42790         * lib/dprintf.c (dprintf): Likewise.
42791         * lib/vdprintf.c (vdprintf): Likewise.
42792
42793 2009-12-14  Eric Blake  <ebb9@byu.net>
42794
42795         accept4: adjust module dependencies
42796         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42797
42798         utimens: one more try at avoiding compiler warning
42799         * lib/utimens.c (lutimens): Lower scope of result.
42800
42801 2009-12-13  Bruno Haible  <bruno@clisp.org>
42802
42803         Move the malloc checking from module 'list' to new module 'xlist'.
42804         * modules/xlist: New file.
42805         * lib/gl_xlist.h: New file.
42806         * lib/gl_xlist.c: New file.
42807         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42808         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42809         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42810         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42811         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42812         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42813         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42814         gl_sortedlist_nx_add): New declarations.
42815         (struct gl_list_implementation): Rename and change methods accordingly.
42816         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42817         (gl_list_nx_create): Renamed from gl_list_create.
42818         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42819         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42820         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42821         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42822         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42823         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42824         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42825         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42826         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42827         gl_list_create_empty.
42828         (gl_list_nx_create): Renamed from gl_list_create.
42829         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42830         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42831         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42832         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42833         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42834         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42835         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42836         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42837         * lib/gl_array_list.c: Don't include xalloc.h.
42838         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42839         NULL upon out-of-memory.
42840         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42841         out-of-memory.
42842         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42843         Change return type to 'int'.
42844         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42845         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42846         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42847         upon out-of-memory.
42848         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42849         upon out-of-memory.
42850         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42851         upon out-of-memory.
42852         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42853         upon out-of-memory.
42854         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42855         out-of-memory.
42856         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42857         Update.
42858         (gl_array_list_implementation): Update.
42859         * lib/gl_carray_list.c: Don't include xalloc.h.
42860         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42861         Return NULL upon out-of-memory.
42862         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42863         out-of-memory.
42864         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42865         Change return type to 'int'.
42866         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42867         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42868         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42869         upon out-of-memory.
42870         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42871         upon out-of-memory.
42872         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42873         out-of-memory.
42874         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42875         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42876         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42877         Update.
42878         (gl_carray_list_implementation): Update.
42879         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42880         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42881         gl_linked_create_empty. Return NULL upon out-of-memory.
42882         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42883         out-of-memory.
42884         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42885         Change return type to 'int'. Return -1 upon out-of-memory.
42886         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42887         out-of-memory.
42888         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42889         upon out-of-memory.
42890         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42891         upon out-of-memory.
42892         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42893         NULL upon out-of-memory.
42894         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42895         upon out-of-memory.
42896         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42897         out-of-memory.
42898         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42899         Update.
42900         * lib/gl_linked_list.c: Don't include xalloc.h.
42901         (gl_linked_list_implementation): Update.
42902         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42903         (add_to_bucket): Change return type to 'int'.
42904         (gl_linkedhash_list_implementation): Update.
42905         * lib/gl_anytree_list1.h (free_subtree): New function.
42906         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42907         gl_tree_create_empty. Return NULL upon out-of-memory.
42908         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42909         Change return type to 'int'. Return -1 upon out-of-memory.
42910         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42911         out-of-memory.
42912         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42913         (gl_tree_remove_node): New function, moved here from
42914         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42915         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42916         Update.
42917         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42918         malloc, not xmalloc. Return NULL upon out-of-memory.
42919         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42920         out-of-memory.
42921         (gl_tree_remove_node_from_tree): New function, extracted from
42922         gl_tree_remove_node.
42923         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42924         upon out-of-memory.
42925         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42926         out-of-memory.
42927         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42928         upon out-of-memory.
42929         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42930         upon out-of-memory.
42931         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42932         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42933         not xmalloc. Return NULL upon out-of-memory.
42934         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42935         out-of-memory.
42936         (gl_tree_remove_node_from_tree): New function, extracted from
42937         gl_tree_remove_node.
42938         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42939         upon out-of-memory.
42940         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42941         out-of-memory.
42942         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42943         upon out-of-memory.
42944         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42945         upon out-of-memory.
42946         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42947         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42948         gl_anytree_list1.h before gl_anyavltree_list2.h.
42949         (gl_avltree_list_implementation): Update.
42950         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42951         gl_anytree_list1.h before gl_anyavltree_list2.h.
42952         (gl_rbtree_list_implementation): Update.
42953         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42954         Change return type to 'int'. Return -1 upon out-of-memory. Use
42955         __builtin_expect.
42956         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42957         (gl_avltreehash_list_implementation): Update.
42958         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42959         (gl_rbtreehash_list_implementation): Update.
42960         * modules/array-list (Depends-on): Remove xalloc.
42961         * modules/carray-list (Depends-on): Likewise.
42962         * modules/linked-list (Depends-on): Likewise.
42963         * modules/linkedhash-list (Depends-on): Likewise.
42964         * modules/avltree-list (Depends-on): Likewise.
42965         * modules/rbtree-list (Depends-on): Likewise.
42966         * modules/avltreehash-list (Depends-on): Likewise.
42967         * modules/rbtreehash-list (Depends-on): Likewise.
42968
42969         * modules/xsublist: New file.
42970         * lib/gl_xsublist.h: New file.
42971         * lib/gl_xsublist.c: New file.
42972         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42973         (gl_sublist_nx_create): New declaration.
42974         * lib/gl_sublist.c: Don't include xalloc.h.
42975         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42976         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42977         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42978         Change return type to 'int'. Return -1 upon out-of-memory.
42979         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42980         upon out-of-memory.
42981         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42982         NULL upon out-of-memory.
42983         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42984         upon out-of-memory.
42985         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42986         NULL upon out-of-memory.
42987         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42988         NULL upon out-of-memory.
42989         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42990         upon out-of-memory.
42991         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42992         (gl_sublist_list_implementation): Update.
42993         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42994         upon out-of-memory.
42995         * modules/sublist (Depends-on): Remove xalloc.
42996
42997         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42998         * tests/test-carray_list.c: Likewise.
42999         * tests/test-linked_list.c: Likewise.
43000         * tests/test-linkedhash_list.c: Likewise.
43001         * tests/test-avltree_list.c: Likewise.
43002         * tests/test-rbtree_list.c: Likewise.
43003         * tests/test-avltreehash_list.c: Likewise.
43004         * tests/test-rbtreehash_list.c: Likewise.
43005         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
43006         * modules/carray-list-tests (Makefile.am): Likewise.
43007         * modules/linked-list-tests (Makefile.am): Likewise.
43008         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43009         * modules/avltree-list-tests (Makefile.am): Likewise.
43010         * modules/rbtree-list-tests (Makefile.am): Likewise.
43011         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43012         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43013
43014         * NEWS: Mention the changes.
43015
43016         * lib/clean-temp.c: Include gl_xlist.h.
43017         * modules/clean-temp (Depends-on): Add xlist.
43018
43019         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
43020         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
43021
43022         * tests/test-array_oset.c: Include gl_xlist.h.
43023         * modules/array-oset-tests (Depends-on): Add xlist.
43024
43025         Reported by José E. Marchesi <jemarch@gnu.org>.
43026
43027 2009-12-13  Bruno Haible  <bruno@clisp.org>
43028
43029         Move the malloc checking from module 'oset' to new module 'xoset'.
43030         * modules/xoset: New file.
43031         * lib/gl_xoset.h: New file.
43032         * lib/gl_xoset.c: New file.
43033         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
43034         declarations.
43035         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
43036         (struct gl_oset_implementation): Rename and change methods accordingly.
43037         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
43038         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
43039         'int'. Mark as __warn_unused_result__.
43040         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
43041         gl_oset_create_empty.
43042         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
43043         'int'.
43044         * lib/gl_array_oset.c: Don't include xalloc.h.
43045         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
43046         malloc, not xmalloc.
43047         (grow): Change return type to 'int'. Don't call xalloc_die.
43048         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
43049         to 'int'.
43050         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
43051         'int'.
43052         (gl_array_oset_implementation): Update.
43053         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
43054         gl_tree_create_empty.
43055         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
43056         'int'.
43057         * lib/gl_avltree_oset.c: Don't include xalloc.h.
43058         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
43059         xmalloc.
43060         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
43061         not xmalloc.
43062         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
43063         xmalloc.
43064         (gl_avltree_oset_implementation): Update.
43065         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
43066         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
43067         xmalloc.
43068         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
43069         not xmalloc.
43070         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
43071         xmalloc.
43072         (gl_rbtree_oset_implementation): Update.
43073         * modules/array-oset (Depends-on): Remove xalloc.
43074         * modules/avltree-oset (Depends-on): Likewise.
43075         * modules/rbtree-oset (Depends-on): Likewise.
43076         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
43077         * tests/test-avltree_oset.c: Likewise.
43078         * tests/test-rbtree_oset.c: Likewise.
43079         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
43080         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
43081         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43082         * NEWS: Mention the change.
43083
43084 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
43085
43086         maint.mk: allow a project to override release-prep commands
43087         * top/maint.mk (alpha, beta, stable): Move release-preparatory
43088         commands into a new rule.
43089         (release-prep): New rule.
43090         (release-prep-hook): New overridable variable.
43091
43092 2009-12-13  Bruno Haible  <bruno@clisp.org>
43093
43094         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
43095
43096 2009-12-13  Jim Meyering  <meyering@redhat.com>
43097
43098         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
43099         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
43100
43101 2009-12-12  Bruno Haible  <bruno@clisp.org>
43102
43103         duplocale: Tweak.
43104         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
43105
43106 2009-12-12  Karl Berry  <karl@gnu.org>
43107
43108         * config/srclist.txt (strtoll.c): tab changes, no more sync.
43109
43110 2009-12-12  Bruno Haible  <bruno@clisp.org>
43111
43112         * m4/po.m4: Undo incorrect untabification.
43113
43114 2009-12-12  Bruno Haible  <bruno@clisp.org>
43115
43116         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
43117         * modules/c-strtod (Depends-on): Add locale.
43118         * modules/c-strtold (Depends-on): Likewise.
43119
43120 2009-12-12  Bruno Haible  <bruno@clisp.org>
43121
43122         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
43123
43124 2009-12-11  Eric Blake  <ebb9@byu.net>
43125
43126         setenv: relax requirement in light of POSIX ruling
43127         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
43128         not NULL.
43129         * tests/test-setenv.c (main): Relax test.
43130         * tests/test-unsetenv.c (main): Likewise.
43131         * doc/posix-functions/setenv.texi (setenv): Document this.
43132         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43133
43134 2009-12-11  Bruno Haible  <bruno@clisp.org>
43135
43136         New module 'fd-safer-flag'.
43137         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
43138         * lib/dup-safer.c (dup_safer_flag): Remove function.
43139         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
43140         * lib/fd-safer.c (fd_safer_flag): Remove function.
43141         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
43142         * modules/cloexec (configure.ac): Drop indicator macro.
43143         * modules/fd-safer-flag: New file.
43144         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43145         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43146         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43147
43148 2009-12-11  Bruno Haible  <bruno@clisp.org>
43149
43150         Tests for module 'nl_langinfo'.
43151         * modules/nl_langinfo-tests: New file.
43152         * tests/test-nl_langinfo.sh: New file.
43153         * tests/test-nl_langinfo.c: New file.
43154
43155         New module 'nl_langinfo'.
43156         * lib/nl_langinfo.c: New file.
43157         * m4/nl_langinfo.m4: New file.
43158         * modules/nl_langinfo: New file.
43159         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43160
43161 2009-12-11  Bruno Haible  <bruno@clisp.org>
43162
43163         Tests for module 'langinfo'.
43164         * modules/langinfo-tests: New file.
43165         * tests/test-langinfo.c: New file.
43166
43167         New module 'langinfo'.
43168         * lib/langinfo.in.h: New file.
43169         * m4/langinfo_h.m4: New file.
43170         * modules/langinfo: New file.
43171         * doc/posix-headers/langinfo.texi: Mention the new module.
43172
43173 2009-12-11  Bruno Haible  <bruno@clisp.org>
43174
43175         * lib/config.charset: Untabify.
43176
43177 2009-12-11  Bruno Haible  <bruno@clisp.org>
43178
43179         * modules/unistd-safer (configure.ac): Drop indicator macro.
43180
43181 2009-12-11  Bruno Haible  <bruno@clisp.org>
43182
43183         Move pipe2-safer code to its own file.
43184         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43185         * lib/pipe-safer.c (pipe2_safer): Remove function.
43186         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43187         (Makefile.am): Add it to lib_SOURCES.
43188
43189 2009-12-10  Bruno Haible  <bruno@clisp.org>
43190
43191         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43192
43193 2009-12-10  Bruno Haible  <bruno@clisp.org>
43194
43195         Declare which arguments expect non-NULL values, for GCC and clang.
43196         * build-aux/arg-nonnull.h: New file.
43197         * modules/arg-nonnull: New file.
43198         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43199         (inet_ntop, inet_pton): Use it.
43200         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43201         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43202         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43203         (open, openat): Use it.
43204         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43205         (fnmatch): Use it.
43206         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43207         (getopt, getopt_long, getopt_long_only): Use it.
43208         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43209         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43210         Use it.
43211         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43212         (iconv_open): Use it.
43213         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43214         (strtoimax, strtoumax): Use it.
43215         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43216         (duplocale): Use it.
43217         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43218         (frexp, frexpl): Use it.
43219         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43220         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43221         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43222         (tsearch, tfind, tdelete, twalk): Use it.
43223         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43224         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43225         sigpending): Use it.
43226         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43227         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43228         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43229         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43230         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43231         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43232         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43233         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43234         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43235         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43236         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43237         Use it.
43238         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43239         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43240         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43241         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43242         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43243         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43244         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43245         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43246         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43247         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43248         strtoull, unsetenv): Use it.
43249         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43250         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43251         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43252         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43253         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43254         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43255         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43256         (strcasecmp, strncasecmp): Use it.
43257         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43258         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43259         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43260         rpl_setsockopt): Use it.
43261         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43262         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43263         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43264         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43265         (gettimeofday): Use it.
43266         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43267         (times): Use it.
43268         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43269         (uname): Use it.
43270         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43271         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43272         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43273         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43274         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43275         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43276         unlinkat, write): Use it.
43277         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43278         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43279         * lib/argv-iter.h: Include arg-nonnull.h.
43280         (_ATTRIBUTE_NONNULL_): Remove macro.
43281         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43282         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43283         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43284         optimization.
43285         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43286         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43287         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43288         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43289         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43290         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43291         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43292         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43293         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43294         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43295         * modules/dirent (Depends-on): Add arg-nonnull.
43296         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43297         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43298         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43299         * modules/fnmatch (Depends-on): Add arg-nonnull.
43300         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43301         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43302         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43303         * modules/glob (Depends-on): Add arg-nonnull.
43304         (Makefile.am): Insert arg-nonnull.h into glob.h.
43305         * modules/iconv_open (Depends-on): Add arg-nonnull.
43306         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43307         * modules/inttypes (Depends-on): Add arg-nonnull.
43308         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43309         * modules/locale (Depends-on): Add arg-nonnull.
43310         (Makefile.am): Insert arg-nonnull.h into locale.h.
43311         * modules/math (Depends-on): Add arg-nonnull.
43312         (Makefile.am): Insert arg-nonnull.h into math.h.
43313         * modules/netdb (Depends-on): Add arg-nonnull.
43314         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43315         * modules/search (Depends-on): Add arg-nonnull.
43316         (Makefile.am): Insert arg-nonnull.h into search.h.
43317         * modules/signal (Depends-on): Add arg-nonnull.
43318         (Makefile.am): Insert arg-nonnull.h into signal.h.
43319         * modules/spawn (Depends-on): Add arg-nonnull.
43320         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43321         * modules/stdio (Depends-on): Add arg-nonnull.
43322         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43323         * modules/stdlib (Depends-on): Add arg-nonnull.
43324         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43325         * modules/string (Depends-on): Add arg-nonnull.
43326         (Makefile.am): Insert arg-nonnull.h into string.h.
43327         * modules/strings (Depends-on): Add arg-nonnull.
43328         (Makefile.am): Insert arg-nonnull.h into strings.h.
43329         * modules/sys_socket (Depends-on): Add arg-nonnull.
43330         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43331         * modules/sys_stat (Depends-on): Add arg-nonnull.
43332         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43333         * modules/sys_time (Depends-on): Add arg-nonnull.
43334         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43335         * modules/sys_times (Depends-on): Add arg-nonnull.
43336         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43337         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43338         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43339         * modules/time (Depends-on): Add arg-nonnull.
43340         (Makefile.am): Insert arg-nonnull.h into time.h.
43341         * modules/unistd (Depends-on): Add arg-nonnull.
43342         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43343         * modules/wchar (Depends-on): Add arg-nonnull.
43344         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43345         * modules/argv-iter (Depends-on): Add arg-nonnull.
43346         * tests/test-canonicalize.c (null_ptr): New function.
43347         (main): Use it.
43348         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43349         (main): Use it.
43350         * tests/test-memmem.c (null_ptr): New function.
43351         (main): Use it.
43352         Reported by Jim Meyering.
43353
43354 2009-12-10  Bruno Haible  <bruno@clisp.org>
43355
43356         Use spaces for indentation, not tabs.
43357         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43358         * m4/*.m4: Untabify.
43359         * build-aux/*.h: Untabify.
43360         * tests/**/*.[hc]: Untabify.
43361         * README: New section "Indent with spaces, not TABs", based on
43362         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43363         * NEWS: Mention the change.
43364
43365 2009-12-10  Bruno Haible  <bruno@clisp.org>
43366
43367         pty test: Fix link error.
43368         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43369         test_pty_LDADD.
43370
43371 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43372
43373         * modules/pty: New file.
43374         * modules/pty-tests: New file.
43375         * m4/pty.m4: New file.
43376         * tests/test-pty.c: New file.
43377         * doc/glibc-headers/pty.texi: Modified.
43378         * doc/glibc-functions/forkpty.texi: Modified.
43379         * doc/glibc-functions/openpty.texi: Modified.
43380
43381 2009-12-10  Bruno Haible  <bruno@clisp.org>
43382
43383         Avoid syntax error in C++ mode.
43384         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43385
43386 2009-12-10  Bruno Haible  <bruno@clisp.org>
43387
43388         Use sed with option -e.
43389         * gnulib-tool (func_version, func_emit_copyright_notice,
43390         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43391         option -e to sed.
43392         * modules/link-warning (Makefile.am): Likewise.
43393
43394 2009-12-10  Jim Meyering  <meyering@redhat.com>
43395
43396         mgetgroups: do not write bytes beyond end of malloc'd buffer
43397         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43398         username, we call getgroups with a one-element-shorter buffer,
43399         but still told it the length was original, max_n_groups.
43400
43401 2009-12-09  Eric Blake  <ebb9@byu.net>
43402
43403         cloexec: relax license
43404         * modules/cloexec (Maintainer): Add myself.
43405         (License): Use LGPL, not GPL.
43406
43407         link-warning: optimize generation
43408         * modules/link-warning (Makefile.am): Reduce process usage.
43409
43410 2009-12-09  Bruno Haible  <bruno@clisp.org>
43411
43412         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43413         workaround was added on 2009-11-17.
43414
43415 2009-12-09  Jim Meyering  <meyering@redhat.com>
43416             Bruno Haible  <bruno@clisp.org>
43417
43418         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43419         * modules/link-warning (Makefile.am): Make the comment-removing sed
43420         command more robust in the face of bootstrap-prepended comment lines.
43421
43422 2009-12-09  Bruno Haible  <bruno@clisp.org>
43423
43424         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43425         most one group.
43426
43427 2009-12-09  Simon Josefsson <simon@josefsson.org>
43428             Bruno Haible  <bruno@clisp.org>
43429
43430         * build-aux/link-warning.h: Add copyright notice.
43431         * modules/link-warning (Makefile.am): Generate link-warning.h from
43432         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43433         * NEWS: Mention change in link-warning module.
43434         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43435         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43436         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43437         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43438         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43439         * modules/math (Makefile.am): Add dependency to math.h.
43440         * modules/search (Makefile.am): Add dependency to search.h.
43441         * modules/signal (Makefile.am): Add dependency to signal.h.
43442         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43443         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43444         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43445         * modules/string (Makefile.am): Add dependency to string.h.
43446         * modules/strings (Makefile.am): Add dependency to strings.h.
43447         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43448         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43449         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43450         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43451         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43452         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43453         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43454         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43455         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43456
43457 2009-12-09  Bruno Haible  <bruno@clisp.org>
43458
43459         fchdir: Optimize away rpl_fstat when possible.
43460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43461         REPLACE_OPEN_DIRECTORY.
43462         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43463
43464 2009-12-09  Bruno Haible  <bruno@clisp.org>
43465
43466         * lib/fchdir.c: Update comment.
43467
43468 2009-12-09  Bruno Haible  <bruno@clisp.org>
43469
43470         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43471
43472 2009-12-08  Eric Blake  <ebb9@byu.net>
43473
43474         fchdir: avoid memory leak on re-registration.
43475         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43476
43477 2009-12-08  Jim Meyering  <meyering@redhat.com>
43478
43479         init.sh: avoid Solaris 10 /bin/sh portability problem
43480         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43481         sourced script:
43482           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43483           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43484           bar
43485         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43486         and two tests used that idiom.
43487         * tests/init.sh: Update suggested usage comments.
43488         (path_prepend_): New function, to be used in place
43489         of the --src-path=DIR option.
43490         (setup_): Move PATH-prepending code into path_prepend_.
43491         * tests/test-pread.sh: Adapt to new usage.
43492         * tests/test-xalloc-die.sh: Likewise.
43493
43494 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43495
43496         * doc/gnulib.texi (Glibc pty.h): Add.
43497         * doc/glibc-functions/forkpty.texi: Add.
43498         * doc/glibc-functions/openpty.texi: Add.
43499         Suggested by Bruno Haible.
43500
43501 2009-12-08  Eric Blake  <ebb9@byu.net>
43502
43503         fchdir: fix logic bugs
43504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43505         * tests/test-fchdir.c (main): Enhance test.
43506         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43507         is in use.
43508
43509         dup2: fix logic bugs
43510         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43511         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43512         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43513         exists.
43514         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43515
43516 2009-12-07  Eric Blake  <ebb9@byu.net>
43517
43518         unlink: fix m4 detection
43519         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43520
43521         unistd-safer: add unit test
43522         * modules/unistd-safer-tests: New file.
43523         * tests/test-dup-safer.c: Likewise.
43524         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43525         * tests/test-dup2.c (setmode): Likewise.
43526         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43527
43528         cloexec: preserve text vs. binary across dup_cloexec
43529         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43530         mode.
43531         * modules/dup2-tests (Depends-on): Add binary-io.
43532         * modules/cloexec-tests (Depends-on): Likewise.
43533         * tests/test-dup2.c (setmode, is_mode): New helpers.
43534         (main): Add tests that translation mode is preserved.
43535         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43536         Reported by Bruno Haible.
43537
43538         mgetgroups: reduce duplicate listings
43539         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43540         resulting array.
43541         * tests/test-chown.h (test_chown): Simplify client.
43542         * tests/test-lchown.h (test_lchown): Likewise.
43543
43544 2009-12-06  Bruno Haible  <bruno@clisp.org>
43545
43546         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43547         value.
43548
43549 2009-12-06  Bruno Haible  <bruno@clisp.org>
43550
43551         * lib/progname.c: Include stdio.h, stdlib.h.
43552         (set_program_name): Reject a NULL argument.
43553
43554 2009-12-05  Eric Blake  <ebb9@byu.net>
43555
43556         pipe2-safer: new module
43557         * modules/pipe2-safer: New file.
43558         * lib/unistd-safer.h (pipe2_safer): New prototype.
43559         * lib/unistd--.h (pipe2): New wrapper.
43560         * lib/pipe-safer.c (pipe2_safer): New function.
43561         * modules/pipe (Depends-on): Add pipe2-safer.
43562         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43563
43564         stdlib-safer: preserve cloexec flag for mkostemp[s]
43565         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43566         fd_safer_flag.
43567
43568         unistd-safer: allow preservation of cloexec status via flag
43569         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43570         prototypes.
43571         * lib/dup-safer.c (dup_safer_flag): New function.
43572         * lib/fd-safer.c (fd_safer_flag): Likewise.
43573         * modules/cloexec (configure.ac): Set witness.
43574
43575         test-dup2: enhance test
43576         * modules/dup2-tests (Depends-on): Add cloexec.
43577         * tests/test-dup2.c (main): Enhance test.
43578
43579         cloexec: add dup_cloexec
43580         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43581         header and comments.
43582         * lib/cloexec.c (set_cloexec_flag): Add comments.
43583         (dup_cloexec): New function, with mingw implementation borrowed
43584         from...
43585         * lib/w32spawn.h (dup_noinherit): ...here.
43586         * modules/execute (Depends-on): Add cloexec.
43587         * modules/pipe (Depends-on): Likewise.
43588         * modules/cloexec (Depends-on): Add dup2.
43589         * modules/cloexec-tests (Files): New file.
43590         * tests/test-cloexec.c: Likewise.
43591
43592         test-xalloc-die: fix test for mingw
43593         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43594         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43595         directory and .exe suffix off argv[0] output.
43596
43597         test-fseeko: fix test for mingw
43598         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43599         than undefining fseek, so test will pass on mingw.
43600
43601 2009-12-05  Bruno Haible  <bruno@clisp.org>
43602
43603         * lib/progname.h (set_program_name): Clarify specification.
43604         * lib/progname.c (set_program_name): Likewise.
43605         Reported by Jim Meyering.
43606
43607 2009-12-05  Jim Meyering  <meyering@redhat.com>
43608
43609         maint.mk: backslash-escape parens in default regexp
43610         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43611         backslash-escape the literal parentheses.
43612
43613         maint.mk: news-date-check: use grep -E
43614         * top/maint.mk (today): Define a Make variable, not a...
43615         (news-date-check): ...shell variable.
43616         (news-date-regexp): Use the Make variable.
43617         Use grep's -E option.  Change the failing diagnostic to mention
43618         the variable, $(news-date-regexp).
43619
43620 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43621
43622         maintainer-makefile: allow customization of NEWS entry format
43623         * top/maint.mk (news-date-regexp): New overridable variable.
43624         (news-date-check): Use it.
43625
43626 2009-12-04  Eric Blake  <ebb9@byu.net>
43627
43628         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43629         * lib/mgetgroups.h (xgetgroups): New prototype.
43630         * lib/mgetgroups.c (xgetgroups): New wrapper.
43631         (mgetgroups): Handle ENOSYS.
43632         * modules/mgetgroups (Depends-on): Add realloc.
43633         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43634
43635         mgetgroups: avoid argument promotion issues with -1
43636         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43637         for invalid gid_t.
43638         * tests/test-chown.h (getegid, test_chown): Likewise.
43639         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43640
43641 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43642
43643         exclude: Fix header file problems.
43644         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43645
43646 2009-12-01  Jim Meyering  <meyering@redhat.com>
43647
43648         fts: fts_open: do not let an empty string cause immediate failure
43649         This is required in support of GNU rm, for which the command
43650         "rm A '' B" must process and remove both A and B, in spite of
43651         the empty string argument.
43652         * lib/fts.c (fts_open): Do not let the presence of an empty string
43653         cause fts_open to fail immediately.  Most fts-using tools must be
43654         able to process all arguments, in order, and can be expected to
43655         diagnose such arguments themselves.
43656
43657 2009-11-30  Eric Blake  <ebb9@byu.net>
43658
43659         utimens: fix compilation error
43660         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43661         Declare variable at right scope.
43662
43663 2009-11-29  Jim Meyering  <meyering@redhat.com>
43664
43665         bootstrap: handle perl-5.11's changed --version output
43666         * build-aux/bootstrap (get_version): Handle perl separately,
43667         since perl-5.11's --version output is different.
43668
43669 2009-11-28  Jim Meyering  <meyering@redhat.com>
43670
43671         userspec: depend on the inttostr module, too
43672         * modules/userspec (Depends-on): Add inttostr.
43673
43674         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43675         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43676         number of MAXUID when it evaluates to (uid_t) -1.
43677         Likewise for group ID.  Reported by Matt McCutchen in
43678         <http://savannah.gnu.org/bugs/?28113>
43679
43680         userspec: reformat to use spaces, not TABs
43681         * lib/userspec.c: Expand TABs to spaces.
43682         Add Emacs' "indent-tabs-mode: nil" hint.
43683
43684 2009-11-27  Eric Blake  <ebb9@byu.net>
43685
43686         getopt-gnu: flush out another BSD bug
43687         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43688         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43689         flush out BSD bug.
43690         * tests/test-getopt.h (test_getopt): End lists with NULL.
43691         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43692         (test_getopt_long_posix): Enhance test.
43693         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43694         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43695         getopt-gnu.
43696         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43697         Likewise.
43698
43699 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43700
43701         * modules/idpriv-droptemp-tests (Notice): Fix text.
43702
43703 2009-11-27  Jim Meyering  <meyering@redhat.com>
43704
43705         test-xalloc-die: avoid spurious failure due to libtool argv difference
43706         In a libtool-enabled project, this test would fail due to a difference
43707         in the emitted program name, e.g.,
43708         -test-xalloc-die: memory exhausted
43709         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43710         Use program to avoid that.
43711         * modules/xalloc-die-tests (Depends-on): Add progname.
43712         * tests/test-xalloc-die.c: Include progname.h".
43713         (program_name): Remove decl.
43714         (main): Call set_program_name.
43715         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43716
43717 2009-11-26  Richard Jones  <rjones@redhat.com>
43718
43719         w32sock: leave win32 error in place.
43720         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43721
43722 2009-11-26  Eric Blake  <ebb9@byu.net>
43723
43724         init.sh: suggest to use skip_ and fail_ functions in comments
43725         * tests/init.sh: Add a sentence.
43726
43727 2009-11-25  Bruno Haible  <bruno@clisp.org>
43728
43729         init.sh: add documentation in comments
43730         * tests/init.sh: Add some developer and user documentation.
43731
43732 2009-11-26  Jim Meyering  <meyering@redhat.com>
43733
43734         init.sh: accommodate even those who specify bogus srcdir manually
43735         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43736         configure-time tests to be sanitized, so that there is no need to
43737         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43738         (with no double quotes) suffices.  However, since tests may be
43739         invoked manually, and since you may explicitly set srcdir to the
43740         name of a directory containing spaces, do quote its uses here.
43741         * tests/test-pread.sh: Likewise.
43742         Suggested by Bruno Haible.
43743
43744         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43745         * tests/test-pread.sh: Write no data into the pipe, because
43746         test-pread actually reads none.  This avoids a diagnostic,
43747         "bash: echo: write error: Broken pipe", that arises in the unusual
43748         event something is ignoring SIGPIPE, and might be interpreted
43749         as some sort of failure.  Reported by Bruno Haible.
43750
43751 2009-11-25  Jim Meyering  <meyering@redhat.com>
43752
43753         test-pread: cover failure with ESPIPE and EINVAL
43754         * tests/test-pread.c (main): Test for failure, too.
43755         * tests/test-pread.sh: Invoke with stdin on a pipe.
43756         Suggested by Eric Blake.
43757
43758         pread: improvement and fix
43759         * modules/pread (Depends-on): Depend on lseek, for portability to
43760         e.g., mingw.  Suggested by Eric Blake.
43761         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43762
43763         unistd.in.h: correct declaration of pread
43764         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43765         Reported by Richard W.M. Jones.
43766
43767         test-pread.sh: distribute the test script
43768         * modules/pread-tests (Files): Include test-pread.sh.
43769
43770         test-pread.sh: clean up
43771         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43772         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43773         That is unnecessary, since it's always ".".
43774         Suggestion from Eric Blake.
43775
43776         test-pread.sh: make executable
43777         * tests/test-pread.sh: Set executable bit.
43778         Reported by Eric Blake.
43779
43780         correct typo in test-pread.sh
43781         * tests/test-pread.sh: Add #! line.
43782
43783         test pread
43784         * tests/test-pread.c: New file.
43785         * tests/test-pread.sh: Likewise.
43786         * modules/pread-tests: Likewise.
43787
43788         pread: new module
43789         * modules/pread: New file.
43790         * lib/unistd.in.h (pread): Define/declare.
43791         * lib/pread.c (pread): New file.
43792         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43793         * modules/unistd (Makefile.am): Substitute witnesses.
43794         * doc/posix-functions/pread.texi (pread): Update.
43795         * MODULES.html.sh: Add pread.
43796
43797 2009-11-25  Jim Meyering  <meyering@redhat.com>
43798
43799         tests/init.sh: new file to be used via most *.sh tests
43800         * tests/init.sh: New file.
43801
43802 2009-11-25  Eric Blake  <ebb9@byu.net>
43803
43804         utimens: work around older Linux failure with symlinks
43805         * lib/utimens.c (lutimensat_works_really): New variable.
43806         (fdutimens, lutimens): Use it to manage kernels that support
43807         nanosecond times on files, but not on symlinks.
43808         Reported by Ondřej Vašík.
43809
43810         utimes: fix configure grammar
43811         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43812
43813 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43814
43815         regex: Fix fastmap for multibyte character ranges.
43816         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43817         characters when a multibyte character range is included.
43818
43819 2009-11-22  Andy Wingo  <wingo@pobox.com>
43820
43821         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43822         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43823
43824 2009-11-24  Bruno Haible  <bruno@clisp.org>
43825
43826         doc: Most *_l functions exist in MacOS X 10.5.
43827         * doc/posix-functions/duplocale.texi: Update platforms list.
43828         * doc/posix-functions/freelocale.texi: Likewise.
43829         * doc/posix-functions/newlocale.texi: Likewise.
43830         * doc/posix-functions/uselocale.texi: Likewise.
43831         * doc/posix-functions/isalnum_l.texi: Likewise.
43832         * doc/posix-functions/isalpha_l.texi: Likewise.
43833         * doc/posix-functions/isblank_l.texi: Likewise.
43834         * doc/posix-functions/iscntrl_l.texi: Likewise.
43835         * doc/posix-functions/isdigit_l.texi: Likewise.
43836         * doc/posix-functions/isgraph_l.texi: Likewise.
43837         * doc/posix-functions/islower_l.texi: Likewise.
43838         * doc/posix-functions/isprint_l.texi: Likewise.
43839         * doc/posix-functions/ispunct_l.texi: Likewise.
43840         * doc/posix-functions/isspace_l.texi: Likewise.
43841         * doc/posix-functions/isupper_l.texi: Likewise.
43842         * doc/posix-functions/iswalnum_l.texi: Likewise.
43843         * doc/posix-functions/iswalpha_l.texi: Likewise.
43844         * doc/posix-functions/iswblank_l.texi: Likewise.
43845         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43846         * doc/posix-functions/iswctype_l.texi: Likewise.
43847         * doc/posix-functions/iswdigit_l.texi: Likewise.
43848         * doc/posix-functions/iswgraph_l.texi: Likewise.
43849         * doc/posix-functions/iswlower_l.texi: Likewise.
43850         * doc/posix-functions/iswprint_l.texi: Likewise.
43851         * doc/posix-functions/iswpunct_l.texi: Likewise.
43852         * doc/posix-functions/iswspace_l.texi: Likewise.
43853         * doc/posix-functions/iswupper_l.texi: Likewise.
43854         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43855         * doc/posix-functions/isxdigit_l.texi: Likewise.
43856         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43857         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43858         * doc/posix-functions/strcoll_l.texi: Likewise.
43859         * doc/posix-functions/strfmon_l.texi: Likewise.
43860         * doc/posix-functions/strftime_l.texi: Likewise.
43861         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43862         * doc/posix-functions/strxfrm_l.texi: Likewise.
43863         * doc/posix-functions/tolower_l.texi: Likewise.
43864         * doc/posix-functions/toupper_l.texi: Likewise.
43865         * doc/posix-functions/towctrans_l.texi: Likewise.
43866         * doc/posix-functions/towlower_l.texi: Likewise.
43867         * doc/posix-functions/towupper_l.texi: Likewise.
43868         * doc/posix-functions/wcscoll_l.texi: Likewise.
43869         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43870         * doc/posix-functions/wctrans_l.texi: Likewise.
43871         * doc/posix-functions/wctype_l.texi: Likewise.
43872         * doc/glibc-functions/strptime_l.texi: Likewise.
43873         * doc/glibc-functions/strtod_l.texi: Likewise.
43874         * doc/glibc-functions/strtof_l.texi: Likewise.
43875         * doc/glibc-functions/strtol_l.texi: Likewise.
43876         * doc/glibc-functions/strtold_l.texi: Likewise.
43877         * doc/glibc-functions/strtoll_l.texi: Likewise.
43878         * doc/glibc-functions/strtoul_l.texi: Likewise.
43879         * doc/glibc-functions/strtoull_l.texi: Likewise.
43880         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43881         * doc/glibc-functions/wcstod_l.texi: Likewise.
43882         * doc/glibc-functions/wcstof_l.texi: Likewise.
43883         * doc/glibc-functions/wcstol_l.texi: Likewise.
43884         * doc/glibc-functions/wcstold_l.texi: Likewise.
43885         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43886         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43887         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43888
43889 2009-11-24  Bruno Haible  <bruno@clisp.org>
43890
43891         duplocale: Fix logic bug.
43892         * lib/duplocale.c: Don't include <langinfo.h>.
43893         (_NL_LOCALE_NAME): Remove macro.
43894         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43895         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43896
43897 2009-11-23  Jim Meyering  <meyering@redhat.com>
43898
43899         test-update-copyright: don't hard-code /usr/bin/perl
43900         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43901         perl to print the current year.  Gilles Espinasse reported that
43902         the replaced use of perl was hard-coded as /usr/bin/perl.
43903
43904 2009-11-23  Bruno Haible  <bruno@clisp.org>
43905
43906         duplocale: Add support for glibc 2.3.x.
43907         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43908
43909 2009-11-22  Bruno Haible  <bruno@clisp.org>
43910
43911         vasnprintf: Tiny optimization.
43912         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43913         MacOS X.
43914
43915 2009-11-22  Bruno Haible  <bruno@clisp.org>
43916
43917         Tests for module 'duplocale'.
43918         * modules/duplocale-tests: New file.
43919         * tests/test-duplocale.c: New file.
43920
43921         New module 'duplocale'.
43922         * m4/duplocale.m4: New file.
43923         * lib/locale.in.h (duplocale): New declaration.
43924         * lib/duplocale.c: New file.
43925         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43926         gl_LOCALE_H_DEFAULTS): New macros.
43927         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43928         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43929         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43930         REPLACE_DUPLOCALE.
43931         * modules/duplocale: New file.
43932         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43933
43934 2009-11-22  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/locale-tests (configure.ac): Test for newlocale function.
43937         * tests/test-locale.c: When the system has extended locale functions,
43938         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43939
43940         locale: Make locale_t available when possible.
43941         * lib/locale.in.h: Include <xlocale.h> when it exists.
43942         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43943         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43944         * modules/locale (Depends-on): Add extensions.
43945         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43946         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43947
43948 2009-11-22  Bruno Haible  <bruno@clisp.org>
43949
43950         Add comments.
43951         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43952         invocation.
43953         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43954         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43955         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43956
43957 2009-11-22  Bruno Haible  <bruno@clisp.org>
43958
43959         error: account for the possibility of freopen (stdout).
43960         * lib/error.c: Include <unistd.h>.
43961         (flush_stdout): New function, extracted from error and error_at_line.
43962         Determine stdout's fd dynamically.
43963         (error, error_at_line): Invoke flush_stdout.
43964         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43965         * modules/error (Depends-on): Add unistd.
43966
43967 2009-11-22  Bruno Haible  <bruno@clisp.org>
43968
43969         diffseq: Add comment.
43970         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43971
43972 2009-11-22  Jim Meyering  <meyering@redhat.com>
43973
43974         c-stack: avoid defining an unused static function
43975         * lib/c-stack.c (find_stack_direction): Do not define this function
43976         when it will not be used.
43977
43978         diffseq: avoid spurious gcc warnings
43979         * lib/diffseq.h (IF_LINT2): Define.
43980         (compareseq): Use it to initialize two members of "part".
43981         This avoids two used-uninitialized warnings.
43982
43983 2009-11-21  Jim Meyering  <meyering@redhat.com>
43984
43985         c-stack: avoid "ignoring return value of `write'" warning
43986         * lib/c-stack.c: Include "ignore-value.h".
43987         (die): Explicitly ignore each write return value.
43988         * modules/c-stack (Depends-on): Add ignore-value.
43989
43990 2009-11-21  Bruno Haible  <bruno@clisp.org>
43991
43992         diffseq: reduce scope of variable 'best'.
43993         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43994         variable, earlier used for two different purposes.
43995
43996 2009-11-21  Jim Meyering  <meyering@redhat.com>
43997
43998         diffseq: remove useless assignment to "best"
43999         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
44000         assignment.  At that point "best" is already guaranteed to be zero.
44001
44002 2009-11-20  Eric Blake  <ebb9@byu.net>
44003
44004         build: mention ftp redirector in release announcements
44005         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
44006         values that used to come from cfg.mk; mention FTP redirect URL.
44007         * build-aux/announce-gen: Mention the mirror list.
44008         Suggested by Karl Berry.
44009
44010         nanosleep: improve port to mingw
44011         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
44012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
44013         LIB_NANOSLEEP, but only when needed.
44014         * modules/select (Link): Document LIBSOCKET.
44015         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
44016         enough.
44017
44018         nanosleep: work around cygwin bug
44019         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
44020         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
44021         bug.
44022         (getnow): Delete, not needed.
44023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
44024         LIB_CLOCK_GETTIME.
44025         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
44026         clock-time, gettime.
44027         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
44028         bug.
44029         * modules/nanosleep-tests: New test.
44030         * tests/test-nanosleep.c: New file.
44031
44032         sleep: work around cygwin bug
44033         * lib/sleep.c (rpl_sleep): Work around the bug.
44034         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
44035         (gl_PREREQ_SLEEP): Delete unused macro.
44036         * modules/sleep (Depends-on): Add verify.
44037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44038         * modules/unistd (Makefile.am): Substitute witness.
44039         * lib/unistd.in.h (sleep): Update prototype.
44040         * doc/posix-functions/sleep.texi (sleep): Document the bug.
44041         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
44042         * modules/sleep-tests (Depends-on): Check for alarm.
44043
44044 2009-11-20  Jim Meyering  <meyering@redhat.com>
44045
44046         maint.mk: improve sc_prohibit_magic_number_exit
44047         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
44048         so it does not match uses like System.exit(1).
44049         Add comments showing how to correct all offenders.
44050
44051 2009-11-19  Eric Blake  <ebb9@byu.net>
44052
44053         xalloc-die-tests: add missing library
44054         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
44055
44056         test-xvasprintf: silence compiler warnings
44057         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
44058         empty string from gcc.
44059
44060 2009-11-19  Jim Meyering  <meyering@redhat.com>
44061
44062         xfreopen: new module, from coreutils
44063         * modules/xfreopen: New module.
44064         * lib/xfreopen.c: New file.
44065         * lib/xfreopen.h: New file.
44066         * MODULES.html.sh (File stream based Input/Output"): Add it.
44067
44068 2009-11-19  Eric Blake  <ebb9@byu.net>
44069
44070         manywarnings: depend on warnings
44071         * modules/manywarnings (Depends-on): Add warnings.
44072
44073         build: avoid compiler warnings
44074         * lib/select.c (rpl_select): Delete unused variable.
44075         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
44076
44077 2009-11-18  Eric Blake  <ebb9@byu.net>
44078
44079         tests: avoid false negative with --with-packager
44080         * tests/test-version-etc.sh: Discard packager information.
44081         * tests/test-argp-version-etc-1.sh: Likewise.
44082         Reported by Mike Frysinger.
44083
44084         utimens: fix regression on Solaris
44085         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
44086         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
44087         can only change fd timestamps via futimesat.  Instead, use an
44088         additional witness macro to avoid BSD bug.
44089         Reported by Jim Meyering.
44090
44091 2009-11-17  Eric Blake  <ebb9@byu.net>
44092
44093         usleep: use it to simplify tests
44094         * modules/stat-time-tests (Depends-on): Add usleep.
44095         (configure.ac): Drop usleep check.
44096         * modules/chown-tests (Depends-on, configure.ac): Likewise.
44097         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
44098         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
44099         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
44100         * modules/openat-tests (Depends-on, configure.ac): Likewise.
44101         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
44102         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
44103         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
44104         Likewise.
44105         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
44106         * tests/test-lchown.h (nap): Likewise.
44107         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
44108         * tests/test-stat-time.c (nap): Likewise.
44109         * tests/test-utimens-common.h (nap): Update comments.
44110
44111         usleep: new module
44112         * modules/usleep: New file.
44113         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
44114         * lib/usleep.c (usleep): Likewise.
44115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44116         * modules/unistd (Makefile.am): Substitute witnesses.
44117         * lib/unistd.in.h (usleep): Add declaration.
44118         * doc/pastposix-functions/usleep.texi (usleep): Document this.
44119         * MODULES.html.sh (Date and time): Likewise.
44120         * modules/usleep-tests (Depends-on): New test.
44121         * tests/test-usleep.c: New file.
44122
44123         chown: work around OpenBSD bug
44124         * lib/chown.c (rpl_chown): Work around the bug.
44125         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
44126         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
44127         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
44128         * modules/chown (Depends-on): Add stdbool.
44129         * modules/lchown (Depends-on): Likewise.
44130         * doc/posix-functions/chown.texi (chown): Document the bug.
44131         * doc/posix-functions/lchown.texi (lchown): Likewise.
44132         * tests/test-lchown.h (test_chown): Relax test.
44133
44134         mkstemp: avoid conflict with C++ keyword template
44135         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
44136         * lib/mkostemp.c (mkostemp): Likewise.
44137         * lib/mkostemps.c (mkostemps): Likewise.
44138         * lib/mkstemp.c (mkstemp): Likewise.
44139         * lib/mkstemps.c (mkstemps): Likewise.
44140
44141         xalloc-die-tests: optimize
44142         * tests/test-xalloc-die.sh: Reduce number of processes.
44143
44144 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44145
44146         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44147         patch from ludo@gnu.org (Ludovic Courtès).
44148
44149 2009-11-17  Jim Meyering  <meyering@redhat.com>
44150
44151         version-etc: use proper license string
44152         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44153         * modules/version-etc-fsf: Likewise.
44154
44155 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44156
44157         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44158         printed to stdout.  Deal with EOL differences.
44159
44160 2009-11-17  Eric Blake  <ebb9@byu.net>
44161
44162         unsetenv: work around Solaris bug
44163         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44164         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44165         Reported by Jim Meyering.
44166
44167         vasnprintf: avoid compiler warnings
44168         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44169         variables.
44170         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44171
44172 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44173
44174         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44175         settings since xalloc-die is no longer the self test,
44176         xalloc-die.sh is.
44177
44178 2009-11-17  Jim Meyering  <meyering@redhat.com>
44179
44180         test-xalloc-die.sh: make the code agree with the commit log
44181         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44182         at the end, just in case you happen to have a test-xalloc-die
44183         program in some other PATH directory.
44184
44185         test-xalloc-die.sh: fix a portability bug
44186         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44187         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44188         Otherwise, argv[0] (as often seen in diagnostics) would be too
44189         system-dependent, sometimes with, and sometimes without the leading "./".
44190
44191         version-etc-fsf: relax license to LGPLv3+
44192         * modules/version-etc-fsf (License): Relax license.
44193
44194 2009-11-16  Eric Blake  <ebb9@byu.net>
44195
44196         xalloc-die-tests: avoid printing null pointer
44197         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44198         shell script.
44199         * tests/test-xalloc-die.c (program_name): Declare.
44200         * tests/test-xalloc-die.sh (tmpfiles): New file.
44201
44202         setenv, unsetenv: work around various bugs
44203         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44204         (setenv) [HAVE_SETENV]: Work around bugs.
44205         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44206         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44207         for bugs.
44208         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44209         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44211         * modules/stdlib (Makefile.am): Update substitutions.
44212         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44213         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44214         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44215         * modules/setenv-tests: New test.
44216         * modules/unsetenv-tests: Likewise.
44217         * tests/test-setenv.c: New file.
44218         * tests/test-unsetenv.c: Likewise.
44219
44220 2009-11-16  Jim Meyering  <meyering@redhat.com>
44221
44222         version-etc: relax license to LGPLv3+
44223         * modules/version-etc (License): Relax license.
44224
44225         better AC_REQUIRE expanded-before-required-warning avoidance
44226         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44227         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44228         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44229         which is no longer needed.
44230
44231 2009-11-16  Eric Blake  <ebb9@byu.net>
44232
44233         test-freading: clean up temporary file
44234         * tests/test-freading.c (main): Remove file on success, and use
44235         ASSERT more liberally.
44236         Reported by Jim Meyering.
44237
44238 2009-11-16  Jim Meyering  <meyering@redhat.com>
44239
44240         avoid new AC_REQUIRE expanded-before-required warnings
44241         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44242         merely using it.
44243         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44244         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44245
44246 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44247
44248         * tests/test-xalloc-die.c: New file.
44249         * modules/xalloc-die-tests: New file.
44250         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44251         XFAIL_TESTS so it can be appended by modules.
44252
44253 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44254
44255         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44256         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44257
44258 2009-11-14  Eric Blake  <ebb9@byu.net>
44259
44260         fnmatch: avoid compiler warning
44261         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44262         to silence compiler warning about mismatch signedness in ?:.
44263         Reported by Robert Millan.
44264
44265         intprops: add double-inclusion guard
44266         * lib/intprops.h: Allow idempotent includes.
44267         Suggested by Bruce Korb.
44268
44269         openat: detect Solaris fchownat bug
44270         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44271         penalizing glibc chownat when only lchownat is broken.
44272         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44273         trailing slash bugs.
44274         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44275         * modules/openat-tests (Files): Include more files.
44276         (Depends-on): Add mgetgroups, sleep, stat-time.
44277         (configure.ac): Add additional checks.
44278         (Makefile.am): Build new test.
44279         * tests/test-fchownat.c: New file.
44280
44281         lchown: detect Solaris and FreeBSD bug
44282         * lib/lchown.c (rpl_lchown): Work around bug.
44283         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44285         * modules/unistd (Makefile.am): Populate it.
44286         * lib/unistd.in.h (lchown): Update declaration.
44287         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44288         * modules/lchown-tests: New file.
44289         * tests/test-lchown.h (test_lchown): Likewise.
44290         * tests/test-lchown.c (main): Likewise.
44291
44292         chown: detect Solaris and FreeBSD bug
44293         * lib/chown.c (rpl_chown): Work around bug.
44294         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44295         (gl_PREREQ_CHOWN): Delete.
44296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44297         * modules/unistd (Makefile.am): Populate it.
44298         * lib/unistd.in.h (chown): Update declaration.
44299         * lib/lchown.c (chown): Update client.
44300         * modules/lchown (Depends-on): Add lstat.
44301         * doc/posix-functions/chown.texi (chown): Document the bug.
44302         * doc/posix-functions/getgroups.texi (getgroups): Document
44303         getgroups pitfall.
44304         * modules/chown-tests: New file.
44305         * tests/test-chown.h (test_chown): Likewise.
44306         * tests/test-chown.c (main): Likewise.
44307
44308 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44309
44310         gnulib-tool: correctly detect absence of m4 directories
44311         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44312
44313 2009-11-14  Jim Meyering  <meyering@redhat.com>
44314
44315         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44316         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44317
44318 2009-11-14  John W. Eaton  <jwe@gnu.org>
44319
44320         strftime.h: wrap function declaration in extern "C" block
44321         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44322
44323 2009-11-13  Eric Blake  <ebb9@byu.net>
44324
44325         getgroups: avoid compiler warning
44326         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44327
44328         getgroups: work around FreeBSD bug
44329         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44330         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44331         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44332         * tests/test-getgroups.c (main): Fix buffer overrun.
44333
44334         getgroups: avoid compilation failure
44335         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44336         * modules/getgroups (Depends-on): Add stdint.
44337
44338 2009-11-13  Jim Meyering  <meyering@redhat.com>
44339
44340         test-getgroups: avoid compilation failure
44341         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44342
44343 2009-11-13  Eric Blake  <ebb9@byu.net>
44344
44345         mgetgroups: new module, taken from coreutils
44346         * modules/mgetgroups: New file.
44347         * lib/mgetgroups.h: Likewise.
44348         * lib/mgetgroups.c (mgetgroups): Likewise.
44349         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44350         * MODULES.html.sh (Users and groups): Mention it.
44351
44352         getgroups: don't expose GETGROUPS_T to user
44353         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44354         an element at a time if GETGROUPS_T is wrong size.
44355         * lib/getugroups.h (getugroups): Change signature.
44356         * lib/unistd.in.h (getgroups): Likewise.
44357         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44358         signature needs fixing.
44359         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44360         AC_TYPE_GETGROUPS.
44361         * modules/group-member (Depends-on): Add getgroups.
44362         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44363         (group_member): Rely on getgroups replacement.
44364         * lib/getugroups.c (getugroups): Use gid_t.
44365         * tests/test-getgroups.c (main): Likewise.
44366         * NEWS: Mention the signature change.
44367         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44368         problem with signature.
44369         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44370         GETGROUPS_T is still useful for setgroups.
44371
44372         getgroups, getugroups: provide stubs for mingw
44373         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44374         * lib/getugroups.c (getugroups): Likewise.
44375         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44376         function.  Modernize replacement scheme.
44377         (gl_PREREQ_GETGROUPS): Delete.
44378         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44379         * modules/getgroups (configure.ac): Declare witness.
44380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44381         * modules/unistd (Depends-on): Substitute witness.
44382         * lib/unistd.in.h (getgroups): Declare replacement.
44383
44384         getgroups: avoid calling exit
44385         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44386         drop xalloc.
44387         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44388         dependencies.
44389         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44390         exiting, in the rare case of malloc failure.
44391
44392         getgroups: fix logic error
44393         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44394         has more than 20 groups.
44395         * modules/getgroups-tests: New test.
44396         * tests/test-getgroups.c: New file.
44397
44398 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44399
44400         * tests/test-base64.c: Improve.
44401
44402 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44403
44404         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44405         Blake <ebb9@byu.net>.
44406
44407 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44408
44409         * tests/test-xvasprintf.c: Add %s%s related checks.
44410
44411 2009-11-12  Eric Blake  <ebb9@byu.net>
44412
44413         version-etc: match standards.texi style
44414         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44415         and use <> only for URLs.
44416
44417 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44418
44419         fts: do not fail on a submount during traversal
44420         * lib/fts.c (fts_build): Read the stat info again after opening
44421         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44422         Original report at http://bugzilla.redhat.com/501848.
44423
44424 2009-11-12  Jim Meyering  <meyering@redhat.com>
44425
44426         bootstrap: sync from coreutils
44427         * build-aux/bootstrap (bootstrap_epilogue): New function.
44428         Use git_modules_config in one more place.  This make bootstrap's
44429         --gnulib-srcdir option more useful for testing.
44430
44431         bootstrap: generalize autoheader check
44432         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44433         AC_CONFIG_HEADERS.
44434
44435 2009-11-11  Eric Blake  <ebb9@byu.net>
44436
44437         mkfifoat: use new modules for Solaris and BSD bugs
44438         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44439         * lib/mkfifoat.c (mknodat): Split...
44440         * lib/mknodat.c (mknodat): ...into new file.
44441         * modules/mkfifoat (Files): Ship new file.
44442         (Depends-on): Add mkfifo, mknod.
44443         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44444         (Depends-on): Add symlink.
44445         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44446         redundant with test_mkfifo.h.
44447         (do_mkfifoat, do_mknodat): New helpers.
44448
44449         mknod: new module
44450         * modules/mknod: New file.
44451         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44452         * lib/mknod.c (mknod): Likewise.
44453         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44454         defaults.
44455         * modules/sys_stat (Makefile.am): Substitute them.
44456         * lib/sys_stat.in.h (mknod): Declare replacement.
44457         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44458         Document it.
44459         * doc/posix-functions/mknod.texi (mknod): Likewise.
44460         * modules/mknod-tests: New test.
44461         * tests/test-mknod.c: Likewise.
44462
44463         mkfifo: new module
44464         * modules/mkfifo: New file.
44465         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44466         * lib/mkfifo.c (mkfifo): Likewise.
44467         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44468         defaults.
44469         * modules/sys_stat (Makefile.am): Substitute them.
44470         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44471         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44472         Document it.
44473         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44474         * modules/mkfifo-tests: New test.
44475         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44476         from test-mkfifoat.c.
44477         * tests/test-mkfifo.c: New file.
44478
44479         readlink: detect FreeBSD bug
44480         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44481         slash on symlink.
44482         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44483         * tests/test-readlink.h (test_readlink): Enhance test.
44484
44485         symlink: detect FreeBSD bug
44486         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44487         slash on symlink.
44488         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44489         * tests/test-symlink.h (test_symlink): Enhance test.
44490
44491 2009-11-10  Eric Blake  <ebb9@byu.net>
44492
44493         link: detect FreeBSD bug
44494         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44495         symlink.
44496         * doc/posix-functions/link.texi (link): Document the bug.
44497         * tests/test-link.h (test_link): Enhance test.
44498         * tests/test-linkat.c (main): Update caller.
44499
44500         unlink, remove: detect FreeBSD bug
44501         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44502         slash on symlink.
44503         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44504         * doc/posix-functions/remove.texi (remove): Likewise.
44505         * tests/test-unlink.h (test_unlink): Enhance test.
44506         * tests/test-remove.c (main): Likewise.
44507
44508 2009-11-09  Eric Blake  <ebb9@byu.net>
44509
44510         rename: detect FreeBSD bug
44511         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44512         slash on symlink.
44513         * modules/renameat-tests (Depends-on): Add filenamecat.
44514         * tests/test-rename.h (test_rename): Allow one more errno.
44515         * tests/test-renameat.c (main): Likewise.
44516         * doc/posix-functions/rename.texi (rename): Document the bug.
44517
44518         open: detect FreeBSD bug
44519         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44520         symlink.
44521         * doc/posix-functions/open.texi (open): Document the bug.
44522         * doc/posix-functions/utimes.texi (utimes): Likewise.
44523         * tests/test-open.h (test_open): Add parameters, and test symlink
44524         handling.
44525         * tests/test-open.c (main): Adjust caller.
44526         * tests/test-fcntl-safer.c (main): Likewise.
44527         * modules/open-tests (Depends-on): Add stdbool, symlink.
44528         * modules/fcntl-safer-tests (Depends-on): Likewise.
44529         * tests/test-openat.c (main): Add test-open tests.
44530
44531         stat: detect FreeBSD bug
44532         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44533         symlink.
44534         * doc/posix-functions/stat.texi (stat): Document the bug.
44535         * tests/test-stat.h (test_stat_func): Add argument.
44536         * tests/test-stat.c (main): Adjust caller.
44537         * tests/test-fstatat.c (main): Likewise.
44538         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44539         Reported by Jim Meyering.
44540
44541 2009-11-09  James Youngman  <jay@gnu.org>
44542
44543         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44544         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44545
44546 2009-11-08  Jim Meyering  <meyering@redhat.com>
44547
44548         utimens: remove invalid futimesat call
44549         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44550         It used the file descriptor of the target file as the DIR_FD
44551         parameter and NULL as the file name.  That caused failure with
44552         errno == EFAULT on FreeBSD-8.0-rc2
44553
44554 2009-11-07  Eric Blake  <ebb9@byu.net>
44555
44556         fflush, freadseek: use fseeko, not fseek
44557         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44558         (clear_ungetc_buffer): Avoid potential problems on large files.
44559         * lib/freadseek.c (freadseek): Likewise.
44560         * modules/freadseek (Depends-on): Add fseeko.
44561         * modules/fseek (configure.ac): Set a witness.
44562         * tests/test-fflush.c (main): Use fseeko.
44563         * tests/test-fpurge.c (fseek): Disable link warning.
44564         * tests/test-freadable.c (fseek): Likewise.
44565         * tests/test-freading.c (fseek): Likewise.
44566         * tests/test-fseeko.c (fseek): Likewise.
44567         * tests/test-ftell.c (fseek): Likewise.
44568         * tests/test-ftello.c (fseek): Likewise.
44569         * tests/test-fwritable.c (fseek): Likewise.
44570         * tests/test-fwriting.c (fseek): Likewise.
44571
44572 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44573
44574         * modules/memchr (Depends-on): Drop getpagesize dependency.
44575
44576 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44577
44578         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44579         Reported by Ludovic Courtès.
44580         * build-aux/pmccabe2html: Improve example usage.
44581         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44582
44583 2009-11-06  Jim Meyering  <meyering@redhat.com>
44584
44585         do-release-commit-and-tag: New module.
44586         Automate the release-commit and tag process.
44587         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44588         * modules/do-release-commit-and-tag: New file.
44589         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44590
44591 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44592
44593         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44594         because test-select.c uses inet_pton.
44595
44596 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44597
44598         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44599         GETADDRINFO_LIB.  Bump serial number.
44600         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44601         Suggested by Eric Blake <ebb9@byu.net>.
44602
44603 2009-11-05  Eric Blake  <ebb9@byu.net>
44604
44605         strtod: detect darwin bug
44606         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44607         Reported by Leo Davis.
44608
44609         freopen-safer: new module
44610         * modules/freopen-safer: New module.
44611         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44612         * lib/freopen-safer.c (freopen_safer): New file.
44613         * lib/stdio-safer.h (freopen_safer): New declaration.
44614         * lib/stdio--.h (freopen): New override.
44615         * MODULES.html.sh (File stream based Input/Output): Mention it.
44616         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44617         freopen-safer module.
44618         * doc/posix-functions/stderr.texi (stderr): Likewise.
44619         * doc/posix-functions/stdin.texi (stdin): Likewise.
44620         * doc/posix-functions/stdout.texi (stdout): Likewise.
44621         * modules/freopen-safer-tests: New test.
44622         * tests/test-reopen-safer.c: New file.
44623
44624 2009-11-05  Jim Meyering  <meyering@redhat.com>
44625
44626         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44627         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44628
44629 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44630
44631         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44632
44633 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44634
44635         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44636
44637 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44638
44639         Fix link error.
44640         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44641         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44642
44643 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44644
44645         * tests/test-func.c: Also test value of __func__.
44646
44647 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44648
44649         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44650         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44651
44652 2009-11-05  Bruno Haible  <bruno@clisp.org>
44653
44654         Fix link error.
44655         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44656         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44657         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44658
44659 2009-11-05  Bruno Haible  <bruno@clisp.org>
44660
44661         Tests for module 'inet_pton'.
44662         * modules/inet_pton-tests: New file.
44663         * tests/test-inet_pton.c: New file.
44664
44665 2009-11-05  Bruno Haible  <bruno@clisp.org>
44666
44667         Tests for module 'inet_ntop'.
44668         * modules/inet_ntop-tests: New file.
44669         * tests/test-inet_ntop.c: New file.
44670
44671 2009-11-04  Eric Blake  <ebb9@byu.net>
44672
44673         stdlib-safer: wrap all mkstemp variants
44674         * modules/mkostemp (configure.ac): Set witness.
44675         * modules/mkostemps (configure.ac): Likewise.
44676         * modules/mkstemps (configure.ac): Likewise.
44677         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44678         (mkstemps_safer): Wrap more functions.
44679         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44680         wrapping.
44681         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44682         (mkstemps_safer): Implement the wrappers.
44683
44684         mkstemps, mkostemps: new modules
44685         * modules/mkostemps: New module.
44686         * modules/mkstemps: Likewise.
44687         * lib/mkostemps.c (mkostemps): New file.
44688         * lib/mkstemps.c (mkstemps): Likewise.
44689         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44690         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44692         * modules/stdlib (Makefile.am): Substitute them.
44693         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44694         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44695         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44696         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44697         * MODULES.html.sh (File system functions): Mention them.
44698
44699         tempname: resync from glibc
44700         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44701         same values for __GT_FILE as glibc.  Abort even when assertions
44702         are disabled.
44703         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44704         match its value otherwise.  Allow idempotent inclusion.
44705         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44706         * lib/mkostemp.c (mkostemp): Likewise.
44707         * lib/mkstemp.c (mkstemp): Likewise.
44708         * lib/tmpfile.c (tmpfile): Likewise.
44709         * NEWS: Document this.
44710
44711         utimens: fix use of futimens on older Linux
44712         * lib/utimens.c (fdutimens): Use updated, rather than original,
44713         timespec to avoid bug in older Linux kernel.
44714         Reported by Simon Josefsson.
44715
44716 2009-11-04  Bruno Haible  <bruno@clisp.org>
44717
44718         Make num_processors more flexible and consistent.
44719         * lib/nproc.h (enum nproc_query): New type.
44720         (num_processors): Add a 'query' argument.
44721         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44722         (num_processors): Add a 'query' argument. Test the value of the
44723         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44724         mingw, count the number of CPUs available for the current process.
44725         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44726         Check for sched_getaffinity and sched_getaffinity_np.
44727         * modules/nproc (Depends-on): Add c-ctype, extensions.
44728         * NEWS: Mention the change.
44729
44730 2009-11-03  Bruno Haible  <bruno@clisp.org>
44731
44732         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44733
44734 2009-11-03  Jim Meyering  <meyering@redhat.com>
44735
44736         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44737         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44738         if it is defined.
44739
44740 2009-11-02  Eric Blake  <ebb9@byu.net>
44741
44742         mktime, timegm: share common declaration
44743         * lib/mktime-internal.h: New file.
44744         * lib/mktime.c: Use it rather than open-coding a declaration.
44745         * lib/timegm.c: Likewise.
44746         * modules/mktime (Files): Ship it.
44747         * modules/timegm (Files): Likewise.
44748         Suggested by Bruno Haible.
44749
44750         test-update-copyright: update test to match script changes
44751         * tests/test-update-copyright.sh: Avoid hard-coding perl
44752         location.  Don't update *.bak created by earlier runs.
44753
44754 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44755             Simon Josefsson  <simon@josefsson.org>
44756             Bruno Haible  <bruno@clisp.org>
44757
44758         Fix link error on Solaris 8.
44759         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44760         also in libnsl. Define also INET_PTON_LIB.
44761         * modules/inet_pton (Link): New section.
44762
44763 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44764             Bruno Haible  <bruno@clisp.org>
44765
44766         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44767         * modules/inet_ntop (Link): New section.
44768         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44769
44770 2009-11-02  Eric Blake  <ebb9@byu.net>
44771
44772         maint: avoid compiler warnings in m4 macros
44773         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44774         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44775
44776 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44777
44778         * m4/pmccabe2html.m4: Remove file.
44779         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44780         function.  Change maintainer.
44781         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44782         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44783         Courtès).
44784
44785 2009-10-31  Eric Blake  <ebb9@byu.net>
44786
44787         fseeko: fix m4 regression
44788         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44789         regression from 2009-10-27.
44790         Reported by Ralf Wildenhues.
44791
44792 2009-10-31  Jim Meyering  <meyering@redhat.com>
44793
44794         inttostr: aesthetics and improved (compile-time) safety
44795         Define inttype_is_signed rather than inttype_is_unsigned,
44796         since the sole use is via "#if inttype_is_signed".
44797         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44798         inttype_is_unsigned.
44799         * lib/offtostr.c (inttype_is_signed): Likewise.
44800         * lib/uinttostr.c (inttype_is_signed): Likewise.
44801         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44802         * lib/inttostr.c (inttostr): Use verify to cross-check the
44803         inttype_is_signed value and the signedness of the actual type.
44804         * modules/inttostr (Depends-on): Add verify.
44805
44806 2009-10-30  Eric Blake  <ebb9@byu.net>
44807
44808         build: avoid compiler warnings
44809         * lib/fchmodat.c (lchmod): Mark unused variables.
44810         * lib/getopt.c (_getopt_initialize): Likewise.
44811         * lib/mktime.c (__mktime_internal): Provide prototype.
44812         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44813         older gcc that do not understand #pragma GCC diagnostic.
44814         * lib/uinttostr.c (inttype_is_unsigned): Define.
44815         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44816
44817 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44818
44819         stat: fix compilation on AIX
44820         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44821         only see struct stat64.
44822
44823 2009-10-30  Eric Blake  <ebb9@byu.net>
44824
44825         exclude: make more robust
44826         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44827         rather than masking a coding bug.
44828         Suggested by Bruno Haible.
44829
44830 2009-10-30  Jim Meyering  <meyering@redhat.com>
44831
44832         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44833         Rather than putting #!/usr/bin/perl on the first line,
44834         start with a variant of what's recommended by "man perlrun" that
44835         invokes the first "perl" program from your shell's search path.
44836         * build-aux/gitlog-to-changelog: Replace #!... as above.
44837         Add a "Local Variables" perl mode setting.
44838         Prompted by a patch from Ludovic Courtès.
44839         Improved by Eric Blake.
44840         * build-aux/useless-if-before-free: Likewise.
44841         * build-aux/announce-gen: Likewise.
44842         * build-aux/update-copyright: Likewise.
44843
44844 2009-10-29  Eric Blake  <ebb9@byu.net>
44845
44846         filenamecat-lgpl: adjust clients
44847         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44848         filenamecat.
44849         * modules/renameat (Depends-on): Likewise.
44850
44851         filenamecat: split into filenamecat-lgpl
44852         * modules/filenamecat-lgpl: New module.
44853         * modules/filenamecat (Files): Move library-safe files into
44854         filenamecat-lgpl.
44855         (Depends-on): Add filenamecat-lgpl.
44856         (configure.ac): Declare witness.
44857         * lib/filenamecat.h (file_name_concat): Only declare when using
44858         GPL module.
44859         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44860         Move...
44861         * lib/filenamecat-lgpl.c: ...into new file.
44862         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44863         (gl_FILE_NAME_CONCAT): Use it.
44864         * MODULES.html.sh (File system functions): Mention new module.
44865
44866         argp: avoid memory leak
44867         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44868         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44869         base_name, since the latter malloc()s and can call exit().
44870         Leak introduced 2006-07-03.
44871
44872         dirname-lgpl: adjust clients that don't need full dirname
44873         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44874         * modules/filenamecat (Depends-on): Likewise.
44875         * modules/linkat (Depends-on): Likewise.
44876         * modules/mkancesdirs (Depends-on): Likewise.
44877         * modules/mkdir (Depends-on): Likewise.
44878         * modules/openat (Depends-on): Likewise.
44879         * modules/savewd (Depends-on): Likewise.
44880         * modules/rename (Depends-on): Likewise.
44881         (License): Relax license.
44882         * modules/mkdir-tests (Depends-on): Drop progname.
44883         (Makefile.am): Delete unneeded LDADD.
44884         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44885
44886         dirname: split into dirname-lgpl
44887         * modules/dirname-lgpl: New module.
44888         * modules/dirname (Files): Move library-safe files into
44889         dirname-lgpl.
44890         (Depends-on): Add dirname-lgpl.
44891         (configure.ac): Declare witness.
44892         * modules/double-slash-root (License): Relax license.
44893         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44894         module.
44895         * lib/dirname.c (dir_len, mdir_name): Move...
44896         * lib/dirname-lgpl.c: ...into new file.
44897         * lib/basename.c (last_component, base_len): Move...
44898         * lib/basename-lgpl.c: ...into new file.
44899         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44900         (gl_DIRNAME): Use it.
44901         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44902         Mention new module.
44903         * modules/dirname-tests (Depends-on): Add progname.
44904         * tests/test-dirname.c (program_name): Delete.
44905
44906         mkdir: make safe for libraries
44907         * modules/mkdir (Depends-on): Drop xalloc.
44908         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44909         exit.
44910
44911         tests: avoid some compiler warnings
44912         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44913         literals.
44914         * tests/test-memchr.c (main): Avoid type mismatch.
44915         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44916         * tests/test-base64.c (main): Likewise.
44917         * tests/test-getdelim.c (main): Likewise.
44918         * tests/test-gethostname.c (main): Likewise.
44919         * tests/test-getline.c (main): Likewise.
44920         * tests/test-netinet_in.c (main): Likewise.
44921         * tests/test-select.c (open_server_socket, main): Likewise.
44922         * tests/test-select-stdin.c (main): Likewise.
44923         * tests/test-sockets.c (main): Likewise.
44924         * tests/test-strsignal.c (main): Likewise.
44925         * tests/test-sys_select.c (main): Likewise.
44926         * tests/test-sys_socket.c (main): Likewise.
44927         * tests/test-u64.c (main): Likewise.
44928         * tests/test-xfprintf-posix.c (main): Likewise.
44929         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44930
44931         sockets: avoid compiler warning
44932         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44933
44934         maint: detect usage(1) and other suspicious exits
44935         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44936
44937 2009-10-29  Jim Meyering  <meyering@redhat.com>
44938
44939         timespec: long-to-int truncation could make timespec_cmp malfunction
44940         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44941         a multiple of 2^32 nanoseconds as no difference.
44942
44943 2009-10-28  Jim Meyering  <meyering@redhat.com>
44944
44945         fprintftime: wrap macro code argument in "do {...} while(0)"
44946         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44947         cpy macro must be a statement that can be followed by a semicolon.
44948         Now that the else clause contains a comment and is hence longer
44949         than one line, I require curly braces.  That in turn requires
44950         that we wrap this code block in the standard do...while(0).
44951
44952         fprintftime: remove stray semicolon from previous change
44953         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44954
44955         fprintftime: avoid a warning about ignored fwrite return value
44956         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44957         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44958         that is unsafe.
44959         * modules/fprintftime (Depends-on): Add ignore-value.
44960
44961         exclude: avoid an unwarranted warning
44962         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44963
44964 2009-10-27  Eric Blake  <ebb9@byu.net>
44965
44966         fseek: avoid compilation failure when fflush is replaced
44967         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44968         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44969         module is in use.
44970         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44971         module is not in use; since REPLACE_FSEEK worked otherwise.
44972         (GNULIB_FTELLO): Likewise for ftell.
44973         Reported by Ian Beckwith and others.
44974
44975 2009-10-27  Bruno Haible  <bruno@clisp.org>
44976
44977         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44978         Reported by Jim Meyering.
44979
44980 2009-10-27  Jim Meyering  <jim@meyering.net>
44981             Bruno Haible  <bruno@clisp.org>
44982
44983         Avoid warning despite dropping the return value of fwrite.
44984         * lib/unicodeio.c: Include ignore-value.h.
44985         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44986         * modules/unicodeio (Depends-on): Add ignore-value.
44987
44988 2009-10-26  Eric Blake  <ebb9@byu.net>
44989
44990         areadlinkat: fix fallback path
44991         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44992         pointer and zero.
44993
44994 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44995
44996         Use a better IO block size for modern systems
44997         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44998         * lib/md2.c: Likewise.
44999         * lib/md4.c: Likewise.
45000         * lib/md5.c: Likewise.
45001         * lib/sha1.c: Likewise.
45002         * lib/sha256.c: Likewise.
45003         * lib/sha512.c: Likewise.
45004
45005 2009-10-22  Eric Blake  <ebb9@byu.net>
45006
45007         tests: avoid several compiler warnings
45008         * tests/test-getcwd.c (main): Avoid buffer underflow.
45009         * tests/test-getdate.c (main): String literals are not safe with
45010         putenv, so use setenv.  Declare unused argument.
45011         * modules/getdate-tests (Depends-on): Add setenv.
45012         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
45013         problems with string literals in char *.
45014         * tests/test-hash.c (main): Avoid shadowing declaration.
45015         (insert_new): Treat string literals as char const *.
45016         * tests/test-getopt.h (test_getopt): Likewise.
45017         (getopt_loop): Alter types to minimize casting elsewhere.
45018         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
45019         (test_getopt_long_posix): Likewise.
45020         (do_getopt_long): Add wrapper to minimize casting.
45021         * tests/test-atexit.c (clear_temp_file): Use void.
45022         * tests/test-areadlink-with-size.c (main): Declare unused
45023         arguments.
45024         * tests/test-areadlink.c (main): Likewise.
45025         * tests/test-areadlinkat-with-size.c (main): Likewise.
45026         * tests/test-areadlinkat.c (main): Likewise.
45027         * tests/test-canonicalize-lgpl.c (main): Likewise.
45028         * tests/test-canonicalize.c (main): Likewise.
45029         * tests/test-dirent-safer.c (main): Likewise.
45030         * tests/test-dirname.c (main): Likewise.
45031         * tests/test-dup2.c (main): Likewise.
45032         * tests/test-fchdir.c (main): Likewise.
45033         * tests/test-fcntl-h.c (main): Likewise.
45034         * tests/test-fcntl-safer.c (main): Likewise.
45035         * tests/test-fdopendir.c (main): Likewise.
45036         * tests/test-fdutimensat.c (main): Likewise.
45037         * tests/test-fflush.c (main): Likewise.
45038         * tests/test-filenamecat.c (main): Likewise.
45039         * tests/test-filevercmp.c (main): Likewise.
45040         * tests/test-fopen-safer.c (main): Likewise.
45041         * tests/test-fopen.c (main): Likewise.
45042         * tests/test-fpending.c (main): Likewise.
45043         * tests/test-fpurge.c (main): Likewise.
45044         * tests/test-freading.c (main): Likewise.
45045         * tests/test-fstatat.c (main): Likewise.
45046         * tests/test-fsync.c (main): Likewise.
45047         * tests/test-futimens.c (main): Likewise.
45048         * tests/test-getndelim2.c (main): Likewise.
45049         * tests/test-gettimeofday.c (main): Likewise.
45050         * tests/test-getopt.c (main): Likewise.
45051         * tests/test-i-ring.c (main): Likewise.
45052         * tests/test-inttypes.c (main): Likewise.
45053         * tests/test-link.c (main): Likewise.
45054         * tests/test-lstat.c (main): Likewise.
45055         * tests/test-math.c (main): Likewise.
45056         * tests/test-md5.c (main): Likewise.
45057         * tests/test-memchr2.c (main): Likewise.
45058         * tests/test-memrchr.c (main): Likewise.
45059         * tests/test-mkdir.c (main): Likewise.
45060         * tests/test-mkdirat.c (main): Likewise.
45061         * tests/test-mkfifoat.c (main): Likewise.
45062         * tests/test-open.c (main): Likewise.
45063         * tests/test-openat-safer.c (main): Likewise.
45064         * tests/test-openat.c (main): Likewise.
45065         * tests/test-quotearg.c (main): Likewise.
45066         * tests/test-rawmemchr.c (main): Likewise.
45067         * tests/test-readlink.c (main): Likewise.
45068         * tests/test-remove.c (main): Likewise.
45069         * tests/test-rename.c (main): Likewise.
45070         * tests/test-renameat.c (main): Likewise.
45071         * tests/test-rmdir.c (main): Likewise.
45072         * tests/test-sha1.c (main): Likewise.
45073         * tests/test-signal.c (main): Likewise.
45074         * tests/test-sigaction.c (main): Likewise.
45075         * tests/test-stat.c (main): Likewise.
45076         * tests/test-stat-time.c (main): Likewise.
45077         * tests/test-stddef.c (main): Likewise.
45078         * tests/test-stdint.c (main): Likewise.
45079         * tests/test-stdio.c (main): Likewise.
45080         * tests/test-stdlib.c (main): Likewise.
45081         * tests/test-strchrnul.c (main): Likewise.
45082         * tests/test-strerror.c (main): Likewise.
45083         * tests/test-string.c (main): Likewise.
45084         * tests/test-strtod.c (main): Likewise.
45085         * tests/test-strverscmp.c (main): Likewise.
45086         * tests/test-symlink.c (main): Likewise.
45087         * tests/test-symlinkat.c (main): Likewise.
45088         * tests/test-sys_stat.c (main): Likewise.
45089         * tests/test-sys_time.c (main): Likewise.
45090         * tests/test-time.c (main): Likewise.
45091         * tests/test-unistd.c (main): Likewise.
45092         * tests/test-unlink.c (main): Likewise.
45093         * tests/test-unlinkat.c (main): Likewise.
45094         * tests/test-utimens.c (main): Likewise.
45095         * tests/test-utimensat.c (main): Likewise.
45096         * tests/test-version-etc.c (main): Likewise.
45097         * tests/test-wchar.c (main): Likewise.
45098         * tests/test-wctype.c (main): Likewise.
45099         * tests/test-xprintf-posix.c (main): Likewise.
45100         * tests/test-posixtm.c (main): Likewise.
45101         (STREQ): Delete unused macro.
45102         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
45103         shadowed variables.
45104         * tests/test-memchr.c (main): Likewise.
45105
45106 2009-10-21  Eric Blake  <ebb9@byu.net>
45107
45108         areadlinkat: avoid failure on older glibc
45109         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
45110         rather than mis-comparing 0 against FUNC_RESULT of char*.
45111
45112 2009-10-21  Bruno Haible  <bruno@clisp.org>
45113
45114         * modules/stpncpy (License): Relicense under LGPLv2+.
45115         Reported by David Lutterkort <lutter@redhat.com>.
45116
45117 2009-10-20  Eric Blake  <ebb9@byu.net>
45118
45119         utimensat: work around Solaris 9 bug
45120         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
45121         has trailing slash bugs.
45122         * tests/test-lutimens.h (test_lutimens): Enhance test.
45123         * tests/test-utimens.h (test_utimens): Likewise.
45124         * doc/posix-functions/utime.texi (utime): Enhance documentation.
45125         * doc/posix-functions/utimes.texi (utimes): Likewise.
45126         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45127         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
45128         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
45129         * doc/posix-functions/futimens.texi (futimens): Likewise.
45130
45131         fdutimensat: new module
45132         * modules/fdutimensat: New file.
45133         * lib/fdutimensat.c (fdutimensat): Likewise.
45134         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
45135         * MODULES.html.sh (File system functions): Mention module.
45136         * modules/fdutimensat-tests: New test.
45137         * tests/test-fdutimensat.c: Likewise.
45138
45139         doc: regenerate INSTALL
45140         * doc/INSTALL: Reflect recent autoconf update.
45141         * doc/INSTALL.ISO: Likewise.
45142         * doc/INSTALL.UTF-8: Likewise.
45143
45144 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45145
45146         acl: warn if ACL support is not detected
45147         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45148
45149 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45150
45151         * lib/nproc.h: Add extern "C" block for C++.
45152
45153 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45154             Bruno Haible  <bruno@clisp.org>
45155
45156         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45157         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45158         * doc/posix-functions/isalpha.texi: Likewise.
45159         * doc/posix-functions/isblank.texi: Likewise.
45160         * doc/posix-functions/iscntrl.texi: Likewise.
45161         * doc/posix-functions/isdigit.texi: Likewise.
45162         * doc/posix-functions/isgraph.texi: Likewise.
45163         * doc/posix-functions/islower.texi: Likewise.
45164         * doc/posix-functions/isprint.texi: Likewise.
45165         * doc/posix-functions/ispunct.texi: Likewise.
45166         * doc/posix-functions/isspace.texi: Likewise.
45167         * doc/posix-functions/isupper.texi: Likewise.
45168         * doc/posix-functions/isxdigit.texi: Likewise.
45169
45170 2009-10-18  Bruno Haible  <bruno@clisp.org>
45171
45172         Tests for module 'isblank'.
45173         * modules/isblank-tests: New file.
45174         * tests/test-isblank.c: New file.
45175
45176         New module 'isblank'.
45177         * lib/isblank.c: New file.
45178         * m4/isblank.m4: New file.
45179         * modules/isblank: New file.
45180         * doc/posix-functions/isblank.texi: Mention the new module.
45181
45182 2009-10-18  Bruno Haible  <bruno@clisp.org>
45183
45184         New module 'ctype'.
45185         * lib/ctype.in.h: New file.
45186         * m4/ctype.m4: New file.
45187         * modules/ctype: New file.
45188         * doc/posix-headers/ctype.texi: Mention the new module.
45189
45190 2009-10-18  Jim Meyering  <meyering@redhat.com>
45191
45192         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45193         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45194         right after its initialization, rather than farther down.
45195         Keeping these in close proximity makes it easier to ensure
45196         that each such variable is initialized.  E.g.,
45197
45198             LIB_CLOCK_GETTIME=
45199             AC_SUBST([LIB_CLOCK_GETTIME])
45200
45201         This change also increments these serial numbers.
45202         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45203         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45204         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45205
45206 2009-10-18  Bruno Haible  <bruno@clisp.org>
45207
45208         Don't let environment variables perturb build.
45209         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45210         (gl_PREREQ_GETHRXTIME): ... not here.
45211
45212 2009-10-18  Bruno Haible  <bruno@clisp.org>
45213
45214         Avoid symlink attack in localcharset module.
45215         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45216         (O_NOFOLLOW): Define fallback.
45217         (get_charset_aliases): Don't open the file if it is a symbolic link.
45218         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45219         gl_FCNTL_H.
45220         (gl_FCNTL_H): Require it.
45221         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45222         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45223         Reported by Fergal Glynn <fglynn@veracode.com>.
45224
45225 2009-10-18  Bruno Haible  <bruno@clisp.org>
45226
45227         Implement nproc for mingw.
45228         * lib/nproc.c: Include <windows.h>
45229         (num_processors): On native Windows platforms, try GetSystemInfo.
45230
45231 2009-10-18  Bruno Haible  <bruno@clisp.org>
45232
45233         Implement nproc for IRIX.
45234         * lib/nproc.c: Include <sys/sysmp.h>.
45235         (num_processors): On IRIX systems, try sysmp.
45236         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45237
45238 2009-10-18  Bruno Haible  <bruno@clisp.org>
45239
45240         Implement nproc for HP-UX.
45241         * lib/nproc.c: Include <sys/pstat.h>
45242         (num_processors): On HP-UX systems, try pstat_getdynamic.
45243         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45244         pstat_getdynamic.
45245
45246 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45247             Bruno Haible  <bruno@clisp.org>
45248
45249         Implement nproc for NetBSD, OpenBSD.
45250         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45251         (ARRAY_SIZE): New macro.
45252         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45253         * m4/nproc.m4: New file.
45254         * modules/nproc (Files): Add m4/nproc.m4.
45255         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45256         (Makefile.am): Instead, augment lib_SOURCES.
45257
45258 2009-10-18  Bruno Haible  <bruno@clisp.org>
45259
45260         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45261         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45262         sys/param.h.
45263
45264 2009-10-16  Eric Blake  <ebb9@byu.net>
45265
45266         utimensat: new module
45267         * modules/utimensat: New file.
45268         * lib/utimensat.c (utimensat): Likewise.
45269         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45270         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45271         so we can work around Linux bugs.
45272         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45273         * modules/sys_stat (Makefile.am): Substitute them.
45274         * lib/sys_stat.in.h (utimensat): Declare it.
45275         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45276         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45277         * modules/utimensat-tests: New test.
45278         * tests/test-utimensat.c: Likewise.
45279
45280         utimens: let lutimens work on non-symlinks
45281         * lib/utimens.c (lutimens): Fall back to utimens rather than
45282         failing with ENOSYS, when file is not a symlink.
45283         (utimens): Reduce redirection.
45284         * tests/test-lutimens.h (test_lutimens): Update test to cover
45285         non-symlinks.
45286         * tests/test-utimens.h (test_utimens): Update test to cover
45287         symlinks.
45288         * tests/test-utimens.c (main): Update caller.
45289
45290         utimens: cache whether utimensat syscall works
45291         * lib/utimens.c (utimensat_works_really): New cache variable.
45292         (fdutimens, lutimens): Use it to avoid failing syscall.
45293
45294         test-stat-time, test-utimens: improve portability
45295         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45296         ext4 on alpha, and for cygwin.
45297         * tests/test-utimens-common.h: New file.
45298         (nap): Factor delays into single function.
45299         * tests/test-lutimens.h (test_lutimens): Use new header.
45300         * tests/test-futimens.h (test_futimens): Likewise.
45301         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45302         timestamps to occur from same machine, as was done previously for
45303         test_utimens.
45304         * modules/utimens-tests (Files): Ship new file.
45305         * modules/futimens-tests (Files): Likewise.
45306         Reported in part by Jim Meyering.
45307
45308         sys_stat: sort replacement declarations
45309         * lib/sys_stat.in.h: Sort declarations.
45310         * lib/futimens.c (futimens): Fix typo.
45311
45312 2009-10-15  Jim Meyering  <meyering@redhat.com>
45313
45314         don't let environment settings perturb build
45315         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45316         could cause a configure-time and/or build-time malfunction.
45317         Typically, a configure-time function-in-library test is performed
45318         via code like this:
45319
45320           LIB_VAR=
45321           AC_SUBST([LIB_VAR])
45322           prefix_saved_LIBS=$LIBS
45323             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45324                        [test "$ac_cv_search_FUNC" = "none required" ||
45325                         LIB_VAR=$ac_cv_search_FUNC])
45326           LIBS=$prefix_saved_LIBS
45327
45328         However, in each of the files affected by this change, the LIB_VAR=
45329         initialization was omitted.  Thus, when set in the environment, its
45330         value would propagate into generated Makefiles when FUNC is not found
45331         in LIB_NAME.
45332         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45333         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45335
45336 2009-10-14  Eric Blake  <ebb9@byu.net>
45337
45338         fchdir: avoid infinite recursion in mingw
45339         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45340         recursing.
45341
45342         test-stat-time: port to mingw
45343         * tests/test-stat-time.c (force_unlink): Return a value.
45344         (test_ctime) [W32]: Fix compilation error.
45345         (nap): Don't call usleep with too large an argument.  Use
45346         force_unlink.
45347         * doc/pastposix-functions/usleep.texi (usleep): Document the
45348         portability issue.
45349
45350 2009-10-13  Jim Meyering  <meyering@redhat.com>
45351
45352         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45353         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45354         * modules/pipe-filter-ii: Likewise.
45355         * modules/sys_socket-tests: Likewise.
45356         * modules/tsearch-tests: Likewise.
45357         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45358         (check): Depend on it.
45359
45360 2009-10-12  Eric Blake  <ebb9@byu.net>
45361
45362         utimens-tests: port to NFS file systems
45363         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45364         comparisons to avoid spurious failures from timestamp drift
45365         between NFS machines.
45366
45367 2009-10-12  Eric Blake  <ebb9@byu.net>
45368
45369         stat-time-tests: minor cleanups
45370         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45371         * tests/test-stat-time.c (nap): Separate assignment from call.
45372         Suggested by Paolo Bonzini and Bruno Haible.
45373
45374         sys_stat: guarantee struct timespec
45375         * lib/sys_stat.in.h (includes): Always include <time.h>
45376         * modules/sys_stat (Depends-on): Add time.
45377         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45378         mode_t permission values.
45379         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45380         get at subsecond timestamps.
45381
45382 2009-10-10  Eric Blake  <ebb9@byu.net>
45383
45384         futimens: new module
45385         * modules/futimens: New file.
45386         * lib/futimens.c (futimens): Likewise.
45387         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45388         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45389         we can work around Linux bugs.
45390         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45391         * modules/sys_stat (Makefile.am): Substitute them.
45392         * lib/sys_stat.in.h (futimens): Declare it.
45393         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45394         * doc/posix-functions/futimens.texi (futimens): Likewise.
45395         * modules/futimens-tests: New test.
45396         * tests/test-futimens.c: Likewise.
45397
45398         utimens: introduce fdutimens
45399         * lib/utimens.h (fdutimens): New prototype.
45400         * lib/utimens.c (gl_futimens): Move guts...
45401         (fdutimens): ...to new interface.
45402         * tests/test-utimens.c (do_fdutimens): Use it.
45403
45404         utimens: add UTIME_NOW and UTIME_OMIT support
45405         * lib/utimens.c (validate_timespec, update_timespec): New helper
45406         functions.
45407         (gl_futimens, lutimens): Use them.
45408         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45409         stdbool, sys_stat.
45410         (Link): Mention resulting library dependency.
45411         * modules/utimecmp (Link): Likewise.
45412         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45413         (Makefile.am): Pick up library dependency.
45414         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45415         definition.
45416         * tests/test-sys_stat.c: Test the definitions.
45417         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45418         * NEWS: Document library dependency.
45419
45420         utimecmp: support symlink timestamps
45421         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45422         hashing when possible.  Use pathconf when available.
45423         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45424         * modules/utimecmp (Depends-on): Add lstat.
45425
45426         utimens: add lutimens interface
45427         * lib/utimens.c (lutimens): New function.
45428         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45429         * lib/utimens.h (lutimens): Declare new interface.
45430         * tests/test-utimens.c (main): Enhance test.
45431         * tests/test-lutimens.h (test_lutimens): New file.
45432         * modules/utimens-tests (Files): Distribute it.
45433         (Depends-on): Add symlink.
45434         (configure.ac): Check for usleep.
45435
45436         utimens: validate futimens usage
45437         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45438         fewer syscalls on failure later on.  Avoid compiler warning on
45439         mingw.
45440         * modules/utimens (Depends-on): Add dup2.
45441
45442         utimens: add test
45443         * modules/utimens-tests: New test.
45444         * tests/test-utimens.h: New file.
45445         * tests/test-futimens.h: Likewise.
45446         * tests/test-utimens.c: Likewise.
45447
45448         doc: mention timestamp portability issues
45449         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45450         instead.
45451         * doc/posix-functions/utime.texi (utime): Likewise.
45452         * doc/posix-functions/utimes.texi (utimes): Likewise.
45453         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45454         instead.
45455         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45456         module.
45457         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45458         Mention weakness with symlink timestamps.
45459         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45460         to utimensat/futimens instead.
45461         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45462
45463         test-dup2: enhance test
45464         * tests/test-dup2.c (main): Also check AT_FDCWD.
45465
45466         test-stat-time: avoid more spurious failures
45467         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45468         xfs; and avoid race if the two timestamps cross quantization edge.
45469
45470         relocatable: prefer 'file system' over 'filesystem'
45471         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45472         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45473         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45474         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45475         * lib/relocatable.c (compute_curr_prefix): Likewise.
45476
45477 2009-10-10  Jim Meyering  <meyering@redhat.com>
45478
45479         stat-time-tests: check for the usleep function
45480         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45481
45482 2009-10-10  Bruno Haible  <bruno@clisp.org>
45483
45484         * modules/xnanosleep: Put the Link section after the Include section.
45485
45486 2009-10-09  Eric Blake  <ebb9@byu.net>
45487
45488         dup2: work around FreeBSD 6.1 bug
45489         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45490         * doc/posix-functions/dup2.texi (dup2): Document it.
45491         Reported by Nelson H. F. Beebe and Jim Meyering.
45492
45493         test-stat-time: port to buggy NFS clients
45494         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45495         (test_ctime): Also skip test if mtime and ctime are skewed.
45496
45497         maint: prefer 'file system' over 'filesystem'
45498         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45499         * doc/posix-functions/lstat.texi (lstat): Likewise.
45500         * lib/file-has-acl.c (file_has_acl): Likewise.
45501         * lib/fwriteerror.c [TEST]: Likewise.
45502         * tests/test-areadlink.h (test_areadlink): Likewise.
45503         * tests/test-areadlinkat-with-size.c (main): Likewise.
45504         * tests/test-areadlinkat.c (main): Likewise.
45505         * tests/test-canonicalize-lgpl.c (main): Likewise.
45506         * tests/test-canonicalize.c (main): Likewise.
45507         * tests/test-fstatat.c (main): Likewise.
45508         * tests/test-linkat.c (main): Likewise.
45509         * tests/test-lstat.h (test_lstat_func): Likewise.
45510         * tests/test-mkdir.h (test_mkdir): Likewise.
45511         * tests/test-readlink.h (test_readlink): Likewise.
45512         * tests/test-remove.c (main): Likewise.
45513         * tests/test-rename.h (test_rename): Likewise.
45514         * tests/test-renameat.c (main): Likewise.
45515         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45516         * tests/test-symlink.h (test_symlink): Likewise.
45517         * tests/test-symlinkat.c (main): Likewise.
45518         * tests/test-unlink.h (test_unlink_func): Likewise.
45519         * tests/test-unlinkat.c (main): Likewise.
45520
45521         maint: make realtime library usage explicit
45522         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45523         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45524         * modules/settime (Link): Likewise.
45525         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45526
45527         test-stat-time: speed up execution
45528         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45529         warning on mingw.
45530         (nap): New helper function.
45531         (prepare_test): Use it to reduce sleep time.
45532         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45533         execution.
45534         * modules/stat-time-tests (configure.ac): Check for usleep.
45535
45536 2009-10-09  Jim Meyering  <meyering@redhat.com>
45537
45538         selinux-h: always use getfilecon wrappers
45539         * lib/getfilecon.c: New file.
45540         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45541         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45542         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45543         (fgetfilecon): Provide a stub.
45544         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45545         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45546         file unconditionally.
45547         When <selinux/selinux.h> is found, arrange to use wrappers.
45548         * modules/selinux-h (Files): Add getfilecon.c.
45549         (Makefile.am): Substitute include-next-related bits
45550         into the now-always-generated selinux/selinux.h file.
45551         * doc/glibc-functions/lgetfilecon.texi: New file.
45552         * doc/glibc-functions/fgetfilecon.texi: New file.
45553         * doc/glibc-functions/getfilecon.texi: New file.
45554         * doc/glibc-functions/getfilecon-desc.texi: New file.
45555         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45556         which to pull in the new files.
45557         * MODULES.html.sh (Misc): Add selinux-h.
45558
45559 2009-10-08  Jim Meyering  <meyering@redhat.com>
45560
45561         unistd: fix comment typo
45562         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45563
45564 2009-10-08  Eric Blake  <ebb9@byu.net>
45565
45566         areadlink: use SIZE_MAX consistently
45567         * modules/areadlink (Depends-on): Add stdint.
45568         * modules/areadlink-with-size (Depends-on): Likewise.
45569         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45570         gives NULL; drop sys/types, since unistd gives size_t; and add
45571         stdint for SIZE_MAX.
45572         (SIZE_MAX): Rely on headers.
45573         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45574         and add stdint.
45575         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45576         (SIZE_MAX): Likewise.
45577         (INITIAL_BUF_SIZE): Turn into enum.
45578         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45579
45580 2009-10-08  Jim Meyering  <meyering@redhat.com>
45581
45582         areadlinkat: avoid compilation failure
45583         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45584         Fix typo in comment.
45585
45586 2009-10-07  Eric Blake  <ebb9@byu.net>
45587
45588         areadlinkat-with-size: new module
45589         * modules/areadlinkat-with-size: New module.
45590         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45591         * lib/areadlink.h (areadlinkat): Declare it.
45592         * MODULES.html.sh (File system functions): Mention it.
45593         * modules/areadlinkat-with-size-tests: New test.
45594         * tests/test-areadlinkat-with-size.c: New file.
45595
45596         xreadlinkat: new module
45597         * modules/xreadlinkat: New module.
45598         * lib/xreadlinkat.c (xreadlinkat): New file.
45599         * lib/xreadlink.h (xreadlinkat): Declare it.
45600         * MODULES.html.sh (File system functions): Mention it.
45601
45602         areadlinkat: new module
45603         * lib/at-func.c (FUNC_FAIL): New define.
45604         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45605         * modules/areadlinkat: New module.
45606         * lib/linkat.c (areadlinkat): Move...
45607         * lib/areadlinkat.c (areadlinkat): ...to new file.
45608         * lib/areadlink.h (areadlinkat): Declare it.
45609         * modules/linkat (Depends-on): Add areadlinkat.
45610         * MODULES.html.sh (File system functions): Mention it.
45611         * modules/areadlinkat-tests: New test.
45612         * tests/test-areadlinkat.c: New file.
45613
45614         areadlink, areadlink-with-size: add tests
45615         * modules/areadlink-tests: New test.
45616         * modules/areadlink-with-size-tests: Likewise.
45617         * tests/test-areadlink.h: New file.
45618         * tests/test-areadlink.c: Likewise.
45619         * tests/test-areadlink-with-size.c: Likewise.
45620
45621         maint: minor cleanups
45622         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45623         _UNUSED_PARAMETER_ instead.
45624         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45625         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45626         * modules/linkat-tests (Files): Distribute test-link.h.
45627
45628         openat, utimens: whitespace cleanup
45629         * lib/openat.c: Prefer space throughout, rather than mix of 8
45630         spaces vs. tabs.
45631         * lib/at-func.c: Likewise.
45632         * lib/utimens.c: Likewise.
45633
45634         openat: avoid using wrong fd
45635         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45636         working directory chooses same fd.
45637         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45638
45639         mkdir, mkdirat: fix cygwin 1.5.x bug
45640         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45641         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45642         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45643         bug.
45644         (gl_PREREQ_MKDIR): Delete unused macro.
45645         * modules/mkdir (Files): Track file rename.
45646         (configure.ac): Update macro name.
45647         * modules/openat (Depends-on): Add mkdir.
45648         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45649
45650         mkdir, mkdirat: add tests
45651         * modules/mkdir-tests: New test.
45652         * tests/test-mkdir.h: New file.
45653         * tests/test-mkdir.c: Likewise.
45654         * tests/test-mkdirat.c: Likewise.
45655         * modules/openat-tests (Files): Add new files.
45656         (Makefile.am): Run new test.
45657
45658 2009-10-06  Eric Blake  <ebb9@byu.net>
45659
45660         doc: tweak *at function documentation
45661         * doc/posix-functions/faccessat.texi (faccessat): Mention
45662         known issue with replacement.
45663         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45664         * doc/posix-functions/linkat.texi (linkat): Likewise.
45665         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45666         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45667         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45668         * doc/posix-functions/renameat.texi (renameat): Likewise.
45669         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45670
45671         openat: fix GNU/Hurd bug in unlinkat
45672         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45673         broken.
45674         * doc/posix-functions/unlink.texi (unlink): Document this.
45675         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45676
45677         fdopendir: fix GNU/Hurd bug
45678         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45679         allowing non-directory fds.
45680         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45681         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45682         * modules/dirent (Makefile.am): Substitute it.
45683         * lib/dirent.in.h (fdopendir): Declare replacement.
45684         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45685         * tests/test-fdopendir.c (main): Test something other than
45686         /dev/null, since on Hurd that behaves like a directory.
45687
45688         test-symlink: port to GNU/Hurd
45689         * tests/test-symlink.h (test_symlink): Relax expected errno.
45690
45691         doc: tweak more cygwin information
45692         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45693         now compatible with glibc.
45694         * doc/posix-functions/getopt.texi (getopt): Likewise.
45695
45696         getopt-gnu: add another test
45697         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45698         guarantee behavior relied on by m4.
45699         * tests/test-getopt.c (main): Use it.
45700         * modules/getopt-posix-tests (Depends-on): Add setenv.
45701         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45702
45703         getopt: fix compilation on darwin
45704         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45705         include.
45706         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45707         Reported by Ludovic Courtès.
45708
45709 2009-10-06  Bruno Haible  <bruno@clisp.org>
45710
45711         * modules/size_max (Description): Discourage its use.
45712         Reported by Simon Josefsson.
45713
45714 2009-10-06  Jim Meyering  <meyering@redhat.com>
45715
45716         linkat: avoid compilation failure
45717         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45718
45719 2009-10-05  Eric Blake  <ebb9@byu.net>
45720
45721         linkat: support Linux 2.6.17
45722         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45723         linkat on Linux, but allow cache variable override.
45724         * lib/linkat.c (rpl_linkat): Define override.
45725         * modules/linkat (Depends-on): Add symlinkat.
45726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45727         * modules/unistd (Makefile.am): Substitute it.
45728         * lib/unistd.in.h (linkat): Declare replacement.
45729         Reported by Pádraig Brady.
45730
45731         quotearg: port test to systems with C.UTF-8 locale
45732         * tests/test-quotearg.c (struct result_strings): Add another
45733         member, differentiating between C.ASCII and C.UTF-8 handling.
45734         (compare_strings): Add parameter.
45735         (main): Adjust all callers.
45736
45737         getopt: avoid clash with FreeBSD _getopt_internal
45738         * lib/getopt.in.h (_getopt_internal): Override the name.
45739         * lib/getopt_int.h (includes): Pick up any overrides.
45740         Reported by Reuben Thomas.
45741
45742         hash: allow C89 compilation
45743         * lib/hash.c (check_tuning): Move declaration before statement.
45744         Reported by Reuben Thomas.
45745
45746 2009-10-05  Karl Berry  <karl@gnu.org>
45747
45748         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45749
45750 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45751             Bruno Haible  <bruno@clisp.org>
45752
45753         * lib/uname.c (uname): Use a table-driven algorithm to compute
45754         Windows NT versions.
45755
45756 2009-10-04  Bruno Haible  <bruno@clisp.org>
45757
45758         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45759         program_invocation_short_name.
45760         * modules/progname (configure.ac): Test for presence of
45761         program_invocation_short_name.
45762         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45763
45764 2009-10-04  Bruno Haible  <bruno@clisp.org>
45765
45766         * lib/progname.c (set_program_name): Fix comment.
45767         Reported by Jim Meyering.
45768
45769 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45770             Bruno Haible  <bruno@clisp.org>
45771
45772         * lib/uname.c: Include <string.h>.
45773         (uname): Do only one call to GetVersionEx in the common case.
45774
45775 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45776             Bruno Haible  <bruno@clisp.org>
45777
45778         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45779         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45780         (uname): Add support for Windows CE and various non-x86 CPU types.
45781
45782 2009-10-03  Bruno Haible  <bruno@clisp.org>
45783
45784         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45785         invocation to tests/configure.ac.
45786         Reported by Ian Beckwith <ianb@erislabs.net>.
45787
45788 2009-10-02  Eric Blake  <ebb9@byu.net>
45789
45790         fchdir: avoid compiler warning
45791         * lib/fchdir.c (canonicalize_file_name)
45792         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45793
45794         test-open: support mingw errno values
45795         * tests/test-open.h (test_open): Relax test.
45796         * tests/test-fopen.h (test_fopen): Likewise.
45797         * tests/test-openat-safer.c (main): Likewise.
45798
45799         open: fix opening directory on mingw
45800         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45801
45802         test-open: on GNU/Hurd, /dev/null is a directory
45803         * tests/test-fopen.h (main): Rename...
45804         (test_fopen): ...to this.  Use a guaranteed non-directory when
45805         confirming open behavior on trailing slash.
45806         * tests/test-openat-safer.c (main): Likewise.
45807         * tests/test-open.h (main): Likewise....
45808         (test_open): ...to this.
45809         * tests/test-fopen.c (main): Adjust caller.
45810         * tests/test-fopen-safer.c (main): Likewise.
45811         * tests/test-open.c (main): Likewise.
45812         * tests/test-fcntl-safer.c (main): Likewise.
45813         Reported by Samuel Thibault.
45814
45815         rename, fchdir: don't ignore chdir failure
45816         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45817         * lib/rename.c (rpl_rename) [W32]: Likewise.
45818         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45819         an empty destination directory if source cannot be renamed,
45820         although there is still possibility for failure.
45821         * doc/posix-functions/rename.texi (rename): Document the race.
45822         Reported by Jim Meyering.
45823
45824         maint: cleanup whitespace in recent commits
45825         * lib/rename.c (rpl_rename): Remove tabs.
45826         * tests/test-link.h (test_link): Likewise.
45827         * lib/fchdir.c (get_name): Likewise.
45828         Reported by Jim Meyering.
45829
45830 2009-10-02  Ben Pfaff  <blp@gnu.org>
45831
45832         relocatable-prog-wrapper: Add missing dependency on
45833         double-slash-root.
45834         * modules/relocatable-prog-wrapper: Add dependency.
45835         Reported by Ian Beckwith <ianb@erislabs.net>.
45836
45837 2009-10-02  Eric Blake  <ebb9@byu.net>
45838
45839         renameat: fix Solaris bugs
45840         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45841         needed fixing.
45842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45843         * modules/stdio (Makefile.am): Substitute it.
45844         * lib/stdio.in.h (renameat): Declare replacement.
45845         * lib/renameat.c (rpl_renameat): Implement fix.
45846
45847         renameat: new module
45848         * modules/renameat: New file.
45849         * lib/renameat.c (renameat): Likewise.
45850         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45852         * modules/stdio (Makefile.am): Substitute them.
45853         * lib/stdio.in.h (renameat): Declare it.
45854         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45855         * doc/posix-functions/renameat.texi (renameat): Likewise.
45856         * modules/renameat-tests: New test.
45857         * tests/test-renameat.c: Likewise.
45858
45859         rename: fix mingw bugs
45860         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45861         directory overwrite bugs.
45862
45863         rename: fix another cygwin 1.5 bug
45864         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45865         checks.
45866         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45867         unnecessary cygwin workarounds.  Also work around bug with moving
45868         full directory onto an empty one.
45869         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45870
45871         rename-dest-slash: merge into rename module
45872         * modules/rename-dest-slash (Status): Mark obsolete.
45873         (Depends-on): Add rename.
45874         (Files): Let rename do it all.
45875         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45876         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45877         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45878         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45879         * lib/rename.c (rpl_rename): Update comments.
45880
45881         rename: fix cygwin 1.5.x bugs
45882         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45883         * lib/rename.c (rpl_rename): Work around them.
45884         * modules/rename (Depends-on): Add same-inode.
45885
45886         rename: fix Solaris 10 bug
45887         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45888         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45889         was the only bug.
45890
45891         rename: fix Solaris 9 bug
45892         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45893         on non-directory.  Avoid calling exit.
45894         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45895         strdup.
45896         * modules/rename-tests (Depends-on): Drop lstat.
45897         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45898         (gl_PREREQ_RENAME): Delete unused macro.
45899
45900         rename-dest-slash: fix NetBSD bug
45901         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45902         links.
45903         * modules/rename-dest-slash (Depends-on): Add same-inode.
45904
45905         rename-tests: new test, exposes several platform bugs
45906         * modules/rename-tests: New file.
45907         * tests/test-rename.h: Likewise.
45908         * tests/test-rename.c: Likewise.
45909         * doc/posix-functions/rename.texi (rename): Improve documentation,
45910         including bugs that will eventually be fixed in gnulib.
45911
45912 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45913
45914         * lib/uname.c: Include <stdlib.h>
45915         (uname): Assume version info is available.
45916
45917 2009-10-02  Jim Meyering  <meyering@redhat.com>
45918
45919         gnu-web-doc-update: correct --help output
45920         * build-aux/gnu-web-doc-update: Make --help output relevant.
45921
45922         gnu-web-doc-update: add standard options
45923         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45924
45925         gnu-web-doc-update: New module.
45926         Use this script to automatically update the on-line web documentation
45927         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45928         * modules/gnu-web-doc-update: New file, from coreutils.
45929         * build-aux/gnu-web-doc-update: New script.
45930
45931 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45932
45933         link: LoadLibrary is not needed.
45934         * lib/link.c: Use GetModuleHandle.
45935
45936 2009-10-01  Eric Blake  <ebb9@byu.net>
45937
45938         getopt: bump serial number
45939         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45940         change.
45941
45942         tests: tighten link, rmdir, and remove tests
45943         * tests/test-link.h (includes): No need to use <config.h> here.
45944         Clean up if directory hard link was created, otherwise test for
45945         trailing '.'.
45946         * tests/test-linkat.c (main): Simplify.
45947         * tests/test-remove.c (main): Enhance test for trailing '.'.
45948         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45949
45950 2009-10-01  Jim Meyering  <meyering@redhat.com>
45951
45952         maint.mk: requiring "make major" was annoying, for a "minor" release.
45953         What is intended is "stable", to contrast with alpha and beta,
45954         so require "make stable", not "make major".
45955         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45956         (get_tool_versions): Likewise.
45957         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45958
45959 2009-09-30  Ben Pfaff  <blp@gnu.org>
45960
45961         Fix broken build of replacement for Windows tmpfile().
45962         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45963         flags argument added along with the 'mkostemp' module.
45964
45965 2009-09-28  Bruno Haible  <bruno@clisp.org>
45966
45967         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45968         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45969         to 'remove_elt'.
45970         (gl_list_remove): Update.
45971         * lib/gl_list.c (gl_list_remove): Update.
45972         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45973         to 'remove_elt'.
45974         (gl_oset_remove): Update.
45975         * lib/gl_list.c (gl_oset_remove): Update.
45976         Reported by Eric Blake.
45977
45978 2009-09-28  Eric Blake  <ebb9@byu.net>
45979
45980         doc: mention yet more cygwin 1.7 status
45981         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45982         cygwin.
45983         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45984         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45985
45986         argp: fix test failure
45987         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45988         that are not upper-case.  Pass correct range to tolower.
45989
45990 2009-09-27  Jim Meyering  <meyering@redhat.com>
45991
45992         test-yesno: work around sparc-dash here-document infelicity
45993         Without this change, the literal \177 byte in a here document
45994         would make dash 0.5.5.1-3 access uninitialized memory.
45995         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45996         Instead, use a marker, "@", and filter through tr to create the desired
45997         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45998
45999 2009-09-27  Bruno Haible  <bruno@clisp.org>
46000
46001         Disable untested support for new flavours of ACLs on AIX.
46002         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
46003         progress.
46004         * lib/set-mode-acl.c (qset_acl): Likewise.
46005
46006 2008-12-07  Bruno Haible  <bruno@clisp.org>
46007
46008         Add support for new flavours of ACLs on AIX. (Untested.)
46009         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
46010         (file_has_acl): Add support for newer AIX.
46011         * lib/set-mode-acl.c (qset_acl): Likewise.
46012         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
46013         Rainer Tammer <tammer@tammer.net>.
46014
46015 2009-09-26  Eric Blake  <ebb9@byu.net>
46016
46017         argp: fix compilation of getopt
46018         * lib/getopt.in.h (includes): Use different guard than glibc.
46019         Reported by Sergey Poznyakoff.
46020
46021         doc: mention more cygwin 1.7 status
46022         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
46023         bug.
46024         * doc/posix-functions/execl.texi (execl): Likewise.
46025         * doc/posix-functions/execle.texi (execle): Likewise.
46026         * doc/posix-functions/execlp.texi (execlp): Likewise.
46027         * doc/posix-functions/execv.texi (execv): Likewise.
46028         * doc/posix-functions/execve.texi (execve): Likewise.
46029         * doc/posix-functions/execvp.texi (execvp): Likewise.
46030         * doc/glibc-functions/canonicalize_file_name.texi
46031         (canonicalize_file_name): Cygwin 1.7 now provides this.
46032         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
46033         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
46034         on AT_SYMLINK_NOFOLLOW.
46035
46036 2009-09-24  Eric Blake  <ebb9@byu.net>
46037
46038         test-linkat: make test more robust
46039         * tests/test-linkat.c (main): Avoid collision with EEXIST.
46040
46041         getopt: fix inclusion guards for cygwin
46042         * modules/getopt-posix (Depends-on): Add include-next.
46043         (Makefile.am): Substitute more items in replacement header.
46044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
46045         <getopt.h>.
46046         * lib/getopt.in.h (includes): Use split inclusion guard, and
46047         prefer <getopt.h> over include <unistd.h> when one is present.
46048         (option): Also override name of 'struct option'.
46049
46050         same-inode: revert prior change; it is not yet ready
46051         * NEWS: Undo mention of this change.
46052         * lib/same-inode.h (same-inode.h): Undo tri-state change.
46053         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
46054         * lib/cycle-check.c (cycle_check): Likewise.
46055         * lib/same.c (same_name): Likewise.
46056         * lib/at-func2.c (at_func2): Likewise.
46057
46058 2009-09-23  Eric Blake  <ebb9@byu.net>
46059
46060         linkat: new module
46061         * modules/linkat: New file.
46062         * lib/at-func2.c (at_func2): Likewise.
46063         * lib/linkat.c (linkat): Likewise.
46064         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46065         * lib/openat-priv.h (at_func2): Add declaration.
46066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46067         * modules/unistd (Makefile.am): Substitute them.
46068         * lib/unistd.in.h (linkat): Declare it.
46069         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46070         * doc/posix-functions/linkat.texi (linkat): Likewise.
46071         * doc/posix-functions/link.texi (link): Tweak wording.
46072         * tests/test-link.c (main): Move guts...
46073         * tests/test-link.h (test_link): ...into new file.
46074         * modules/linkat-tests: New test.
46075         * tests/test-linkat.c: Likewise.
46076         * modules/link-tests (Files): Ship new file.
46077         (Depends-on): Add stdbool.
46078
46079         dirname: add library-safe mdir_name
46080         * lib/dirname.h (mdir_name): New prototype.
46081         * lib/dirname.c (dir_name): Move guts...
46082         (mdir_name): ...to new function that avoids xalloc_die.
46083
46084         fchdir: another mingw fix
46085         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
46086         * lib/fchdir.c (get_name): New helper method; skips canonicalize
46087         on mingw (where it has not yet been ported), and make it optional
46088         elsewhere.
46089         (_gl_register_fd): Use it.
46090
46091         same-inode: make SAME_INODE tri-state, to port to mingw
46092         * NEWS: Mention this change.
46093         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
46094         st_ino always being 0.
46095         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
46096         * lib/cycle-check.c (cycle_check): Likewise.
46097         * lib/same.c (same_name): Likewise.
46098
46099         lstat: avoid mingw compilation error
46100         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
46101         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
46102         lstat ourselves.
46103         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
46104         was adequate.
46105         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
46106         the checks for lstat.
46107         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
46108
46109         link: fix test failure on Solaris 9
46110         * lib/link.c (rpl_link): Don't assume link will catch bogus
46111         trailing slash on source.
46112
46113         test-symlinkat: enhance test
46114         * tests/test-readlink.c (main): Move guts...
46115         * tests/test-readlink.h (test_readlink): ...into new file.
46116         * tests/test-symlink.c (main): Move guts...
46117         * tests/test-symlink.h (test_symlink): ...into new file.
46118         * tests/test-symlinkat.c (main): Use new files for further
46119         coverage.
46120         (do_symlink, do_readlink): New helper functions.
46121         * modules/symlink-tests (Files): Ship new file.
46122         (Depends-on): Add stdbool.
46123         * modules/readlink-tests (Files): Ship new file.
46124         (Depends-on): Add stdbool.
46125         * modules/symlinkat-tests (Files): Use new files.
46126
46127 2009-09-23  Eric Blake  <ebb9@byu.net>
46128
46129         readlink: document portability issue with symlink length
46130         * doc/posix-functions/lstat.texi (lstat): Mention that some file
46131         systems have bogus st_size on symlinks, and mention the
46132         areadlink-with-size module.
46133         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
46134         * doc/posix-functions/readlink.texi (readlink): Mention the
46135         areadlink module, and ERANGE failure.
46136         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46137         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
46138
46139         readlink: fix Solaris 9 bug with trailing slash
46140         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
46141         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
46142         * doc/posix-functions/readlink.texi (readlink): Document this.
46143         * modules/readlink-tests: New test.
46144         * tests/test-readlink.c: Likewise.
46145
46146         readlink: fix cygwin 1.5.x bug with return type
46147         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46148         * lib/unistd.in.h (readlink): Use ssize_t.
46149         * lib/readlink.c (readlink): Likewise.
46150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46151         * modules/unistd (Makefile.am): Substitute it.
46152         * lib/unistd.in.h (readlink): Declare replacement.
46153         * doc/posix-functions/readlink.texi (readlink): Document this.
46154
46155         symlink: use throughout gnulib
46156         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46157         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46158         symlink is not used.
46159         * modules/symlinkat (Depends-on): Add symlink.
46160         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46161         * modules/canonicalize-tests (Depends-on): Likewise.
46162         * modules/lstat-tests (Depends-on): Likewise.
46163         * modules/openat-tests (Depends-on): Likewise.
46164         * modules/remove-tests (Depends-on): Likewise.
46165         * modules/rmdir-tests (Depends-on): Likewise.
46166         * modules/unlink-tests (Depends-on): Likewise.
46167         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46168         * tests/test-canonicalize.c (symlink): Likewise.
46169         * tests/test-fstatat.c (symlink): Likewise.
46170         * tests/test-lstat.c (symlink): Likewise.
46171         * tests/test-remove.c (symlink): Likewise.
46172         * tests/test-rmdir.c (symlink): Likewise.
46173         * tests/test-unlink.c (symlink): Likewise.
46174         * tests/test-unlinkat.c (symlink): Likewise.
46175
46176         symlink: new module, for Solaris 9 bug
46177         * modules/symlink: New file.
46178         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46179         * lib/symlink.c: Likewise.
46180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46181         * modules/unistd (Makefile.am): Substitute them.
46182         * lib/unistd.in.h (symlink): Declare replacement.
46183         * MODULES.html.sh (File system functions): Mention it.
46184         * doc/posix-functions/symlink.texi (symlink): Likewise.
46185         * modules/symlink-tests: New test.
46186         * tests/test-symlink.c: Likewise.
46187
46188 2009-09-23  Bruno Haible  <bruno@clisp.org>
46189
46190         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46191         when needed.
46192         Test case: gnulib-tool --import --with-tests atexit inttypes.
46193         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46194
46195 2009-09-23  Bruno Haible  <bruno@clisp.org>
46196
46197         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46198         subcommand, not in a subshell.
46199
46200 2009-09-22  Eric Blake  <ebb9@byu.net>
46201
46202         unistd: sort replacement declarations
46203         * lib/unistd.in.h: Sort declarations.
46204
46205         open, openat: minor optimization
46206         * lib/open.c (open): If open succeeded, len is non-zero.
46207         * lib/openat.c (rpl_openat): Likewise.
46208
46209         link-follow: ensure correct result
46210         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46211         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46212         distinguish between possible failures.
46213
46214 2009-09-21  Eric Blake  <ebb9@byu.net>
46215
46216         fts: avoid compiler warning
46217         * lib/fts.c (dirent_inode_sort_may_be_useful)
46218         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46219
46220 2009-09-19  Bruno Haible  <bruno@clisp.org>
46221
46222         * lib/progreloc.c (canonicalize_file_name): New declaration.
46223
46224 2009-09-19  Eric Blake  <ebb9@byu.net>
46225
46226         link: fix quoting
46227         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46228
46229         openat: fix openat bugs on Solaris 9
46230         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46231         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46232         * modules/openat (Depends-on): Add open.
46233         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46234         * modules/fcntl-h (Makefile.am): Substitute it.
46235         * lib/fcntl.in.h (openat): Declare replacement.
46236         * doc/posix-functions/openat.texi (openat): Document this.
46237
46238         openat: move fstatat and unlinkat into correct files
46239         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46240         compiled.
46241         * lib/openat.c (fstatat, unlinkat): Move...
46242         * lib/fstatat.c (fstatat): ...into correct files.
46243         * lib/unlinkat.c (unlinkat): Likewise.
46244
46245         openat: fix unlinkat bugs on Solaris 9
46246         * lib/unlinkat.c (unlinkat): New file.
46247         * modules/openat (Depends-on): Add unlink.
46248         (Files): Distribute it.
46249         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46250         trailing slash behavior is broken.
46251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46252         * modules/unistd (Makefile.am): Substitute it.
46253         * lib/unistd.in.h (unlinkat): Declare replacement.
46254         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46255
46256         openat: fix fstatat bugs on Solaris 9
46257         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46258         stat.
46259         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46260
46261         test-unlinkat: enhance test, to expose Solaris 9 bug
46262         * tests/test-unlink.c (main): Factor guts...
46263         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46264         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46265         * tests/test-rmdir.c (main): Adjust caller.
46266         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46267         (unlinker): New helper function.
46268         (rmdirat): Enhance check.
46269         * modules/rmdir-tests (Depends-on): Add stdbool.
46270         * modules/unlink-tests (Depends-on): Likewise.
46271         (Files): Add test-unlink.h.
46272         * modules/openat-tests (Files): Likewise.
46273         (Depends-on): Add unlinkdir.
46274
46275         test-fstatat: new test, to expose Solaris 9 bugs
46276         * tests/test-stat.c (main): Factor guts...
46277         * tests/test-stat.h (test_stat_func): ...into new file.
46278         * tests/test-lstat.c (main): Factor guts...
46279         * tests/test-lstat.h (test_lstat_func): ...into new file.
46280         * tests/test-fstatat.c: New file.
46281         * modules/stat-tests (Files): Add test-stat.h.
46282         * modules/lstat-tests (Files): Add test-lstat.h.
46283         (Depends-on): Add stdbool.
46284         * modules/openat-tests (Depends-on): Add pathmax.
46285         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46286         (Makefile.am): Run new test.
46287
46288         remove: new module, for mingw and Solaris 9 bugs
46289         * modules/remove: New file.
46290         * lib/remove.c: Likewise.
46291         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46293         * modules/stdio (Makefile.am): Use them.
46294         * lib/stdio.in.h (remove): Declare replacement.
46295         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46296         * doc/posix-functions/remove.texi (remove): Likewise.
46297         * modules/remove-tests: New test.
46298         * tests/test-remove.c: Likewise.
46299
46300         unlink: new module, for Solaris 9 bug
46301         * modules/unlink: New file.
46302         * lib/unlink.c: Likewise.
46303         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46305         * modules/unistd (Makefile.am): Use them.
46306         * lib/unistd.in.h (stat): Declare replacement.
46307         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46308         * doc/posix-functions/unlink.texi (unlink): Likewise.
46309         * modules/unlink-tests: New test.
46310         * tests/test-unlink.c: Likewise.
46311
46312         lstat: fix Solaris 9 bug
46313         * lib/lstat.c (lstat): Also check for trailing slash on
46314         non-symlink, non-directories.  Use stat module to simplify logic.
46315         * doc/posix-functions/lstat.texi (lstat): Document it.
46316         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46317         (configure.ac): Check for symlink.
46318         * tests/test-lstat.c (main): Add more tests.
46319
46320         stat: add as dependency to other modules
46321         * modules/chown (Depends-on): Add stat.
46322         * modules/euidaccess (Depends-on): Likewise.
46323         * modules/fchdir (Depends-on): Likewise.
46324         * modules/isdir (Depends-on): Likewise.
46325         * modules/link (Depends-on): Likewise.
46326         * modules/lstat (Depends-on): Likewise.
46327         * modules/mkdir-p (Depends-on): Likewise.
46328         * modules/modechange (Depends-on): Likewise.
46329         * modules/open (Depends-on): Likewise.
46330         * modules/readlink (Depends-on): Likewise.
46331         * modules/same (Depends-on): Likewise.
46332
46333         stat: fix Solaris 9 bug
46334         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46335         slash.
46336         * lib/stat.c (rpl_stat): Work around it.
46337         * doc/posix-functions/stat.texi (stat): Update documentation.
46338
46339         stat: new module, for mingw bug
46340         * modules/stat: New file.
46341         * lib/stat.c: Likewise.
46342         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46344         * modules/sys_stat (Makefile.am): Use them.
46345         * lib/sys_stat.in.h (stat): Declare replacement.
46346         * lib/openat.c (fstatat): Deal with lstat and stat being function
46347         macros.
46348         * modules/openat (Depends-on): Add inline.
46349         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46350         * doc/posix-functions/stat.texi (stat): Likewise.
46351         * modules/stat-tests: New test.
46352         * tests/test-stat.c: Likewise.
46353
46354 2009-09-19  Jim Meyering  <meyering@redhat.com>
46355
46356         syntax-check: detect unnecessary inclusion of canonicalize.h
46357         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46358
46359 2009-09-19  Eric Blake  <ebb9@byu.net>
46360
46361         canonicalize-lgpl: adjust clients to use correct header
46362         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46363         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46364         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46365         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46366         * lib/progreloc.c (includes): Likewise.
46367
46368 2009-09-19  Jim Meyering  <meyering@redhat.com>
46369
46370         test-posixtm.c: correct a comment
46371         * tests/test-posixtm.c: Correct first-line comment.
46372         Spotted by Eric Blake.
46373
46374 2009-09-16  Jim Meyering  <meyering@redhat.com>
46375
46376         posixtm-tests: make T const-correct; add a test case
46377         * tests/test-posixtm.c (T): Declare const.
46378         Add a test for -(2^31+1).
46379         Remove useless can-succeed-only-in-2002 test.
46380
46381         posixtm-tests: adjust the sole failing test
46382         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46383         expected output matches what mktime now produces.  Cross-checked via
46384         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46385
46386         posixtm: move #ifdef'd tests into a new module
46387         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46388         * tests/test-posixtm.c: ... this new file.
46389         * modules/posixtm-tests: New module.
46390
46391 2009-09-19  Eric Blake  <ebb9@byu.net>
46392
46393         openat: simplify use of at-func.c
46394         * lib/at-func.c (includes): Include prerequisites here, to
46395         simplify requirements on client files.
46396         * lib/openat-priv.h: Add double-inclusion guard.
46397         * lib/faccessat.c (includes): Simplify.
46398         * lib/fchmodat.c (includes): Likewise.
46399         * lib/fchownat.c (includes): Likewise.
46400         * lib/mkdirat.c (includes): Likewise.
46401         * lib/mkfifoat.c (includes): Likewise.
46402         * lib/symlinkat.c (includes): Likewise.
46403
46404         openat: allow return of fd 0
46405         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46406         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46407         unistd-safer.
46408         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46409         <fcntl.h>; this module does not leak fds.
46410         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46411         must be allowed to return 0, leaving openat_safer to add the
46412         safety.
46413         (openat_permissive): Avoid writing to just-opened fd 2 if
46414         restoring the current directory fails.
46415         * lib/openat-die.c (openat_restore_fail): Add comment.
46416         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46417         (save_cwd): Guarantee safe fd, but without use of open_safer.
46418         * tests/test-openat.c: New test.
46419         * modules/openat-tests (Files, Makefile.am): Distribute and build
46420         new file.
46421
46422         relocatable-prog-wrapper: fix build
46423         * modules/relocatable-prog-wrapper (Files): Update name of
46424         canonicalize m4 file, broken on 2009-09-17.
46425         Reported by emad hajjar <aleppos@hotmail.com>.
46426
46427 2009-09-19  Bruno Haible  <bruno@clisp.org>
46428
46429         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46430         * lib/safe-alloc.c: Likewise.
46431         Reported by Ian Beckwith <ianb@erislabs.net>.
46432
46433 2009-09-18  Bruno Haible  <bruno@clisp.org>
46434
46435         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46436         Reported by <erobles@sensacd.com.mx>.
46437
46438 2009-09-17  Eric Blake  <ebb9@byu.net>
46439
46440         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46441         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46442         slashes when checking if last component is missing.
46443         * tests/test-canonicalize.c (main): Test this.
46444
46445         canonicalize, canonicalize-lgpl: honor // if distinct from /
46446         * modules/canonicalize (Files): Add double-slash-root.m4.
46447         * modules/canonicalize-lgpl (Files): Likewise.
46448         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46449         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46450         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46451         fallback definition.
46452         (canonicalize_filename_mode): Use it to protect //.
46453         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46454         (__realpath): Likewise.
46455         * tests/test-canonicalize.c (main): Test this.
46456         * tests/test-canonicalize-lgpl.c (main): Likewise.
46457         * modules/canonicalize-tests (Depends-on): Add same-inode.
46458         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46459
46460         canonicalize-lgpl: fix glibc bug with trailing slash
46461         * m4/canonicalize-lgpl.m4: Move contents...
46462         * m4/canonicalize.m4: ...here.
46463         (gl_CANONICALIZE_LGPL): Factor realpath check...
46464         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46465         glibc 2.3.5 bug, fixed 2005-04-27.
46466         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46467         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46468         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46469         * modules/canonicalize-lgpl (Files): Manage file rename.
46470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46471         * modules/stdlib (Makefile.am): Substitute witness.
46472         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46473         is needed.
46474         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46475         replacement is required.
46476         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46477         * doc/glibc-functions/canonicalize_file_name.texi
46478         (canonicalize_file_name): Document this.
46479         * doc/posix-functions/realpath.texi (realpath): Likewise.
46480
46481         canonicalize-lgpl: reject non-directory with trailing slash
46482         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46483         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46484         catches failures in glibc 2.3.5.
46485         * tests/test-canonicalize.c (main): Likewise.
46486
46487         canonicalize-lgpl: use native realpath if it works
46488         * lib/canonicalize-lgpl.c (realpath): Guard with
46489         FUNC_REALPATH_WORKS.
46490         * lib/stdlib.in.h (realpath): Make declaration optional based on
46491         HAVE_REALPATH.
46492         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46493         native realpath works.
46494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46495         * modules/stdlib (Makefile.am): Substitute witness.
46496
46497         canonicalize, canonicalize-lgpl: use <stdlib.h>
46498         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46499         (Include): Mention <stdlib.h>.
46500         (configure.ac): Mention functions we provide.
46501         * modules/canonicalize (configure.ac): Likewise.
46502         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46503         realpath if canonicalize_file_name is missing.
46504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46505         * modules/stdlib (Makefile.am): Substitute witnesses.
46506         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46507         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46508         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46509         * NEWS: Document this.
46510         * doc/glibc-functions/canonicalize_file_name.texi
46511         (canonicalize_file_name): Likewise.
46512         * doc/posix-functions/realpath.texi (realpath): Likewise.
46513         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46514
46515         test-canonicalize: consolidate into single C program
46516         * tests/test-canonicalize.sh: Delete; move setup into...
46517         * tests/test-canonicalize.c (main): ...the program, making it
46518         easier to run in debugger.  Add some tests.
46519         * modules/canonicalize-tests (Files): Remove unused file.
46520         (Depends-on): Add progname.
46521         (configure.ac, Makefile.am): Simplify.
46522
46523         test-canonicalize-lgpl: consolidate into single C program
46524         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46525         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46526         easier to run in debugger.  Add some tests.
46527         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46528         (configure.ac, Makefile.am): Simplify.
46529
46530         canonicalize: avoid resolvepath
46531         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46532         unnecessary checks.
46533         * lib/canonicalize.c (includes): Simplify.
46534         (canonicalize_file_name): Drop resolvepath implementation.
46535         * modules/canonicalize (Depends-on): Drop filenamecat.
46536
46537         canonicalize: don't lose errno
46538         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46539         over calls to free.
46540
46541         canonicalize: simplify errno handling
46542         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46543         assignment.
46544
46545         canonicalize, canonicalize-lgpl: update module dependencies
46546         * modules/canonicalize (Depends-on): Add extensions, lstat,
46547         pathmax, stdlib.
46548         (Files): Drop pathmax.h.
46549         (configure.ac): Adjust macro name.
46550         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46551         lstat, stdlib, sys_stat.
46552         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46553         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46554         extensions.
46555         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46556         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46557         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46558         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46559         declaration, if available.
46560         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46561         we can rely on the readlink module.
46562         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46563         (includes): Use <unistd.h> unconditionally.
46564
46565 2009-09-17  Eric Blake  <ebb9@byu.net>
46566
46567         maint: make Include sections of modules consistent
46568         * modules/alloca: Use only header name; no need to list #include.
46569         * modules/alloca-opt: Likewise.
46570         * modules/arpa_inet: Likewise.
46571         * modules/canon-host: Likewise.
46572         * modules/configmake: Likewise.
46573         * modules/dirent: Likewise.
46574         * modules/eealloc: Likewise.
46575         * modules/environ: Likewise.
46576         * modules/fchdir: Likewise.
46577         * modules/fcntl: Likewise.
46578         * modules/fcntl-h: Likewise.
46579         * modules/gethrxtime: Likewise.
46580         * modules/gettime: Likewise.
46581         * modules/ignore-value: Likewise.
46582         * modules/inet_ntop: Likewise.
46583         * modules/inet_pton: Likewise.
46584         * modules/inttypes: Likewise.
46585         * modules/isnand-nolibm: Likewise.
46586         * modules/isnanf-nolibm: Likewise.
46587         * modules/mbchar: Likewise.
46588         * modules/mbfile: Likewise.
46589         * modules/mbiter: Likewise.
46590         * modules/mbuiter: Likewise.
46591         * modules/netdb: Likewise.
46592         * modules/netinet_in: Likewise.
46593         * modules/nproc: Likewise.
46594         * modules/pagealign_alloc: Likewise.
46595         * modules/poll: Likewise.
46596         * modules/printf-frexp: Likewise.
46597         * modules/pthread: Likewise.
46598         * modules/putenv: Likewise.
46599         * modules/random_r: Likewise.
46600         * modules/relocatable-prog: Likewise.
46601         * modules/search: Likewise.
46602         * modules/select: Likewise.
46603         * modules/selinux-h: Likewise.
46604         * modules/settime: Likewise.
46605         * modules/signal: Likewise.
46606         * modules/size_max: Likewise.
46607         * modules/socklen: Likewise.
46608         * modules/ssize_t: Likewise.
46609         * modules/stdarg: Likewise.
46610         * modules/stdbool: Likewise.
46611         * modules/stddef: Likewise.
46612         * modules/stdint: Likewise.
46613         * modules/stdio: Likewise.
46614         * modules/stdlib: Likewise.
46615         * modules/string: Likewise.
46616         * modules/strings: Likewise.
46617         * modules/sys_file: Likewise.
46618         * modules/sys_ioctl: Likewise.
46619         * modules/sys_select: Likewise.
46620         * modules/sys_socket: Likewise.
46621         * modules/sys_stat: Likewise.
46622         * modules/sys_time: Likewise.
46623         * modules/sys_times: Likewise.
46624         * modules/sys_utsname: Likewise.
46625         * modules/sys_wait: Likewise.
46626         * modules/sysexits: Likewise.
46627         * modules/time: Likewise.
46628         * modules/times: Likewise.
46629         * modules/tmpfile: Likewise.
46630         * modules/trim: Likewise.
46631         * modules/unistd: Likewise.
46632         * modules/wchar: Likewise.
46633         * modules/wctype: Likewise.
46634
46635 2009-09-17  Bruno Haible  <bruno@clisp.org>
46636
46637         Make getdate.y compile on QNX and NetBSD 5 / i386.
46638         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46639         TIME_T_FITS_IN_LONG_INT.
46640         * lib/getdate.y (long_time_t): New type.
46641         (relative_time): Change type of 'seconds' field to long_time_t.
46642         (get_date): Update types of local variables. Check against overflow
46643         during conversion from long_time_t to time_t.
46644         Reported by Matt Kraai <kraai@ftbfs.org>
46645         and Hasso Tepper <hasso@netbsd.org>.
46646
46647 2009-09-17  Bruno Haible  <bruno@clisp.org>
46648
46649         * modules/COPYING: Update copyright years.
46650         * modules/README: Likeiwse.
46651         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46652         Reported by Ian Beckwith <ianb@erislabs.net>.
46653
46654 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46655
46656         * users.txt: Update references for gnuit package.
46657
46658 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46659
46660         * m4/getdelim.m4: Fix typo in copyright line.
46661
46662 2009-09-17  Bruno Haible  <bruno@clisp.org>
46663
46664         * lib/atoll.c: Use the standard header with GPL copyright.
46665         * lib/argz.in.h: Likewise.
46666         * lib/glob.c: Likewise.
46667         * lib/glob-libc.h: Likewise.
46668         * lib/random_r.c: Likewise.
46669         * lib/siglist.h: Likewise.
46670         * lib/strsignal.c: Likewise.
46671         Reported by Ian Beckwith <ianb@erislabs.net>.
46672
46673 2009-09-17  Eric Blake  <ebb9@byu.net>
46674
46675         rmdir: ensure correct dependency order
46676         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46677
46678 2009-09-17  Bruno Haible  <bruno@clisp.org>
46679
46680         Disable assertion that fails on NetBSD 5 / i386.
46681         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46682         Reported by Sam Steingold <sds@gnu.org>
46683         and Hasso Tepper <hasso@netbsd.org>.
46684
46685 2009-09-16  Eric Blake  <ebb9@byu.net>
46686
46687         unlinkdir: port to mingw
46688         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46689         on which no one can unlink a directory.
46690
46691         stdlib: sort witness names
46692         * modules/stdlib (Makefile.am): Sort replacements.
46693         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46694         * lib/stdlib.in.h: Likewise.
46695
46696         parse-duration-tests: avoid link failure
46697         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46698         LIBINTL.
46699         Reported by Tom G. Christensen.
46700
46701         openat-tests: ensure unlinkat behaves like rmdir
46702         * tests/test-rmdir.c (main): Factor guts...
46703         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46704         * modules/rmdir-tests (Files): Ship new file.
46705         * modules/openat-tests: New test.
46706         * tests/test-unlinkat.c: Likewise.
46707
46708         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46709         * modules/rmdir-errno (Status, Notice): Now obsolete.
46710
46711         rmdir: work around cygwin 1.5.x and mingw bugs
46712         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46713         * lib/rmdir.c (rmdir): Work around it.
46714         * modules/rmdir (Status, Notice): No longer obsolete.
46715         (Files): Add dos.m4.
46716         (Depends-on): Add unistd.
46717         (configure.ac): Set witnesses.
46718         (License): Relax to LGPLv2+.
46719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46720         * modules/unistd (Makefile.am): Substitute witnesses.
46721         * lib/unistd.in.h (rmdir): Declare replacement.
46722         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46723         * modules/rmdir-tests: New tests.
46724         * tests/test-rmdir.c: Likewise.
46725
46726 2009-09-15  Eric Blake  <ebb9@byu.net>
46727
46728         fchdir: improve use of replacement functions
46729         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46730         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46731         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46732         REPLACE_CLOSEDIR.
46733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46734         * modules/sys_stat (Makefile.am): Substitute correct witness.
46735         * modules/dirent (Makefile.am): Likewise.
46736         * modules/unistd (Makefile.am): Likewise.
46737         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46738         * lib/unistd.in.h (dup): Likewise.
46739         * lib/sys_stat.in.h (fstat): Likewise.
46740
46741         maint: ignore gnulib-tool temp files
46742         * .gitignore: Ignore files created during gnulib-tool --test.
46743
46744 2009-09-13  Jim Meyering  <meyering@redhat.com>
46745
46746         posixtm: don't reject a time that specify "60" as the number of seconds
46747         * lib/posixtm.c (posixtime): The code to reject invalid dates
46748         would also reject a time specified with the .60 suffix.
46749         But POSIX allows that, in order to accommodate leap seconds.
46750         So don't reject it.
46751         (main): Adjust tests accordingly.
46752         * modules/posixtm (Depends-on): Add stpcpy.
46753
46754 2009-09-11  Jim Meyering  <meyering@redhat.com>
46755
46756         announce-gen: include [$release_type] in emitted Subject:
46757         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46758         e.g., [stable] in the emitted Subject: line.
46759
46760 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46761
46762         Remove obsolete macros from several modules.
46763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46764         obsolete Autoconf macros with their modern counterparts.
46765         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46766         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46767         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46768         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46769         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46770         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46772         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46773         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46774         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46775         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46776         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46777         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46778         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46779         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46780         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46781         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46782         * m4/time_r.m4 (gl_TIME_R): Likewise.
46783         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46784         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46785         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46786
46787         Fix copyright header in build-aux scripts.
46788         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46789         recommendation.
46790         * build-aux/ncftpput-ftp: Likewise.
46791         * build-aux/update-copyright: Likewise.
46792
46793 2009-09-09  Eric Blake  <ebb9@byu.net>
46794
46795         test-link: allow Linux choice of errno
46796         * tests/test-link.c (main): Relax test for alternate error.
46797
46798         strndup: fix improper m4 caching
46799         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46800         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46801         (gl_PREREQ_STRNDUP): Delete.
46802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46803         * modules/string (Makefile.am): Substitute it.
46804         * lib/string.in.h (strndup): Modernize prototype.
46805
46806         getcwd: port to mingw
46807         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46808         different from the POSIX assumptions made throughout the getcwd
46809         module; fortunately, the mingw getcwd does not need replacement.
46810         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46811         * modules/getcwd-tests: New test.
46812         * tests/test-getcwd.c: Likewise.
46813
46814         link: fix platform bugs
46815         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46816         * lib/link.c (link): Work around them.  Fix related mingw bug.
46817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46818         * modules/unistd (Makefile.am): Substitute it.
46819         * lib/unistd.in.h (link): Declare replacement.
46820         * doc/posix-functions/link.texi (link): Document this.
46821         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46822
46823         test-link: consolidate into single C program, test more cases
46824         * tests/test-link.sh: Delete.
46825         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46826         at least Cygwin and Solaris.
46827         * modules/link-tests (Files): Remove unused file.
46828         (Depends-on): Add errno, sys_stat.
46829         (Makefile.am): Simplify.
46830
46831 2009-09-08  Bruno Haible  <bruno@clisp.org>
46832
46833         Work around towlower, towupper bug on mingw.
46834         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46835         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46836         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46837         * doc/posix-functions/towupper.texi: Likewise.
46838         Reported by Eric Blake.
46839
46840 2009-09-08  Jim Meyering  <meyering@redhat.com>
46841
46842         build: don't try to run autoheader if we don't use it
46843         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46844         is not used in configure.ac.
46845
46846 2009-09-08  Eric Blake  <ebb9@byu.net>
46847
46848         euidaccess: fix compilation error
46849         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46850
46851         rawmemchr: relax license
46852         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46853         okay.
46854         Reported by Jim Meyering.
46855
46856         mkfifoat: new module
46857         * modules/mkfifoat: New file.
46858         * lib/mkfifoat.c: Likewise.
46859         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46860         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46861         * modules/sys_stat (Makefile.am): Use them.
46862         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46863         * MODULES.html.sh (File system functions): Mention module.
46864         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46865         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46866         * modules/mkfifoat-tests: New test.
46867         * tests/test-mkfifoat.c: Likewise.
46868
46869         strchrnul: relax license
46870         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46871         okay.
46872         Reported by Jim Meyering.
46873
46874 2009-09-08  Eric Blake  <ebb9@byu.net>
46875
46876         fstatat: fix compilation on Solaris
46877         * lib/fstatat.c (includes): Add fcntl.h.
46878         Reported by Pádraig Brady.
46879
46880 2009-09-07  Eric Blake  <ebb9@byu.net>
46881
46882         rename: modernize replacement
46883         * modules/rename (Depends-on): Add stdio.
46884         (configure.ac): Declare witness.
46885         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46886         stdio take care of replacement.
46887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46888         * modules/stdio (Makefile.am): Substitute them.
46889         * lib/stdio.in.h (rename): Declare replacement.
46890         * lib/rename.c (includes): Allow cross-compilation to non-windows
46891         machines.
46892         * doc/posix-functions/rename.texi (rename): Improve
46893         documentation.
46894
46895         stdio: sort witness names
46896         * modules/stdio (Makefile.am): Sort replacements.
46897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46898         * lib/stdio.in.h: Likewise.
46899
46900         getcwd: minor cleanups
46901         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46902         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46903
46904         openat: provide more convenience names
46905         * modules/faccessat (configure.ac): Add C witness.
46906         * lib/unistd.in.h (readlinkat): Fix typo.
46907         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46908         convenience wrappers.
46909         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46910         wrappers in syntax checks.
46911
46912 2009-09-06  Eric Blake  <ebb9@byu.net>
46913
46914         doc: fix comments in recent patches
46915         * lib/faccessat.c: Mention correct function.
46916         * lib/fchmodat.c: Likewise.
46917         * lib/fchownat.c: Likewise.
46918         * lib/symlinkat.c: Likewise.
46919         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46920         constants.
46921
46922         faccessat, symlinkat: continue cleanup of previous patch
46923         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46924         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46925         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46927         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46928         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46929         set.
46930
46931 2009-09-06  Bruno Haible  <bruno@clisp.org>
46932
46933         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46934         (fstatat): Declare if GNULIB_FSTATAT is set.
46935         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46936         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46937         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46938         * modules/fcntl-h (Files): Remove m4/openat.m4.
46939         * modules/sys_stat (Files): Remove m4/openat.m4.
46940         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46941         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46942         * modules/unistd (Files): Remove m4/openat.m4.
46943         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46944         GNULIB_OPENAT.
46945         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46946         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46947         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46948         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46949         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46950         gl_OPENAT_DEFAULTS.
46951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46952         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46953         Don't require gl_OPENAT_DEFAULTS.
46954         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46955         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46956         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46957         (gl_OPENAT_DEFAULTS): Remove macro.
46958
46959 2009-09-06  Bruno Haible  <bruno@clisp.org>
46960
46961         * modules/openat (configure.ac): Remove unneeded witness.
46962
46963 2009-09-06  Bruno Haible  <bruno@clisp.org>
46964
46965         Set errno to ENOSYS when a function is entirely unsupported.
46966         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46967         EOPNOTSUPP.
46968         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46969         * modules/chown (Depends-on): Remove errno.
46970
46971 2009-09-06  Bruno Haible  <bruno@clisp.org>
46972
46973         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46974
46975 2009-09-06  Bruno Haible  <bruno@clisp.org>
46976
46977         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46978
46979 2009-09-06  Ben Pfaff  <blp@gnu.org>
46980             Bruno Haible  <bruno@clisp.org>
46981
46982         Work around a glibc bug in strtok_r.
46983         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46984         Undefine if UNDEFINE_STRTOK_R is set.
46985         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46987         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46988         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46989         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46990         UNDEFINE_STRTOK_R.
46991         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46992
46993 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46994
46995         exclude: minor fix
46996         * lib/exclude.c: Include wctype.h
46997
46998 2009-09-06  Akim Demaille  <demaille@gostai.com>
46999
47000         bootstrap: improve error message
47001         * build-aux/bootstrap (find_tool): Upon failure, report the list
47002         of candidates.
47003         Honor the initial value of the envvar.
47004
47005 2009-09-05  Eric Blake  <ebb9@byu.net>
47006
47007         symlinkat: new module
47008         * modules/symlinkat: New file.
47009         * lib/symlinkat.c: Likewise.
47010         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
47011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
47012         * modules/unistd (Makefile.am): Use them.
47013         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
47014         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
47015         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
47016         * MODULES.html.sh (File system functions): Mention module.
47017         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
47018         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47019         * modules/symlinkat-tests: New test.
47020         * tests/test-symlinkat.c: Likewise.
47021
47022         test-openat-safer: add more checks
47023         * tests/test-openat-safer.c (main): Check more code paths.
47024
47025 2009-09-05  Jim Meyering  <meyering@redhat.com>
47026
47027         syntax-check: detect unnecessary inclusion of openat.h
47028         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
47029
47030 2009-09-05  Bruno Haible  <bruno@clisp.org>
47031
47032         Support towlower, towupper.
47033         * doc/posix-functions/towlower.texi: Mention module wctype.
47034         * doc/posix-functions/towupper.texi: Likewise.
47035         * lib/wctype.in.h (towlower, towupper): New functions.
47036         * tests/test-wctype.c: Include stdio.h, stdlib.h.
47037         (ASSERT): New macro.
47038         (e): New variable.
47039         (main): Test also towlower, towupper. Test WEOF argument.
47040         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47041
47042 2009-09-05  Bruno Haible  <bruno@clisp.org>
47043
47044         Fix conversion behaviour when the input is invalid.
47045         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
47046         mark occurring in first pass of indirect conversion.
47047         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
47048         input.
47049         Found by clang's static analyzer.
47050
47051 2009-09-05  Bruno Haible  <bruno@clisp.org>
47052
47053         * tests/test-striconveh.c (main): Test indirect conversion on platforms
47054         where direct conversion is possible.
47055
47056 2009-09-04  Eric Blake  <ebb9@byu.net>
47057
47058         openat: fail with ENOENT on empty name
47059         * lib/openat-proc.c (openat_proc_name): Special-case the empty
47060         buffer.
47061
47062         link-follow: fix logic bug in prior patch
47063         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
47064         reversed sense of yes and no in prior patch.  Avoid confusing
47065         compilation failure with desired semantics.
47066
47067         link-follow: accommodate mingw and cross-compilation
47068         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
47069         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
47070         cross-compilation results to -1, to make linkat easier to
47071         implement when cross-compiling.  Trivially support mingw.
47072         * modules/link-follow (configure.ac): Call new name.
47073         * NEWS: Mention this.
47074
47075 2009-09-03  Eric Blake  <ebb9@byu.net>
47076
47077         faccessat: compile replacement
47078         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
47079         needed.
47080
47081         fts: fix compilation error
47082         * lib/fts.c (includes): Re-add "openat.h", for
47083         openat_needs_fchdir.
47084
47085         faccessat: new module
47086         * modules/faccessat: New file.
47087         * lib/faccessat.c: Likewise.
47088         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
47089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47090         * modules/unistd (Makefile.am): Use it.
47091         * lib/unistd.in.h (faccessat): Declare it.
47092         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
47093         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
47094         * MODULES.html.sh (File system functions): Mention it.
47095         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
47096         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
47097
47098         euidaccess: prefer POSIX over non-standard implementation
47099         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
47100         * lib/euidaccess.c (euidaccess): Use it if available.
47101
47102         openat: make template easier to use
47103         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
47104         AT_FUNC_F2 to be undefined.
47105         (VALIDATE_FLAG): New macro; use it to reject bad flags.
47106         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
47107         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
47108         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
47109         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
47110         Likewise.
47111         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
47112         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
47113         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
47114         Likewise.
47115
47116         openat: declare in POSIX headers
47117         * NEWS: Mention this.
47118         * modules/openat (configure.ac): Declare witnesses.
47119         (Depends-on): Add fcntl-h, sys_stat, unistd.
47120         (Include): Mention correct headers.
47121         * modules/fcntl-h (Depends-on): Add link-warning.
47122         (Files): Add openat.m4.
47123         (Makefile.am): Substitute witnesses.
47124         * modules/sys_stat (Files, Makefile.am): Likewise.
47125         * modules/unistd (Files, Makefile.am): Likewise.
47126         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
47127         (gl_OPENAT_DEFAULTS): New macro.
47128         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
47129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
47130         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
47131         (SYS_STAT_H): Remove unused variable.
47132         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
47133         * lib/fcntl--.h (includes): Remove unneeded header.
47134         * lib/openat-safer.c (includes): Likewise.
47135         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
47136         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
47137         appropriate headers.
47138         (__OPENAT_PREFIX): Delete.
47139         * lib/fcntl.in.h (openat): Provide declaration.
47140         (AT_FDCWD): Fix Solaris bug.
47141         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
47142         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
47143         * lib/fchmodat.c (includes):  Adjust to find declaration.
47144         * lib/fchownat.c (includes): Likewise.
47145         * lib/mkdirat.c (includes): Likewise.
47146         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47147         still visible.
47148
47149 2009-09-02  Eric Blake  <ebb9@byu.net>
47150
47151         errno: use consistently
47152         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47153         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47154         * lib/canonicalize.c (ELOOP): Likewise.
47155         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47156         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47157         * lib/lchown.c (EOPNOTSUPP): Likewise.
47158         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47159         * lib/savewd.c (ESTALE): Likewise.
47160         * lib/settime.c (ENOSYS): Likewise.
47161         * lib/utimens.c (ENOSYS): Likewise.
47162         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47163         * lib/chdir-safer.c (ELOOP): Likewise.
47164         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47165         * modules/c-stack (Depends-on): Add errno.
47166         * modules/canonicalize (Depends-on): Likewise.
47167         * modules/chdir-safer (Depends-on): Likewise.
47168         * modules/fdopendir (Depends-on): Likewise.
47169         * modules/inet_ntop (Depends-on): Likewise.
47170         * modules/inet_pton (Depends-on): Likewise.
47171         * modules/lchown (Depends-on): Likewise.
47172         * modules/openat (Depends-on): Likewise.
47173         * modules/savewd (Depends-on): Likewise.
47174         * modules/settime (Depends-on): Likewise.
47175         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47176
47177         fts: avoid leaking fds
47178         * modules/fts (Depends-on): Add cloexec.
47179         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47180         flag.
47181
47182         fts: make directory fds more robust
47183         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47184         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47185
47186         backupfile, chdir-long, fts, savedir: make safer
47187         * lib/backupfile.c (includes): Use "dirent--.h", since
47188         numbered_backup can write to stderr during readdir.
47189         * lib/savedir.c (includes): Likewise.
47190         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47191         emulation can write to stderr on failure.
47192         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47193         * lib/getcwd.c: Document why opendir_safer is unused.
47194         * lib/glob.c: Likewise.
47195         * lib/scandir.c: Likewise.
47196         * lib/openat-proc.c: Likewise, for open_safer.
47197         * modules/backupfile (Depends-on): Add dirent-safer.
47198         * modules/savedir (Depends-on): Likewise.
47199         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47200         * modules/chdir-long (Depends-on): Add openat-safer.
47201
47202         openat-safer: new module
47203         * modules/openat-safer: New file.
47204         * lib/openat-safer.c: Likewise.
47205         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47206         * lib/fcntl-safer.h (openat_safer): Declare.
47207         * lib/fcntl--.h (openat): Override.
47208         * MODULES.html.sh (File descriptor based I/O): Mention it.
47209         * lib/openat.h: Add double-inclusion guards.
47210         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47211         "fcntl--.h", so we can implement openat.
47212         * modules/openat-safer-tests: New test.
47213         * tests/test-openat-safer.c: New file.
47214
47215         dirent-safer: new module
47216         * modules/dirent-safer: New file.
47217         * lib/dirent--.h: Likewise.
47218         * lib/dirent-safer.h: Likewise.
47219         * lib/opendir-safer.c: Likewise.
47220         * m4/dirent-safer.m4: Likewise.
47221         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47222         * modules/dirent-safer-tests: New test.
47223         * tests/test-dirent-safer.c: New file.
47224         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47225
47226         fdopendir: optimize on mingw
47227         * lib/unistd.in.h (_gl_directory_name): New prototype.
47228         * lib/fchdir.c (_gl_directory_name): Implement it.
47229         (fchdir): Use it to simplify implementation.
47230         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47231         fchdir, when available, to avoid calling [f]chdir().
47232
47233         fdopendir: split into its own module
47234         * lib/openat.c (fdopendir): Move...
47235         * lib/fdopendir.c: ...into new file.
47236         * modules/fdopendir: New module.
47237         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47238         * modules/openat (Depends-on): Add fdopendir.
47239         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47240         fdopendir here.
47241         * modules/savedir (Depends-on): Only need fdopendir, not full
47242         openat.
47243         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47244         * lib/openat.h (fdopendir): Drop prototype.
47245         * lib/dirent.in.h (fdopendir): Provide prototype.
47246         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47247         * modules/dirent (Makefile.am): Substitute them.
47248         * MODULES.html.sh (File system functions): Mention it.
47249         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47250         * modules/fdopendir-tests: New file.
47251         * tests/test-fdopendir.c: Likewise.
47252
47253         fchdir: use more consistent macro convention
47254         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47255         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47256         REPLACE_FCHDIR, rather than relying on config.h macros.
47257         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47258         inside a single make-time REPLACE_FCHDIR block, rather than using
47259         the config.h FCHDIR_REPLACEMENT.
47260         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47261         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47262         Manage fstat replacement.
47263         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47264         REPLACE_FCHDIR.
47265         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47266         (Makefile.am): Substitute REPLACE_FCHDIR.
47267         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47268         FCHDIR_REPLACEMENT.
47269         * lib/dup-safer.c (dup_safer): Likewise.
47270         * lib/dup2.c (rpl_dup2): Likewise.
47271         * lib/dup3.c (rpl_dup3): Likewise.
47272         * lib/open.c (rpl_open): Likewise.
47273
47274         fchdir: simplify error handling, and support dup3
47275         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47276         stdbool, malloc-posix, realloc-posix.
47277         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47278         (ensure_dirs_slot): Return false on allocation failure.
47279         (rpl_dup2): Delete.
47280         (_gl_register_dup): New function.
47281         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47282         (_gl_register_fd): Close fd on allocation failure.
47283         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47284         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47285         prototype.
47286         (rpl_dup2_fchdir): Delete prototype.
47287         * lib/open.c (open): Update caller.
47288         * lib/dup2.c (dup2): Track fchdir metadata.
47289         * lib/dup3.c (dup3): Likewise.
47290         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47292
47293 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47294
47295         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47296         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47297         don't pass arguments to AC_OUTPUT.
47298
47299 2009-09-02  Bruno Haible  <bruno@clisp.org>
47300
47301         * modules/mkdtemp (License): Relicense under LGPLv2+.
47302         Reported by Paolo Bonzini.
47303
47304 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47305
47306         Replace uses of obsolete autoconf macros in Jim's modules.
47307         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47308         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47309         can evoke a warning from autoconf when run with -Wobsolete
47310         enabled.  They were declared obsolete for good reasons (see
47311         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47312         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47313         should not continue using the deprecated macros.
47314         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47315         obsolete Autoconf macros with modern counterparts.
47316         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47317         * m4/dos.m4 (gl_AC_DOS): Likewise.
47318         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47319         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47320         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47321         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47322         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47324         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47325         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47326         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47327         Likewise.
47328         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47329         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47330         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47331         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47332         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47333         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47334
47335 2009-09-01  Eric Blake  <ebb9@byu.net>
47336
47337         fchdir: fix off-by-one bug in previous patch
47338         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47339         (_gl_unregister_fd): Delete useless if.
47340
47341 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47342
47343         maint.mk: sort the list of syntax-check rules
47344         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47345         easier to get a sense of progress when the rules are run sequentially
47346         and take a long time.
47347
47348 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47349
47350         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47351         * modules/netinet_in: Likewise.
47352         * modules/sys_file: Likewise.
47353         * modules/sys_ioctl: Likewise.
47354         * modules/sys_select: Likewise.
47355         * modules/sys_socket: Likewise.
47356         * modules/sys_stat: Likewise.
47357         * modules/sys_time: Likewise.
47358         * modules/sys_times: Likewise.
47359         * modules/sys_utsname: Likewise.
47360         * modules/sys_wait: Likewise.
47361
47362 2009-09-01  Jim Meyering  <meyering@redhat.com>
47363
47364         fts: help ensure that return values are not ignored
47365         * lib/fts_.h (__GNUC_PREREQ): Define.
47366         (__attribute_warn_unused_result__): Define.
47367         (fts_children, fts_close, fts_open, fts_read): Declare with
47368         __attribute_warn_unused_result__.
47369
47370         fts: fts_close now fails also when closing a dir file descriptor fails
47371         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47372         and propagate to caller, along with errno.
47373
47374         announce-gen: correct formatting in --help output
47375         * build-aux/announce-gen (usage): Move the one-line description in
47376         --help output "up", to where it belongs, just after Usage:.
47377
47378 2009-08-31  Eric Blake  <ebb9@byu.net>
47379
47380         fchdir: port to mingw
47381         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47382         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47383         opened, then use a substitute.
47384         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47385         replacement.
47386         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47387         (_gl_register_fd): No need to check stat if open already filters
47388         all directories.
47389         (fchdir): Fix error condition to match POSIX.
47390         * modules/fchdir (Depends-on): Add sys_stat.
47391         * doc/posix-functions/open.texi (open): Document the limitation.
47392         * modules/fchdir-tests: New file.
47393         * tests/test-fchdir.c: Likewise.
47394
47395         canonicalize: allow cross-testing from cygwin to mingw
47396         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47397         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47398         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47399         Likewise.
47400         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47401         target does not support symlinks.
47402         * tests/test-canonicalize-lgpl.sh: Likewise.
47403
47404         chown: avoid compilation warning on mingw
47405         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47406         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47407         mingw.
47408         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47409         * modules/chown (Depends-on): Add errno.
47410
47411 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47412
47413         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47414         command.
47415
47416 2009-08-31  Jim Meyering  <meyering@redhat.com>
47417
47418         canonicalize: remove useless initialization
47419         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47420         initialization of local, "end".
47421
47422 2009-08-30  Bruno Haible  <bruno@clisp.org>
47423
47424         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47425         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47426         ENOSYS.
47427
47428 2009-08-30  Bruno Haible  <bruno@clisp.org>
47429
47430         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47431         /usr/xpg4/bin/tr when it exists.
47432         * tests/test-pipe-filter-gi1.sh: Likewise.
47433
47434 2009-08-30  Bruno Haible  <bruno@clisp.org>
47435
47436         Work around deficient /usr/bin/id program on Solaris.
47437         * tests/test-file-has-acl.sh (ID): New variable.
47438         * tests/test-set-mode-acl.sh (ID): Likewise.
47439         * tests/test-copy-acl.sh (ID): Likewise.
47440         * tests/test-copy-file.sh (ID): Likewise.
47441
47442 2009-08-30  Bruno Haible  <bruno@clisp.org>
47443
47444         New module 'xstriconveh'.
47445         * lib/xstriconveh.h: New file.
47446         * lib/xstriconveh.c: New file.
47447         * modules/xstriconveh: New file.
47448
47449 2009-08-30  Bruno Haible  <bruno@clisp.org>
47450
47451         Make it easier to use mem_cd_iconveh.
47452         * lib/striconveh.h (iconveh_t): New type.
47453         (iconveh_open, iconveh_close): New declarations.
47454         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47455         with a single 'const iconveh_t *' argument.
47456         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47457         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47458         with a single 'const iconveh_t *' argument.
47459         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47460         * tests/test-striconveh.c (main): Update.
47461         * NEWS: Mention the change.
47462
47463 2009-08-30  Bruno Haible  <bruno@clisp.org>
47464
47465         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47466         problem.
47467
47468 2009-08-30  Bruno Haible  <bruno@clisp.org>
47469
47470         Work around iconv_open problem on Solaris.
47471         * lib/iconv_open-solaris.gperf: New file.
47472         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47473         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47474         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47475         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47476         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47477         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47478
47479 2009-08-29  Jim Meyering  <meyering@redhat.com>
47480
47481         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47482         * top/maint.mk (cvs-check): Remove target; it was just an alias
47483         to the better-named vc-diff-check.
47484         (maintainer-distcheck): Remove rule.  It was used only from
47485         the (alpha/beta/major) target, and all of its commands but one
47486         were coreutils-specific.
47487         (vc-dist): Remove rule.
47488         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47489         Run vc-diff-check, not vc-dist.
47490         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47491
47492 2009-08-27  Bruno Haible  <bruno@clisp.org>
47493
47494         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47495         of 0.
47496
47497 2009-08-27  Bruno Haible  <bruno@clisp.org>
47498
47499         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47500         compilers.
47501         * doc/func.texi: Document the SunPRO C bug.
47502
47503 2009-08-27  Bruno Haible  <bruno@clisp.org>
47504
47505         Fix link error on Solaris.
47506         * tests/test-parse-duration.c (xstrdup): Remove function.
47507
47508 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47509
47510         ignore-value: handle pointer types, too
47511         * lib/ignore-value.h (__attribute__): Remove definition.
47512         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47513         of a more concise and more-often effective "(void) i" statement.
47514         (ignore_ptr): New function to suppress warnings from functions that
47515         return pointers, and to make it explicit that one function doesn't
47516         handle all cases.
47517
47518 2009-08-25  Bruno Haible  <bruno@clisp.org>
47519
47520         dup2: work around a Linux bug.
47521         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47522         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47523         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47524         Reported by Simon Josefsson.
47525
47526 2009-08-25  Jim Meyering  <meyering@redhat.com>
47527
47528         libguestfs uses gnulib
47529         * users.txt: Add libguestfs.
47530
47531 2009-08-24  Eric Blake  <ebb9@byu.net>
47532
47533         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47534         * lib/pipe2.c (includes): Add binary-io.h.
47535         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47536
47537 2009-08-24  Bruno Haible  <bruno@clisp.org>
47538
47539         Tolerate declared but missing accept4 syscall.
47540         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47541         available.
47542         * lib/sys_socket.in.h (accept4): If the function is already present,
47543         override it.
47544         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47545         * modules/accept4 (Makefile.am): Compile accept4.c always.
47546         Reported by Paolo Bonzini and Eric Blake.
47547
47548 2009-08-23  Bruno Haible  <bruno@clisp.org>
47549
47550         New module 'accept4'.
47551         * lib/sys_socket.in.h (accept4): New declaration.
47552         * lib/accept4.c: New file.
47553         * m4/accept4.m4: New file.
47554         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47555         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47556         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47557         HAVE_ACCEPT4.
47558         * modules/accept4: New file.
47559         * doc/glibc-functions/accept4.texi: Mention the new module.
47560
47561 2009-08-24  Jim Meyering  <meyering@redhat.com>
47562
47563         progname: also set global program_invocation_name, when possible
47564         Before this change, a libtool-enabled program that calls glibc's
47565         error function would report the program name as
47566         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47567         * modules/progname (configure.ac): Check for a declaration of
47568         program_invocation_name.
47569         * lib/progname.c:  Include <errno.h>.
47570         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47571         Set program_invocation_name.
47572
47573 2009-08-23  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/dup3.c: Include <string.h>.
47576
47577 2009-08-23  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47580         * lib/pipe2.c (pipe2): Likewise.
47581         Suggested by Eric Blake.
47582
47583 2009-08-23  Bruno Haible  <bruno@clisp.org>
47584
47585         Tolerate declared but missing dup3 syscall.
47586         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47587         * lib/unistd.in.h (dup3): If the function is already present,
47588         override it.
47589         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47590         * modules/dup3 (Makefile.am): Compile dup3.c always.
47591         Reported by Paolo Bonzini.
47592
47593 2009-08-23  Bruno Haible  <bruno@clisp.org>
47594
47595         Tolerate declared but missing pipe2 syscall.
47596         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47597         available.
47598         * lib/unistd.in.h (pipe2): If the function is already present,
47599         override it.
47600         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47601         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47602         Reported by Paolo Bonzini.
47603
47604 2009-08-23  Bruno Haible  <bruno@clisp.org>
47605
47606         * lib/pipe2.c (pipe2): Move #ifs inside function.
47607
47608 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47609
47610         quotearg: document limitations of quote_these_too
47611         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47612         those limitations are created.
47613         * lib/quotearg.h (set_char_quoting): Document that digits and
47614         letters that are special after backslash are not permitted.
47615         (quotearg_char): Cross-reference set_char_quoting documentation.
47616
47617 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47618
47619         quotearg: implement custom_quoting_style
47620         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47621         right_quote fields.
47622         (set_custom_quoting): New public function.
47623         (quotearg_buffer_restyled): Add left_quote and right_quote
47624         arguments, handle them very much like locale quoting, and update
47625         all uses.
47626         (quotearg_n_custom): New public function.
47627         (quotearg_n_custom_mem): New public function.
47628         (quotearg_custom): New public function.
47629         (quotearg_custom_mem): New public function.
47630         * lib/quotearg.h: Prototype and document new public functions.
47631         (enum quoting_style): For escape_quoting_style and
47632         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47633         ignored even though they're otherwise like c_quoting_style.
47634         Add custom_quoting_style member and document with comparison to
47635         clocale_quoting_style.
47636         * tests/test-quotearg.c (custom_quotes): New array.
47637         (custom_results): New array.
47638         (main): Extend to test custom quoting.
47639
47640 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47641
47642         quotearg: fix right quote escaping when it's in quote_these_too
47643         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47644         quote, be sure to prepend only one backslash.
47645         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47646         (main): Test it.
47647
47648 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47649
47650         quotearg-tests: test escaping of embedded locale quotes
47651         * tests/test-quotearg.c (struct result_strings): Add member for
47652         new input.
47653         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47654         (inputs): Add new input.
47655         (results_g): Add expected results.
47656         (flag_results): Likewise.
47657         (locale_results): Likewise.
47658         (compare_strings): Check those.
47659
47660 2009-08-23  Bruno Haible  <bruno@clisp.org>
47661
47662         Tests for module 'dup3'.
47663         * modules/dup3-tests: New file.
47664         * tests/test-dup3.c: New file.
47665
47666         New module 'dup3'.
47667         * lib/unistd.in.h (dup3): New declaration.
47668         * lib/dup3.c: New file.
47669         * m4/dup3.m4: New file.
47670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47671         HAVE_DUP3.
47672         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47673         * modules/dup3: New file.
47674         * doc/glibc-functions/dup3.texi: Mention the new module.
47675
47676 2009-08-23  Bruno Haible  <bruno@clisp.org>
47677
47678         Tweak the dup2 test.
47679         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47680         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47681         the test file is still empty. Fix argument order of lseek.
47682
47683 2009-08-23  Bruno Haible  <bruno@clisp.org>
47684
47685         Avoid test link errors when the modules getopt-gnu, gettext are used.
47686         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47688
47689 2009-08-23  Bruno Haible  <bruno@clisp.org>
47690
47691         Fix getdtablesize() on mingw.
47692         * lib/getdtablesize.c (getdtablesize): Implement differently.
47693         * lib/unistd.in.h (getdtablesize): Improve comment.
47694
47695 2009-08-23  Bruno Haible  <bruno@clisp.org>
47696
47697         New module 'mkostemp'.
47698         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47699         * lib/stdlib.in.h (mksotemp): New declaration.
47700         * lib/mkostemp.c: New file, from glibc with modifications.
47701         * lib/tempname.h (GT_FILE): Remove outdated comment.
47702         (gen_tempname): Add flags argument.
47703         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47704         (__GT_FILE): Map to 1.
47705         (small_open, large_open): Remove macros.
47706         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47707         * lib/mkstemp.c (mkstemp): Update.
47708         * lib/mkdtemp.c (mkdtemp): Likewise.
47709         * m4/mkostemp.m4: New file.
47710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47711         HAVE_MKOSTEMP.
47712         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47713         HAVE_MKOSTEMP.
47714         * modules/mkostemp: New file, based on modules/mkstemp.
47715         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47716         * NEWS: Mention the change.
47717
47718 2009-08-23  Bruno Haible  <bruno@clisp.org>
47719
47720         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47721         Reported by Eric Blake.
47722
47723 2009-08-23  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47726         Reported by Eric Blake.
47727
47728 2009-08-23  Bruno Haible  <bruno@clisp.org>
47729
47730         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47731         * modules/pipe2 (Depends-on): Likewise.
47732
47733 2009-08-23  Eric Blake  <ebb9@byu.net>
47734
47735         fcntl-h: add O_TTY_INIT support
47736         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47737         * tests/test-fcntl-h.c (o): Test it.
47738         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47739
47740         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47741         * modules/fcntl: Move <fcntl.h> header replacement...
47742         * modules/fcntl-h: ...to new name, so as not to collide with
47743         like-named function.
47744         * tests/test-fcntl.c: Rename...
47745         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47746         * modules/fcntl-tests: Rename...
47747         * modules/fcntl-h-tests: ...to this.  Update test file name.
47748         * modules/chdir-long (Depends-on): Update clients.
47749         * modules/chdir-safer (Depends-on): Likewise.
47750         * modules/fcntl-safer (Depends-on): Likewise.
47751         * modules/fts (Depends-on): Likewise.
47752         * modules/mkancesdirs (Depends-on): Likewise.
47753         * modules/mkdir-p (Depends-on): Likewise.
47754         * modules/open (Depends-on): Likewise.
47755         * modules/savewd (Depends-on): Likewise.
47756         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47757         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47758
47759 2009-08-22  Bruno Haible  <bruno@clisp.org>
47760
47761         * modules/binary-io (License): Relicense under LGPL.
47762         * modules/pipe2 (License): Likewise.
47763
47764 2009-08-22  Bruno Haible  <bruno@clisp.org>
47765
47766         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47767         return value.
47768         * lib/pipe-filter-gi.c (filter_init): Likewise.
47769         Reported by Eric Blake.
47770
47771 2009-08-22  Bruno Haible  <bruno@clisp.org>
47772
47773         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47774         * modules/pipe (Depends-on): Add pipe2.
47775
47776 2009-08-22  Bruno Haible  <bruno@clisp.org>
47777
47778         Tests for module 'pipe2'.
47779         * modules/pipe2-tests: New file.
47780         * tests/test-pipe2.c: New file.
47781
47782         New module 'pipe2'.
47783         * lib/unistd.in.h (pipe2): New declaration.
47784         * lib/pipe2.c: New file.
47785         * m4/pipe2.m4: New file.
47786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47787         HAVE_PIPE2.
47788         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47789         * modules/pipe2: New file.
47790         * doc/glibc-functions/pipe2.texi: Mention the new module.
47791
47792 2009-08-22  Bruno Haible  <bruno@clisp.org>
47793
47794         Reference some new glibc functions.
47795         * doc/glibc-functions/accept4.texi: New file.
47796         * doc/glibc-functions/dup3.texi: New file.
47797         * doc/glibc-functions/mkostemp.texi: New file.
47798         * doc/glibc-functions/pipe2.texi: New file.
47799         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47800         (Glibc sys/socket.h): Refer to accept4.
47801         (Glibc unistd.h): Refer to dup3, pipe2.
47802         Reported by Eric Blake.
47803
47804 2009-08-22  Jim Meyering  <meyering@redhat.com>
47805             Bruno Haible  <bruno@clisp.org>
47806
47807         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47808         This makes it so packages using automake-1.11's silent-rules option
47809         can print e.g., a single "GEN    configmake.h" line, rather than
47810         the 30+ statements that perform the job.  If you want to see the
47811         actual commands, you can still run "make V=1".
47812         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47813         so that make output is abbreviated when those variables are defined
47814         appropriately.
47815         * modules/argz: Likewise.
47816         * modules/arpa_inet: Likewise.
47817         * modules/byteswap: Likewise.
47818         * modules/configmake: Likewise.
47819         * modules/dirent: Likewise.
47820         * modules/errno: Likewise.
47821         * modules/fcntl: Likewise.
47822         * modules/float: Likewise.
47823         * modules/fnmatch: Likewise.
47824         * modules/getopt-posix: Likewise.
47825         * modules/glob: Likewise.
47826         * modules/iconv_open: Likewise.
47827         * modules/inttypes: Likewise.
47828         * modules/localcharset: Likewise.
47829         * modules/locale: Likewise.
47830         * modules/math: Likewise.
47831         * modules/netdb: Likewise.
47832         * modules/netinet_in: Likewise.
47833         * modules/poll: Likewise.
47834         * modules/posix_spawnp-tests: Likewise.
47835         * modules/sched: Likewise.
47836         * modules/search: Likewise.
47837         * modules/selinux-h: Likewise.
47838         * modules/signal: Likewise.
47839         * modules/spawn: Likewise.
47840         * modules/stdarg: Likewise.
47841         * modules/stdbool: Likewise.
47842         * modules/stddef: Likewise.
47843         * modules/stdint: Likewise.
47844         * modules/stdio: Likewise.
47845         * modules/stdlib: Likewise.
47846         * modules/string: Likewise.
47847         * modules/strings: Likewise.
47848         * modules/sys_file: Likewise.
47849         * modules/sys_ioctl: Likewise.
47850         * modules/sys_select: Likewise.
47851         * modules/sys_socket: Likewise.
47852         * modules/sys_stat: Likewise.
47853         * modules/sys_time: Likewise.
47854         * modules/sys_times: Likewise.
47855         * modules/sys_utsname: Likewise.
47856         * modules/sys_wait: Likewise.
47857         * modules/sysexits: Likewise.
47858         * modules/time: Likewise.
47859         * modules/unistd: Likewise.
47860         * modules/wchar: Likewise.
47861         * modules/wctype: Likewise.
47862
47863 2009-08-22  Jim Meyering  <meyering@redhat.com>
47864
47865         announce-gen: detect write failure
47866         * build-aux/announce-gen: Add Coda at end.
47867         Remove equivalent-but-more-verbose block at top.
47868
47869 2009-08-19  Akim Demaille  <demaille@gostai.com>
47870
47871         bootstrap: --help to stdout.
47872         * bootstrap (usage): Don't send --help to stderr.
47873         Use a here doc instead of a long string.
47874
47875 2009-08-21  Eric Blake  <ebb9@byu.net>
47876
47877         test-popen-safer: split from test-popen
47878         * tests/test-popen.c (main): Move...
47879         * tests/test-popen.h: ...into new file.
47880         * tests/test-popen-safer2.c: New file.
47881         * modules/popen-tests (Files): Add test-popen.h.
47882         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47883         Suggested by Bruno Haible.
47884
47885         test-fcntl-safer: split from test-open
47886         * tests/test-open.c (main): Move...
47887         * tests/test-open.h: ...into new file.
47888         * tests/test-fcntl-safer.c: New file.
47889         * modules/open-tests (Files): Add test-open.h.
47890         * modules/fcntl-safer-tests: New file.
47891         Suggested by Bruno Haible.
47892
47893         test-fopen-safer: split from test-fopen
47894         * tests/test-fopen.c (main): Move...
47895         * tests/test-fopen.h: ...into new file.
47896         * tests/test-fopen-safer.c: New file.
47897         * modules/fopen-tests (Files): Add test-fopen.h.
47898         * modules/fopen-safer-tests: New file.
47899         Suggested by Bruno Haible.
47900
47901 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47902
47903         popen-safer: test O_CLOEXEC at run-time.
47904         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47905
47906 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47907
47908         fcntl: move more flags to the header
47909         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47910         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47911         * lib/fcntl.in.h: Do both things here.
47912
47913 2009-08-21  Jim Meyering  <meyering@redhat.com>
47914
47915         consistently remove $@-t before redirecting to it
47916         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47917         * modules/alloca-opt: Likewise.
47918         * modules/byteswap: Likewise.
47919         * modules/fnmatch: Likewise.
47920         * modules/getopt-posix: Likewise.
47921         * modules/glob: Likewise.
47922         * modules/poll: Likewise.
47923         * modules/posix_spawnp-tests: Likewise.
47924         * modules/sys_socket: Likewise.
47925         * modules/sysexits: Likewise.
47926
47927 2009-08-21  Eric Blake  <ebb9@byu.net>
47928
47929         popen: simplify access to original popen
47930         * lib/popen.c (rpl_popen): No need to worry about popen being a
47931         macro.
47932         Reported by Bruno Haible.
47933
47934 2009-08-20  Eric Blake  <ebb9@byu.net>
47935
47936         build: avoid some compiler warnings
47937         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47938         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47939         type.
47940         (new_exclude_segment, excluded_file_pattern_p)
47941         (excluded_file_name_p): Reduce scope.
47942         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47943         old-style declaration.
47944
47945 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47946
47947         * tests/test-exclude1.sh: Handle Windows EOL.
47948         * tests/test-exclude2.sh: Likewise.
47949         * tests/test-exclude3.sh: Likewise.
47950         * tests/test-exclude4.sh: Likewise.
47951         * tests/test-exclude5.sh: Likewise.
47952         * tests/test-exclude6.sh: Likewise.
47953         * tests/test-exclude7.sh: Likewise.
47954
47955 2009-08-19  Akim Demaille  <demaille@gostai.com>
47956
47957         bootstrap: find sha1sum when named gsha1sum.
47958         * bootstrap (find_tool): New.
47959         ($SHA1SUM): New.
47960         Use it.
47961
47962 2009-08-20  Jim Meyering  <meyering@redhat.com>
47963
47964         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47965         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47966         expression that converts "." in a file name to "\." in the resulting
47967         regexp.  Start with a dummy statement, so that prior shell variable
47968         definitions are expanded portably.  Reported by Simon Josefsson.
47969
47970 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47971
47972         Fix polling for writeability of a screen buffer.
47973         * lib/poll.c: Distinguish input and screen buffers for the
47974         Win32 implementation.
47975         * lib/select.c: Likewise.
47976
47977 2009-08-19  Eric Blake  <ebb9@byu.net>
47978
47979         popen-safer: prevent popen from clobbering std descriptors
47980         * modules/popen-safer: New file.
47981         * lib/popen-safer.c: Likewise.
47982         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47983         * lib/stdio--.h (popen): Provide override.
47984         * lib/stdio-safer.h (popen_safer): Provide declaration.
47985         * tests/test-popen.c (includes): Partially test this.
47986         * modules/popen-safer-tests: New file, for more tests.
47987         * tests/test-popen-safer.c: Likewise.
47988         * MODULES.html.sh (file stream based Input/Output): Mention it.
47989
47990         tests: test some of the *-safer modules
47991         * modules/fopen-safer (Depends-on): Add fopen.
47992         * modules/fcntl-safer (Depends-on): Add fcntl.
47993         * modules/stdlib-safer (Depends-on): Add stdlib.
47994         (configure.ac): Set indicator.
47995         * modules/unistd-safer (configure.ac): Likewise.
47996         * modules/tmpfile-safer (configure.ac): Likewise.
47997         (Depends-on): Add tmpfile.
47998         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47999         active.
48000         * tests/test-fopen.c (includes): Test safer versions when they are
48001         in use.
48002         * tests/test-open.c (includes): Likewise.
48003
48004         popen: fix cygwin 1.5 bug when stdin closed
48005         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
48006         * modules/popen: New file.
48007         * modules/popen-tests: Likewise.
48008         * tests/test-popen.c: Likewise.
48009         * m4/popen.m4: Likewise.
48010         * lib/popen.c: Likewise.
48011         * lib/stdio.in.h (popen): New declaration.
48012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
48013         * modules/stdio (Makefile.am): Likewise.
48014         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
48015
48016 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
48017
48018         maint.mk: give full control over update-copyright exclusions
48019         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
48020         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
48021         (update-copyright): Don't force inclusion of top-level
48022         ChangeLog.  Don't force exclusion of all COPYING files, but make
48023         them the default exclusion instead.
48024
48025 2009-08-16  Bruno Haible  <bruno@clisp.org>
48026
48027         Fix test failures on Solaris 10.
48028         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
48029         tests when Solaris iconv() is used.
48030         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48031         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48032         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48033         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48034         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48035
48036 2009-08-16  Bruno Haible  <bruno@clisp.org>
48037
48038         Fix test failures on Solaris 10.
48039         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
48040         'tr' program and pass it as first argument.
48041         * tests/test-pipe-filter-gi1.sh: Likewise.
48042         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
48043         program as first argument.
48044         * tests/test-pipe-filter-gi1.c (main): Likewise.
48045
48046 2009-08-16  Eric Blake  <ebb9@byu.net>
48047
48048         fpurge: fix previous commits
48049         * modules/fpurge (Makefile.am): Make replacement conditional,
48050         partially reverting 2007-04-29 change; missed in previous
48051         attempt.
48052         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
48053         is missing.
48054
48055 2009-08-16  Bruno Haible  <bruno@clisp.org>
48056
48057         Clarify fpurge's effect on the file position.
48058         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
48059         * tests/test-fpurge.c (main): Make a second pass for checking the file
48060         position.
48061
48062 2009-08-16  Bruno Haible  <bruno@clisp.org>
48063
48064         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
48065         declaration of fpurge is missing.
48066         * tests/test-fpurge.c (main): Check that the file has not more contents
48067         than expected. Close the file before removing it.
48068
48069 2009-08-15  Eric Blake  <ebb9@byu.net>
48070
48071         fpurge: don't wrap working cygwin implementation
48072         * lib/fpurge.c (fpurge): Fix comment typo.
48073         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
48074         1.7 to avoid replacement.
48075         * tests/test-fpurge.c (main): Enhance test.
48076
48077 2009-08-15  Eric Blake  <ebb9@byu.net>
48078         and Jim Meyering  <meyering@redhat.com>
48079
48080         test-update-copyright: skip if perl is insufficient
48081         * tests/test-update-copyright.sh: Failure to run maintainer tool
48082         should not cause testsuite failure on cygwin 1.5.
48083
48084 2009-08-14  Eric Blake  <ebb9@byu.net>
48085
48086         doc: mention more functions added in cygwin 1.7.0
48087         * doc/posix-headers/limits.texi (limits.h): Update for recent
48088         cygwin additions.
48089         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
48090         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
48091         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
48092         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
48093         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
48094
48095 2009-08-14  Eric Blake  <ebb9@byu.net>
48096
48097         maint.mk: simplify update-copyright rule
48098         * top/maint.mk (update-copyright-local): Delete, and document how
48099         to do it in cfg.mk instead.
48100         (update-copyright-exclude-regexp): Delete, and document how to do
48101         it in .x-update-copyright instead.
48102         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
48103         exclude ChangeLog.
48104
48105 2009-08-14  Bruno Haible  <bruno@clisp.org>
48106
48107         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
48108
48109 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48110
48111         maint.mk: support update-copyright-env
48112         * top/maint.mk (update-copyright-env): Define place-holder.
48113         (update-copyright): Expand $(update-copyright-env) before
48114         invoking update-copyright.
48115
48116 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48117
48118         update-copyright: implement forced reformatting
48119         * build-aux/update-copyright: Implement and document
48120         UPDATE_COPYRIGHT_FORCE.
48121         * tests/test-update-copyright.sh: Test it.
48122
48123 2009-08-14  Eric Blake  <ebb9@byu.net>
48124         and Bruno Haible  <bruno@clisp.org>
48125
48126         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
48127         * tests/test-locale.c: Revert previous patch related to NULL.
48128         * tests/test-stdio.c: Likewise.
48129         * tests/test-stdlib.c: Likewise.
48130         * tests/test-string.c: Likewise.
48131         * tests/test-unistd.c: Likewise.
48132         * modules/time-tests (Depends-on): Add verify.
48133         * modules/wchar-tests (Depends-on): Likewise.
48134         * tests/test-time.c: Test for NULL compliance.
48135         * tests/test-wchar.c: Likewise.
48136         * modules/locale (Depends-on): Add stddef.
48137         * modules/stdio (Depends-on): Likewise.
48138         * modules/stdlib (Depends-on): Likewise.
48139         * modules/string (Depends-on): Likewise.
48140         * modules/time (Depends-on): Likewise.
48141         * modules/unistd (Depends-on): Likewise.
48142         * modules/wchar (Depends-on): Likewise.
48143         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
48144         * lib/stdlib.in.h (includes): Likewise.
48145         * lib/string.in.h (includes): Likewise.
48146         * lib/time.in.h (includes): Likewise.
48147         * lib/unistd.in.h (includes): Likewise.
48148         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48149         replaced.
48150         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48151         * m4/stddef_h.m4: New file.
48152         * modules/stddef: Likewise.
48153         * lib/stddef.in.h: Likewise.
48154         * modules/stddef-tests: Likewise.
48155         * tests/test-stddef.c: Likewise.
48156         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48157         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48158         * doc/posix-headers/locale.texi (locale.h): Likewise.
48159         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48160         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48161         * doc/posix-headers/string.texi (string.h): Likewise.
48162         * doc/posix-headers/time.texi (time.h): Likewise.
48163         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48164         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48165
48166 2009-08-14  Eric Blake  <ebb9@byu.net>
48167
48168         doc: improve git diff of texinfo files
48169         * .gitattributes: Add rule for *.texi files, with hint on how to
48170         use it.
48171         Copied from m4, and based on a report by Bruno Haible.
48172
48173 2009-08-14  Bruno Haible  <bruno@clisp.org>
48174
48175         Disable multithread support by default on Cygwin 1.5.x for real.
48176         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48177
48178 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48179
48180         update-copyright: much ado about intervals
48181         * build-aux/update-copyright: Implement and document
48182         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48183         of copyright year intervals.
48184         Also, document UPDATE_COPYRIGHT_YEAR.
48185         * tests/test-update-copyright.sh: Test it.
48186
48187         update-copyright: convert 2-digit to 4-digit years
48188         * build-aux/update-copyright: Implement and document.
48189         * tests/test-update-copyright.sh: Update.
48190
48191 2009-08-14  Jim Meyering  <meyering@redhat.com>
48192
48193         test-exclude: avoid coreutils "make check" failure
48194         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48195         just as in test-argmatch.c.
48196
48197 2009-08-13  Eric Blake  <ebb9@byu.net>
48198
48199         test-dup2: fix bad assumption
48200         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48201         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48202
48203         test-version-etc: fix CRLF portability issue
48204         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48205         recognize \r.
48206         * tests/test-argp-version-etc-1.sh: Likewise.
48207
48208         getopt: update client modules
48209         * modules/argp (Depends-on): Use getopt-gnu.
48210         * modules/git-merge-changelog (Depends-on): Likewise.
48211         * modules/long-options (Depends-on): Likewise.
48212         * modules/xstrtol (Depends-on): Likewise.
48213
48214 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48215
48216         * tests/test-version-etc.sh: Don't fail on different
48217         project/version.  Don't fail on CRLF differences.  Rewrite to use
48218         multiple -e instead of multiple sed forks, suggested by Eric Blake
48219         <ebb9@byu.net>.
48220         * tests/test-argp-version-etc-1.sh: Likewise.
48221
48222 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48223
48224         * tests/test-version-etc.sh: Don't fail on different
48225         project/version.
48226
48227 2009-08-12  Bruno Haible  <bruno@clisp.org>
48228
48229         Tests for modules 'getopt-posix', 'getopt-gnu'.
48230         * modules/getopt-posix-tests: New file.
48231         * tests/test-getopt.c: New file.
48232         * tests/test-getopt.h: New file.
48233         * tests/test-getopt_long.h: New file.
48234
48235         New modules 'getopt-posix', 'getopt-gnu'.
48236         * modules/getopt-gnu: New file, renamed from modules/getopt.
48237         * modules/getopt-posix: New file.
48238         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48239         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48240         (gl_GETOPT): Remove macro.
48241         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48242         Disable the test against BSD systems that declare optreset. Test
48243         against mingw bug. Test against lack of support of optional arguments
48244         on many platforms.
48245         * doc/glibc-headers/getopt.texi: Update module name and list of
48246         relevant platforms.
48247         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48248         'getopt-gnu' and more portability problems.
48249         * NEWS: Mention the changes.
48250
48251 2009-08-12  Bruno Haible  <bruno@clisp.org>
48252
48253         Ensure that optarg etc. get declared by <unistd.h>.
48254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48255         AC_USE_SYSTEM_EXTENSIONS.
48256         * modules/getopt (Depends-on): Add 'extensions'.
48257
48258 2009-08-12  Bruno Haible  <bruno@clisp.org>
48259
48260         Avoid test link errors.
48261         * modules/pipe-filter-ii-tests (Makefile.am): Define
48262         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48263         * modules/pipe-filter-gi-tests (Makefile.am): Define
48264         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48266
48267 2009-08-12  Bruno Haible  <bruno@clisp.org>
48268
48269         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48270         gl_GETOPT_SUBSTITUTE before.
48271         (gl_GETOPT): Use it.
48272         * m4/argp.m4 (gl_ARGP): Update.
48273         Reported by Sergey Poznyakoff.
48274
48275         * m4/getopt.m4: Reorder macros.
48276         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48277         (gl_GETOPT_SUBSTITUTE): Remove macro.
48278
48279 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48280
48281         Minor improvement in gitlog-to-changelog
48282
48283         * build-aux/gitlog-to-changelog: New option `--format' makes
48284         output format string configurable.
48285
48286 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48287
48288         Optimize exclude: use hash tables for non-wildcard patterns.
48289
48290         * lib/exclude.c: Include hash.h and mbuiter.h
48291         (struct exclude_pattern, exclude_segment): New data types.
48292         (struct exclude): Rewrite.
48293         (fnmatch_pattern_has_wildcards): New function.
48294         (new_exclude_segment, free_exclude_segment): New functions.
48295         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48296         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48297         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48298         * modules/exclude: Depend on hash and mbuiter.
48299
48300         * modules/exclude-tests: New file.
48301         * tests/test-exclude.c: New file.
48302         * tests/test-exclude1.sh: New file.
48303         * tests/test-exclude2.sh: New file.
48304         * tests/test-exclude3.sh: New file.
48305         * tests/test-exclude4.sh: New file.
48306         * tests/test-exclude5.sh: New file.
48307         * tests/test-exclude6.sh: New file.
48308         * tests/test-exclude7.sh: New file.
48309
48310 2009-08-12  Bruno Haible  <bruno@clisp.org>
48311
48312         Ensure that getopt() gets declared by <unistd.h>.
48313         * lib/unistd.in.h: Conditionally include getopt.h.
48314         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48315         Set GNULIB_UNISTD_H_GETOPT.
48316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48317         GNULIB_UNISTD_H_GETOPT.
48318         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48319
48320 2009-08-12  Bruno Haible  <bruno@clisp.org>
48321
48322         Clarify logic.
48323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48324         gl_replace_getopt instead of GETOPT_H.
48325
48326 2009-08-12  Bruno Haible  <bruno@clisp.org>
48327
48328         * m4/getopt.m4: Add comments.
48329
48330 2009-08-12  Bruno Haible  <bruno@clisp.org>
48331
48332         Disable multithread support by default on Cygwin 1.5.x.
48333         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48334         set gl_use_threads=no if not specified otherwise.
48335
48336 2009-08-11  Bruno Haible  <bruno@clisp.org>
48337
48338         Avoid compilation error on NetBSD 5.0.
48339         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48340         * tests/test-stdio.c: Likewise.
48341         * tests/test-stdlib.c: Likewise.
48342         * tests/test-string.c: Likewise.
48343         * tests/test-unistd.c: Likewise.
48344         Reported by Greg Troxel <gdt@ir.bbn.com>
48345         at <https://savannah.gnu.org/support/?106973>.
48346
48347 2009-08-11  Bruno Haible  <bruno@clisp.org>
48348
48349         * modules/dup2-tests (Depends-on): Remove close.
48350
48351         Undo 2009-07-19 commit.
48352         * modules/acl-tests (Depends-on): Remove close.
48353         * modules/binary-io-tests (Depends-on): Likewise.
48354         * modules/closein-tests (Depends-on): Likewise.
48355         * modules/flock-tests (Depends-on): Likewise.
48356         * modules/fsync-tests (Depends-on): Likewise.
48357         * modules/lseek-tests (Depends-on): Likewise.
48358         * modules/pipe-tests (Depends-on): Likewise.
48359         * modules/posix_spawn-tests (Depends-on): Likewise.
48360         * modules/posix_spawnp-tests (Depends-on): Likewise.
48361         * modules/stat-time-tests (Depends-on): Likewise.
48362         * modules/yesno-tests (Depends-on): Likewise.
48363
48364 2009-08-10  Bruno Haible  <bruno@clisp.org>
48365
48366         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48367
48368 2009-08-10  Bruno Haible  <bruno@clisp.org>
48369
48370         Fix a gcc warning.
48371         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48372
48373 2009-08-10  Bruno Haible  <bruno@clisp.org>
48374
48375         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48376         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48377         not only the first time.
48378         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48379         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48380         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48381         is 1, not only the the first time.
48382
48383 2009-08-10  Bruno Haible  <bruno@clisp.org>
48384
48385         Make it possible to use module 'gethostname' without module 'close'.
48386         * lib/unistd.in.h (close): Evoke a link error only if
48387         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48389         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48390         * modules/unistd (Makefile.am): Substitute
48391         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48392         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48393         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48394         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48395         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48396         * modules/sys_ioctl (Makefile.am): Substitute
48397         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48398         * modules/socket (configure.ac): On native Windows, set
48399         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48400         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48401         Reported by Sam Steingold <sds@gnu.org>.
48402
48403 2009-08-10  Bruno Haible  <bruno@clisp.org>
48404
48405         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48406         * modules/ioctl (configure.ac): Likewise.
48407
48408 2009-08-10  Bruno Haible  <bruno@clisp.org>
48409
48410         Avoid collision between gnulib wrapper and libintl wrapper.
48411         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48412         already defined in intl/printf.c.
48413         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48414         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48415
48416 2009-08-09  Bruno Haible  <bruno@clisp.org>
48417
48418         Make <sys/select.h> really self-contained, also on Solaris 10.
48419         * lib/sys_select.in.h: Include <string.h>.
48420         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48421         Solaris 10 problem.
48422         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48423         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48424         Reported by Jim Meyering.
48425
48426 2009-08-09  Bruno Haible  <bruno@clisp.org>
48427
48428         Avoid warnings from 'aclocal' that are due to a use of macro name
48429         AM_XGETTEXT_OPTION that is not defined in automake.
48430         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48431         automake.
48432         * modules/error (configure.ac): Likewise.
48433         * modules/propername (configure.ac): Likewise.
48434         * modules/vasprintf (configure.ac): Likewise.
48435         * modules/verror (configure.ac): Likewise.
48436         * modules/xprintf (configure.ac): Likewise.
48437         * modules/xvasprintf (configure.ac): Likewise.
48438
48439 2009-08-08  Bruno Haible  <bruno@clisp.org>
48440
48441         Avoid compilation error in C++ mode.
48442         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48443         Reported by Sam Steingold <sds@gnu.org>.
48444
48445 2009-08-08  Bruno Haible  <bruno@clisp.org>
48446
48447         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48448         for the various Unix platforms.
48449         * doc/posix-headers/limits.texi: Update platforms list regarding
48450         HOST_NAME_MAX.
48451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48452
48453 2009-08-07  Jim Meyering  <meyering@redhat.com>
48454
48455         selinux-at: fix typo in a comment
48456         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48457         Spotted by Paolo Bonzini.
48458
48459         selinux-at: remove redundant m4 code, add documentation
48460         * modules/selinux-at (configure.ac): Remove redundant code.
48461         LIB_SELINUX is already set via the dependent module, selinux-h.
48462         (Include): Add quotes around selinux-at.h.
48463         * lib/selinux-at.h: Add documentation.
48464         Reported by Bruno Haible in
48465         http://marc.info/?l=gnulib-bug&m=124958988300749
48466
48467 2009-08-07  Bruno Haible  <bruno@clisp.org>
48468
48469         Avoid link error on MacOS X 10.3 and 10.4.
48470         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48471         on non-ELF systems.
48472         * lib/argp-pv.c (argp_program_version): Likewise.
48473         Reported by Simon Josefsson.
48474
48475 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48476
48477         * tests/test-version-etc.sh: Use $EXEEXT.
48478
48479 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48480
48481         update-copyright: update documentation to point to maint.mk
48482         * build-aux/update-copyright: Here.
48483
48484 2009-08-06  Jim Meyering  <meyering@redhat.com>
48485
48486         maint.mk: support update-copyright-local
48487         * top/maint.mk (update-copyright-local): Define place-holder.
48488         (update-copyright): Depend on $(update-copyright-local).
48489
48490 2009-08-06  Jim Meyering  <meyering@redhat.com>
48491
48492         selinux-at: new module
48493         Initially written for coreutils, this module will soon be
48494         used by findutils, too.
48495         * MODULES.html.sh [Misc]: Add selinux-at.
48496         * lib/selinux-at.h: New file, from coreutils.
48497         * lib/selinux-at.c: Likewise.
48498         * modules/selinux-at: Likewise.
48499         (License): Change from LGPL to GPL, since it depends
48500         on the GPL'd openat module.
48501
48502         doc: update README
48503         * README: Remove references to cogito.
48504         Remove cvs-repo-updating instructions from 2007.
48505         Don't imply that CVS is better if you have limited disk space.
48506
48507 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48508
48509         update-copyright: support C-style comments
48510         * build-aux/update-copyright: Implement and document.
48511         * tests/test-update-copyright.sh: Test.
48512
48513 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48514
48515         update-copyright: support omitted "(C)"
48516         * build-aux/update-copyright: Implement and document.  Also,
48517         allow variable whitespace before "(C)".
48518         * tests/test-update-copyright.sh: Test.
48519
48520 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48521
48522         update-copyright: don't trip on non-FSF copyright statements
48523         * build-aux/update-copyright: Fix so that the first correctly
48524         formatted FSF copyright statement is recognized no matter what
48525         appears before it.  Update documentation.
48526         * tests/test-update-copyright.sh: Test that.
48527
48528 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48529
48530         update-copyright: clean up code a little
48531         * build-aux/update-copyright: Append "_re" to the name of any
48532         variable holding a regular expression.
48533         Replace "old" and "new" with "stmt" in variable names.
48534         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48535         handled correctly.
48536         Format code more consistently.
48537
48538 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48539
48540         update-copyright-tests: improve portability
48541         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48542         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48543
48544 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48545
48546         update-copyright: support @copyright{} and &copy;
48547         * build-aux/update-copyright: Implement and document.
48548         * tests/test-update-copyright.sh: Test.
48549
48550 2009-08-04  Jim Meyering  <meyering@redhat.com>
48551
48552         update-copyright-tests: correctly test EOL=\r\n handling
48553         * tests/test-update-copyright.sh: Put \r at the end of some lines
48554         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48555
48556         maint.mk: make update-copyright exclusion list more configurable
48557         * top/maint.mk (update-copyright): Default to excluding COPYING,
48558         but allow an override, in case someone does want to update that file.
48559
48560         maint.mk: don't update copyright date in COPYING
48561         * top/maint.mk (update-copyright): Exclude COPYING.
48562
48563         maint.mk: add a copyright-updating rule
48564         * top/maint.mk (update-copyright): New rule.
48565         Derived from coreutils/Makefile.am.
48566
48567         update-copyright: rename some variables
48568         * build-aux/update-copyright: Rename a few variables for clarity.
48569         Tweak syntax.  List Joel E. Denny as coauthor.
48570
48571 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48572
48573         update-copyright: fix bug for 2-digit last year and add tests
48574         * build-aux/update-copyright: Fix bug.
48575         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48576         specified.
48577         * modules/update-copyright-tests: New
48578         * tests/test-update-copyright.sh: New.
48579
48580 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48581
48582         update-copyright: handle leading tabs in line prefix
48583         * build-aux/update-copyright: Count leading tabs as 8 spaces
48584         when computing margin.  This helps with the formatting of
48585         ChangeLogs, for example.
48586         Fix documentation a little.
48587
48588 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48589
48590         update-copyright: support EOL=\r\n
48591         * build-aux/update-copyright: Implement that.
48592
48593 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48594
48595         update-copyright: automatically format copyright statements
48596         * build-aux/update-copyright: Implement that.
48597         Also, be a little more predictable and safer by always failing
48598         when the full copyright format is not perfectly recognized as an
48599         unbroken whole.  Discussed at
48600         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48601         Rewrite documentation.
48602
48603 2009-08-03  Bruno Haible  <bruno@clisp.org>
48604
48605         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48606
48607 2009-08-02  Bruno Haible  <bruno@clisp.org>
48608
48609         Tests for module 'uname'.
48610         * modules/uname-tests: New file.
48611         * tests/test-uname.c: New file.
48612
48613         New module 'uname'.
48614         * lib/uname.c: New file.
48615         * m4/uname.m4: New file.
48616         * modules/uname: New file.
48617         * doc/posix-functions/uname.texi: Mention the new module.
48618
48619 2009-08-02  Bruno Haible  <bruno@clisp.org>
48620
48621         Tests for module 'sys_utsname'.
48622         * modules/sys_utsname-tests: New file.
48623         * tests/test-sys_utsname.c: New file.
48624
48625         New module 'sys_utsname'.
48626         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48627         * m4/sys_utsname_h.m4: New file.
48628         * modules/sys_utsname: New file.
48629         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48630
48631 2009-08-02  Bruno Haible  <bruno@clisp.org>
48632
48633         Implicitly initialize the sockets library.
48634         * lib/gethostname.c: Include sockets.h.
48635         (rpl_gethostname): Invoke gl_sockets_startup.
48636         * lib/socket.c: Include sockets.h.
48637         (rpl_socket): Invoke gl_sockets_startup.
48638         * modules/gethostname (Depends-on): Add sockets.
48639         * modules/socket (Depends-on): Likewise.
48640         * tests/test-poll.c: Don't include sockets.h.
48641         (main): Don't invoke gl_sockets_startup.
48642         * tests/test-select.c: Don't include sockets.h.
48643         (main): Don't invoke gl_sockets_startup.
48644
48645 2009-08-02  Bruno Haible  <bruno@clisp.org>
48646
48647         Allow multiple calls to gl_sockets_startup.
48648         * lib/sockets.c (initialized_sockets_version): New variable.
48649         (gl_sockets_startup): Do nothing if already called for this or a higher
48650         version.
48651         (gl_sockets_cleanup): Reset initialized_sockets_version.
48652
48653 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48654
48655         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48656         different project/version.
48657
48658 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48659             Bruno Haible  <bruno@clisp.org>
48660
48661         Tests for module 'pipe-filter-gi'.
48662         * modules/pipe-filter-gi-tests: New file.
48663         * tests/test-pipe-filter-gi1.sh: New file.
48664         * tests/test-pipe-filter-gi1.c: New file.
48665         * tests/test-pipe-filter-gi2.sh: New file.
48666         * tests/test-pipe-filter-gi2-main.c: New file.
48667         * tests/test-pipe-filter-gi2-child.c: New file.
48668
48669         New module 'pipe-filter-gi'.
48670         * lib/pipe-filter-gi.c: New file.
48671         * modules/pipe-filter-gi: New file.
48672
48673 2009-08-02  Bruno Haible  <bruno@clisp.org>
48674             Paolo Bonzini  <bonzini@gnu.org>
48675
48676         Tests for module 'pipe-filter-ii'.
48677         * modules/pipe-filter-ii-tests: New file.
48678         * tests/test-pipe-filter-ii1.sh: New file.
48679         * tests/test-pipe-filter-ii1.c: New file.
48680         * tests/test-pipe-filter-ii2.sh: New file.
48681         * tests/test-pipe-filter-ii2-main.c: New file.
48682         * tests/test-pipe-filter-ii2-child.c: New file.
48683
48684         New module 'pipe-filter-ii'.
48685         * lib/pipe-filter.h: New file.
48686         * lib/pipe-filter-ii.c: New file.
48687         * lib/pipe-filter-aux.h: New file.
48688         * modules/pipe-filter-ii: New file.
48689
48690 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48691
48692         * lib/gc-libgcrypt.c: Change copyright to FSF.
48693         * lib/gc-gnulib.c: Likewise.
48694
48695 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48696
48697         * lib/gethostname.c: Include limits.h.
48698
48699 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48700             Bruno Haible  <bruno@clisp.org>
48701
48702         Ensure HOST_NAME_MAX as part of the gethostname module.
48703         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48704         define also HOST_NAME_MAX.
48705         * tests/test-gethostname.c: Include <limits.h>.
48706         (main): Check also HOST_NAME_MAX.
48707         * doc/posix-headers/limits.texi: Document the mingw problem.
48708
48709 2009-08-02  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48712         Add comments.
48713
48714 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48715
48716         * lib/gethostname.c: Add Windows wrapper.
48717         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48718         * modules/gethostname: Depend on sys_socket & errno, for also
48719         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48720         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48721
48722 2009-07-31  Jim Meyering  <meyering@redhat.com>
48723
48724         getloadavg: fix symbol name in comment
48725         * lib/getloadavg.c: Correct a typo I introduced when adding
48726         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48727         Matt Kraai spotted the problem.
48728
48729 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48730
48731         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48732         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48733         code also if ! defined N_NAME_POINTER.
48734         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48735         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48736         but the n_name member is a 12-byte array.
48737
48738 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48739
48740         update-copyright: generalize comment handling
48741         * build-aux/update-copyright: Handle copyright statements
48742         within more comment styles.
48743         Document usage.
48744         Report any file with an external copyright holder or parse failure.
48745
48746 2009-07-29  Jim Meyering  <meyering@redhat.com>
48747
48748         mktime: correct setting of REPLACE_MKTIME
48749         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48750
48751         update-copyright: new module
48752         * modules/update-copyright: New file.
48753         * build-aux/update-copyright: New file.
48754         * MODULES.html.sh (maint+release support): Add update-copyright.
48755
48756 2009-07-27  Bruno Haible  <bruno@clisp.org>
48757
48758         Fix compilation error when <ctime> is used and mktime is replaced.
48759         * lib/time.in.h (mktime): New declaration.
48760         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48761         REPLACE_MKTIME instead of defining mktime in config.h.
48762         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48763         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48764         Reported by Ross McFarland <rwmcfa1@neces.com>.
48765
48766 2009-07-27  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48769         Reported by Matt Kraai <mkraai@beckman.com>.
48770
48771 2009-07-25  Jim Meyering  <meyering@redhat.com>
48772
48773         maint.mk: avoid warnings about missing files
48774         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48775         diagnostic when .prev-version does not exist.
48776         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48777         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48778         nonexistent cfg.mk.
48779         Suggestions from Simon Josefsson.
48780
48781 2009-07-25  Bruno Haible  <bruno@clisp.org>
48782
48783         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48784         defined as macros. Needed on QNX 6.4.1.
48785         Reported by Matt Kraai <mkraai@beckman.com>.
48786
48787 2009-07-23  Jim Meyering  <meyering@redhat.com>
48788
48789         maint.mk: invoke "make dist" with a working value of XZ_OPT
48790         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48791
48792 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48793
48794         Make fseeko.c compile on QNX.
48795         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48796
48797 2009-07-22  Peter Simons  <simons@cryp.to>
48798
48799         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48800         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48801         * lib/md4.h: Likewise.
48802         * lib/md5.h: Likewise.
48803         * lib/sha1.h: Likewise.
48804         * lib/sha256.h: Likewise.
48805         * lib/sha512.h: Likewise.
48806
48807         tests-sha1: don't assign literal string to 'char *' variable
48808         * tests/test-sha1.c (main): Declare locals with "const" to match
48809         attributes of the right hand side.
48810
48811 2009-07-21  Eric Blake  <ebb9@byu.net>
48812
48813         dup2: fix more mingw problems
48814         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48815         fd to itself.
48816         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48817         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48818         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48819         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48820         care of mingw bugs.
48821
48822 2009-07-21  Jim Meyering  <meyering@redhat.com>
48823
48824         vc-list-files: avoid failure when /bin/sh is dash
48825         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48826         On some Debian based systems, /bin/sh is a symlink to dash, and running
48827         this command would omit the "/" following each 'tests' prefix:
48828           dash -x build-aux/vc-list-files -C . tests
48829         That is because bash and dash work differently:
48830           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48831           bash ok
48832           dash odd
48833
48834 2009-07-21  Eric Blake  <ebb9@byu.net>
48835
48836         dup2-tests: test previous patch
48837         * modules/dup2-tests: New file.
48838         * tests/test-dup2.c: Likewise.
48839         * tests/test-open.c (main): Avoid unspecified behavior.
48840         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48841         test.
48842
48843         dup2: work around mingw and cygwin 1.5 bug
48844         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48846         * modules/unistd (Makefile.am): Substitute it.
48847         * lib/unistd.in.h (dup2): Declare the replacement.
48848         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48849         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48850         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48851         * modules/execute (Depends-on): Add dup2.
48852         * modules/fseterr (Depends-on): Likewise.
48853         * modules/pipe (Depends-on): Likewise.
48854         * modules/posix_spawn-internal (Depends-on): Likewise.
48855
48856 2009-07-21  Bruno Haible  <bruno@clisp.org>
48857
48858         * modules/.gitattributes: New file.
48859
48860 2009-07-20  Bruno Haible  <bruno@clisp.org>
48861
48862         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48863         (main): Use it.
48864
48865 2009-07-20  Eric Blake  <ebb9@byu.net>
48866
48867         test-pipe: make a bit more robust.
48868         * tests/test-pipe.c (myerr): Allow error messages regardless of
48869         what we do to stderr.
48870         (test_pipe): Rearrange to avoid deadlock.
48871         (child_main): Try a larger read, to ensure we avoided deadlock.
48872         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48873         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48874         if misused.
48875
48876 2009-07-19  Jim Meyering  <meyering@redhat.com>
48877
48878         fts: avoid false-positive cycle-detection
48879         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48880         for each new command line argument.
48881
48882 2009-07-19  Bruno Haible  <bruno@clisp.org>
48883
48884         Fix build error on mingw with the modules sys_select and unistd.
48885         * modules/acl-tests (Depends-on): Add close.
48886         * modules/binary-io-tests (Depends-on): Likewise.
48887         * modules/closein-tests (Depends-on): Likewise.
48888         * modules/flock-tests (Depends-on): Likewise.
48889         * modules/fsync-tests (Depends-on): Likewise.
48890         * modules/lseek-tests (Depends-on): Likewise.
48891         * modules/pipe-tests (Depends-on): Likewise.
48892         * modules/posix_spawn-tests (Depends-on): Likewise.
48893         * modules/posix_spawnp-tests (Depends-on): Likewise.
48894         * modules/stat-time-tests (Depends-on): Likewise.
48895         * modules/yesno-tests (Depends-on): Likewise.
48896
48897 2009-07-19  Bruno Haible  <bruno@clisp.org>
48898
48899         Unify conditionals.
48900         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48901         macros, not at the compiler macros.
48902         * lib/pipe.c: Likewise.
48903         * lib/execute.c: Likewise.
48904         * lib/spawni.c: Likewise.
48905
48906 2009-07-19  Bruno Haible  <bruno@clisp.org>
48907
48908         Fix handling of closed stdin/stdout/stderr on mingw.
48909         * lib/w32spawn.h: Include unistd.h.
48910         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48911         file descriptor with O_NOINHERIT flag.
48912         (fd_safer_noinherit): New function, based on fd-safer.c.
48913         (dup_safer_noinherit): New function, based on dup-safer.c.
48914         (undup_safer_noinherit): New function.
48915         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48916         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48917         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48918         instead of fd_safer.
48919         * tests/test-pipe.c: Include <windows.h>.
48920         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48921         result.
48922
48923         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48924         from main.
48925         (test_pipe): Pass an extra argument for disambiguation.
48926         (main): Invoke parent_main or child_main.
48927
48928         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48929         consistently.
48930
48931 2009-07-18  Eric Blake  <ebb9@byu.net>
48932
48933         test-pipe: fix mingw build
48934         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48935
48936 2009-07-18  Bruno Haible  <bruno@clisp.org>
48937
48938         * modules/pipe-tests (Makefile.am): Fix typo.
48939
48940 2009-07-18  Eric Blake  <ebb9@byu.net>
48941
48942         error: fix mingw build
48943         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48944         Reported by Bruno Haible.
48945
48946         error: avoid undefined use of stdout
48947         * lib/error.c (error, error_at_line): Check that fd 1 is open
48948         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48949         is handling faults and the close_stdout module wants to report the
48950         detection of closed stdout as an error.
48951
48952 2009-07-17  Eric Blake  <ebb9@byu.net>
48953
48954         pipe: be robust in face of closed fds
48955         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48956         should cause child to misbehave.
48957         * modules/pipe-tests: New module.
48958         * tests/test-pipe.c: New file.
48959         * tests/test-pipe.sh: New file.
48960         Reported by Akim Demaille.
48961
48962 2009-07-14  Bruno Haible  <bruno@clisp.org>
48963
48964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48965         Reported by anonymous kc.
48966
48967 2009-07-07  Jim Meyering  <meyering@redhat.com>
48968
48969         maint.mk: don't look for translatable strings in *.m4 or *.mk
48970         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48971         when searching for translatable strings.
48972
48973 2009-07-05  Jim Meyering  <meyering@redhat.com>
48974
48975         remove superfluous parentheses in STREQ definition
48976         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48977         * lib/getugroups.c (STREQ): Likewise.
48978         * lib/fnmatch.c (STREQ): Likewise.
48979         Spotted by Bruno Haible.
48980
48981 2009-07-04  Jim Meyering  <meyering@redhat.com>
48982
48983         argv-iter: new module
48984         * MODULES.html.sh: Add argv-iter.
48985         * lib/argv-iter.c, lib/argv-iter.h: New files.
48986         * modules/argv-iter: New file.
48987         * modules/argv-iter-tests: New file.
48988         * tests/test-argv-iter.c: Test it.
48989
48990 2009-07-04  Bruno Haible  <bruno@clisp.org>
48991
48992         Fix assertion.
48993         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48994         contains more exact copies of a given entry than file2, leave the extra
48995         copies unpaired rather than aborting.
48996         Reported by Eric Blake.
48997
48998 2009-07-02  Bruno Haible  <bruno@clisp.org>
48999
49000         Speedup git-merge-changelog for git cherry-pick.
49001         * lib/git-merge-changelog.c (struct entries_mapping): New type.
49002         (entries_mapping_get): New function, extracted from compute_mapping.
49003         (entries_mapping_reverse_get): New function.
49004         (compute_mapping): Add a 'full' argument. Return the result in a
49005         'struct entries_mapping'.
49006         (main): Update. Access the mappings through entries_mapping_get.
49007         Reported by Eric Blake.
49008
49009 2009-07-02  Bruno Haible  <bruno@clisp.org>
49010
49011         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
49012         best_i.
49013
49014 2009-07-02  Bruno Haible  <bruno@clisp.org>
49015
49016         Speed up approximate search for matching ChangeLog entries.
49017         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
49018         argument. Call fstrcmp_bounded instead of fstrcmp.
49019         (compute_mapping, try_split_merged_entry, main): Update callers.
49020
49021 2009-07-02  Bruno Haible  <bruno@clisp.org>
49022
49023         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
49024
49025 2009-06-30  Bruno Haible  <bruno@clisp.org>
49026
49027         Reduce the number of uc_is_cased calls.
49028         * lib/unicase.h (casing_suffix_context_t): Add
49029         'first_char_except_ignorable' field.
49030         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
49031         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
49032         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
49033         Update initializer.
49034         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
49035         case-ignorable characters.
49036         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
49037         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
49038         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
49039         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
49040         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
49041
49042 2009-06-30  Bruno Haible  <bruno@clisp.org>
49043
49044         Tests for module 'unicase/ignorable'.
49045         * modules/unicase/ignorable-tests: New file.
49046         * tests/unicase/test-ignorable.c: New file, generated by
49047         gen-uni-tables.
49048
49049         Tests for module 'unicase/cased'.
49050         * modules/unicase/cased-tests: New file.
49051         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
49052         * tests/unicase/test-predicate-part1.h: New file, derived from
49053         tests/unictype/test-predicate-part1.h.
49054         * tests/unicase/test-predicate-part2.h: New file, same as
49055         tests/unictype/test-predicate-part2.h.
49056
49057         Fix evaluation of "Before C" condition of FINAL_SIGMA.
49058         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
49059         (output_casing_properties): New function.
49060         (main): Call it.
49061         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
49062         * lib/unicase/cased.c: Include unictype/bitmap.h.
49063         (uc_is_cased): Define through a bitmap lookup.
49064         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
49065         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
49066         (uc_is_case_ignorable): Define through a bitmap lookup.
49067         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
49068         lib/unictype/bitmap.h.
49069         (Depends-on): Add inline. Clean up.
49070         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
49071         lib/unictype/bitmap.h.
49072         (Depends-on): Add inline. Clean up.
49073         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
49074         recognition.
49075         * tests/unicase/test-u16-tolower.c (main): Likewise.
49076         * tests/unicase/test-u32-tolower.c (main): Likewise.
49077
49078 2009-06-30  Bruno Haible  <bruno@clisp.org>
49079
49080         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
49081         * lib/unicase/u16-casemap.c: Likewise.
49082         * lib/unicase/u32-casemap.c: Likewise.
49083
49084 2009-06-29  Bruno Haible  <bruno@clisp.org>
49085
49086         Define u32_casefold as a wrapper around u32_ct_casefold.
49087         * lib/unicase/u32-casefold.c: Update.
49088         * modules/unicase/u32-casefold (Depends-on): Add
49089         unicase/u32-ct-casefold, unicase/empty-prefix-context,
49090         unicase/empty-suffix-context. Clean up.
49091
49092         Define u16_casefold as a wrapper around u16_ct_casefold.
49093         * lib/unicase/u16-casefold.c: Update.
49094         * modules/unicase/u16-casefold (Depends-on): Add
49095         unicase/u16-ct-casefold, unicase/empty-prefix-context,
49096         unicase/empty-suffix-context. Clean up.
49097
49098         Define u8_casefold as a wrapper around u8_ct_casefold.
49099         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
49100         * lib/unicase/u8-casefold.c: Update.
49101         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
49102         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49103
49104         Define u32_totitle as a wrapper around u32_ct_totitle.
49105         * lib/unicase/u32-totitle.c: Update.
49106         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
49107         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49108
49109         Define u16_totitle as a wrapper around u16_ct_totitle.
49110         * lib/unicase/u16-totitle.c: Update.
49111         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
49112         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49113
49114         Define u8_totitle as a wrapper around u8_ct_totitle.
49115         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
49116         functions.
49117         (FUNC): Delegate to U_CT_TOTITLE.
49118         * lib/unicase/u8-totitle.c: Update.
49119         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
49120         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49121
49122         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
49123         invocation.
49124         * modules/unicase/u32-tolower (Depends-on): Add
49125         unicase/empty-prefix-context, unicase/empty-suffix-context.
49126
49127         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
49128         invocation.
49129         * modules/unicase/u16-tolower (Depends-on): Add
49130         unicase/empty-prefix-context, unicase/empty-suffix-context.
49131
49132         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
49133         * modules/unicase/u8-tolower (Depends-on): Add
49134         unicase/empty-prefix-context, unicase/empty-suffix-context.
49135
49136         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
49137         invocation.
49138         * modules/unicase/u32-toupper (Depends-on): Add
49139         unicase/empty-prefix-context, unicase/empty-suffix-context.
49140
49141         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
49142         invocation.
49143         * modules/unicase/u16-toupper (Depends-on): Add
49144         unicase/empty-prefix-context, unicase/empty-suffix-context.
49145
49146         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49147         * modules/unicase/u8-toupper (Depends-on): Add
49148         unicase/empty-prefix-context, unicase/empty-suffix-context.
49149
49150         New module 'unicase/u32-ct-casefold'.
49151         * lib/unicase/u32-ct-casefold.c: New file.
49152         * modules/unicase/u32-ct-casefold: New file.
49153
49154         New module 'unicase/u16-ct-casefold'.
49155         * lib/unicase/u16-ct-casefold.c: New file.
49156         * modules/unicase/u16-ct-casefold: New file.
49157
49158         New module 'unicase/u8-ct-casefold'.
49159         * lib/unicase/u8-ct-casefold.c: New file.
49160         * lib/unicase/u-ct-casefold.h: New file, derived from
49161         lib/unicase/u-casefold.h.
49162         * modules/unicase/u8-ct-casefold: New file.
49163
49164         New module 'unicase/u32-ct-totitle'.
49165         * lib/unicase/u32-ct-totitle.c: New file.
49166         * modules/unicase/u32-ct-totitle: New file.
49167
49168         New module 'unicase/u16-ct-totitle'.
49169         * lib/unicase/u16-ct-totitle.c: New file.
49170         * modules/unicase/u16-ct-totitle: New file.
49171
49172         New module 'unicase/u8-ct-totitle'.
49173         * lib/unicase/u8-ct-totitle.c: New file.
49174         * lib/unicase/u-ct-totitle.h: New file, derived from
49175         lib/unicase/u-totitle.h.
49176         * modules/unicase/u8-ct-totitle: New file.
49177
49178         New module 'unicase/u32-ct-tolower'.
49179         * lib/unicase/u32-ct-tolower.c: New file.
49180         * modules/unicase/u32-ct-tolower: New file.
49181
49182         New module 'unicase/u16-ct-tolower'.
49183         * lib/unicase/u16-ct-tolower.c: New file.
49184         * modules/unicase/u16-ct-tolower: New file.
49185
49186         New module 'unicase/u8-ct-tolower'.
49187         * lib/unicase/u8-ct-tolower.c: New file.
49188         * modules/unicase/u8-ct-tolower: New file.
49189
49190         New module 'unicase/u32-ct-toupper'.
49191         * lib/unicase/u32-ct-toupper.c: New file.
49192         * modules/unicase/u32-ct-toupper: New file.
49193
49194         New module 'unicase/u16-ct-toupper'.
49195         * lib/unicase/u16-ct-toupper.c: New file.
49196         * modules/unicase/u16-ct-toupper: New file.
49197
49198         New module 'unicase/u8-ct-toupper'.
49199         * lib/unicase/u8-ct-toupper.c: New file.
49200         * modules/unicase/u8-ct-toupper: New file.
49201
49202         Add context arguments to u*_casemap functions.
49203         * lib/unicase/unicasemap.h: Include unicase.h.
49204         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49205         suffix_context arguments.
49206         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49207         functions.
49208         (FUNC): Add prefix_context and suffix_context arguments. Use
49209         uc_is_cased and uc_is_case_ignorable.
49210         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49211         * lib/unicase/u16-casemap.c: Likewise.
49212         * lib/unicase/u32-casemap.c: Likewise.
49213         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49214         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49215         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49216         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49217         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49218         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49219
49220         New module 'unicase/u32-suffix-context'.
49221         * lib/unicase/u32-suffix-context.c: New file.
49222         * modules/unicase/u32-suffix-context: New file.
49223
49224         New module 'unicase/u16-suffix-context'.
49225         * lib/unicase/u16-suffix-context.c: New file.
49226         * modules/unicase/u16-suffix-context: New file.
49227
49228         New module 'unicase/u8-suffix-context'.
49229         * lib/unicase/u8-suffix-context.c: New file.
49230         * lib/unicase/u-suffix-context.h: New file.
49231         * modules/unicase/u8-suffix-context: New file.
49232
49233         New module 'unicase/empty-suffix-context'.
49234         * lib/unicase/empty-suffix-context.c: New file.
49235         * modules/unicase/empty-suffix-context: New file.
49236
49237         New module 'unicase/u32-prefix-context'.
49238         * lib/unicase/u32-prefix-context.c: New file.
49239         * modules/unicase/u32-prefix-context: New file.
49240
49241         New module 'unicase/u16-prefix-context'.
49242         * lib/unicase/u16-prefix-context.c: New file.
49243         * modules/unicase/u16-prefix-context: New file.
49244
49245         New module 'unicase/u8-prefix-context'.
49246         * lib/unicase/u8-prefix-context.c: New file.
49247         * lib/unicase/u-prefix-context.h: New file.
49248         * lib/unicase/context.h: New file.
49249         * modules/unicase/u8-prefix-context: New file.
49250
49251         New module 'unicase/empty-prefix-context'.
49252         * lib/unicase/empty-prefix-context.c: New file.
49253         * modules/unicase/empty-prefix-context: New file.
49254
49255         New module 'unicase/ignorable'.
49256         * lib/unicase/ignorable.c: New file.
49257         * modules/unicase/ignorable: New file.
49258
49259         New module 'unicase/cased'.
49260         * lib/unicase/caseprop.h: New file.
49261         * lib/unicase/cased.c: New file.
49262         * modules/unicase/cased: New file.
49263
49264         New functions for case mapping of substrings.
49265         * lib/unicase.h (casing_prefix_context_t): New type.
49266         (unicase_empty_prefix_context): New variable.
49267         (u8_casing_prefix_context, u16_casing_prefix_context,
49268         u32_casing_prefix_context, u8_casing_prefixes_context,
49269         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49270         declarations.
49271         (casing_suffix_context_t): New type.
49272         (unicase_empty_suffix_context): New variable.
49273         (u8_casing_suffix_context, u16_casing_suffix_context,
49274         u32_casing_suffix_context, u8_casing_suffixes_context,
49275         u16_casing_suffixes_context, u32_casing_suffixes_context,
49276         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49277         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49278         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49279         declarations.
49280
49281 2009-06-28  Jim Meyering  <meyering@redhat.com>
49282
49283         boostrap: indent only with spaces
49284         * build-aux/bootstrap: Indent only with spaces, never TABs.
49285
49286         bootstrap: split long lines
49287         * build-aux/bootstrap: Keep line length < 80.
49288
49289         bootstrap: sync from coreutils
49290         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49291         just as autoreconf does.  Verify a list of prerequisite
49292         package-name,version-number pairs if defined in bootstrap.conf.
49293         Refer to README-prereq, if prerequisites are not satisfied.
49294
49295 2009-06-27  Eric Blake  <ebb9@byu.net>
49296
49297         tests: add test for bogus NULL definition
49298         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49299         * tests/test-stdlib.c: Likewise.
49300         * tests/test-string.c: Likewise.
49301         * tests/test-locale.c: Likewise.
49302         * tests/test-unistd.c: Likewise.
49303         * modules/stdio-tests (Depends-on): Add verify.
49304         * modules/stdlib-tests (Depends-on): Likewise.
49305         * modules/string-tests (Depends-on): Likewise.
49306         * modules/locale-tests (Depends-on): Likewise.
49307         * modules/unistd-tests (Depends-on): Likewise.
49308
49309 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49310
49311         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49312         self-explaining comment.
49313         * m4/selinux-selinux-h: Update serial.
49314         (gl_LIBSELINUX): New macro, adding a warning for missing development
49315         packages to code extracted from...
49316         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49317         Add warning for missing development packages here, too.
49318
49319 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49320
49321         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49322
49323 2009-06-25  Eric Blake  <ebb9@byu.net>
49324
49325         version-etc: fix regression
49326         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49327         gcc.
49328         (version_etc): Use it, to catch bugs with trailing NULL.
49329         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49330         (version_etc_va): Fix logic bug.
49331         * modules/version-etc-tests: Add test.
49332         * tests/test-version-etc.c: New file.
49333         * tests/test-version-etc.sh: Likewise.
49334
49335 2009-06-25  Sam Steingold  <sds@gnu.org>
49336
49337         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49338         mbtowc declaration.
49339
49340 2009-06-25  Eric Blake  <ebb9@byu.net>
49341
49342         fpurge: migrate into <stdio.h>
49343         * lib/fpurge.h: Delete...
49344         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49345         * lib/fpurge.c (fpurge): Change declaring header.
49346         * modules/fpurge (Files): Drop deleted file.
49347         (Depends-on): Add stdio.
49348         (configure.ac): Set witness.
49349         * modules/stdio (Makefile.am): Support fpurge macros.
49350         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49351         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49352         * lib/fflush.c: Update client.
49353         * tests/test-fpurge.c: Likewise.
49354         * NEWS: Mention the change.
49355
49356 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49357
49358         * lib/argp-version-etc.c (program_authors): Add const
49359         qualifier.
49360         * lib/version-etc.c: Fix typos in the comments.
49361         * modules/argp-version-etc: Depends on version-etc.
49362
49363 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49364
49365         argp-version-etc: new module.
49366
49367         * lib/argp-version-etc.c: New file.
49368         * lib/argp-version-etc.h: New file.
49369         * modules/argp-version-etc: New file.
49370         * modules/argp-version-etc-tests: New file.
49371         * tests/test-argp-version-etc.c: New test.
49372         * tests/test-argp-version-etc-1.sh: New test.
49373
49374 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49375
49376         Provide additional interfaces and documentation for version-etc
49377         module.
49378
49379         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49380         interfaces.
49381         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49382         prototypes.
49383
49384 2009-06-24  Bruno Haible  <bruno@clisp.org>
49385
49386         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49387         HAVE_LIB${NAME} macro.
49388         Reported by Sam Steingold <sds@gnu.org>.
49389
49390 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49391
49392         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49393         needed.
49394
49395 2009-06-21  Bruno Haible  <bruno@clisp.org>
49396
49397         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49398         work.
49399         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49400         together with LIB${NAME}, LTLIB${NAME}.
49401         Reported by Sam Steingold <sds@gnu.org>.
49402
49403 2009-06-20  Jim Meyering  <meyering@redhat.com>
49404
49405         tests: make sc_require_test_exit_idiom more generic
49406         * top/maint.mk (Exit_witness_file): New overridable variable.
49407         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49408         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49409
49410 2009-06-19  Jim Meyering  <meyering@redhat.com>
49411
49412         hash: reverse order of src/dst parameters in an internal interface
49413         * lib/hash.c (transfer_entries): Reverse order of parameters to
49414         put DST before SRC.  Adjust callers.
49415
49416         tests: test-hash: avoid wholesale duplication
49417         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49418         Instead, use a loop and add a single conditional.
49419
49420         tests: test-hash: allow seed selection via a command line argument
49421         * tests/test-hash.c (get_seed): New function.
49422         (main): Use it.
49423
49424 2009-06-19  Eric Blake  <ebb9@byu.net>
49425
49426         hash: avoid memory leak on allocation failure
49427         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49428         failure.  Factor repeated algorithm...
49429         (transfer_entries): ...into new helper routine.
49430         (hash_delete): React to hash_rehash return value.
49431
49432         hash: reduce memory pressure in hash_rehash no-op case
49433         * lib/hash.c (next_prime): Avoid overflow.
49434         (hash_initialize): Factor bucket size computation...
49435         (compute_bucket_size): ...into new helper function.
49436         (hash_rehash): Use new function and open coding to reduce memory
49437         pressure, and avoid a memory leak in USE_OBSTACK code.
49438         Reported by Jim Meyering.
49439
49440 2009-06-18  Eric Blake  <ebb9@byu.net>
49441
49442         hash: make rotation more obvious
49443         * modules/hash (Depends-on): Add bitrotate and stdint.
49444         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49445         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49446         (SIZE_MAX): Rely on headers for definition.
49447         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49448         (raw_hasher): Use rotr_sz.
49449         Suggested by Jim Meyering.
49450
49451         hash: fix memory leak in last patch
49452         * lib/hash.c (hash_rehash): Avoid memory leak.
49453
49454         hash: avoid no-op rehashing
49455         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49456
49457         hash: provide default callback functions
49458         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49459         (hash_initialize): Use them as defaults.
49460         * tests/test-hash.c (main): Test this.
49461
49462         hash: minor optimization
49463         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49464         when possible.
49465         (hash_initialize): Document this promise.
49466         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49467         * tests/test-hash.c (hash_compare_strings): Test this.
49468
49469 2009-06-18  Bruno Haible  <bruno@clisp.org>
49470
49471         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49472         going to be replaced anyway.
49473
49474 2009-06-18  Bruno Haible  <bruno@clisp.org>
49475
49476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49477         in one place.
49478         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49479         be replaced anyway.
49480
49481 2009-06-18  Eric Blake  <ebb9@byu.net>
49482
49483         hash: check for resize before insertion
49484         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49485         threshold before insertion, so that a pathological hash_rehash
49486         that fills every bucket can still trigger another rehash.
49487
49488 2009-06-18  Jim Meyering  <meyering@redhat.com>
49489
49490         hash-tests: add a loop around the small tests
49491         * tests/test-hash.c (main): Repeat small tests with selected
49492         small initial table sizes.
49493
49494 2009-06-17  Eric Blake  <ebb9@byu.net>
49495
49496         hash: minor cleanups
49497         * lib/hash.h (hash_entry): Make opaque, by moving...
49498         * lib/hash.c (hash_entry): ...here.
49499         (hash_insert): Clarify restrictions on what can be inserted.
49500         (hash_get_next): Clarify when it is safe to remove an element
49501         during traversal.
49502         (check_tuning): Skip verification when tuning is known safe.
49503         (hash_initialize): Clarify restrictions on tuning.
49504
49505 2009-06-17  Jim Meyering  <jim@meyering.net>
49506         and Eric Blake  <ebb9@byu.net>
49507
49508         hash-tests: new module
49509         * modules/hash-tests: New file.
49510         * tests/test-hash.c: New file.
49511
49512 2009-06-17  Eric Blake  <ebb9@byu.net>
49513
49514         strstr-simple: document new module
49515         * MODULES.html.sh: Document new module.
49516
49517         strstr, strcasestr: replace on platforms with broken memchr
49518         * modules/strstr: Split into...
49519         * modules/strstr-simple: ...new module that does not care about
49520         performance, but does care about glibc bug.
49521         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49522         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49523         if platform memchr is broken, per Debian bug 521737.
49524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49525         memchr.
49526         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49527         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49528         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49529         * modules/mountlist (Depends-on): Add strstr-simple.
49530         * modules/gen-uni-tables (Depends-on): Likewise.
49531         * modules/argz (Depends-on): Add strstr.
49532
49533 2009-06-17  Bruno Haible  <bruno@clisp.org>
49534
49535         * modules/posix_spawn-internal (Depends-on): Add errno.
49536
49537 2009-06-17  Bruno Haible  <bruno@clisp.org>
49538
49539         Define missing ESTALE on Interix 3.5.
49540         * lib/errno.in.h (ESTALE): Assign a value if missing.
49541         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49542         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49543         missing.
49544         * doc/posix-headers/errno.texi: Mention the Interix bug.
49545         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49546
49547 2009-06-15  Eric Blake  <ebb9@byu.net>
49548
49549         memchr, memchr2: add valgrind exception
49550         * lib/memchr.valgrind: New file.
49551         * lib/memchr2.valgrind: New file.
49552         * modules/memchr (Files): Distribute valgrind file.
49553         * modules/memchr2 (Files): Likewise.
49554
49555         docs: memchr is no longer obsolete
49556         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49557         * lib/string.in.h (memchr): Simplify logic.
49558
49559 2009-06-14  Jim Meyering  <meyering@redhat.com>
49560
49561         link-follow: fix the "checking..." message to not mention trailing slash
49562         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49563         never considered trailing slashes.
49564
49565 2009-06-14  Bruno Haible  <bruno@clisp.org>
49566
49567         * m4/memchr.m4: Mention also the bug on IA-64.
49568         * doc/posix-functions/memchr.texi: Likewise.
49569
49570 2009-06-12  Eric Blake  <ebb9@byu.net>
49571
49572         memchr: detect broken x86_64 and alpha implementations
49573         * modules/memchr-tests (Depends-on): Move mmap detection...
49574         * modules/memchr (Depends-on): ...here.
49575         (configure.ac): Set indicator.
49576         * lib/string.in.h (memchr): Declare replacement.
49577         * modules/string (Makefile.am): Trigger replacement.
49578         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49579         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49580         bugs.
49581         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49582         * modules/getpagesize (License): Relax license.
49583
49584 2009-06-11  Bruno Haible  <bruno@clisp.org>
49585
49586         * lib/idpriv.h: Add more references.
49587
49588 2009-06-08  Bruno Haible  <bruno@clisp.org>
49589
49590         Tests for module 'idpriv-droptemp'.
49591         * modules/idpriv-droptemp-tests: New file.
49592         * tests/test-idpriv-droptemp.sh: New file.
49593         * tests/test-idpriv-droptemp.su.sh: New file.
49594         * tests/test-idpriv-droptemp.c: New file.
49595
49596         New module 'idpriv-droptemp'.
49597         * lib/idpriv-droptemp.c: New file.
49598         * modules/idpriv-droptemp: New file.
49599
49600 2009-06-08  Bruno Haible  <bruno@clisp.org>
49601
49602         Tests for module 'idpriv-drop'.
49603         * modules/idpriv-drop-tests: New file.
49604         * tests/test-idpriv-drop.sh: New file.
49605         * tests/test-idpriv-drop.su.sh: New file.
49606         * tests/test-idpriv-drop.c: New file.
49607
49608         New module 'idpriv-drop'.
49609         * lib/idpriv.h: New file.
49610         * lib-idpriv-drop.c: New file.
49611         * m4/idpriv.m4: New file.
49612         * modules/idpriv-drop: New file.
49613
49614 2009-06-08  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49617         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49618         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49619         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49620         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49621         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49622         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49623
49624 2009-06-08  Eric Blake  <ebb9@byu.net>
49625
49626         test-strstr: use memory fence, when possible
49627         * tests/test-strstr.c (main): Use memory fence, in order to be
49628         more likely to trigger Debian bug 521737.
49629         * modules/strstr-tests (Files): Pull in additional files.
49630
49631         memchr: no longer obsolete, for wider field testing
49632         * modules/memchr (Status, Notice): Delete, this module is no
49633         longer obsolete.
49634         * modules/vasnprintf (Depends-on): Add memchr.
49635
49636 2009-06-07  Jim Meyering  <meyering@redhat.com>
49637
49638         hash: declare some functions with the warn_unused_result attribute
49639         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49640
49641 2009-06-07  Bruno Haible  <bruno@clisp.org>
49642
49643         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49644         Reported by Eric Blake.
49645
49646 2009-06-06  Eric Blake  <ebb9@byu.net>
49647
49648         test-alignof: fix typo with long double
49649         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49650         compiler error.
49651
49652 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49653
49654         Escape non-texinfo { and }s.
49655         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49656         markup error.
49657
49658 2009-06-04  Jim Meyering  <meyering@redhat.com>
49659
49660         gitlog-to-changelog: don't infloop on an empty commit log
49661         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49662         Reported by Boris Petersen <transacid@centerim.org>.
49663
49664 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49665
49666         version-etc: extend for packagers
49667         Add three new configure options, intended for packagers:
49668           --with-packager="packager name"
49669           --with-packager-version="packager-specific version"
49670           --with-packager-bug-reports="packager bug reporting"
49671         An example with coreutils:
49672           $ ./configure \
49673             --with-packager=Gentoo \
49674             --with-packager-bug-report=http://bugs.gentoo.org/ \
49675             --with-packager-version="patchset 1.6"
49676           $ ./src/ls --version | head -n2
49677           ls (GNU coreutils) 7.1-dirty
49678           Packaged by Gentoo (patchset 1.6)
49679         Note that the bug reporting info via --help doesn't show up because
49680         coreutils uses its own custom emit_bug_reporting_address() implementation
49681         in src/system.h.  If it didn't, it'd look like:
49682           $ ./src/ls --help | tail -n4
49683           Report bugs to <bug-coreutils@gnu.org>.
49684           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49685           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49686           General help using GNU software: <http://www.gnu.org/gethelp/>.
49687         * lib/version-etc.c: Print new information, if provided.
49688         * m4/version-etc.m4: New file.
49689         * modules/version-etc (Files): Add m4/version-etc.m4.
49690         (configure.ac): Add gl_VERSION_ETC.
49691
49692 2009-05-31  Bruno Haible  <bruno@clisp.org>
49693
49694         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49695         and 'int64_t'.
49696         * modules/alignof-tests (Dependencies): Add stdint.
49697         Reported by Eric Blake.
49698
49699 2009-05-31  Bruno Haible  <bruno@clisp.org>
49700
49701         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49702         restriction due to compiler bugs.
49703         Reported by Eric Blake.
49704
49705 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49706             Bruno Haible  <bruno@clisp.org>
49707
49708         Fix test-alignof failure.
49709         * lib/alignof.h (alignof_slot): New macro.
49710         (alignof_type): New macro, with the same semantics as the previous
49711         'alignof'.
49712         (alignof): Alias to alignof_slot.
49713         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49714         check that the results are usable as constant expressions.
49715
49716 2009-05-31  Bruno Haible  <bruno@clisp.org>
49717
49718         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49719         * tests/test-memchr.c (main): Check that memchr does not read past the
49720         first occurrence of the byte.
49721         * tests/test-strstr.c (main): Update comment.
49722         Suggested by Eric Blake.
49723
49724 2009-05-30  Bruno Haible  <bruno@clisp.org>
49725
49726         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49727         detail how to use dumpbin.
49728         Reported by David Byron <dbyron@dbyron.com>.
49729
49730 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49731
49732         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49733
49734 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49735
49736         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49737
49738 2009-05-28  Bruno Haible  <bruno@clisp.org>
49739
49740         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49741         build-aux/ files.
49742
49743 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49744
49745         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49746
49747 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49748
49749         * gnulib-tool (sed_transform_main_lib_file)
49750         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49751         regexps.
49752
49753 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49754
49755         * tests/test-strstr.c: Add another self-test.
49756         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49757         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49758
49759 2009-05-23  Bruno Haible  <bruno@clisp.org>
49760
49761         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49762         change.
49763
49764 2009-05-21  Bruno Haible  <bruno@clisp.org>
49765
49766         Simplify use of mode_t varargs.
49767         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49768         uses 'mode_t' or 'int'.
49769         * lib/openat.c (openat): Likewise.
49770         * lib/open-safer.c (open_safer): Likewise.
49771         * m4/mode_t.m4: New file.
49772         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49773         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49774         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49775         * modules/open (Files): Add m4/mode_t.m4.
49776         * modules/openat (Files): Likewise.
49777         * modules/fcntl-safer (Files): Likewise.
49778         Suggested by Eric Blake.
49779
49780 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49781
49782         * doc/glibc-functions/fallocate.texi: New file.
49783         * doc/gnulib.texi: Include it.
49784
49785 2009-05-21  Eric Blake  <ebb9@byu.net>
49786             Bruno Haible  <bruno@clisp.org>
49787
49788         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49789         invocations.
49790         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49791
49792 2009-05-21  Eric Blake  <ebb9@byu.net>
49793             Bruno Haible  <bruno@clisp.org>
49794
49795         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49796         include_next. Fix of 2008-11-20 commit.
49797         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49798         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49799         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49800         NEXT_MATH_H.
49801         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49802         instead of NEXT_MATH_H.
49803
49804 2009-05-21  Bruno Haible  <bruno@clisp.org>
49805
49806         Avoid redefinition warnings for SIZE_MAX.
49807         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49808         Reported by Simon Josefsson.
49809
49810 2009-05-21  Bruno Haible  <bruno@clisp.org>
49811
49812         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49813         AC_CACHE_VAL.
49814
49815 2009-05-20  Bruno Haible  <bruno@clisp.org>
49816
49817         Make zeroptr.h work on mingw.
49818         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49819         mprotect.
49820         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49821         * modules/memchr2-tests (configure.ac): Likewise.
49822         * modules/memcmp-tests (configure.ac): Likewise.
49823         * modules/memmem-tests (configure.ac): Likewise.
49824         * modules/memrchr-tests (configure.ac): Likewise.
49825         Reported by Simon Josefsson.
49826
49827 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49828
49829         * tests/test-glob.c: Include string.h for strcmp prototype.
49830
49831 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49832
49833         * modules/getdelim (Depends-on): Add explicit stdint, although it
49834         was implicitly already pulled in via realloc-posix.
49835         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49836
49837 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49838
49839         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49840         G. Christensen" <tgc@jupiterrise.com>.
49841         * m4/sys_socket_h.m4: Check for sa_family_t.
49842         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49843         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49844         * tests/test-sys_socket.c: Check that sa_family_t works.
49845
49846 2009-05-18  Eric Blake  <ebb9@byu.net>
49847
49848         maint.mk: allow gnulib_dir in VPATH build
49849         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49850
49851 2009-05-15  Jim Meyering  <meyering@redhat.com>
49852
49853         maint.mk: Give gnulib_dir a default definition.
49854         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49855         Thus, most packages no longer need to specify this variable in cfg.mk
49856
49857 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49858
49859         rename.m4: fix typos that would make non-mingw cross-configure fail
49860         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49861
49862 2009-05-13  Eric Blake  <ebb9@byu.net>
49863
49864         mmap-anon: avoid out-of-order autoconf expansion
49865         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49866         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49867         * modules/memchr-tests (Depends-on): Add extensions.
49868         * modules/memchr2-tests (Depends-on): Add extensions.
49869         * modules/memcmp-tests (Depends-on): Add extensions.
49870         * modules/memmem-tests (Depends-on): Add extensions.
49871         * modules/memrchr-tests (Depends-on): Add extensions.
49872
49873 2009-05-13  Bruno Haible  <bruno@clisp.org>
49874
49875         Make some tests ISO C 99 compliant.
49876         * tests/zerosize-ptr.h: New file.
49877         * tests/test-memchr.c: Include zerosize-ptr.h.
49878         (main): Use a zero-size object pointer instead of NULL.
49879         * tests/test-memchr2.c: Include zerosize-ptr.h.
49880         (main): Use a zero-size object pointer instead of NULL.
49881         * tests/test-memcmp.c: Include zerosize-ptr.h.
49882         (main): Use a zero-size object pointer instead of NULL.
49883         * tests/test-memmem.c: Include zerosize-ptr.h.
49884         (main): Use a zero-size object pointer instead of NULL.
49885         * tests/test-memrchr.c: Include zerosize-ptr.h.
49886         (main): Use a zero-size object pointer instead of NULL.
49887         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49888         m4/mmap-anon.m4.
49889         (Depends-on): Add getpagesize.
49890         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49891         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49892         m4/mmap-anon.m4.
49893         (Depends-on): Add getpagesize.
49894         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49895         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49896         m4/mmap-anon.m4.
49897         (Depends-on): Add getpagesize.
49898         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49899         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49900         m4/mmap-anon.m4.
49901         (Depends-on): Add getpagesize.
49902         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49903         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49904         m4/mmap-anon.m4.
49905         (Depends-on): Add getpagesize.
49906         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49907
49908 2009-05-12  Bruno Haible  <bruno@clisp.org>
49909
49910         Tests for module 'alignof'.
49911         * modules/alignof-tests: New file.
49912         * tests/test-alignof.c: New file.
49913
49914 2009-05-12  Bruno Haible  <bruno@clisp.org>
49915
49916         Fix alignof macro.
49917         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49918         vendor compilers that are always correct.
49919
49920 2009-05-12  Bruno Haible  <bruno@clisp.org>
49921
49922         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49923         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49924         not whether its fully works.
49925
49926 2009-05-12  Bruno Haible  <bruno@clisp.org>
49927
49928         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49929
49930 2009-05-12  Jim Meyering  <meyering@redhat.com>
49931
49932         * top/maint.mk: Adjust backslash alignment.
49933
49934 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49935
49936         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49937
49938 2009-05-11  Eric Blake  <ebb9@byu.net>
49939
49940         argp: avoid undefined behavior
49941         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49942         macros.
49943
49944 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49945
49946         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49947         user.name to prevent git commit from complaining.
49948
49949 2009-05-10  Bruno Haible  <bruno@clisp.org>
49950
49951         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49952         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49953         it rewrites every file name only once.
49954         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49955
49956 2009-05-08  Bruno Haible  <bruno@clisp.org>
49957
49958         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49959         instead of 'max'.
49960
49961 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49962
49963         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49964         sockaddr_storage test.
49965
49966 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49967
49968         * modules/sys_socket (Makefile.am): Substitute
49969         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49970         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49971         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49972         * tests/test-sys_socket.c: Check sockaddr_storage.
49973
49974 2009-05-08  Bruno Haible  <bruno@clisp.org>
49975
49976         New module 'alignof'.
49977         * lib/alignof.h: New file.
49978         * modules/alignof: New file.
49979
49980 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49981             Bruno Haible  <bruno@clisp.org>
49982
49983         Fix test-file-has-acl on FreeBSD.
49984         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49985         mask is implicitly added.
49986         * tests/test-file-has-acl.c: Include <signal.h>.
49987         (main): Terminate the test after 5 seconds.
49988         * modules/acl-tests (configure.ac): Check for alarm function.
49989
49990 2009-05-04  Bruno Haible  <bruno@clisp.org>
49991
49992         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49993         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49994         * modules/errno (configure.ac): Drop AC_REQUIRE.
49995         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49996         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49997
49998 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49999
50000         * modules/glob-tests: New module.
50001         * tests/test-glob.c: Add.
50002
50003 2009-05-04  Simon Josefsson  <simon@josefsson.org>
50004
50005         * modules/fnmatch-tests: New module.
50006         * tests/test-fnmatch.c: Add.
50007
50008 2009-05-04  Eric Blake  <ebb9@byu.net>
50009
50010         maint: make the new no-submodule-changes rule VPATH-safe
50011         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
50012
50013 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
50014             Bruno Haible  <bruno@clisp.org>
50015
50016         acl: Fix infinite loop on FreeBSD.
50017         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
50018         of return value from acl_get_entry.
50019         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
50020         Likewise.
50021
50022 2009-05-03  Bruno Haible  <bruno@clisp.org>
50023
50024         * lib/acl-internal.h (acl_entries): Clarify return value.
50025         * lib/acl_entries.c (acl_entries): Likewise.
50026
50027 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
50028
50029         Bug fix in acl module.
50030         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
50031
50032 2009-05-03  Bruno Haible  <bruno@clisp.org>
50033
50034         Create gperf-generated file in the source dir, not in the build dir.
50035         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
50036         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
50037         * modules/unicase/locale-language (unicase/locale-languages.h):
50038         Likewise.
50039         * modules/unicase/special-casing (unicase/special-casing-table.h):
50040         Likewise.
50041         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
50042         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
50043         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
50044         Reported by Ralf Wildenhues.
50045
50046 2009-05-03  Bruno Haible  <bruno@clisp.org>
50047
50048         * modules/fnmatch (Description, configure.ac): Taken from
50049         fnmatch-posix.
50050         * modules/fnmatch-posix: Turn into a symbolic reference to the
50051         'fnmatch' module, and deprecate.
50052         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
50053
50054 2009-05-03  Bruno Haible  <bruno@clisp.org>
50055
50056         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
50057         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
50058         Reported by Ralf Wildenhues.
50059
50060 2009-05-04  Simon Josefsson  <simon@josefsson.org>
50061
50062         * m4/fnmatch.m4: Fix fnmatch re-define.
50063
50064 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
50065
50066         priv-set: new module and tests; adapt write-any-file
50067         * lib/priv-set.c: New file.
50068         * lib/priv-set.h: New file.
50069         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
50070         * lib/write-any-file.c: Simplify by using priv-set module.
50071         * m4/priv-set.m4: New file.
50072         * modules/priv-set: New file.
50073         * modules/unlinkdir: Add dependency on priv-set module.
50074         * modules/write-any-file: Likewise.
50075
50076         Tests for module 'priv-set'.
50077         * modules/priv-set-tests: New file.
50078         * tests/test-priv-set.c: New file.
50079
50080 2009-05-03  Jim Meyering  <meyering@redhat.com>
50081             Bruno Haible  <bruno@clisp.org>
50082
50083         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
50084         use the converted UTF-8 variant of the name instead.
50085
50086 2009-05-03  Jim Meyering  <meyering@redhat.com>
50087
50088         tests: tighten some getdate tests
50089         * tests/test-getdate.c (main): Tighten tests: require equality,
50090         not just greater than.  Set TZ envvar to UTC0.
50091
50092 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50093
50094         getdate: correctly interpret "next monday" when run on a Monday
50095         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
50096         that e.g., "next tues" (when run on a tuesday) results in a date
50097         that is one week in the future, and not today's date.
50098         I.e., add a week when the wday is the same as the current one.
50099         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
50100         and earlier by Martin Bernreuther and Jan Minář.
50101         * tests/test-getdate.c (main): Check that "next DAY" is always in
50102         the future and that "last DAY" is always in the past.
50103
50104 2009-05-02  Jim Meyering  <meyering@redhat.com>
50105
50106         build: ensure that a release build fails when a submodule is unclean
50107         * top/maint.mk (no-submodule-changes): New rule.
50108         (alpha beta major): Depend on it.
50109
50110 2009-05-02  Bruno Haible  <bruno@clisp.org>
50111
50112         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
50113         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
50114         shell variable gl_fnmatch_required to detect which variant is
50115         requested.
50116         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
50117         gl_FUNC_FNMATCH_POSIX.
50118         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
50119         exclude fnmatch-posix.
50120
50121 2009-05-02  Bruno Haible  <bruno@clisp.org>
50122
50123         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
50124         * modules/mbsrtowcs (License): Change to LGPLv2+.
50125         * modules/strnlen1 (License): Likewise.
50126         Reported by Simon Josefsson.
50127
50128 2009-05-02  Bruno Haible  <bruno@clisp.org>
50129
50130         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
50131         "cross".
50132         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
50133         gnulib-tool was called with option --source-base=lib.
50134
50135 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50136
50137         Use automake *-local hooks without commands, for extensibility.
50138         * modules/localcharset (Makefile.am): Rename install-exec-local
50139         rule to install-exec-localcharset, and make it a prerequisite of
50140         install-exec-local.  Likewise, rename the uninstall-local rule to
50141         uninstall-localcharset, and make it a prerequisite of the former.
50142
50143 2009-05-01  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50146         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50147         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50149         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50150         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50151         m4/locale-zh.m4, m4/codeset.m4.
50152
50153         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50154         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50155         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50156         m4/locale-zh.m4.
50157
50158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50159         REPLACE_WCRTOMB if mbstate_t must be replaced.
50160         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50161         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50162
50163 2009-05-01  Bruno Haible  <bruno@clisp.org>
50164
50165         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50166         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50167         dngettext, dcngettext, textdomain, bindtextdomain,
50168         bind_textdomain_codeset): Undefine before redefining.
50169
50170 2009-04-30  Bruno Haible  <bruno@clisp.org>
50171
50172         Fix bug introduced on 2009-04-25.
50173         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50174         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50175         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50176         is defined.
50177         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50178         is defined.
50179         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50180         is defined.
50181         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50182
50183 2009-04-28  Bruno Haible  <bruno@clisp.org>
50184
50185         Comment tweaks.
50186         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50187         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50188         * lib/unicase.h (u*_casexfrm): Likewise.
50189         Reported by Paolo Bonzini.
50190
50191 2009-04-28  Bruno Haible  <bruno@clisp.org>
50192
50193         Fix a compilation error.
50194         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50195         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50196         Reported by Jim Meyering.
50197
50198 2009-04-27  Bruno Haible  <bruno@clisp.org>
50199
50200         New module 'libunistring'.
50201         * modules/libunistring: New file.
50202         * m4/libunistring.m4: New file.
50203         * MODULES.html.sh (Unicode string functions): Add it.
50204
50205 2009-04-27  Eric Blake  <ebb9@byu.net>
50206
50207         maint.mk: allow package-specific header to provide <config.h>
50208         * top/maint.mk (sc_require_config_h): New variable.
50209         (sc_require_config_h, sc_require_config_h_first): Use it.
50210
50211 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50212
50213         * top/maint.mk (sc_avoid_if_before_free): Except
50214         useless-if-before-free script.
50215
50216 2009-04-27  Eric Blake  <ebb9@byu.net>
50217
50218         maintainer-makefile: depend on all required helper scripts
50219         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50220         useless-if-before-free.
50221         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50222         version, rather than assuming gnulib checkout is available.
50223         Reported by Simen Josefsson.
50224
50225 2009-04-26  Bruno Haible  <bruno@clisp.org>
50226
50227         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50228         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50229         "../" or "..".
50230
50231 2009-04-26  Bruno Haible  <bruno@clisp.org>
50232
50233         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50234         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50235         AC_LIB_HAVE_LINKFLAGS.
50236
50237 2009-04-26  Bruno Haible  <bruno@clisp.org>
50238
50239         Simplify calling convention of u*_conv_from_encoding.
50240         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50241         u32_conv_from_encoding): Expect a resultbuf argument and return the
50242         result directly as a pointer.
50243         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50244         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50245         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50246         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50247         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50248         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50249         Update.
50250         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50251         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50252         * lib/vasnprintf.c (VASNPRINTF): Update.
50253         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50254         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50255         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50256         * NEWS: Mention the change.
50257
50258 2009-04-26  Bruno Haible  <bruno@clisp.org>
50259
50260         Simplify calling convention of u*_conv_to_encoding.
50261         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50262         u32_conv_to_encoding): Expect a resultbuf argument and return the
50263         result directly as a pointer.
50264         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50265         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50266         freeing scaled_offsets if mem_iconveha failed.
50267         * lib/unicase/u-casexfrm.h (FUNC): Update.
50268         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50269         * lib/vasnprintf.c (VASNPRINTF): Update.
50270         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50271         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50272         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50273         * NEWS: Mention the change.
50274
50275 2009-04-26  Bruno Haible  <bruno@clisp.org>
50276
50277         Avoid test failures on AIX and OSF/1.
50278         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50279         malloc(0).
50280         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50281         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50282         Likewise.
50283         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50284         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50285         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50286         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50287         * doc/posix-functions/malloc.texi: Document the portability problem
50288         related to malloc(0).
50289
50290 2009-04-26  Bruno Haible  <bruno@clisp.org>
50291
50292         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50293         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50294         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50295
50296 2009-04-25  Bruno Haible  <bruno@clisp.org>
50297
50298         Avoid link error when creating a namespace clean library.
50299         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50300         as macro with arguments if already defined as an alias.
50301         * lib/signbitf.c (gl_signbitf): Don't undefine.
50302         * lib/signbitd.c (gl_signbitd): Don't undefine.
50303         * lib/signbitl.c (gl_signbitl): Don't undefine.
50304
50305 2009-04-25  Jim Meyering  <meyering@redhat.com>
50306
50307         vc-list-files: fix another quoting bug
50308         * build-aux/vc-list-files: Avoid sed backslash expansion
50309         of pathological directory names.
50310
50311 2009-04-25  Eric Blake  <ebb9@byu.net>
50312
50313         vc-list-files: fix shell quoting error
50314         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50315         timestamp.
50316
50317 2009-04-25  Jim Meyering  <meyering@redhat.com>
50318
50319         vc-list-files: restore lost functionality with subdir argument
50320         * build-aux/vc-list-files: When given a non-"." sub-directory
50321         argument, substitute the $dir/ prefix back onto each resulting name.
50322         Otherwise, coreutils' root_tests check would fail.
50323
50324 2009-04-24  Eric Blake  <ebb9@byu.net>
50325
50326         vc-list-files: ignore git symlinks
50327         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50328         than ls-files, to ignore git symlinks.
50329
50330         maint.mk: import improvements from m4
50331         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50332         (move_if_change): Delete unused macro.
50333         (news-date-check, vc-diff-check): Support VPATH builds.
50334         (announcement): Likewise.  Split --bootstrap-tools list...
50335         (boostrap-tools): ...into separate list, which can be overridden
50336         in cfg.mk.
50337         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50338         requiring dependency on useless-if-before-free module.
50339         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50340         Support VPATH builds.
50341
50342 2009-04-24  Jim Meyering  <meyering@redhat.com>
50343
50344         maint.mk: remove coreutils-specific rules and variables
50345         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50346         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50347         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50348
50349         maint.mk: remove obsolete rule
50350         * top/maint.mk (rel-check): Remove rule.
50351         (WGET, WGETFLAGS): Remove now-unused variables.
50352
50353 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50354
50355         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50356         consistency.
50357
50358         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50359         '$(PATH_SEPARATOR)' instead of ':'.
50360
50361 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50362
50363         * lib/getopt1.c (main): Use 'const' for static array.
50364
50365 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50366
50367         * top/maint.mk: Sync with coreutils.
50368         * NEWS: Explain incompatibilities.
50369
50370 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50371             Bruno Haible  <bruno@clisp.org>
50372
50373         Fix cross-compilation results.
50374         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50375         statement, as third argument of AC_TRY_RUN.
50376         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50377         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50378         Likewise.
50379         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50380         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50381         Likewise.
50382         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50384         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50385
50386 2009-04-20  Bruno Haible  <bruno@clisp.org>
50387
50388         Avoid test failure on mingw.
50389         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50390
50391 2009-04-20  Bruno Haible  <bruno@clisp.org>
50392
50393         Avoid compilation error on mingw.
50394         * modules/localename-tests (Depends-on): Add locale.
50395
50396 2009-04-19  Bruno Haible  <bruno@clisp.org>
50397
50398         Support for building a shared library on Windows platforms.
50399         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50400         (main): Test the presence of UNINORM_NFC here.
50401         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50402         (main): Test the presence of UNINORM_NFD here.
50403         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50404         (main): Test the presence of UNINORM_NFKC here.
50405         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50406         (main): Test the presence of UNINORM_NFKD here.
50407
50408 2009-04-19  Bruno Haible  <bruno@clisp.org>
50409
50410         Avoid a compiler warning.
50411         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50412         Change type of variable 'sequence'.
50413
50414 2009-04-19  Bruno Haible  <bruno@clisp.org>
50415
50416         * modules/configmake (Makefile.am): When the contents of configmake.h
50417         does not change, arrange to preserve its modification time.
50418
50419 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50420
50421         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50422         gettext domain.
50423
50424 2009-04-16  Jim Meyering  <meyering@redhat.com>
50425
50426         useless-if-before-free: improve conversion code
50427         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50428         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50429
50430 2009-04-14  Bruno Haible  <bruno@clisp.org>
50431
50432         * modules/fcntl (Depends-on): Add extensions.
50433         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50434
50435 2009-04-12  Ben Pfaff  <blp@gnu.org>
50436
50437         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50438         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50439
50440 2009-03-20  Ben Pfaff  <blp@gnu.org>
50441
50442         Make rename replace existing destinations on Windows.
50443         * m4/rename.m4: Add test for Mingw.
50444         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50445         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50446         * doc/posix-functions/rename.texi: Document.
50447
50448 2009-04-10  Bruno Haible  <bruno@clisp.org>
50449
50450         New include file "iconveh.h".
50451         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50452         * lib/striconveh.h: Include it.
50453         (enum iconv_ilseq_handler): Remove definition.
50454         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50455         striconveh.h.
50456         * lib/striconveha.c: Include striconveh.h.
50457         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50458         * modules/striconveh (Files): Add lib/iconveh.h.
50459         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50460         lib/striconveh.h.
50461
50462 2009-04-10  Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/uniconv.h: Update comment.
50465
50466 2009-04-10  Bruno Haible  <bruno@clisp.org>
50467
50468         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50469         always.
50470         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50471         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50472         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50473         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50474         "unistring-notinline.h", so that the function gets defined always.
50475         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50476         * lib/unistr/u8-uctomb.c: Likewise.
50477         * lib/unistr/u16-mbtouc.c: Likewise.
50478         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50479         * lib/unistr/u16-uctomb.c: Likewise.
50480         * lib/unistr/u32-mbtouc.c: Likewise.
50481         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50482         * lib/unistr/u32-uctomb.c: Likewise.
50483
50484 2009-04-10  Bruno Haible  <bruno@clisp.org>
50485
50486         Mark 'utime' obsolete.
50487         * modules/utime (Status, Notice): New sections.
50488         Suggested by Jim Meyering.
50489
50490         Fix cross-compile guess for utime test.
50491         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50492         autoconf.
50493         * doc/posix-functions/utime.texi: Give more precisions.
50494         Reported by Jan <ipif@ymail.com>.
50495
50496 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50497
50498         filevercmp: correct today's change
50499         * lib/filevercmp.c: Also handle coreutils' test inputs.
50500         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50501
50502         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50503         for reporting it.
50504         * lib/filevercmp.c: Special handle for "", "." and "..".
50505         * tests/test-filevercmp.c: Enlarge the set suite.
50506
50507 2009-04-07  Jim Meyering  <meyering@redhat.com>
50508
50509         useless-if-before-free: show how to remove braced useless free, too
50510         * build-aux/useless-if-before-free: still only in a comment, though.
50511
50512 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50513
50514         maint.mk: import changes to syntax-check macros from coreutils
50515         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50516         Use them in the relevant macros.
50517
50518 2009-04-06  Bruno Haible  <bruno@clisp.org>
50519
50520         Fix unportable use of bit-fields.
50521         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50522         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50523         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50524
50525 2009-04-06  Bruno Haible  <bruno@clisp.org>
50526
50527         Avoid test failures on AIX and OSF/1.
50528         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50529         that malloc(0) = NULL.
50530         * tests/unicase/test-u8-tolower.c (check): Likewise.
50531         * tests/unicase/test-u8-totitle.c (check): Likewise.
50532         * tests/unicase/test-u8-toupper.c (check): Likewise.
50533         * tests/unicase/test-u16-casefold.c (check): Likewise.
50534         * tests/unicase/test-u16-tolower.c (check): Likewise.
50535         * tests/unicase/test-u16-totitle.c (check): Likewise.
50536         * tests/unicase/test-u16-toupper.c (check): Likewise.
50537         * tests/unicase/test-u32-casefold.c (check): Likewise.
50538         * tests/unicase/test-u32-tolower.c (check): Likewise.
50539         * tests/unicase/test-u32-totitle.c (check): Likewise.
50540         * tests/unicase/test-u32-toupper.c (check): Likewise.
50541         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50542         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50543         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50544         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50545         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50546         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50547         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50548         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50549         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50550         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50551         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50552         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50553
50554 2009-04-05  Bruno Haible  <bruno@clisp.org>
50555
50556         Work around an autoconf limitation.
50557         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50558         comment line if it would be longer than 3 KB.
50559
50560 2009-04-05  Bruno Haible  <bruno@clisp.org>
50561
50562         Avoid test failure with libiconv-1.13.
50563         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50564         of the expected test results.
50565
50566 2009-04-05  Bruno Haible  <bruno@clisp.org>
50567
50568         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50569         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50570         that it should be installed.
50571
50572 2009-04-05  Bruno Haible  <bruno@clisp.org>
50573
50574         * gnulib-tool: New option --copy-file.
50575         (func_usage): Document it.
50576         (func_dest_tmpfilename): Moved out of func_import.
50577         (func_add_file, func_update_file): New functions, extracted from
50578         func_import.
50579         (func_import): Update.
50580
50581 2009-04-05  Karl Berry  <karl@gnu.org>
50582
50583         * README: prominently mention gnulib-tool.
50584         Rearrange sections so getting the code is near the top.
50585
50586 2009-04-05  Bruno Haible  <bruno@clisp.org>
50587
50588         * lib/unicase.h: Mention u*_cmp2.
50589         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50590         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50591         * lib/unicase/ulc-casecmp.c: Likewise.
50592         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50593         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50594         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50595         unistr/u8-cmp.
50596         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50597         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50598         unistr/u16-cmp.
50599         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50600         unistr/u32-cmp.
50601
50602         * lib/uninorm.h: Mention u*_cmp2.
50603         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50604         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50605         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50606         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50607         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50608         unistr/u8-cmp.
50609         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50610         unistr/u16-cmp.
50611         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50612         unistr/u32-cmp.
50613
50614         New module 'unistr/u32-cmp2'.
50615         * lib/unistr/u32-cmp2.c: New file.
50616         * modules/unistr/u32-cmp2: New file.
50617
50618         New module 'unistr/u16-cmp2'.
50619         * lib/unistr/u16-cmp2.c: New file.
50620         * modules/unistr/u16-cmp2: New file.
50621
50622         New module 'unistr/u8-cmp2'.
50623         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50624         * lib/unistr/u8-cmp2.c: New file.
50625         * lib/unistr/u-cmp2.h: New file.
50626         * modules/unistr/u8-cmp2: New file.
50627
50628 2009-04-05  Bruno Haible  <bruno@clisp.org>
50629
50630         * lib/unictype.h (uc_property_is_valid): New macro.
50631         * tests/unictype/test-pr_byname.c (main): Use it.
50632
50633         * lib/unistr.h: Doc fixes.
50634         * lib/uniconv.h: Doc fixes.
50635         * lib/unictype.h: Doc fixes.
50636
50637 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50638
50639         Port coreutils 7.2 to Solaris 8.
50640
50641         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50642         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50643         for Solaris 8.  This is a bit of a hack, as it means it's the
50644         caller's responsibility to add -lnsl if needed, but most likely it
50645         won't be needed since only getaddrinfo uses this and getaddrinfo
50646         isn't needed on Solaris 8.
50647
50648         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50649         problem to Solaris 8 encountered with coreutils 7.2, which
50650         resulted in a message "fnmatch.c:292: warning: passing argument 4
50651         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50652         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50653
50654 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50655
50656         * m4/ld-version-script.m4: Add FIXME comment.
50657
50658 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50659
50660         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50661         SOVERSION variable.
50662
50663 2009-04-02  Bruno Haible  <bruno@clisp.org>
50664
50665         * Makefile (info, html, dvi, pdf): Combine the rules.
50666         Suggested by Jim Meyering.
50667
50668 2009-04-01  Bruno Haible  <bruno@clisp.org>
50669
50670         * Makefile (info, html, dvi, pdf): New targets.
50671         Reported by Reuben Thomas <rrt@sc3d.org>.
50672
50673 2009-04-01  Bruno Haible  <bruno@clisp.org>
50674
50675         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50676         can be put into PATH.
50677         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50678
50679 2009-04-01  Bruno Haible  <bruno@clisp.org>
50680
50681         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50682
50683 2009-04-01  Bruno Haible  <bruno@clisp.org>
50684
50685         Rename module 'visibility'.
50686         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50687         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50688         * doc/gnulib.texi: Update.
50689         * MODULES.html.sh (Misc): Update.
50690         * NEWS: Mention the change.
50691
50692 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50693
50694         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50695         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50696         Eric Blake <ebb9@byu.net> for review.
50697         * MODULES.html.sh: Add lib-msvc-compat.
50698         * doc/gnulib.texi: Link to new section.
50699         * m4/ld-output-def.m4: New file.
50700         * doc/ld-output-def.texi: New file.
50701
50702 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50703
50704         Rename ld-version-script to lib-symbol-versions.  Suggested by
50705         Bruno Haible <bruno@clisp.org>.
50706         * modules/ld-version-script: Renamed to lib-symbol-versions.
50707         * doc/ld-version-script.texi: Fix module name.
50708         * MODULES.html.sh: Add lib-symbol-versions.
50709
50710 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50711
50712         * modules/u64-tests: New file.
50713         * tests/test-u64.c: New file.
50714
50715 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50716
50717         * MODULES.html.sh: Mention u64.
50718         * modules/u64: New module.
50719         * modules/crypto/sha512: Depend on u64 module instead of providing
50720         u64.h.
50721
50722 2009-03-27  Eric Blake  <ebb9@byu.net>
50723
50724         test-strerror: make debugging EAI_SYSTEM easier
50725         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50726         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50727         failure was EAI_SYSTEM.
50728
50729 2009-03-25  Bruno Haible  <bruno@clisp.org>
50730
50731         Fix a problem with --enable-relocatable on Solaris 7.
50732         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50733         since 2008-02-24.
50734
50735 2009-03-25  Eric Blake  <ebb9@byu.net>
50736
50737         test-sockets: avoid gcc warning
50738         * tests/test-sockets.c (main): Silence compiler warning.
50739
50740 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50741
50742         New modules nproc, pthread, contributed by Glen Lenker.
50743
50744         * MODULES.html.sh: Add pthread, nproc.
50745         * lib/nproc.c: New file.
50746         * lib/nproc.h: New file.
50747         * lib/pthread.in.h: New file.
50748         * m4/pthread.m4: New file.
50749         * modules/nproc: New file.
50750         * modules/pthread: New file.
50751
50752 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50753
50754         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50755         New variable.
50756
50757 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50758
50759         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50760         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50761         * tests/test-filevercmp.c: Add tests for backup suffixes.
50762
50763 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50764
50765         * modules/stdlib (Depends-on): Add stdint, needed when defining
50766         struct random_data on, for example, HP-UX 10.20.  Reported by
50767         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50768
50769 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50770
50771         * lib/readline.c (readline): Call fflush on stdout after printing
50772         prompt.
50773
50774 2009-03-20  Bruno Haible  <bruno@clisp.org>
50775
50776         Remove dependency from 'close' module to -lws2_32 on native Windows.
50777         * lib/close-hook.h: New file.
50778         * lib/close-hook.c: New file.
50779         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50780         w32sock.h.
50781         (_gl_close_fd_maybe_socket): Remove function.
50782         (rpl_close): Invoke execute_all_close_hooks instead of
50783         _gl_close_fd_maybe_socket.
50784         * lib/sockets.c: Include close-hook.h, w32sock.h.
50785         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50786         (close_sockets_hook): New variable.
50787         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50788         (gl_sockets_cleanup): Unregister it.
50789         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50790         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50791         * modules/close-hook: New file.
50792         * modules/close (Files): Remove lib/w32sock.h.
50793         (Depends-on): Add close-hook.
50794         (Link): Remove section.
50795         * modules/sockets (Files): Add lib/w32sock.h.
50796         (Depends-on): Add close-hook.
50797         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50798         invocation.
50799         * NEWS: Mention that LIB_CLOSE is gone.
50800
50801 2009-03-23  Eric Blake  <ebb9@byu.net>
50802
50803         signal-tests: test previous patch
50804         * tests/test-signal.c: New file.
50805         * modules/signal-tests: Likewise.
50806
50807         signal.h: always support 'volatile sig_atomic_t'
50808         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50809         (gl_SIGNAL_H_DEFAULTS): Add a default.
50810         * modules/signal (Makefile.am): Substitute if needed.
50811         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50812         users can blindly add volatile.
50813         * doc/posix-headers/signal.texi (signal.h): Document it.
50814         Reported by Matthew Woehlke.
50815
50816 2009-03-23  Jim Meyering  <meyering@redhat.com>
50817
50818         pathmax: PATH_MAX: use pathconf only when available
50819         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50820         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50821         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50822         This avoids a link failure in a PSP cross-compilation environment
50823         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50824
50825         * lib/vasnprintf.c (divide): Fix typo in comment.
50826
50827 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50828
50829         * gnulib-tool (func_filter_filelist): Fix comment.
50830
50831 2009-03-20  Bruno Haible  <bruno@clisp.org>
50832
50833         Make sockets.h self-contained.
50834         * lib/sockets.c: Include sockets.h first.
50835         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50836
50837 2009-03-19  Eric Blake  <ebb9@byu.net>
50838
50839         doc: mention more functions added in cygwin 1.7.0
50840         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50841         addition.
50842         * doc/posix-functions/log2f.texi: Likewise.
50843
50844 2009-03-19  Jim Meyering  <meyering@redhat.com>
50845
50846         fsusage: avoid syntax error due to statement-before-declaration
50847         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50848         after all declarations.  Reported by Matthew Woehlke in
50849         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50850
50851 2009-03-18  Eric Blake  <ebb9@byu.net>
50852
50853         build-aux/compile: sync from automake
50854         * build-aux/compile: New file, from automake.
50855         * config/srclist.txt: Mention build-aux/compile.
50856
50857 2009-03-17  Bruno Haible  <bruno@clisp.org>
50858
50859         * lib/git-merge-changelog.c: Fix typo in comment.
50860         Reported by Reuben Thomas <rrt@sc3d.org>.
50861
50862 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50863
50864         * m4/regex.m4: update and improve help for
50865         --without-included-regex.
50866
50867 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50868
50869         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50870         failure on missing include files.
50871
50872 2009-03-17  Eric Blake  <ebb9@byu.net>
50873
50874         doc: mention more functions added in cygwin 1.7.0
50875         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50876         addition.
50877         * doc/posix-functions/fwscanf.texi: Likewise.
50878         * doc/posix-functions/swprintf.texi: Likewise.
50879         * doc/posix-functions/swscanf.texi: Likewise.
50880         * doc/posix-functions/vfwprintf.texi: Likewise.
50881         * doc/posix-functions/vfwscanf.texi: Likewise.
50882         * doc/posix-functions/vswprintf.texi: Likewise.
50883         * doc/posix-functions/vswscanf.texi: Likewise.
50884         * doc/posix-functions/vwprintf.texi: Likewise.
50885         * doc/posix-functions/vwscanf.texi: Likewise.
50886         * doc/posix-functions/wcscasecmp.texi: Likewise.
50887         * doc/posix-functions/wcsdup.texi: Likewise.
50888         * doc/posix-functions/wcsftime.texi: Likewise.
50889         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50890         * doc/posix-functions/wprintf.texi: Likewise.
50891         * doc/posix-functions/wscanf.texi: Likewise.
50892         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50893
50894 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50895
50896         maint.mk: really add $(AM_MAKEFLAGS)
50897         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50898         was inadvertently omitted in the last commit.
50899         Spotted by Bruno Haible.
50900
50901         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50902         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50903         $(AM_MAKEFLAGS)' rather than plain `make'.
50904
50905         gnulib-tool: execute $MAKE not make
50906         * gnulib-tool: Default $MAKE to 'make'.
50907         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50908         than make.  Initialize $MAKE in the do-autobuild script.
50909
50910         gnulib-tool: use $MAKE not make in generated files
50911         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50912         make, in generated files.  Initialize $MAKE in the do-autobuild
50913         script.
50914
50915         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50916
50917         GNUmakefile: disable parallelism only for multiple, recursive targets
50918         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50919         additions in the Makefile.
50920         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50921         by Automake.
50922         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50923         are listed on the command line and at least one of them is
50924         listed in $(ALL_RECURSIVE_TARGETS).
50925
50926 2009-03-14  Bruno Haible  <bruno@clisp.org>
50927
50928         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50929         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50930         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50931         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50932         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50933         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50934         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50935         unistr/u8-uctomb.
50936         * modules/unistr/u8-strchr (Depends-on): Likewise.
50937         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50938         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50939         unistr/u16-uctomb.
50940         * modules/unistr/u16-strchr (Depends-on): Likewise.
50941         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50942
50943 2009-03-12  Bruno Haible  <bruno@clisp.org>
50944
50945         Work around select() bug on Interix 3.5.
50946         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50947         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50948         * m4/select.m4: New file.
50949         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50950         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50951         * modules/select (Files): Add m4/select.m4.
50952         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50953         * modules/nanosleep (Depends-on): Add select.
50954         * modules/poll (Depends-on): Likewise.
50955         * doc/posix-functions/select.texi: Mention the Interix bug.
50956         Reported by Markus Duft <mduft@gentoo.org>.
50957
50958         * lib/select.c: Renamed from lib/winsock-select.c.
50959         * modules/select (Files): Add lib/select.c, remove
50960         lib/winsock-select.c.
50961         (configure.ac): Update.
50962
50963 2009-03-12  Jim Meyering  <meyering@redhat.com>
50964
50965         avoid gcc warnings about unused macro definitions
50966         * lib/readtokens.c (STREQ): Remove unused definition.
50967         * lib/xmalloc.c (SIZE_MAX): Likewise.
50968         * lib/openat-die.c (N_): Likewise.
50969         * lib/mountlist.c (SIZE_MAX): Remove definition.
50970         Instead, include <stdint.h>.
50971         * lib/readutmp.c: Likewise.
50972         * modules/readutmp (Depends-on): Add stdint.
50973         * modules/mountlist (Depends-on): Add stdint.
50974         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50975
50976 2009-03-10  Bruno Haible  <bruno@clisp.org>
50977
50978         Tests for module 'mbmemcasecoll'.
50979         * modules/mbmemcasecoll-tests: New file.
50980         * tests/test-mbmemcasecoll1.sh: New file.
50981         * tests/test-mbmemcasecoll2.sh: New file.
50982         * tests/test-mbmemcasecoll3.sh: New file.
50983         * tests/test-mbmemcasecoll.c: New file.
50984
50985         New module 'mbmemcasecoll'.
50986         * lib/mbmemcasecoll.h: New file.
50987         * lib/mbmemcasecoll.c: New file.
50988         * modules/mbmemcasecoll: New file.
50989
50990         * tests/test-mbmemcasecmp.h: New file, extracted from
50991         tests/test-mbmemcasecmp.c.
50992         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50993         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50994         (main): Update.
50995         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50996
50997 2009-03-09  Bruno Haible  <bruno@clisp.org>
50998
50999         Tests for module 'mbmemcasecmp'.
51000         * modules/mbmemcasecmp-tests: New file.
51001         * tests/test-mbmemcasecmp1.sh: New file.
51002         * tests/test-mbmemcasecmp2.sh: New file.
51003         * tests/test-mbmemcasecmp3.sh: New file.
51004         * tests/test-mbmemcasecmp.c: New file.
51005
51006         New module 'mbmemcasecmp'.
51007         * lib/mbmemcasecmp.h: New file.
51008         * lib/mbmemcasecmp.c: New file.
51009         * modules/mbmemcasecmp: New file.
51010
51011 2009-03-09  Bruno Haible  <bruno@clisp.org>
51012
51013         Tests for module 'unicase/ulc-casecoll'.
51014         * modules/unicase/ulc-casecoll-tests: New file.
51015         * tests/unicase/test-ulc-casecoll1.sh: New file.
51016         * tests/unicase/test-ulc-casecoll2.sh: New file.
51017         * tests/unicase/test-ulc-casecoll.c: New file.
51018
51019         New module 'unicase/ulc-casecoll'.
51020         * lib/unicase.h (ulc_casecoll): New declaration.
51021         * lib/unicase/ulc-casecoll.c: New file.
51022         * modules/unicase/ulc-casecoll: New file.
51023
51024         New module 'unicase/ulc-casexfrm'.
51025         * lib/unicase.h (ulc_casexfrm): New declaration.
51026         * lib/unicase/ulc-casexfrm.c: New file.
51027         * modules/unicase/ulc-casexfrm: New file.
51028
51029 2009-03-09  Bruno Haible  <bruno@clisp.org>
51030
51031         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
51032         invocations.
51033
51034         * m4/mbscasecmp.m4: Remove file.
51035         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
51036         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
51037
51038         * m4/mbscasestr.m4: Remove file.
51039         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
51040         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
51041
51042         * m4/mbschr.m4: Remove file.
51043         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
51044         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
51045
51046         * m4/mbscspn.m4: Remove file.
51047         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
51048         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
51049
51050         * m4/mbslen.m4: Remove file.
51051         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
51052         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
51053
51054         * m4/mbsncasecmp.m4: Remove file.
51055         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
51056         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
51057
51058         * m4/mbsnlen.m4: Remove file.
51059         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
51060         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
51061
51062         * m4/mbspbrk.m4: Remove file.
51063         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
51064         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
51065
51066         * m4/mbspcasecmp.m4: Remove file.
51067         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
51068         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
51069
51070         * m4/mbsrchr.m4: Remove file.
51071         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
51072         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
51073
51074         * m4/mbssep.m4: Remove file.
51075         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
51076         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
51077
51078         * m4/mbsspn.m4: Remove file.
51079         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
51080         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
51081
51082         * m4/mbsstr.m4: Remove file.
51083         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
51084         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
51085
51086         * m4/mbstok_r.m4: Remove file.
51087         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
51088         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
51089
51090         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
51091
51092         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
51093         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
51094
51095         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
51096
51097 2009-03-08  Bruno Haible  <bruno@clisp.org>
51098
51099         Tests for module 'unicase/ulc-casecmp'.
51100         * modules/unicase/ulc-casecmp-tests: New file.
51101         * tests/unicase/test-ulc-casecmp1.sh: New file.
51102         * tests/unicase/test-ulc-casecmp2.sh: New file.
51103         * tests/unicase/test-ulc-casecmp.c: New file.
51104
51105         New module 'unicase/ulc-casecmp'.
51106         * lib/unicase.h (ulc_casecmp): New declaration.
51107         * lib/unicase/ulc-casecmp.c: New file.
51108         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
51109         'const SRC_UNIT *'.
51110         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
51111         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
51112         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
51113         * modules/unicase/ulc-casecmp: New file.
51114
51115         Tests for module 'unicase/u32-is-cased'.
51116         * modules/unicase/u32-is-cased-tests: New file.
51117         * tests/unicase/test-u32-is-cased.c: New file.
51118
51119         Tests for module 'unicase/u16-is-cased'.
51120         * modules/unicase/u16-is-cased-tests: New file.
51121         * tests/unicase/test-u16-is-cased.c: New file.
51122
51123         Tests for module 'unicase/u8-is-cased'.
51124         * modules/unicase/u8-is-cased-tests: New file.
51125         * tests/unicase/test-u8-is-cased.c: New file.
51126         * tests/unicase/test-is-cased.h: New file.
51127
51128         New module 'unicase/u32-is-cased'.
51129         * lib/unicase/u32-is-cased.c: New file.
51130         * modules/unicase/u32-is-cased: New file.
51131
51132         New module 'unicase/u16-is-cased'.
51133         * lib/unicase/u16-is-cased.c: New file.
51134         * modules/unicase/u16-is-cased: New file.
51135
51136         New module 'unicase/u8-is-cased'.
51137         * lib/unicase/u8-is-cased.c: New file.
51138         * lib/unicase/u-is-cased.h: New file.
51139         * modules/unicase/u8-is-cased: New file.
51140
51141         Tests for module 'unicase/u32-is-casefolded'.
51142         * modules/unicase/u32-is-casefolded-tests: New file.
51143         * tests/unicase/test-u32-is-casefolded.c: New file.
51144
51145         Tests for module 'unicase/u16-is-casefolded'.
51146         * modules/unicase/u16-is-casefolded-tests: New file.
51147         * tests/unicase/test-u16-is-casefolded.c: New file.
51148
51149         Tests for module 'unicase/u8-is-casefolded'.
51150         * modules/unicase/u8-is-casefolded-tests: New file.
51151         * tests/unicase/test-u8-is-casefolded.c: New file.
51152         * tests/unicase/test-is-casefolded.h: New file.
51153
51154         New module 'unicase/u32-is-casefolded'.
51155         * lib/unicase/u32-is-casefolded.c: New file.
51156         * modules/unicase/u32-is-casefolded: New file.
51157
51158         New module 'unicase/u16-is-casefolded'.
51159         * lib/unicase/u16-is-casefolded.c: New file.
51160         * modules/unicase/u16-is-casefolded: New file.
51161
51162         New module 'unicase/u8-is-casefolded'.
51163         * lib/unicase/u8-is-casefolded.c: New file.
51164         * modules/unicase/u8-is-casefolded: New file.
51165
51166         Tests for module 'unicase/u32-is-titlecase'.
51167         * modules/unicase/u32-is-titlecase-tests: New file.
51168         * tests/unicase/test-u32-is-titlecase.c: New file.
51169
51170         Tests for module 'unicase/u16-is-titlecase'.
51171         * modules/unicase/u16-is-titlecase-tests: New file.
51172         * tests/unicase/test-u16-is-titlecase.c: New file.
51173
51174         Tests for module 'unicase/u8-is-titlecase'.
51175         * modules/unicase/u8-is-titlecase-tests: New file.
51176         * tests/unicase/test-u8-is-titlecase.c: New file.
51177         * tests/unicase/test-is-titlecase.h: New file.
51178
51179         New module 'unicase/u32-is-titlecase'.
51180         * lib/unicase/u32-is-titlecase.c: New file.
51181         * modules/unicase/u32-is-titlecase: New file.
51182
51183         New module 'unicase/u16-is-titlecase'.
51184         * lib/unicase/u16-is-titlecase.c: New file.
51185         * modules/unicase/u16-is-titlecase: New file.
51186
51187         New module 'unicase/u8-is-titlecase'.
51188         * lib/unicase/u8-is-titlecase.c: New file.
51189         * modules/unicase/u8-is-titlecase: New file.
51190
51191         Tests for module 'unicase/u32-is-lowercase'.
51192         * modules/unicase/u32-is-lowercase-tests: New file.
51193         * tests/unicase/test-u32-is-lowercase.c: New file.
51194
51195         Tests for module 'unicase/u16-is-lowercase'.
51196         * modules/unicase/u16-is-lowercase-tests: New file.
51197         * tests/unicase/test-u16-is-lowercase.c: New file.
51198
51199         Tests for module 'unicase/u8-is-lowercase'.
51200         * modules/unicase/u8-is-lowercase-tests: New file.
51201         * tests/unicase/test-u8-is-lowercase.c: New file.
51202         * tests/unicase/test-is-lowercase.h: New file.
51203
51204         New module 'unicase/u32-is-lowercase'.
51205         * lib/unicase/u32-is-lowercase.c: New file.
51206         * modules/unicase/u32-is-lowercase: New file.
51207
51208         New module 'unicase/u16-is-lowercase'.
51209         * lib/unicase/u16-is-lowercase.c: New file.
51210         * modules/unicase/u16-is-lowercase: New file.
51211
51212         New module 'unicase/u8-is-lowercase'.
51213         * lib/unicase/u8-is-lowercase.c: New file.
51214         * modules/unicase/u8-is-lowercase: New file.
51215
51216         Tests for module 'unicase/u32-is-uppercase'.
51217         * modules/unicase/u32-is-uppercase-tests: New file.
51218         * tests/unicase/test-u32-is-uppercase.c: New file.
51219
51220         Tests for module 'unicase/u16-is-uppercase'.
51221         * modules/unicase/u16-is-uppercase-tests: New file.
51222         * tests/unicase/test-u16-is-uppercase.c: New file.
51223
51224         Tests for module 'unicase/u8-is-uppercase'.
51225         * modules/unicase/u8-is-uppercase-tests: New file.
51226         * tests/unicase/test-u8-is-uppercase.c: New file.
51227         * tests/unicase/test-is-uppercase.h: New file.
51228
51229         New module 'unicase/u32-is-uppercase'.
51230         * lib/unicase/u32-is-uppercase.c: New file.
51231         * modules/unicase/u32-is-uppercase: New file.
51232
51233         New module 'unicase/u16-is-uppercase'.
51234         * lib/unicase/u16-is-uppercase.c: New file.
51235         * modules/unicase/u16-is-uppercase: New file.
51236
51237         New module 'unicase/u8-is-uppercase'.
51238         * lib/unicase/u8-is-uppercase.c: New file.
51239         * modules/unicase/u8-is-uppercase: New file.
51240
51241         New module 'unicase/u32-is-invariant'.
51242         * lib/unicase/u32-is-invariant.c: New file.
51243         * modules/unicase/u32-is-invariant: New file.
51244
51245         New module 'unicase/u16-is-invariant'.
51246         * lib/unicase/u16-is-invariant.c: New file.
51247         * modules/unicase/u16-is-invariant: New file.
51248
51249         New module 'unicase/u8-is-invariant'.
51250         * lib/unicase/u8-is-invariant.c: New file.
51251         * lib/unicase/invariant.h: New file.
51252         * lib/unicase/u-is-invariant.h: New file.
51253         * modules/unicase/u8-is-invariant: New file.
51254
51255         Tests for module 'unicase/u32-casecoll'.
51256         * modules/unicase/u32-casecoll-tests: New file.
51257         * tests/unicase/test-u32-casecoll.c: New file.
51258
51259         Tests for module 'unicase/u16-casecoll'.
51260         * modules/unicase/u16-casecoll-tests: New file.
51261         * tests/unicase/test-u16-casecoll.c: New file.
51262
51263         Tests for module 'unicase/u8-casecoll'.
51264         * modules/unicase/u8-casecoll-tests: New file.
51265         * tests/unicase/test-u8-casecoll.c: New file.
51266
51267         New module 'unicase/u32-casecoll'.
51268         * lib/unicase/u32-casecoll.c: New file.
51269         * modules/unicase/u32-casecoll: New file.
51270
51271         New module 'unicase/u16-casecoll'.
51272         * lib/unicase/u16-casecoll.c: New file.
51273         * modules/unicase/u16-casecoll: New file.
51274
51275         New module 'unicase/u8-casecoll'.
51276         * lib/unicase/u8-casecoll.c: New file.
51277         * lib/unicase/u-casecoll.h: New file.
51278         * modules/unicase/u8-casecoll: New file.
51279
51280         New module 'unicase/u32-casexfrm'.
51281         * lib/unicase/u32-casexfrm.c: New file.
51282         * modules/unicase/u32-casexfrm: New file.
51283
51284         New module 'unicase/u16-casexfrm'.
51285         * lib/unicase/u16-casexfrm.c: New file.
51286         * modules/unicase/u16-casexfrm: New file.
51287
51288         New module 'unicase/u8-casexfrm'.
51289         * lib/unicase/u8-casexfrm.c: New file.
51290         * lib/unicase/u-casexfrm.h: New file.
51291         * modules/unicase/u8-casexfrm: New file.
51292
51293         Tests for module 'unicase/u32-casecmp'.
51294         * modules/unicase/u32-casecmp-tests: New file.
51295         * tests/unicase/test-u32-casecmp.c: New file.
51296
51297         Tests for module 'unicase/u16-casecmp'.
51298         * modules/unicase/u16-casecmp-tests: New file.
51299         * tests/unicase/test-u16-casecmp.c: New file.
51300
51301         Tests for module 'unicase/u8-casecmp'.
51302         * modules/unicase/u8-casecmp-tests: New file.
51303         * tests/unicase/test-u8-casecmp.c: New file.
51304         * tests/unicase/test-casecmp.h: New file.
51305
51306         New module 'unicase/u32-casecmp'.
51307         * lib/unicase/u32-casecmp.c: New file.
51308         * modules/unicase/u32-casecmp: New file.
51309
51310         New module 'unicase/u16-casecmp'.
51311         * lib/unicase/u16-casecmp.c: New file.
51312         * modules/unicase/u16-casecmp: New file.
51313
51314         New module 'unicase/u8-casecmp'.
51315         * lib/unicase/u8-casecmp.c: New file.
51316         * lib/unicase/u-casecmp.h: New file.
51317         * modules/unicase/u8-casecmp: New file.
51318
51319         Tests for module 'unicase/u32-casefold'.
51320         * modules/unicase/u32-casefold-tests: New file.
51321         * tests/unicase/test-u32-casefold.c: New file.
51322
51323         Tests for module 'unicase/u16-casefold'.
51324         * modules/unicase/u16-casefold-tests: New file.
51325         * tests/unicase/test-u16-casefold.c: New file.
51326
51327         Tests for module 'unicase/u8-casefold'.
51328         * modules/unicase/u8-casefold-tests: New file.
51329         * tests/unicase/test-u8-casefold.c: New file.
51330
51331         New module 'unicase/u32-casefold'.
51332         * lib/unicase/u32-casefold.c: New file.
51333         * modules/unicase/u32-casefold: New file.
51334
51335         New module 'unicase/u16-casefold'.
51336         * lib/unicase/u16-casefold.c: New file.
51337         * modules/unicase/u16-casefold: New file.
51338
51339         New module 'unicase/u8-casefold'.
51340         * lib/unicase/u8-casefold.c: New file.
51341         * lib/unicase/u-casefold.h: New file.
51342         * modules/unicase/u8-casefold: New file.
51343
51344         New module 'unicase/tocasefold'.
51345         * lib/unicase/casefold.h: New file.
51346         * lib/unicase/tocasefold.c: New file.
51347         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51348         * modules/unicase/tocasefold: New file.
51349
51350         Tests for module 'unicase/u32-totitle'.
51351         * modules/unicase/u32-totitle-tests: New file.
51352         * tests/unicase/test-u32-totitle.c: New file.
51353
51354         Tests for module 'unicase/u16-totitle'.
51355         * modules/unicase/u16-totitle-tests: New file.
51356         * tests/unicase/test-u16-totitle.c: New file.
51357
51358         Tests for module 'unicase/u8-totitle'.
51359         * modules/unicase/u8-totitle-tests: New file.
51360         * tests/unicase/test-u8-totitle.c: New file.
51361
51362         New module 'unicase/u32-totitle'.
51363         * lib/unicase/u32-totitle.c: New file.
51364         * modules/unicase/u32-totitle: New file.
51365
51366         New module 'unicase/u16-totitle'.
51367         * lib/unicase/u16-totitle.c: New file.
51368         * modules/unicase/u16-totitle: New file.
51369
51370         New module 'unicase/u8-totitle'.
51371         * lib/unicase/u8-totitle.c: New file.
51372         * lib/unicase/u-totitle.h: New file.
51373         * modules/unicase/u8-totitle: New file.
51374
51375         Tests for module 'unicase/u32-tolower'.
51376         * modules/unicase/u32-tolower-tests: New file.
51377         * tests/unicase/test-u32-tolower.c: New file.
51378
51379         Tests for module 'unicase/u16-tolower'.
51380         * modules/unicase/u16-tolower-tests: New file.
51381         * tests/unicase/test-u16-tolower.c: New file.
51382
51383         Tests for module 'unicase/u8-tolower'.
51384         * modules/unicase/u8-tolower-tests: New file.
51385         * tests/unicase/test-u8-tolower.c: New file.
51386
51387         New module 'unicase/u32-tolower'.
51388         * lib/unicase/u32-tolower.c: New file.
51389         * modules/unicase/u32-tolower: New file.
51390
51391         New module 'unicase/u16-tolower'.
51392         * lib/unicase/u16-tolower.c: New file.
51393         * modules/unicase/u16-tolower: New file.
51394
51395         New module 'unicase/u8-tolower'.
51396         * lib/unicase/u8-tolower.c: New file.
51397         * modules/unicase/u8-tolower: New file.
51398
51399         Tests for module 'unicase/u32-toupper'.
51400         * modules/unicase/u32-toupper-tests: New file.
51401         * tests/unicase/test-u32-toupper.c: New file.
51402
51403         Tests for module 'unicase/u16-toupper'.
51404         * modules/unicase/u16-toupper-tests: New file.
51405         * tests/unicase/test-u16-toupper.c: New file.
51406
51407         Tests for module 'unicase/u8-toupper'.
51408         * modules/unicase/u8-toupper-tests: New file.
51409         * tests/unicase/test-u8-toupper.c: New file.
51410
51411         New module 'unicase/u32-toupper'.
51412         * lib/unicase/u32-toupper.c: New file.
51413         * modules/unicase/u32-toupper: New file.
51414
51415         New module 'unicase/u16-toupper'.
51416         * lib/unicase/u16-toupper.c: New file.
51417         * modules/unicase/u16-toupper: New file.
51418
51419         New module 'unicase/u8-toupper'.
51420         * lib/unicase/u8-toupper.c: New file.
51421         * modules/unicase/u8-toupper: New file.
51422
51423         New module 'unicase/u32-casemap'.
51424         * lib/unicase/u32-casemap.c: New file.
51425         * modules/unicase/u32-casemap: New file.
51426
51427         New module 'unicase/u16-casemap'.
51428         * lib/unicase/u16-casemap.c: New file.
51429         * modules/unicase/u16-casemap: New file.
51430
51431         New module 'unicase/u8-casemap'.
51432         * lib/unicase/unicasemap.h: New file.
51433         * lib/unicase/u8-casemap.c: New file.
51434         * lib/unicase/u-casemap.h: New file.
51435         * modules/unicase/u8-casemap: New file.
51436
51437         New module 'unicase/special-casing'.
51438         * lib/unicase/special-casing.h: New file.
51439         * lib/unicase/special-casing.c: New file.
51440         * lib/unicase/special-casing-table.gperf: New file, generated by
51441         gen-uni-tables.c.
51442         * modules/unicase/special-casing: New file.
51443
51444         Tests for module 'unicase/locale-language'.
51445         * modules/unicase/locale-language-tests: New file.
51446         * tests/unicase/test-locale-language.sh: New file.
51447         * tests/unicase/test-locale-language.c: New file.
51448
51449         New module 'unicase/locale-language'.
51450         * lib/unicase/locale-language.c: New file.
51451         * lib/unicase/locale-languages.gperf: New file.
51452         * modules/unicase/locale-language: New file.
51453
51454         Generate more tables for case conversion and case folding.
51455         * lib/gen-uni-tables.c (SCC_*): New enum items.
51456         (struct special_casing_rule): New type.
51457         (casing_rules, num_casing_rules, allocated_casing_rules): New
51458         variables.
51459         (add_casing_rule, fill_casing_rules): New functions.
51460         (struct casefold_rule): New type.
51461         (casefolding_rules, num_casefolding_rules,
51462         allocated_casefolding_rules): New variables.
51463         (fill_casefolding_rules): New function.
51464         (unicode_casefold): New variable.
51465         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51466         sort_casing_rules, output_casing_rules): New functions.
51467         (main): Accept to more arguments: SpecialCasing.txt and
51468         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51469         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51470         Output mapping for casefolding.
51471
51472         * lib/unicase.h: Include stdbool.h, uninorm.h.
51473         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51474         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51475         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51476         arguments.
51477         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51478         resultp arguments.
51479         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51480         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51481         resultp arguments.
51482         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51483         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51484         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51485         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51486         declarations.
51487         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51488
51489 2009-03-08  Bruno Haible  <bruno@clisp.org>
51490
51491         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51492         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51493         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51494         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51495
51496 2009-03-07  Bruno Haible  <bruno@clisp.org>
51497
51498         Adjust u*_normcmp, u*_normcoll API.
51499         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51500         u16_normcoll, u32_normcoll): Change failure conventions.
51501         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51502         errno and return -1.
51503         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51504
51505 2009-03-07  Bruno Haible  <bruno@clisp.org>
51506
51507         Tests for module 'uninorm/u32-normcoll'.
51508         * modules/uninorm/u32-normcoll-tests: New file.
51509         * tests/uninorm/test-u32-normcoll.c: New file.
51510
51511         Tests for module 'uninorm/u16-normcoll'.
51512         * modules/uninorm/u16-normcoll-tests: New file.
51513         * tests/uninorm/test-u16-normcoll.c: New file.
51514
51515         Tests for module 'uninorm/u8-normcoll'.
51516         * modules/uninorm/u8-normcoll-tests: New file.
51517         * tests/uninorm/test-u8-normcoll.c: New file.
51518
51519 2009-03-07  Bruno Haible  <bruno@clisp.org>
51520
51521         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51522         tests/uninorm/test-u32-normcmp.c.
51523         * tests/uninorm/test-u32-normcmp.c: Include it.
51524         (test_nonascii): New function, extracted from main. Add some more
51525         tests.
51526         (main): Invoke test_ascii and test_nonascii.
51527         * modules/uninorm/u32-normcmp-tests (Files): Add
51528         tests/uninorm/test-u32-normcmp.h.
51529         (Depends-on): Remove uninorm/u32-normcmp.
51530
51531         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51532         tests/uninorm/test-u16-normcmp.c.
51533         * tests/uninorm/test-u16-normcmp.c: Include it.
51534         (test_nonascii): New function, extracted from main. Add some more
51535         tests.
51536         (main): Invoke test_ascii and test_nonascii.
51537         * modules/uninorm/u16-normcmp-tests (Files): Add
51538         tests/uninorm/test-u16-normcmp.h.
51539         (Depends-on): Remove uninorm/u16-normcmp.
51540
51541         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51542         tests/uninorm/test-u8-normcmp.c.
51543         * tests/uninorm/test-u8-normcmp.c: Include it.
51544         (test_nonascii): New function, extracted from main. Add some more
51545         tests.
51546         (main): Invoke test_ascii and test_nonascii.
51547         * modules/uninorm/u8-normcmp-tests (Files): Add
51548         tests/uninorm/test-u8-normcmp.h.
51549         (Depends-on): Remove uninorm/u8-normcmp.
51550
51551 2009-03-07  Bruno Haible  <bruno@clisp.org>
51552
51553         New module 'uninorm/u32-normcoll'.
51554         * lib/uninorm/u32-normcoll.c: New file.
51555         * modules/uninorm/u32-normcoll: New file.
51556
51557         New module 'uninorm/u16-normcoll'.
51558         * lib/uninorm/u16-normcoll.c: New file.
51559         * modules/uninorm/u16-normcoll: New file.
51560
51561         New module 'uninorm/u8-normcoll'.
51562         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51563         declarations.
51564         * lib/uninorm/u8-normcoll.c: New file.
51565         * lib/uninorm/u-normcoll.h: New file.
51566         * modules/uninorm/u8-normcoll: New file.
51567
51568         New module 'uninorm/u32-normxfrm'.
51569         * lib/uninorm/u32-normxfrm.c: New file.
51570         * modules/uninorm/u32-normxfrm: New file.
51571
51572         New module 'uninorm/u16-normxfrm'.
51573         * lib/uninorm/u16-normxfrm.c: New file.
51574         * modules/uninorm/u16-normxfrm: New file.
51575
51576         New module 'uninorm/u8-normxfrm'.
51577         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51578         declarations.
51579         * lib/uninorm/u8-normxfrm.c: New file.
51580         * lib/uninorm/u-normxfrm.h: New file.
51581         * modules/uninorm/u8-normxfrm: New file.
51582
51583 2009-03-07  Bruno Haible  <bruno@clisp.org>
51584
51585         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51586         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51587         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51588
51589 2009-03-07  Bruno Haible  <bruno@clisp.org>
51590
51591         New module 'memxfrm'.
51592         * lib/memxfrm.h: New file.
51593         * lib/memxfrm.c: New file.
51594         * modules/memxfrm: New file.
51595
51596 2009-03-07  Bruno Haible  <bruno@clisp.org>
51597
51598         New module 'memcmp2'.
51599         * lib/memcmp2.h: New file.
51600         * lib/memcmp2.c: New file.
51601         * modules/memcmp2: New file.
51602
51603 2009-03-07  Bruno Haible  <bruno@clisp.org>
51604
51605         Tests for module 'uninorm/decomposing-form'.
51606         * modules/uninorm/decomposing-form-tests: New file.
51607         * tests/uninorm/test-decomposing-form.c: New file.
51608
51609         New module 'uninorm/decomposing-form'.
51610         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51611         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51612         Add 'decomposing_variant' field.
51613         * lib/uninorm/decomposing-form.c: New file.
51614         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51615         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51616         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51617         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51618         * modules/uninorm/decomposing-form: New file.
51619         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51620         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51621
51622 2009-03-07  Bruno Haible  <bruno@clisp.org>
51623
51624         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51625         strings.
51626
51627 2009-03-06  Bruno Haible  <bruno@clisp.org>
51628
51629         Tests for module 'uninorm/u32-normcmp'.
51630         * tests/uninorm/test-u32-normcmp.c: New file.
51631         * modules/uninorm/u32-normcmp-tests: New file.
51632
51633         Tests for module 'uninorm/u16-normcmp'.
51634         * tests/uninorm/test-u16-normcmp.c: New file.
51635         * modules/uninorm/u16-normcmp-tests: New file.
51636
51637         Tests for module 'uninorm/u8-normcmp'.
51638         * tests/uninorm/test-u8-normcmp.c: New file.
51639         * modules/uninorm/u8-normcmp-tests: New file.
51640
51641         New module 'uninorm/u32-normcmp'.
51642         * lib/uninorm/u32-normcmp.c: New file.
51643         * modules/uninorm/u32-normcmp: New file.
51644
51645         New module 'uninorm/u16-normcmp'.
51646         * lib/uninorm/u16-normcmp.c: New file.
51647         * modules/uninorm/u16-normcmp: New file.
51648
51649         New module 'uninorm/u8-normcmp'.
51650         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51651         declarations.
51652         * lib/uninorm/u8-normcmp.c: New file.
51653         * lib/uninorm/u-normcmp.h: New file.
51654         * modules/uninorm/u8-normcmp: New file.
51655
51656 2009-03-06  Bruno Haible  <bruno@clisp.org>
51657
51658         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51659         Reported by Eric Blake.
51660
51661 2009-03-06  Eric Blake  <ebb9@byu.net>
51662             Bruno Haible  <bruno@clisp.org>
51663
51664         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51665         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51666         condition.
51667         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51668         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51669         condition.
51670         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51671
51672 2009-03-06  Eric Blake  <ebb9@byu.net>
51673
51674         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51675         to avoid compiler warnings.
51676         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51677
51678 2009-03-05  Bruno Haible  <bruno@clisp.org>
51679
51680         * tests/test-ftell.c (main): Disable test beyond end of file on
51681         FreeMiNT.
51682         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51683
51684 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51685
51686         * lib/filevercmp.c: Move hidden files up in ordering.
51687         * tests/test-filevercmp.c: Add tests for hidden files.
51688
51689 2009-03-04  Bruno Haible  <bruno@clisp.org>
51690
51691         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51692         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51693         AM_CFLAGS.
51694         Reported by Simon Josefsson.
51695
51696 2009-03-03  Bruno Haible  <bruno@clisp.org>
51697
51698         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51699         Reported by Simon Josefsson.
51700
51701         * doc/ld-version-script.texi: Update node reference.
51702
51703 2009-03-03  Bruno Haible  <bruno@clisp.org>
51704
51705         * modules/visibility (License): Change to 'unlimited'.
51706         Suggested by Simon Josefsson.
51707
51708 2009-03-03  Jim Meyering  <meyering@redhat.com>
51709
51710         unlinkdir: cannot_unlink_dir may modify process state
51711         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51712         it's neither thread-safe nor appropriate for use in a library.
51713
51714 2009-03-03  Eric Blake  <ebb9@byu.net>
51715
51716         test-closein: silence test under Darwin
51717         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51718         care if it dies from EPIPE or EBADF.
51719
51720 2009-03-03  Bruno Haible  <bruno@clisp.org>
51721
51722         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51723         earlier.
51724         * doc/visibility.texi: Fix @node and @section.
51725
51726 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51727
51728         * doc/gnulib.texi: Link to sections for ld version script and
51729         visibility.
51730         * doc/visibility.texi: Add @node and @section.
51731         * modules/ld-version-script: New module.
51732         * m4/ld-version-script.m4: New file.
51733         * doc/ld-version-script.texi: New file.
51734
51735 2009-03-02  David Lutterkort  <lutter@redhat.com>
51736
51737         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51739
51740 2009-03-02  Bruno Haible  <bruno@clisp.org>
51741
51742         * doc/visibility.texi: Mention libtool's -export-symbols option.
51743
51744 2009-03-02  Jim Meyering  <meyering@redhat.com>
51745
51746         announce-gen: new option: --no-print-checksums
51747         * build-aux/announce-gen (usage): Describe it.
51748         (print_checksums): Print a newline here, not in the [*] footnote.
51749         (main): Honor it.
51750
51751 2009-03-01  Bruno Haible  <bruno@clisp.org>
51752
51753         Use socklen_t in the native Windows replacements prototypes.
51754         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51755         instead of 'int'.
51756         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51757         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51758         * modules/getsockopt (Depends-on): Add socklen.
51759         * modules/setsockopt (Depends-on): Add socklen.
51760
51761 2009-03-01  Bruno Haible  <bruno@clisp.org>
51762
51763         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51764         least 4.2.
51765
51766 2009-03-01  Eric Blake  <ebb9@byu.net>
51767             Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51770         error messages.
51771         * lib/wait-process.c (wait_subprocess): Omit error message about
51772         deadly signal sent to the child of termsigp != NULL.
51773
51774 2009-03-01  Eric Blake  <ebb9@byu.net>
51775
51776         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51777
51778 2009-03-01  Bruno Haible  <bruno@clisp.org>
51779
51780         Avoid a gcc warning.
51781         * tests/test-sched.c (b): Make global.
51782         Reported by Eric Blake.
51783
51784 2009-01-19  Martin Lambers  <marlam@marlam.de>
51785
51786         Provide POSIX semantics for socket timeout options on W32.
51787         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51788         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51789         * modules/setsockopt: Depend on sys_time module for struct timeval.
51790         * modules/getsockopt: Depend on sys_time module for struct timeval.
51791
51792 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51793
51794         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51795         __USE_GNU, for consistency with netdb.in.h.
51796         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51797
51798 2009-03-01  Bruno Haible  <bruno@clisp.org>
51799
51800         More support for FreeMiNT.
51801         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51802         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51803
51804 2009-03-01  Bruno Haible  <bruno@clisp.org>
51805
51806         More support for FreeMiNT.
51807         * lib/fpurge.c (fpurge): Correct last commit.
51808         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51809
51810 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51811
51812         Fix unportable awk script in vc-list-files.
51813         * build-aux/vc-list-files: In the replacement awk script, use
51814         substr with a second argument of 1, not zero.
51815         Report by Simon Josefsson.
51816
51817 2009-02-28  Bruno Haible  <bruno@clisp.org>
51818
51819         More support for FreeMiNT.
51820         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51821         to FreeMiNT today.
51822         * lib/fwriting.c (fwriting): Likewise.
51823         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51824
51825 2009-02-28  Bruno Haible  <bruno@clisp.org>
51826
51827         * tests/test-freadseek.c (main): Disable test beyond end of file on
51828         FreeMiNT.
51829         * tests/test-ftello.c (main): Likewise.
51830         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51831
51832 2009-02-28  Bruno Haible  <bruno@clisp.org>
51833
51834         Add tentative support for FreeMiNT.
51835         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51836         * lib/fpurge.c (fpurge): Likewise.
51837         * lib/freadable.c (freadable): Likewise.
51838         * lib/freading.c (freading): Likewise.
51839         * lib/freadptr.c (freadptr): Likewise.
51840         * lib/freadseek.c (freadptrinc): Likewise.
51841         * lib/fseeko.c (rpl_fseeko): Likewise.
51842         * lib/fseterr.c (fseterr): Likewise.
51843         * lib/fwritable.c (fwritable): Likewise.
51844         * lib/fwriting.c (fwriting): Likewise.
51845         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51846         Hourihane.
51847         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51848
51849 2009-02-28  Bruno Haible  <bruno@clisp.org>
51850
51851         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51852         SIGCHLD.
51853         Reported by Jim Meyering.
51854
51855 2009-02-28  Bruno Haible  <bruno@clisp.org>
51856
51857         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51858         Mention the results of these tests on various platforms.
51859         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51860         order.
51861         * doc/posix-functions/printf.texi: Likewise.
51862         * doc/posix-functions/snprintf.texi: Likewise.
51863         * doc/posix-functions/sprintf.texi: Likewise.
51864         * doc/posix-functions/vfprintf.texi: Likewise.
51865         * doc/posix-functions/vprintf.texi: Likewise.
51866         * doc/posix-functions/vsnprintf.texi: Likewise.
51867         * doc/posix-functions/vsprintf.texi: Likewise.
51868         * doc/glibc-functions/obstack_printf.texi: Likewise.
51869         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51870
51871 2009-02-28  Bruno Haible  <bruno@clisp.org>
51872
51873         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51874         Reported by Loïc Minier <lool@dooz.org>.
51875
51876 2009-02-27  Bruno Haible  <bruno@clisp.org>
51877
51878         * gnulib-tool (func_import): Make the sed expression used to create the
51879         sed script for updating the .gitignore file POSIX compliant.
51880         Reported by Eric Blake.
51881
51882 2009-02-27  Bruno Haible  <bruno@clisp.org>
51883
51884         * gnulib-tool (sed): Don't alias as "sed --posix".
51885         Reported by Eric Blake.
51886
51887 2009-02-27  Bruno Haible  <bruno@clisp.org>
51888
51889         Avoid test link errors.
51890         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51891         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51892         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51893         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51895
51896 2009-02-27  Bruno Haible  <bruno@clisp.org>
51897
51898         Avoid spurious "(cached)" in configure output.
51899         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51900         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51901         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51902         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51903         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51904         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51905         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51906         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51907         Reported by Eric Blake.
51908
51909 2009-02-27  Eric Blake  <ebb9@byu.net>
51910
51911         printf: fix regression in previous patch
51912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51913
51914 2009-02-27  Bruno Haible  <bruno@clisp.org>
51915
51916         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51917         value.
51918         * lib/stdint.in.h: Likewise.
51919         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51920
51921 2009-02-27  Eric Blake  <ebb9@byu.net>
51922
51923         doc: mention more functions added in cygwin 1.7.0
51924         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51925         addition.
51926         * doc/posix-functions/open_wmemstream.texi: Likewise.
51927         * doc/posix-functions/wcsnlen.texi: Likewise.
51928         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51929         * doc/posix-functions/wcstod.texi: Likewise.
51930         * doc/posix-functions/wcstof.texi: Likewise.
51931         * doc/posix-functions/wcstoimax.texi: Likewise.
51932         * doc/posix-functions/wcstok.texi: Likewise.
51933         * doc/posix-functions/wcstoumax.texi: Likewise.
51934
51935         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51937         * doc/posix-functions/fprintf.texi: Update.
51938         * doc/posix-functions/printf.texi: Update.
51939         * doc/posix-functions/snprintf.texi: Update.
51940         * doc/posix-functions/sprintf.texi: Update.
51941         * doc/posix-functions/vfprintf.texi: Update.
51942         * doc/posix-functions/vprintf.texi: Update.
51943         * doc/posix-functions/vsnprintf.texi: Update.
51944         * doc/posix-functions/vsprintf.texi: Update.
51945         * doc/glibc-functions/obstack_printf.texi: Update.
51946         * doc/glibc-functions/obstack_vprintf.texi: Update.
51947
51948 2009-02-26  Eric Blake  <ebb9@byu.net>
51949
51950         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51951         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51952         compilation bug by using runtime conversion.
51953         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51954         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51955         * modules/ceill-tests (Files): Use nan.h.
51956         * modules/floorl-tests (Files): Likewise.
51957         * modules/frexpl-tests (Files): Likewise.
51958         * modules/isnanl-tests (Files): Likewise.
51959         * modules/ldexpl-tests (Files): Likewise.
51960         * modules/roundl-tests (Files): Likewise.
51961         * modules/truncl-tests (Files): Likewise.
51962         * tests/test-ceill.c (main): Use a working NaN.
51963         * tests/test-floorl.c (main): Likewise.
51964         * tests/test-frexpl.c (main): Likewise.
51965         * tests/test-isnan.c (test_long_double): Likewise.
51966         * tests/test-isnanl.h (main): Likewise.
51967         * tests/test-ldexpl.h (main): Likewise.
51968         * tests/test-roundl.h (main): Likewise.
51969         * tests/test-truncl.h (main): Likewise.
51970         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51971
51972 2009-02-26  Eric Blake  <ebb9@byu.net>
51973             Bruno Haible  <bruno@clisp.org>
51974
51975         Work around a *printf bug with %ls on Solaris.
51976         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51977         precision is specified, sprintf stops converting the wide string
51978         argument when the number of bytes that have been produced by this
51979         conversion equals or exceeds the precision.
51980         * doc/posix-functions/fprintf.texi: Update.
51981         * doc/posix-functions/printf.texi: Update.
51982         * doc/posix-functions/snprintf.texi: Update.
51983         * doc/posix-functions/sprintf.texi: Update.
51984         * doc/posix-functions/vfprintf.texi: Update.
51985         * doc/posix-functions/vprintf.texi: Update.
51986         * doc/posix-functions/vsnprintf.texi: Update.
51987         * doc/posix-functions/vsprintf.texi: Update.
51988         * doc/glibc-functions/obstack_printf.texi: Update.
51989         * doc/glibc-functions/obstack_vprintf.texi: Update.
51990
51991 2009-02-26  Eric Blake  <ebb9@byu.net>
51992
51993         stdlib: favor compiler check of random.h
51994         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51995         to avoid an ObjC random.h installed by Swarm.
51996
51997 2009-02-26  Bruno Haible  <bruno@clisp.org>
51998
51999         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
52000         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
52001         Reported by Gary V. Vaughan <gary@gnu.org>.
52002
52003 2009-02-26  Bruno Haible  <bruno@clisp.org>
52004
52005         Fix *printf behaviour regarding the %ls directive.
52006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
52007         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
52008         NEED_PRINTF_DIRECTIVE_LS.
52009         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
52010         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52011         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52012         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
52013         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
52014         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
52015         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52020         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
52021         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52022         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52023         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52024         * doc/posix-functions/fprintf.texi: Update.
52025         * doc/posix-functions/printf.texi: Update.
52026         * doc/posix-functions/snprintf.texi: Update.
52027         * doc/posix-functions/sprintf.texi: Update.
52028         * doc/posix-functions/vfprintf.texi: Update.
52029         * doc/posix-functions/vprintf.texi: Update.
52030         * doc/posix-functions/vsnprintf.texi: Update.
52031         * doc/posix-functions/vsprintf.texi: Update.
52032         * doc/glibc-functions/obstack_printf.texi: Update.
52033         * doc/glibc-functions/obstack_vprintf.texi: Update.
52034         Reported by Eric Blake.
52035
52036 2009-02-25  Bruno Haible  <bruno@clisp.org>
52037
52038         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
52039         with known value.
52040         Reported by Gary V. Vaughan <gary@gnu.org>.
52041
52042 2009-02-25  Bruno Haible  <bruno@clisp.org>
52043
52044         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
52045         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
52046         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
52047         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
52048         Reported by Gary V. Vaughan <gary@gnu.org>.
52049
52050 2009-02-25  Bruno Haible  <bruno@clisp.org>
52051
52052         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
52053         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
52054         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
52055         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
52056         Reported by Gary V. Vaughan <gary@gnu.org>.
52057
52058 2009-02-25  Eric Blake  <ebb9@byu.net>
52059
52060         tests: skip fseek/ftell tests if ungetc is broken
52061         * m4/ungetc.m4: New file.
52062         * modules/fseek-tests: Split test, so ungetc dependency is
52063         separate from rest of test.
52064         * modules/fseeko-tests: Likewise.
52065         * modules/ftell-tests: Likewise.
52066         * modules/ftello-tests: Likewise.
52067         * tests/test-fseek.c (main): Isolate ungetc dependency.
52068         * tests/test-fseeko.c (main): Likewise.
52069         * tests/test-ftell.c (main): Likewise.
52070         * tests/test-ftello.c (main): Likewise.
52071         * tests/test-fseek2.sh: New file.
52072         * tests/test-fseeko2.sh: Likewise.
52073         * tests/test-ftell2.sh: Likewise.
52074         * tests/test-ftello2.sh: Likewise.
52075
52076 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
52077
52078         test-getaddrinfo: fix usage of skip return code 77
52079         * tests/test-gettaddrinfo.c: Return skip code 77 only
52080         for first occurrence of skip (4x77 is not 77)
52081
52082 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
52083
52084         strtod: avoid C99 decl-after-statement
52085         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
52086
52087 2009-02-24  Eric Blake  <ebb9@byu.net>
52088
52089         strtod: detect HP-UX 11.31 bug
52090         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
52091         Reported by Gary V. Vaughan.
52092
52093 2009-02-23  Bruno Haible  <bruno@clisp.org>
52094
52095         Fix invalid read past end of memory block.
52096         * lib/vasnprintf.c (DCHAR_SET): Define.
52097         (local_wcslen): Define only when needed.
52098         (local_strnlen, local_wcsnlen): New functions.
52099         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
52100         directives that involve a conversion ourselves.
52101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
52102         wcsnlen, mbrtowc, wcrtomb.
52103         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
52104         * tests/test-vasprintf-posix.c (test_function): Likewise.
52105         * tests/test-snprintf-posix.h (test_function): Likewise.
52106         * tests/test-sprintf-posix.h (test_function): Likewise.
52107         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52108
52109 2009-02-22  Bruno Haible  <bruno@clisp.org>
52110
52111         Implement new clarified decomposition of Hangul syllables.
52112         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
52113         of type LTV, return only a pairwise decomposition.
52114         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
52115         Likewise.
52116         * tests/uninorm/test-decomposition.c (main): Updated expected result.
52117         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
52118         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
52119
52120 2009-02-22  Bruno Haible  <bruno@clisp.org>
52121
52122         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
52123         zero-length results and shrink excess allocated memory.
52124         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
52125         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
52126         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
52127         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
52128         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
52129         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
52130         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
52131         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
52132         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
52133         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
52134         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
52135         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
52136
52137 2009-02-21  Bruno Haible  <bruno@clisp.org>
52138
52139         * doc/gnulib.texi: Include safe-alloc.texi earlier.
52140         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
52141         spaces after a period. Put a space between a macro name and its
52142         argument list. Trivial rewordings.
52143         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
52144         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52145         (main): Return 0 explicitly.
52146
52147 2009-02-21  Bruno Haible  <bruno@clisp.org>
52148
52149         Tests for module 'uninorm/filter'.
52150         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52151         * modules/uninorm/filter-tests: New file.
52152
52153         New module 'uninorm/filter'.
52154         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52155         uninorm_filter_flush, uninorm_filter_free): New declarations.
52156         * lib/uninorm/uninorm-filter.c: New file.
52157         * modules/uninorm/filter: New file.
52158
52159 2009-02-21  Bruno Haible  <bruno@clisp.org>
52160
52161         Tests for module 'uninorm/nfkc'.
52162         * tests/uninorm/test-nfkc.c: New file.
52163         * tests/uninorm/test-u8-nfkc.c: New file.
52164         * tests/uninorm/test-u16-nfkc.c: New file.
52165         * tests/uninorm/test-u32-nfkc.c: New file.
52166         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52167         * tests/uninorm/test-u32-nfkc-big.c: New file.
52168         * modules/uninorm/nfkc-tests: New file.
52169
52170         New module 'uninorm/nfkc'.
52171         * lib/uninorm/nfkc.c: New file.
52172         * modules/uninorm/nfkc: New file.
52173
52174         Tests for module 'uninorm/nfkd'.
52175         * tests/uninorm/test-nfkd.c: New file.
52176         * tests/uninorm/test-u8-nfkd.c: New file.
52177         * tests/uninorm/test-u16-nfkd.c: New file.
52178         * tests/uninorm/test-u32-nfkd.c: New file.
52179         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52180         * tests/uninorm/test-u32-nfkd-big.c: New file.
52181         * modules/uninorm/nfkd-tests: New file.
52182
52183         New module 'uninorm/nfkd'.
52184         * lib/uninorm/nfkd.c: New file.
52185         * modules/uninorm/nfkd: New file.
52186
52187         Tests for module 'uninorm/nfc'.
52188         * tests/uninorm/test-nfc.c: New file.
52189         * tests/uninorm/test-u8-nfc.c: New file.
52190         * tests/uninorm/test-u16-nfc.c: New file.
52191         * tests/uninorm/test-u32-nfc.c: New file.
52192         * tests/uninorm/test-u32-nfc-big.sh: New file.
52193         * tests/uninorm/test-u32-nfc-big.c: New file.
52194         * modules/uninorm/nfc-tests: New file.
52195
52196         New module 'uninorm/nfc'.
52197         * lib/uninorm/nfc.c: New file.
52198         * modules/uninorm/nfc: New file.
52199
52200         Tests for module 'uninorm/nfd'.
52201         * tests/uninorm/test-nfd.c: New file.
52202         * tests/uninorm/test-u8-nfd.c: New file.
52203         * tests/uninorm/test-u16-nfd.c: New file.
52204         * tests/uninorm/test-u32-nfd.c: New file.
52205         * tests/uninorm/test-u32-nfd-big.sh: New file.
52206         * tests/uninorm/test-u32-nfd-big.c: New file.
52207         * tests/uninorm/test-u32-normalize-big.h: New file.
52208         * tests/uninorm/test-u32-normalize-big.c: New file.
52209         * tests/uninorm/NormalizationTest.txt: New file, created from
52210         Unicode 5.1.0 NormalizationTest.txt.
52211         * modules/uninorm/nfd-tests: New file.
52212
52213         New module 'uninorm/nfd'.
52214         * lib/uninorm/nfd.c: New file.
52215         * modules/uninorm/nfd: New file.
52216
52217         New module 'uninorm/u32-normalize'.
52218         * lib/uninorm/u32-normalize.c: New file.
52219         * modules/uninorm/u32-normalize: New file.
52220
52221         New module 'uninorm/u16-normalize'.
52222         * lib/uninorm/u16-normalize.c: New file.
52223         * modules/uninorm/u16-normalize: New file.
52224
52225         New module 'uninorm/u8-normalize'.
52226         * lib/uninorm/u8-normalize.c: New file.
52227         * lib/uninorm/normalize-internal.h: New file.
52228         * lib/uninorm/u-normalize-internal.h: New file.
52229         * modules/uninorm/u8-normalize: New file.
52230
52231         New module 'uninorm/decompose-internal'.
52232         * lib/uninorm/decompose-internal.c: New file.
52233         * modules/uninorm/decompose-internal: New file.
52234
52235         Tests for module 'uninorm/composition'.
52236         * tests/uninorm/test-composition.c: New file.
52237         * modules/uninorm/composition-tests: New file.
52238
52239         New module 'uninorm/composition'.
52240         * lib/uninorm/composition.c: New file.
52241         * lib/uninorm/composition-table.gperf: New file, generated by
52242         gen-uni-tables.
52243         * modules/uninorm/composition: New file.
52244
52245         Tests for module 'uninorm/compat-decomposition'.
52246         * tests/uninorm/test-compat-decomposition.c: New file.
52247         * modules/uninorm/compat-decomposition-tests: New file.
52248
52249         New module 'uninorm/compat-decomposition'.
52250         * lib/uninorm/decompose-internal.h: New file.
52251         * lib/uninorm/compat-decomposition.c: New file.
52252         * modules/uninorm/compat-decomposition: New file.
52253
52254         Tests for module 'uninorm/canonical-decomposition'.
52255         * tests/uninorm/test-canonical-decomposition.c: New file.
52256         * modules/uninorm/canonical-decomposition-tests: New file.
52257
52258         New module 'uninorm/canonical-decomposition'.
52259         * lib/uninorm/canonical-decomposition.c: New file.
52260         * modules/uninorm/canonical-decomposition: New file.
52261
52262         Tests for module 'uninorm/decomposition'.
52263         * tests/uninorm/test-decomposition.c: New file.
52264         * modules/uninorm/decomposition-tests: New file.
52265
52266         New module 'uninorm/decomposition'.
52267         * lib/uninorm/decomposition.c: New file.
52268         * modules/uninorm/decomposition: New file.
52269
52270         New module 'uninorm/decomposition-table'.
52271         * lib/uninorm/decomposition-table.h: New file.
52272         * lib/uninorm/decomposition-table.c: New file.
52273         * lib/uninorm/decomposition-table1.h: New file, generated by
52274         gen-uni-tables.
52275         * lib/uninorm/decomposition-table2.h: New file, generated by
52276         gen-uni-tables.
52277         * modules/uninorm/decomposition-table: New file.
52278
52279         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52280         (UC_DECOMP_*): New enumeration items.
52281         (get_decomposition): New function.
52282         (struct decomp_table): New type.
52283         (output_decomposition, output_decomposition_tables): New functions.
52284         (unicode_composition_exclusions): New variable.
52285         (fill_composition_exclusions, debug_output_composition_tables): New
52286         functions.
52287         (main): Accept one more argument. Invoke fill_composition_exclusions.
52288         Output decomposition and composition tables.
52289
52290         New module 'uninorm/base'.
52291         * lib/uninorm.h: New file.
52292         * lib/unictype.h: Update comment.
52293         * modules/uninorm/base: New file.
52294
52295 2009-02-21  David Lutterkort  <lutter@redhat.com>
52296
52297         Tests for module 'safe-alloc'.
52298         * tests/test-safe-alloc.c: New file.
52299         * modules/safe-alloc-tests: New file.
52300
52301         New module 'safe-alloc'.
52302         * lib/safe-alloc.h: New file.
52303         * lib/safe-alloc.c: New file.
52304         * m4/safe-alloc.m4: New file.
52305         * modules/safe-alloc: New file.
52306         * doc/safe-alloc.texi: New file.
52307         * doc/gnulib.texi: Include it.
52308         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52309         safe-alloc.
52310
52311 2009-02-18  Bruno Haible  <bruno@clisp.org>
52312
52313         Fix link error on non-glibc systems.
52314         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52315         variable.
52316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52317
52318 2009-02-18  Jim Meyering  <meyering@redhat.com>
52319
52320         fts: avoid used-uninitialized error due to recent change
52321         * lib/fts.c (fts_read): Guard uses of the new member,
52322         parent->fts_n_dirs_remaining, since it's not relevant for
52323         the parent of a directory specified on the command-line.
52324
52325 2009-02-17  James Youngman  <jay@gnu.org>
52326             Bruno Haible  <bruno@clisp.org>
52327
52328         * m4/include_next.m4: Reformulate comment.
52329
52330 2009-02-16  Jim Meyering  <meyering@redhat.com>
52331
52332         fts: add #if guards so that the fts_lgpl module still builds
52333         * lib/fts.c: Guard just-added hash-table-using parts with
52334         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52335         Reported by Simon Josefsson.
52336
52337 2009-02-15  Bruno Haible  <bruno@clisp.org>
52338
52339         * modules/array-mergesort-tests: New file.
52340         * tests/test-array-mergesort.c: New file.
52341
52342         New module 'array-mergesort'.
52343         * modules/array-mergesort: New file.
52344         * lib/array-mergesort.h: New file.
52345
52346 2009-02-15  Bruno Haible  <bruno@clisp.org>
52347
52348         Fix 2009-02-07 commit.
52349         * lib/gen-uni-tables.c (output_predicate, output_category,
52350         output_combclass, output_bidi_category, output_decimal_digit,
52351         output_digit, output_numeric, output_mirror, output_scripts,
52352         output_ident_category, output_simple_mapping): Fix format directives.
52353         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52354
52355 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52356
52357         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52358         fixes are available from IBM.
52359
52360 2009-02-13  Jim Meyering  <meyering@redhat.com>
52361
52362         fts: arrange not to stat non-directories in more cases
52363         This makes GNU find (when it doesn't need to stat each file)
52364         *much* more efficient at traversing reiserfs file systems.
52365         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52366         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52367         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52368         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52369         (leaf_optimization_applies): New function.
52370         (LCO_hash, LCO_compare): New helper functions.
52371         (link_count_optimize_ok): New function.
52372         (fts_stat): Initialize new member (if dir).
52373         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52374         we've just stat'ed a directory.  Skip the stat call when possible.
52375         ---
52376         Note this AFS-related exchange:
52377         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52378         and note find's pioctl call in find/fstype.c.
52379         But that is necessary only if you want to enable the
52380         optimization for AFS, and for now, I don't.
52381
52382         fts: move a function definition "up" (no semantic change)
52383         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52384         "up" to precede upcoming use of a related function.
52385
52386 2009-02-11  Jim Meyering  <meyering@redhat.com>
52387
52388         fts: correct internal computation of nlinks (optimization-related)
52389         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52390         whether the current entry is a directory, so don't test it.
52391
52392 2009-02-10  Bruno Haible  <bruno@clisp.org>
52393
52394         Tests for module 'uniwbrk/ulc-wordbreaks'.
52395         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52396         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52397         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52398
52399         Tests for module 'uniwbrk/u32-wordbreaks'.
52400         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52401         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52402
52403         Tests for module 'uniwbrk/u16-wordbreaks'.
52404         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52405         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52406
52407         Tests for module 'uniwbrk/u8-wordbreaks'.
52408         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52409         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52410
52411 2009-02-10  Bruno Haible  <bruno@clisp.org>
52412
52413         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52414         property.
52415         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52416         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52417         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52418
52419 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52420
52421         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52422         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52423
52424 2009-02-10  Bruno Haible  <bruno@clisp.org>
52425
52426         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52427         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52428         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52429         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52430         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52431         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52432
52433 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52434
52435         * lib/sockets.h (gl_fd_to_handle): New function.
52436
52437         * tests/test-sockets.c: Call gl_fd_to_handle.
52438
52439 2009-02-09  Bruno Haible  <bruno@clisp.org>
52440
52441         * doc/havelib.texi: Document the conventions on bi-arch systems.
52442
52443 2009-02-08  Bruno Haible  <bruno@clisp.org>
52444
52445         Document the AC_LIB_LINKFLAGS macro.
52446         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52447         * doc/gnulib.texi: Include it.
52448
52449 2009-02-08  Bruno Haible  <bruno@clisp.org>
52450
52451         Fix wrong order of sections, compared to TOC.
52452         * doc/gnulib.texi: Include relocatable-maint.texi after the
52453         "Regular expressions" node, not before.
52454
52455 2009-02-08  Bruno Haible  <bruno@clisp.org>
52456
52457         Tests for module 'unicase/totitle'.
52458         * modules/unicase/totitle-tests: New file.
52459
52460         Tests for module 'unicase/tolower'.
52461         * modules/unicase/tolower-tests: New file.
52462
52463         Tests for module 'unicase/toupper'.
52464         * modules/unicase/toupper-tests: New file.
52465         * tests/unicase/test-mapping-part1.h: New file.
52466         * tests/unicase/test-mapping-part2.h: New file.
52467
52468         New module 'unicase/totitle'.
52469         * modules/unicase/totitle: New file.
52470         * lib/unicase/totitle.c: New file.
52471
52472         New module 'unicase/tolower'.
52473         * modules/unicase/tolower: New file.
52474         * lib/unicase/tolower.c: New file.
52475
52476         New module 'unicase/toupper'.
52477         * modules/unicase/toupper: New file.
52478         * lib/unicase/toupper.c: New file.
52479         * lib/unicase/simple-mapping.h: New file.
52480
52481         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52482         (mapping_table): New structure.
52483         (output_simple_mapping): New function.
52484         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52485         * modules/gen-uni-tables (Description): Update.
52486         * lib/unicase/toupper.h: New file, automatically generated by
52487         gen-uni-tables.
52488         * lib/unicase/tolower.h: New file, automatically generated by
52489         gen-uni-tables.
52490         * lib/unicase/totitle.h: New file, automatically generated by
52491         gen-uni-tables.
52492         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52493         gen-uni-tables.
52494         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52495         gen-uni-tables.
52496         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52497         gen-uni-tables.
52498
52499         New module 'unicase/base'.
52500         * modules/unicase/base: New file.
52501         * lib/unicase.h: New file.
52502
52503 2009-02-08  Bruno Haible  <bruno@clisp.org>
52504
52505         New module 'uniwbrk/ulc-wordbreaks'.
52506         * modules/uniwbrk/ulc-wordbreaks: New file.
52507         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52508
52509         New module 'uniwbrk/u32-wordbreaks'.
52510         * modules/uniwbrk/u32-wordbreaks: New file.
52511         * lib/uniwbrk/u32-wordbreaks.c: New file.
52512
52513         New module 'uniwbrk/u16-wordbreaks'.
52514         * modules/uniwbrk/u16-wordbreaks: New file.
52515         * lib/uniwbrk/u16-wordbreaks.c: New file.
52516
52517         New module 'uniwbrk/u8-wordbreaks'.
52518         * modules/uniwbrk/u8-wordbreaks: New file.
52519         * lib/uniwbrk/u8-wordbreaks.c: New file.
52520         * lib/uniwbrk/u-wordbreaks.h: New file.
52521
52522         New module 'uniwbrk/table'.
52523         * modules/uniwbrk/table: New file.
52524         * lib/uniwbrk/wbrktable.h: New file.
52525         * lib/uniwbrk/wbrktable.c: New file.
52526
52527         New module 'uniwbrk/wordbreak-property'.
52528         * modules/uniwbrk/wordbreak-property: New file.
52529         * lib/uniwbrk/wordbreak-property.c: New file.
52530
52531         * lib/gen-uni-tables.c (WBP_*): New enum items.
52532         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52533         (unicode_org_wbp): New variable.
52534         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52535         New functions.
52536         (wbp_table): New structure.
52537         (output_wbp, output_wbrk_tables): New functions.
52538         (main): Accept additional argument. Invoke fill_org_wbp,
52539         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52540         output_wbrk_tables.
52541         * modules/gen-uni-tables (Description): Update.
52542         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52543         gen-uni-tables.
52544
52545         New module 'uniwbrk/base'.
52546         * modules/uniwbrk/base: New file.
52547         * lib/uniwbrk.h: New file.
52548
52549 2009-02-08  Bruno Haible  <bruno@clisp.org>
52550
52551         Update to Unicode 5.1.0.
52552         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52553         U+2185..U+2188.
52554         (is_property_default_ignorable_code_point): Don't include characters
52555         of category Cc or Cs and not-a-characters.
52556         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52557         U+0D79, U+109E, U+109F, U+A60C.
52558         * lib/unictype/bidi_of.h: Regenerated.
52559         * lib/unictype/blocks.h: Regenerated.
52560         * lib/unictype/categ_C.h: Regenerated.
52561         * lib/unictype/categ_Cf.h: Regenerated.
52562         * lib/unictype/categ_Cn.h: Regenerated.
52563         * lib/unictype/categ_L.h: Regenerated.
52564         * lib/unictype/categ_Ll.h: Regenerated.
52565         * lib/unictype/categ_Lm.h: Regenerated.
52566         * lib/unictype/categ_Lo.h: Regenerated.
52567         * lib/unictype/categ_Lu.h: Regenerated.
52568         * lib/unictype/categ_M.h: Regenerated.
52569         * lib/unictype/categ_Mc.h: Regenerated.
52570         * lib/unictype/categ_Me.h: Regenerated.
52571         * lib/unictype/categ_Mn.h: Regenerated.
52572         * lib/unictype/categ_N.h: Regenerated.
52573         * lib/unictype/categ_Nd.h: Regenerated.
52574         * lib/unictype/categ_Nl.h: Regenerated.
52575         * lib/unictype/categ_No.h: Regenerated.
52576         * lib/unictype/categ_P.h: Regenerated.
52577         * lib/unictype/categ_Pd.h: Regenerated.
52578         * lib/unictype/categ_Pe.h: Regenerated.
52579         * lib/unictype/categ_Pf.h: Regenerated.
52580         * lib/unictype/categ_Pi.h: Regenerated.
52581         * lib/unictype/categ_Po.h: Regenerated.
52582         * lib/unictype/categ_Ps.h: Regenerated.
52583         * lib/unictype/categ_S.h: Regenerated.
52584         * lib/unictype/categ_Sk.h: Regenerated.
52585         * lib/unictype/categ_Sm.h: Regenerated.
52586         * lib/unictype/categ_So.h: Regenerated.
52587         * lib/unictype/categ_of.h: Regenerated.
52588         * lib/unictype/combining.h: Regenerated.
52589         * lib/unictype/ctype_alnum.h: Regenerated.
52590         * lib/unictype/ctype_alpha.h: Regenerated.
52591         * lib/unictype/ctype_graph.h: Regenerated.
52592         * lib/unictype/ctype_lower.h: Regenerated.
52593         * lib/unictype/ctype_print.h: Regenerated.
52594         * lib/unictype/ctype_punct.h: Regenerated.
52595         * lib/unictype/ctype_upper.h: Regenerated.
52596         * lib/unictype/decdigit.h: Regenerated.
52597         * lib/unictype/digit.h: Regenerated.
52598         * lib/unictype/mirror.h: Regenerated.
52599         * lib/unictype/numeric.h: Regenerated.
52600         * lib/unictype/pr_alphabetic.h: Regenerated.
52601         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52602         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52603         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52604         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52605         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52606         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52607         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52608         * lib/unictype/pr_combining.h: Regenerated.
52609         * lib/unictype/pr_dash.h: Regenerated.
52610         * lib/unictype/pr_decimal_digit.h: Regenerated.
52611         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52612         * lib/unictype/pr_deprecated.h: Regenerated.
52613         * lib/unictype/pr_diacritic.h: Regenerated.
52614         * lib/unictype/pr_extender.h: Regenerated.
52615         * lib/unictype/pr_format_control.h: Regenerated.
52616         * lib/unictype/pr_grapheme_base.h: Regenerated.
52617         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52618         * lib/unictype/pr_grapheme_link.h: Regenerated.
52619         * lib/unictype/pr_id_continue.h: Regenerated.
52620         * lib/unictype/pr_id_start.h: Regenerated.
52621         * lib/unictype/pr_ideographic.h: Regenerated.
52622         * lib/unictype/pr_ignorable_control.h: Regenerated.
52623         * lib/unictype/pr_lowercase.h: Regenerated.
52624         * lib/unictype/pr_math.h: Regenerated.
52625         * lib/unictype/pr_numeric.h: Regenerated.
52626         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52627         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52628         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52629         * lib/unictype/pr_other_id_continue.h: Regenerated.
52630         * lib/unictype/pr_other_lowercase.h: Regenerated.
52631         * lib/unictype/pr_other_math.h: Regenerated.
52632         * lib/unictype/pr_punctuation.h: Regenerated.
52633         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52634         * lib/unictype/pr_soft_dotted.h: Regenerated.
52635         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52636         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52637         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52638         * lib/unictype/pr_uppercase.h: Regenerated.
52639         * lib/unictype/pr_xid_continue.h: Regenerated.
52640         * lib/unictype/pr_xid_start.h: Regenerated.
52641         * lib/unictype/pr_zero_width.h: Regenerated.
52642         * lib/unictype/scripts.h: Regenerated.
52643         * lib/unictype/scripts_byname.gperf: Regenerated.
52644         * lib/unictype/sy_java_ident.h: Regenerated.
52645         * lib/unilbrk/lbrkprop1.h: Regenerated.
52646         * lib/unilbrk/lbrkprop2.h: Regenerated.
52647         * tests/unictype/test-categ_C.c: Regenerated.
52648         * tests/unictype/test-categ_Cf.c: Regenerated.
52649         * tests/unictype/test-categ_Cn.c: Regenerated.
52650         * tests/unictype/test-categ_L.c: Regenerated.
52651         * tests/unictype/test-categ_Ll.c: Regenerated.
52652         * tests/unictype/test-categ_Lm.c: Regenerated.
52653         * tests/unictype/test-categ_Lo.c: Regenerated.
52654         * tests/unictype/test-categ_Lu.c: Regenerated.
52655         * tests/unictype/test-categ_M.c: Regenerated.
52656         * tests/unictype/test-categ_Mc.c: Regenerated.
52657         * tests/unictype/test-categ_Me.c: Regenerated.
52658         * tests/unictype/test-categ_Mn.c: Regenerated.
52659         * tests/unictype/test-categ_N.c: Regenerated.
52660         * tests/unictype/test-categ_Nd.c: Regenerated.
52661         * tests/unictype/test-categ_Nl.c: Regenerated.
52662         * tests/unictype/test-categ_No.c: Regenerated.
52663         * tests/unictype/test-categ_P.c: Regenerated.
52664         * tests/unictype/test-categ_Pd.c: Regenerated.
52665         * tests/unictype/test-categ_Pe.c: Regenerated.
52666         * tests/unictype/test-categ_Pf.c: Regenerated.
52667         * tests/unictype/test-categ_Pi.c: Regenerated.
52668         * tests/unictype/test-categ_Po.c: Regenerated.
52669         * tests/unictype/test-categ_Ps.c: Regenerated.
52670         * tests/unictype/test-categ_S.c: Regenerated.
52671         * tests/unictype/test-categ_Sk.c: Regenerated.
52672         * tests/unictype/test-categ_Sm.c: Regenerated.
52673         * tests/unictype/test-categ_So.c: Regenerated.
52674         * tests/unictype/test-ctype_alnum.c: Regenerated.
52675         * tests/unictype/test-ctype_alpha.c: Regenerated.
52676         * tests/unictype/test-ctype_graph.c: Regenerated.
52677         * tests/unictype/test-ctype_lower.c: Regenerated.
52678         * tests/unictype/test-ctype_print.c: Regenerated.
52679         * tests/unictype/test-ctype_punct.c: Regenerated.
52680         * tests/unictype/test-ctype_upper.c: Regenerated.
52681         * tests/unictype/test-decdigit.h: Regenerated.
52682         * tests/unictype/test-digit.h: Regenerated.
52683         * tests/unictype/test-numeric.h: Regenerated.
52684         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52685         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52686         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52687         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52688         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52689         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52690         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52691         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52692         * tests/unictype/test-pr_combining.c: Regenerated.
52693         * tests/unictype/test-pr_dash.c: Regenerated.
52694         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52695         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52696         * tests/unictype/test-pr_deprecated.c: Regenerated.
52697         * tests/unictype/test-pr_diacritic.c: Regenerated.
52698         * tests/unictype/test-pr_extender.c: Regenerated.
52699         * tests/unictype/test-pr_format_control.c: Regenerated.
52700         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52701         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52702         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52703         * tests/unictype/test-pr_id_continue.c: Regenerated.
52704         * tests/unictype/test-pr_id_start.c: Regenerated.
52705         * tests/unictype/test-pr_ideographic.c: Regenerated.
52706         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52707         * tests/unictype/test-pr_lowercase.c: Regenerated.
52708         * tests/unictype/test-pr_math.c: Regenerated.
52709         * tests/unictype/test-pr_numeric.c: Regenerated.
52710         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52711         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52712         Regenerated.
52713         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52714         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52715         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52716         * tests/unictype/test-pr_other_math.c: Regenerated.
52717         * tests/unictype/test-pr_punctuation.c: Regenerated.
52718         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52719         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52720         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52721         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52722         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52723         * tests/unictype/test-pr_uppercase.c: Regenerated.
52724         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52725         * tests/unictype/test-pr_xid_start.c: Regenerated.
52726         * tests/unictype/test-pr_zero_width.c: Regenerated.
52727
52728         Update to Unicode 5.1.0.
52729         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52730         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52731         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52732         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52733         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52734         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52735         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52736         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52737         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52738         (nonspacing_table_ind): Update.
52739         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52740
52741         Update to Unicode 5.1.0.
52742         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52743         code transform.
52744         * lib/uniname/uniname.c (unicode_character_name,
52745         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52746         * lib/uniname/uninames.h: Regenerated.
52747         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52748
52749 2009-02-07  Bruno Haible  <bruno@clisp.org>
52750
52751         Merge gen-ctype and gen-lbrk into a single program.
52752         * lib/gen-uni-tables.c: New file, incorporating
52753         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52754         Add directory prefixes to the names of the generated files.
52755         * lib/unictype/gen-ctype.c: Remove file.
52756         * lib/unilbrk/gen-lbrk.c: Remove file.
52757         * modules/gen-uni-tables: New file.
52758         * modules/unictype/gen-ctype: Remove file.
52759         * modules/unilbrk/gen-lbrk: Remove file.
52760
52761 2009-02-07  Bruno Haible  <bruno@clisp.org>
52762
52763         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52764
52765         New module 'unistr/u32-strcoll'.
52766         * modules/unistr/u32-strcoll: New file.
52767         * lib/unistr/u32-strcoll.c: New file.
52768
52769         New module 'unistr/u16-strcoll'.
52770         * modules/unistr/u16-strcoll: New file.
52771         * lib/unistr/u16-strcoll.c: New file.
52772
52773         New module 'unistr/u8-strcoll'.
52774         * modules/unistr/u8-strcoll: New file.
52775         * lib/unistr/u8-strcoll.c: New file.
52776         * lib/unistr/u-strcoll.h: New file.
52777
52778 2009-02-07  Bruno Haible  <bruno@clisp.org>
52779
52780         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52781         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52782         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52783         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52784         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52785         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52786
52787 2009-02-07  Bruno Haible  <bruno@clisp.org>
52788
52789         Make 64-bit clean.
52790         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52791         output_combclass, output_bidi_category, output_decimal_digit,
52792         output_digit, output_numeric, output_mirror, output_scripts,
52793         output_ident_category): Use proper width specifier in format strings.
52794
52795 2009-02-07  Bruno Haible  <bruno@clisp.org>
52796
52797         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52798         failure behaviour.
52799
52800 2009-02-07  Jim Meyering  <meyering@redhat.com>
52801
52802         regex: avoid compilation failure with upcoming gcc-4.4
52803         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52804         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52805         "... error: integer overflow in preprocessor expression".
52806
52807 2009-02-05  Ben Pfaff  <blp@gnu.org>
52808
52809         Fix link errors on Windows when close module is used.
52810         * modules/close: Add $(LIB_CLOSE) to Link section.
52811         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52812         $(LIB_CLOSE) on Windows.
52813
52814 2009-02-05  Jim Meyering  <meyering@redhat.com>
52815
52816         still avoid unused-parameter warnings, but do it cleanly
52817         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52818         (get_fs_usage): Cast to void instead.
52819         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52820         (dev_from_mount_options, read_file_system_list): Cast to void.
52821         Prompted by Bruno Haible.
52822
52823 2009-02-04  Jim Meyering  <meyering@redhat.com>
52824
52825         fsusage.c: correct copyright year
52826         * lib/fsusage.c: Reflect year in which the change is pushed into
52827
52828         avoid misc. warnings
52829         * lib/fsusage.c (UNUSED_PARAM): Define.
52830         (get_fs_usage): Mark parameter "disk" as unused.
52831         * lib/getugroups.c (getgrent): Use "void" in prototype.
52832         * lib/mountlist.c: Mark unused parameters.
52833         (read_file_system_list): Declare a local with "const".
52834         * lib/nanosleep.c (getnow): Declare static.
52835         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52836
52837         dirfd: set errno upon failure
52838         * lib/dirfd.c: Include <errno.h>.
52839         Set errno to ENOTSUP when returning -1.
52840         * modules/dirfd (Depends-on): Add errno.
52841         Suggested by John Kodis <kodis@comcast.net>.
52842
52843 2009-02-01  Bruno Haible  <bruno@clisp.org>
52844
52845         Don't assume sizeof (long) >= sizeof (void *).
52846         * lib/memcmp.c: Include stdint.h.
52847         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52848         srcp2 to 'const byte *'.
52849         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52850         types to uintptr_t.
52851         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52852         * modules/memcmp (Depends-on): Add stdint.
52853         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52854
52855 2009-01-30  Eric Blake  <ebb9@byu.net>
52856
52857         fix more require-before-expand issues
52858         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52859         expand, AC_PROG_AWK.
52860         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52861
52862 2009-01-28  Eric Blake  <ebb9@byu.net>
52863
52864         version-etc: use consistent URL formatting
52865         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52866         Improve formatting.  Use fputs for string without %.
52867
52868 2009-01-28  Jim Meyering  <meyering@redhat.com>
52869
52870         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52871         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52872         "underquoted definition of NAME" from autoconf-2.59.
52873
52874 2009-01-28  Bruno Haible  <bruno@clisp.org>
52875
52876         * doc/gnulib.texi: Add "Obsolete modules" to index.
52877
52878 2009-01-28  Jim Meyering  <meyering@redhat.com>
52879
52880         useless-if-before-free: recognize more variants
52881         * build-aux/useless-if-before-free: Also recognize e.g.,
52882         if (NULL != p) free (p);
52883
52884 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52885
52886         test-getaddrinfo: skip (don't fail) this test when there's no network
52887         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52888         on the presumption that it means you lack network access.
52889
52890 2009-01-26  Jim Meyering  <meyering@redhat.com>
52891
52892         fflush: avoid warnings on modern systems
52893         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52894         pos and result, into scopes where they're used.
52895
52896 2009-01-26  Eric Blake  <ebb9@byu.net>
52897
52898         Silence warning reintroduced by recent extensions patch.
52899         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52900         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52901         autoconf.
52902
52903         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52904         * m4/00gnulib.m4: New file.
52905         * gnulib-tool (func_get_filelist): Always use it.
52906         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52907         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52908
52909 2009-01-25  Bruno Haible  <bruno@clisp.org>
52910
52911         Make test-quotearg work on MacOS X and AIX.
52912         * tests/test-quotearg.sh: New file.
52913         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52914         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52915         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52916         include <libintl.h>.
52917         (fake_locale): Remove variable.
52918         (gettext, dgettext, dcgettext): Remove functions.
52919         (main): Instead of setting a fake locale, set a real locale. Call
52920         textdomain and bindtextdomain.
52921         * modules/quotearg-tests (Files): Add the new files.
52922         (Depends-on): Add gettext, setenv, unsetenv.
52923         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52924         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52925         Augment TESTS_ENVIRONMENT.
52926
52927 2009-01-25  Bruno Haible  <bruno@clisp.org>
52928
52929         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52930         fr_FR.ISO8859-1 locale on MacOS X.
52931         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52932         ja_JP.eucJP locale on MacOS X.
52933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52934         zh_CN.GB18030 locale on MacOS X.
52935
52936 2009-01-25  Bruno Haible  <bruno@clisp.org>
52937
52938         Avoid link errors on MacOS X 10.3.
52939         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52940         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52941
52942 2009-01-25  Bruno Haible  <bruno@clisp.org>
52943
52944         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52945         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52946         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52947         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52948         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52949         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52950         posix_spawnattr_init, posix_spawnattr_setsigmask,
52951         posix_spawnattr_setflags, posix_spawnattr_destroy.
52952
52953         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52954         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52955         * modules/execute (Files): Remove m4/posix_spawn.m4.
52956         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52957         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52958         posix_spawnattr_init, posix_spawnattr_setsigmask,
52959         posix_spawnattr_setflags, posix_spawnattr_destroy.
52960
52961 2009-01-25  Bruno Haible  <bruno@clisp.org>
52962
52963         * lib/glthread/threadlib.c: Include <stdlib.h>.
52964
52965 2009-01-25  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/glthread/threadlib.c (dummy): New declaration.
52968
52969 2009-01-25  Bruno Haible  <bruno@clisp.org>
52970
52971         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52972         multibyte characters also for the GB18030 encoding. Don't crash when
52973         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52974
52975 2009-01-25  Bruno Haible  <bruno@clisp.org>
52976
52977         Avoid redefining 'struct random_data' on OSF/1 5.1.
52978         * lib/stdlib.in.h: Include <random.h> if it exists.
52979         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52980         HAVE_RANDOM_H. Include <random.h> when testing whether
52981         'struct random_data' exists.
52982         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52983
52984 2009-01-25  Bruno Haible  <bruno@clisp.org>
52985
52986         Don't install charset.alias on MacOS X >= 10.3.
52987         * lib/localcharset.c (DARWIN7): New macro.
52988         (get_charset_aliases): Hardcode the result for Darwin7.
52989         * modules/localcharset (install-exec-local): Don't install
52990         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52991
52992 2009-01-25  Bruno Haible  <bruno@clisp.org>
52993
52994         Don't install charset.alias on mingw and Cygwin.
52995         * modules/localcharset (install-exec-local): Don't install
52996         charset.alias on mingw and Cygwin, if the file does not yet exist.
52997         The result for these platforms is hardcoded in localcharset.c.
52998
52999 2009-01-25  Bruno Haible  <bruno@clisp.org>
53000
53001         Make it possible again to use AC_GNU_SOURCE together with gnulib.
53002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
53003         before requiring AC_USE_SYSTEM_EXTENSIONS.
53004
53005 2009-01-25  Jim Meyering  <meyering@redhat.com>
53006
53007         c-strtod: avoid warnings
53008         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
53009         "assignment discards qualifiers from pointer target type" warnings.
53010
53011 2009-01-24  Bruno Haible  <bruno@clisp.org>
53012
53013         Add support for non-UTF-8 locales on MacOS X.
53014         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
53015         canonical encodings. For Darwin 7 and newer, don't map traditional
53016         encodings to UTF-8.
53017         Reported by Vincent Lefevre <vincent@vinc17.org>
53018         at <http://savannah.gnu.org/bugs/?25235>.
53019
53020 2009-01-24  Bruno Haible  <bruno@clisp.org>
53021
53022         * doc/gnulib.texi (Obsolete modules): New section.
53023         Reported by Mike Frysinger <vapier@gentoo.org>.
53024
53025 2009-01-24  Bruno Haible  <bruno@clisp.org>
53026
53027         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
53028         (%.dvi): New rule.
53029
53030 2009-01-24  Bruno Haible  <bruno@clisp.org>
53031
53032         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
53033         Reported by Eric Blake.
53034
53035 2009-01-24  Bruno Haible  <bruno@clisp.org>
53036
53037         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
53038         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
53039         Reported by Gary V. Vaughan <gary@gnu.org>.
53040
53041 2009-01-24  Bruno Haible  <bruno@clisp.org>
53042
53043         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
53044
53045 2009-01-23  Bruno Haible  <bruno@clisp.org>
53046
53047         Make c-strtod, c-strtold usable in libraries.
53048         * lib/c-strtod.c: Include string.h instead of xalloc.h.
53049         (C_STRTOD): Call strdup instead of xstrdup.
53050         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
53051         * modules/c-strtold (Depends-on): Likewise.
53052         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
53053         * NEWS: Mention the change.
53054         Reported by Michael Gold <mgold@ncf.ca>.
53055
53056 2009-01-23  Jim Meyering  <meyering@redhat.com>
53057
53058         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
53059         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
53060         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
53061
53062 2009-01-23  Simon Josefsson  <simon@josefsson.org>
53063
53064         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
53065         GNU CoreUtils.
53066         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
53067         * modules/version-etc (Description): Update.
53068
53069 2009-01-22  Bruno Haible  <bruno@clisp.org>
53070
53071         Cache the C locale object.
53072         * lib/c-strtod.c (c_locale_cache): New variable.
53073         (c_locale): New function.
53074         (C_STRTOD): Use it, and don't call freelocale.
53075         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
53076         Suggested by Paolo Bonzini.
53077
53078 2009-01-21  Bruno Haible  <bruno@clisp.org>
53079
53080         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
53081         conditions other than overflow.
53082
53083 2009-01-21  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/c-strtod.c: Include errno.h.
53086         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
53087         value from STRTOD_L and STRTOD.
53088
53089 2009-01-21  Bruno Haible  <bruno@clisp.org>
53090         and Jim Meyering  <meyering@redhat.com>
53091
53092         nanosleep: skip configure test (fail it) for apple universal builds
53093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
53094         universal builds, assume that nanosleep does not work.
53095         * modules/nanosleep (Depends-on): Add multiarch.
53096
53097         mktime: skip configure test (fail it) for apple universal builds
53098         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
53099         universal builds, assume that mktime does not work.
53100         * modules/mktime (Depends-on): Add multiarch.
53101
53102 2009-01-21  Eric Blake  <ebb9@byu.net>
53103
53104         multiarch: avoid expand-before-require warning
53105         * modules/multiarch (configure.ac): Require, rather than expand,
53106         gl_MULTIARCH.
53107         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
53108         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
53109         enforce that all clients require it.  Partial reversion of
53110         2008-12-29 patch.
53111
53112         error: avoid expand-before-require warning
53113         * modules/errno (configure.ac): Require, rather than expand,
53114         gl_HEADER_ERRNO_H.
53115         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
53116         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
53117         enforce that all clients require it.
53118
53119         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
53120         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
53121         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
53122         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
53123
53124 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
53125
53126         Revert:
53127         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53128
53129         regex: do not depend on obsolete modules.
53130         * modules/regex: Remove memcmp and memmove.
53131
53132 2009-01-20  Bruno Haible  <bruno@clisp.org>
53133
53134         Make the 'link' module link on Windows NT 4.
53135         * lib/link.c (_WIN32_WINNT): Don't define.
53136         (CreateHardLinkFuncType): New type.
53137         (CreateHardLinkFunc, initialized): New variables.
53138         (initialize): New function.
53139         (link): Invoke CreateHardLink indirectly through the function pointer.
53140
53141 2009-01-20  Bruno Haible  <bruno@clisp.org>
53142
53143         Fix compilation failure on mingw.
53144         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53145
53146 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53147
53148         * doc/c-strtod.texi: Mention a couple of restrictions.
53149
53150 2009-01-20  Jim Meyering  <meyering@redhat.com>
53151
53152         gettimeofday: move more declarations out of functions
53153         * lib/gettimeofday.c: Move extern declarations of tzset and
53154         gmtime out of containing functions.  Prompted by Bruno Haible.
53155
53156 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53157
53158         regex: do not depend on obsolete modules.
53159         * modules/regex: Remove memcmp and memmove.
53160
53161 2009-01-19  Bruno Haible  <bruno@clisp.org>
53162
53163         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53164         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53165         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53166         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53167         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53168
53169 2009-01-19  Bruno Haible  <bruno@clisp.org>
53170
53171         * tests/test-link.c: Include <errno.h>.
53172         (main): Exit with code 77 when a hard link cannot be created due to
53173         the file system.
53174         * tests/test-link.sh: Skip test when a hard link cannot be created due
53175         to the file system.
53176         Suggested by Eric Blake.
53177
53178 2009-01-19  Martin Lambers  <marlam@marlam.de>
53179
53180         * modules/link-tests: New file.
53181         * tests/test-link.sh: New file.
53182         * tests/test-link.c: New file.
53183
53184 2009-01-19  Eric Blake  <ebb9@byu.net>
53185
53186         doc: mention another function added in cygwin 1.7.0
53187         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53188         Another new function in cygwin 1.7.
53189
53190 2009-01-19  Bruno Haible  <bruno@clisp.org>
53191
53192         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53193         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53194         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53195         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53196         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53197         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53198         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53199         * m4/md4.m4 (gl_MD4): Likewise.
53200         * m4/md5.m4 (gl_MD5): Likewise.
53201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53202         * m4/sha1.m4 (gl_SHA1): Likewise.
53203         * m4/sha256.m4 (gl_SHA256): Likewise.
53204         * m4/sha512.m4 (gl_SHA512): Likewise.
53205
53206 2009-01-19  Bruno Haible  <bruno@clisp.org>
53207
53208         * modules/uniname/uniname-tests (Depends-on): Add progname.
53209         * tests/uniname/test-uninames.c: Include progname.h.
53210         (main): Call set_program_name.
53211
53212         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53213         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53214         (main): Call set_program_name.
53215
53216         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53217         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53218         (main): Call set_program_name.
53219
53220         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53221         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53222         (main): Call set_program_name.
53223
53224         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53225         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53226         (main): Call set_program_name.
53227
53228         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53229         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53230         (main): Call set_program_name.
53231
53232         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53233         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53234         (main): Call set_program_name.
53235
53236         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53237         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53238         (main): Call set_program_name.
53239
53240         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53241         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53242         (main): Call set_program_name.
53243
53244 2009-01-19  Eric Blake  <ebb9@byu.net>
53245
53246         test-unistd: test previous patch
53247         * tests/test-unistd.c: Test *_FILENO macros.
53248
53249         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53250         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53251         Guarantee a definition.
53252         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53253         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53254         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53255         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53256         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53257         Likewise.
53258         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53259         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53260         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53261         Likewise.
53262         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53263         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53264         (STDERR_FILENO): Likewise.
53265         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53266         (STDERR_FILENO): Likewise.
53267         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53268         (STDERR_FILENO): Likewise.
53269         Reported by Elbert Pol.
53270
53271 2009-01-19  Eric Blake  <ebb9@byu.net>
53272
53273         doc: mention more functions added in cygwin 1.7.0
53274         * doc/posix-functions/abort.texi (abort): Update wording related
53275         to cygwin.
53276         * doc/posix-functions/daylight.texi (daylight): Likewise.
53277         * doc/posix-functions/optarg.texi (optarg): Likewise.
53278         * doc/posix-functions/optarg.texi (opterr): Likewise.
53279         * doc/posix-functions/optarg.texi (optind): Likewise.
53280         * doc/posix-functions/optarg.texi (optopt): Likewise.
53281         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53282         worked in 1.5.x, and was withdrawn in 1.7.
53283         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53284         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53285         cygwin versions.
53286         * doc/posix-functions/perror.texi (perror): Likewise.
53287         * doc/posix-functions/printf.texi (printf): Likewise.
53288         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53289         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53290         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53291         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53292         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53293         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53294         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53295         Likewise.
53296         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53297         Likewise.
53298         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53299         this function.
53300         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53301         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53302         Likewise.
53303         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53304         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53305         * doc/posix-functions/confstr.texi (confstr): Likewise.
53306         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53307         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53308         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53309         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53310         * doc/posix-functions/fputws.texi (fputws): Likewise.
53311         * doc/posix-functions/fwide.texi (fwide): Likewise.
53312         * doc/posix-functions/getwc.texi (getwc): Likewise.
53313         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53314         * doc/posix-functions/putwc.texi (putwc): Likewise.
53315         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53316         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53317         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53318         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53319         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53320         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53321         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53322         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53323         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53324         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53325         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53326
53327 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53328
53329         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53330         * lib/ioctl.c: Include <sys/ioctl.h>.
53331
53332 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53333
53334         * modules/getdate-tests (Depends-on): Add progname.
53335         * tests/test-getdate.c: Use progname module, to avoid link errors
53336         on non-glibc systems.
53337
53338 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53339
53340         * modules/filenamecat-tests (Depends-on): Add progname.
53341         * modules/fstrcmp-tests (Depends-on): Likewise.
53342
53343         * tests/test-filenamecat.c: Use progname module, to avoid link
53344         errors on non-glibc systems.
53345         * tests/test-fstrcmp.c: Likewise.
53346
53347 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53348
53349         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53350         * lib/gettimeofday.c: Move extern declaration out of function.
53351
53352 2009-01-18  Bruno Haible  <bruno@clisp.org>
53353
53354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53355         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53356         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53357
53358 2009-01-18  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/strftime.c (MEMPCPY): Remove unused macro.
53361         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53362
53363 2009-01-18  Martin Lambers  <marlam@marlam.de>
53364
53365         New module 'link'.
53366         * lib/unistd.in.h (link): New declaration.
53367         * lib/link.c: New file.
53368         * m4/link.m4: New file.
53369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53370         HAVE_LINK.
53371         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53372         * modules/link: New file.
53373         * doc/posix-functions/link.texi: Mention the new module.
53374
53375 2009-01-18  Bruno Haible  <bruno@clisp.org>
53376
53377         * tests/test-avltree_list.c (main): Call set_program_name.
53378         * tests/test-avltree_oset.c (main): Likewise.
53379         * tests/test-obstack-printf.c: Include progname.h.
53380         (main): Call set_program_name.
53381         * tests/test-quotearg.c: Include progname.h.
53382         (main): Call set_program_name.
53383         * tests/test-xmemdup0.c: Include progname.h.
53384         (main): Call set_program_name.
53385
53386 2009-01-18  Bruno Haible  <bruno@clisp.org>
53387
53388         New module 'alphasort'.
53389         * lib/dirent.in.h (alphasort): New declaration.
53390         * lib/alphasort.c: New file, from glibc with modifications.
53391         * m4/alphasort.m4: New file.
53392         * modules/alphasort: New file.
53393         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53394         HAVE_ALPHASORT.
53395         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53396         HAVE_ALPHASORT.
53397         * doc/posix-functions/alphasort.texi: Mention the new module and the
53398         portability problems.
53399
53400 2009-01-18  Bruno Haible  <bruno@clisp.org>
53401
53402         New module 'scandir'.
53403         * lib/dirent.in.h (scandir): New declaration.
53404         * lib/scandir.c: New file, from glibc with modifications.
53405         * m4/scandir.m4: New file.
53406         * modules/scandir: New file.
53407         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53408         HAVE_SCANDIR.
53409         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53410         HAVE_SCANDIR.
53411         * doc/posix-functions/scandir.texi: Mention the new module and the
53412         portability problems.
53413
53414 2009-01-17  Bruno Haible  <bruno@clisp.org>
53415
53416         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53417         Update documentation.
53418         (func_remove_suffix): Escape all dots in the suffix. Update
53419         documentation.
53420         (func_filter_filelist): Update documentation.
53421         Reported by Ralf Wildenhues.
53422
53423 2009-01-17  Bruno Haible  <bruno@clisp.org>
53424
53425         * modules/dprintf-posix-tests: New file.
53426         * tests/test-dprintf-posix.sh: New file.
53427         * tests/test-dprintf-posix.c: New file.
53428
53429         New modules 'dprintf', 'dprintf-posix'.
53430         * lib/stdio.in.h (dprintf): New declaration.
53431         * lib/dprintf.c: New file.
53432         * m4/dprintf.m4: New file.
53433         * m4/dprintf-posix.m4: New file.
53434         * modules/dprintf: New file.
53435         * modules/dprintf-posix: New file.
53436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53437         HAVE_DPRINTF, REPLACE_DPRINTF.
53438         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53439         HAVE_DPRINTF, REPLACE_DPRINTF.
53440         * doc/posix-functions/dprintf.texi: Mention the new modules.
53441
53442 2009-01-17  Bruno Haible  <bruno@clisp.org>
53443
53444         * modules/vdprintf-posix-tests: New file.
53445         * tests/test-vdprintf-posix.sh: New file.
53446         * tests/test-vdprintf-posix.c: New file.
53447
53448         New modules 'vdprintf', 'vdprintf-posix'.
53449         * lib/stdio.in.h (vdprintf): New declaration.
53450         * lib/vdprintf.c: New file.
53451         * m4/vdprintf.m4: New file.
53452         * m4/vdprintf-posix.m4: New file.
53453         * modules/vdprintf: New file.
53454         * modules/vdprintf-posix: New file.
53455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53456         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53457         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53458         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53459         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53460
53461 2009-01-17  Bruno Haible  <bruno@clisp.org>
53462
53463         Fix replacement of fopen on mingw.
53464         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53465         mingw.
53466
53467 2009-01-17  Bruno Haible  <bruno@clisp.org>
53468
53469         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53470         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53471
53472 2009-01-17  Bruno Haible  <bruno@clisp.org>
53473
53474         Avoid test-fflush2.sh failure on mingw.
53475         * tests/test-fflush2.c: Include binary-io.h.
53476         (main): Put standard input into binary mode.
53477         * modules/fflush-tests (Depends-on): Add binary-io.
53478
53479 2009-01-17  Bruno Haible  <bruno@clisp.org>
53480
53481         * lib/wchar.in.h: In another particular situation, include only the
53482         system's <wchar.h> file.
53483         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53484         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53485         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53486
53487 2009-01-17  Bruno Haible  <bruno@clisp.org>
53488
53489         Support for stripping executables in --enable-relocatable.
53490         * build-aux/install-reloc: Expect one more argument, or an environment
53491         variable RELOC_STRIP_PROG. If set, strip the destination program and
53492         its wrapper.
53493         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53494         RELOC_STRIP_PROG.
53495         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53496         to set RELOCATABLE_STRIP.
53497         * NEWS: Mention the new Makefile requirement.
53498
53499 2009-01-17  Bruno Haible  <bruno@clisp.org>
53500
53501         * build-aux/install-reloc: Remove debugging information left over by
53502         C compiler on MacOS X.
53503
53504 2009-01-17  Bruno Haible  <bruno@clisp.org>
53505
53506         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53507         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53508         _NSGetExecutablePath.
53509
53510 2009-01-16  Jim Meyering  <meyering@redhat.com>
53511
53512         strerror: avoid warnings about discarding "const"
53513         * lib/strerror.c (rpl_strerror): Instead of returning a const
53514         string from each and every "case", use a variable, and add a single
53515         cast after the switch.
53516
53517 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53518
53519         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53520
53521 2009-01-16  Bruno Haible  <bruno@clisp.org>
53522
53523         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53524         array initializer syntax that also works in C++ mode.
53525         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53526
53527 2009-01-16  Jim Meyering  <meyering@redhat.com>
53528
53529         poll: suppress a warning
53530         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53531         to ignore "...unsigned expression < 0 is always false" warnings.
53532
53533 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53534
53535         poll: remove declarations of unused variables
53536         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53537         sockbuf and optlen.
53538
53539 2009-01-15  Bruno Haible  <bruno@clisp.org>
53540
53541         Make fflush-after-ungetc POSIX compliant on BSD systems.
53542         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53543         (clear_ungetc_buffer): Implement also for other systems.
53544         (rpl_fflush): On glibc systems, invoke
53545         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53546         clear_ungetc_buffer after fetching the stream's position, not before.
53547
53548 2009-01-15  Bruno Haible  <bruno@clisp.org>
53549
53550         Make fflush-after-ungetc POSIX compliant on glibc systems.
53551         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53552         after ungetc.
53553         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53554         (rpl_fflush): On glibc systems, simply call the system's fflush
53555         function after clearing the ungetc buffer.
53556         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53557         Instead, lseek only to the end of file, then use the system's fseeko
53558         for the rest. On glibc systems, reset the EOF indicator bit.
53559
53560 2009-01-15  Jim Meyering  <meyering@redhat.com>
53561
53562         openmp.m4: revert quote-adding change, for portability to older autoconf
53563         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53564         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53565         Simon Josefsson noticed the problem when using autoconf-2.61.
53566
53567 2009-01-15  Bruno Haible  <bruno@clisp.org>
53568
53569         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53570         * tests/test-fflush2.c (ASSERT): Always fail.
53571         (main): Add two tests for fflush() after ungetc(), taking into account
53572         the Austin Group's clarification.
53573         Suggested by Eric Blake.
53574
53575 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53576
53577         mktime.m4: remove K&R-style function prototypes
53578         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53579         for the Sun C++ compiler.
53580
53581 2009-01-14  Bruno Haible  <bruno@clisp.org>
53582
53583         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53584         while including <wchar.h>.
53585         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53586         the system's <wchar.h> file.
53587         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53588
53589 2009-01-14  Bruno Haible  <bruno@clisp.org>
53590
53591         * m4/csharp.m4: Don't mention gettext on the serial number line.
53592         * m4/csharpexec.m4: Likewise.
53593         * m4/eaccess.m4: Likewise.
53594         * m4/javaexec.m4: Likewise.
53595         * m4/sig_atomic_t.m4: Likewise.
53596         * m4/tmpdir.m4: Likewise.
53597         * m4/intldir.m4: Bump gettext version.
53598         * m4/lib-ld.m4: Likewise.
53599
53600 2009-01-14  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/progname.c (set_program_name): Add more comments.
53603         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53604
53605 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53606
53607         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53608         were sys/stat.h does not define it.
53609
53610 2009-01-14  Jim Meyering  <meyering@redhat.com>
53611
53612         many *.m4 files: improve m4 quoting
53613         99% of this change was performed by running the following commands:
53614         git ls-files | grep '\.m4$' | xargs perl -pi \
53615           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53616           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53617           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53618           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53619         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53620         The remainder were to add Copyright dates, increment serial numbers,
53621         undo some changes in comments, exclude m4/intl.m4, and add quotes
53622         around the "1" in ",1" where the unusual spacing prohibited the
53623         above regexps from doing the job.  For more details, see
53624         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53625         * m4/acl.m4: Modified.
53626         * m4/afs.m4: Likewise.
53627         * m4/alloca.m4: Likewise.
53628         * m4/argp.m4: Likewise.
53629         * m4/argz.m4: Likewise.
53630         * m4/atexit.m4: Likewise.
53631         * m4/bison-i18n.m4: Likewise.
53632         * m4/bison.m4: Likewise.
53633         * m4/byteswap.m4: Likewise.
53634         * m4/c-stack.m4: Likewise.
53635         * m4/c-strtod.m4: Likewise.
53636         * m4/calloc.m4: Likewise.
53637         * m4/canonicalize-lgpl.m4: Likewise.
53638         * m4/chown.m4: Likewise.
53639         * m4/clock_time.m4: Likewise.
53640         * m4/codeset.m4: Likewise.
53641         * m4/copy-file.m4: Likewise.
53642         * m4/csharp.m4: Likewise.
53643         * m4/csharpcomp.m4: Likewise.
53644         * m4/csharpexec.m4: Likewise.
53645         * m4/d-ino.m4: Likewise.
53646         * m4/d-type.m4: Likewise.
53647         * m4/dirfd.m4: Likewise.
53648         * m4/double-slash-root.m4: Likewise.
53649         * m4/eaccess.m4: Likewise.
53650         * m4/eealloc.m4: Likewise.
53651         * m4/environ.m4: Likewise.
53652         * m4/errno_h.m4: Likewise.
53653         * m4/euidaccess.m4: Likewise.
53654         * m4/execute.m4: Likewise.
53655         * m4/fatal-signal.m4: Likewise.
53656         * m4/fchdir.m4: Likewise.
53657         * m4/fcntl_h.m4: Likewise.
53658         * m4/fileblocks.m4: Likewise.
53659         * m4/filenamecat.m4: Likewise.
53660         * m4/findprog.m4: Likewise.
53661         * m4/flexmember.m4: Likewise.
53662         * m4/fnmatch.m4: Likewise.
53663         * m4/fopen.m4: Likewise.
53664         * m4/fpending.m4: Likewise.
53665         * m4/fprintf-posix.m4: Likewise.
53666         * m4/free.m4: Likewise.
53667         * m4/frexp.m4: Likewise.
53668         * m4/frexpl.m4: Likewise.
53669         * m4/fsusage.m4: Likewise.
53670         * m4/ftruncate.m4: Likewise.
53671         * m4/gc-camellia.m4: Likewise.
53672         * m4/gc-random.m4: Likewise.
53673         * m4/gc.m4: Likewise.
53674         * m4/getaddrinfo.m4: Likewise.
53675         * m4/getcwd-abort-bug.m4: Likewise.
53676         * m4/getcwd-path-max.m4: Likewise.
53677         * m4/getdate.m4: Likewise.
53678         * m4/getdomainname.m4: Likewise.
53679         * m4/getgroups.m4: Likewise.
53680         * m4/gethostname.m4: Likewise.
53681         * m4/gethrxtime.m4: Likewise.
53682         * m4/getline.m4: Likewise.
53683         * m4/getloadavg.m4: Likewise.
53684         * m4/getndelim2.m4: Likewise.
53685         * m4/getpass.m4: Likewise.
53686         * m4/gettext.m4: Likewise.
53687         * m4/gettime.m4: Likewise.
53688         * m4/gettimeofday.m4: Likewise.
53689         * m4/gnulib-common.m4: Likewise.
53690         * m4/group-member.m4: Likewise.
53691         * m4/host-os.m4: Likewise.
53692         * m4/iconv.m4: Likewise.
53693         * m4/iconv_open.m4: Likewise.
53694         * m4/inet_ntop.m4: Likewise.
53695         * m4/inet_pton.m4: Likewise.
53696         * m4/inline.m4: Likewise.
53697         * m4/intldir.m4: Likewise.
53698         * m4/intlmacosx.m4: Likewise.
53699         * m4/intmax.m4: Likewise.
53700         * m4/intmax_t.m4: Likewise.
53701         * m4/inttypes.m4: Likewise.
53702         * m4/inttypes_h.m4: Likewise.
53703         * m4/inttypes-pri.m4: Likewise.
53704         * m4/isapipe.m4: Likewise.
53705         * m4/isnand.m4: Likewise.
53706         * m4/isnanf.m4: Likewise.
53707         * m4/isnanl.m4: Likewise.
53708         * m4/javacomp.m4: Likewise.
53709         * m4/javaexec.m4: Likewise.
53710         * m4/jm-winsz1.m4: Likewise.
53711         * m4/jm-winsz2.m4: Likewise.
53712         * m4/lchown.m4: Likewise.
53713         * m4/lcmessage.m4: Likewise.
53714         * m4/ldexpl.m4: Likewise.
53715         * m4/lib-ld.m4: Likewise.
53716         * m4/lib-link.m4: Likewise.
53717         * m4/libsigsegv.m4: Likewise.
53718         * m4/link-follow.m4: Likewise.
53719         * m4/localcharset.m4: Likewise.
53720         * m4/locale-fr.m4: Likewise.
53721         * m4/locale-ja.m4: Likewise.
53722         * m4/locale-tr.m4: Likewise.
53723         * m4/locale-zh.m4: Likewise.
53724         * m4/lock.m4: Likewise.
53725         * m4/longlong.m4: Likewise.
53726         * m4/ls-mntd-fs.m4: Likewise.
53727         * m4/lstat.m4: Likewise.
53728         * m4/malloc.m4: Likewise.
53729         * m4/mathl.m4: Likewise.
53730         * m4/mbrtowc.m4: Likewise.
53731         * m4/mbstate_t.m4: Likewise.
53732         * m4/mbswidth.m4: Likewise.
53733         * m4/memchr.m4: Likewise.
53734         * m4/memcmp.m4: Likewise.
53735         * m4/memcpy.m4: Likewise.
53736         * m4/memmem.m4: Likewise.
53737         * m4/memmove.m4: Likewise.
53738         * m4/mempcpy.m4: Likewise.
53739         * m4/memrchr.m4: Likewise.
53740         * m4/memset.m4: Likewise.
53741         * m4/minmax.m4: Likewise.
53742         * m4/mkdir-slash.m4: Likewise.
53743         * m4/mkdtemp.m4: Likewise.
53744         * m4/mktime.m4: Likewise.
53745         * m4/mmap-anon.m4: Likewise.
53746         * m4/mountlist.m4: Likewise.
53747         * m4/nanosleep.m4: Likewise.
53748         * m4/nls.m4: Likewise.
53749         * m4/nocrash.m4: Likewise.
53750         * m4/open.m4: Likewise.
53751         * m4/openat.m4: Likewise.
53752         * m4/openmp.m4: Likewise.
53753         * m4/pathmax.m4: Likewise.
53754         * m4/perl.m4: Likewise.
53755         * m4/physmem.m4: Likewise.
53756         * m4/pipe.m4: Likewise.
53757         * m4/po.m4: Likewise.
53758         * m4/poll.m4: Likewise.
53759         * m4/posixtm.m4: Likewise.
53760         * m4/posixver.m4: Likewise.
53761         * m4/printf-frexp.m4: Likewise.
53762         * m4/printf-frexpl.m4: Likewise.
53763         * m4/printf-posix.m4: Likewise.
53764         * m4/printf-posix-rpl.m4: Likewise.
53765         * m4/printf.m4: Likewise.
53766         * m4/progtest.m4: Likewise.
53767         * m4/putenv.m4: Likewise.
53768         * m4/readline.m4: Likewise.
53769         * m4/readlink.m4: Likewise.
53770         * m4/readutmp.m4: Likewise.
53771         * m4/realloc.m4: Likewise.
53772         * m4/regex.m4: Likewise.
53773         * m4/relocatable.m4: Likewise.
53774         * m4/relocatable-lib.m4: Likewise.
53775         * m4/rename-dest-slash.m4: Likewise.
53776         * m4/rename.m4: Likewise.
53777         * m4/rmdir-errno.m4: Likewise.
53778         * m4/rmdir.m4: Likewise.
53779         * m4/roundf.m4: Likewise.
53780         * m4/roundl.m4: Likewise.
53781         * m4/rpmatch.m4: Likewise.
53782         * m4/save-cwd.m4: Likewise.
53783         * m4/selinux-selinux-h.m4: Likewise.
53784         * m4/setenv.m4: Likewise.
53785         * m4/settime.m4: Likewise.
53786         * m4/sig2str.m4: Likewise.
53787         * m4/sig_atomic_t.m4: Likewise.
53788         * m4/signalblocking.m4: Likewise.
53789         * m4/signbit.m4: Likewise.
53790         * m4/sigpipe.m4: Likewise.
53791         * m4/sockets.m4: Likewise.
53792         * m4/sockpfaf.m4: Likewise.
53793         * m4/st_dm_mode.m4: Likewise.
53794         * m4/stat-time.m4: Likewise.
53795         * m4/stdbool.m4: Likewise.
53796         * m4/stdint.m4: Likewise.
53797         * m4/stdint_h.m4: Likewise.
53798         * m4/stpcpy.m4: Likewise.
53799         * m4/stpncpy.m4: Likewise.
53800         * m4/strcase.m4: Likewise.
53801         * m4/strchrnul.m4: Likewise.
53802         * m4/strcspn.m4: Likewise.
53803         * m4/strdup.m4: Likewise.
53804         * m4/strftime.m4: Likewise.
53805         * m4/strndup.m4: Likewise.
53806         * m4/strnlen.m4: Likewise.
53807         * m4/strpbrk.m4: Likewise.
53808         * m4/strptime.m4: Likewise.
53809         * m4/strsep.m4: Likewise.
53810         * m4/strtod.m4: Likewise.
53811         * m4/strtoimax.m4: Likewise.
53812         * m4/strtok_r.m4: Likewise.
53813         * m4/strtol.m4: Likewise.
53814         * m4/strtoll.m4: Likewise.
53815         * m4/strtoul.m4: Likewise.
53816         * m4/strtoull.m4: Likewise.
53817         * m4/strtoumax.m4: Likewise.
53818         * m4/strverscmp.m4: Likewise.
53819         * m4/threadlib.m4: Likewise.
53820         * m4/timegm.m4: Likewise.
53821         * m4/tm_gmtoff.m4: Likewise.
53822         * m4/tmpdir.m4: Likewise.
53823         * m4/tmpfile.m4: Likewise.
53824         * m4/tzset.m4: Likewise.
53825         * m4/uintmax_t.m4: Likewise.
53826         * m4/unlinkdir.m4: Likewise.
53827         * m4/unlocked-io.m4: Likewise.
53828         * m4/uptime.m4: Likewise.
53829         * m4/userspec.m4: Likewise.
53830         * m4/utimbuf.m4: Likewise.
53831         * m4/utime.m4: Likewise.
53832         * m4/utimes-null.m4: Likewise.
53833         * m4/utimes.m4: Likewise.
53834         * m4/vararrays.m4: Likewise.
53835         * m4/vasnprintf.m4: Likewise.
53836         * m4/vfprintf-posix.m4: Likewise.
53837         * m4/vprintf-posix.m4: Likewise.
53838         * m4/wait-process.m4: Likewise.
53839         * m4/wchar_t.m4: Likewise.
53840         * m4/wint_t.m4: Likewise.
53841         * m4/write-any-file.m4: Likewise.
53842         * m4/yield.m4: Likewise.
53843
53844 2009-01-13  Bruno Haible  <bruno@clisp.org>
53845
53846         Avoid test-copy-file.sh failures when ACL support insufficient.
53847         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53848         TESTS_ENVIRONMENT.
53849         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53850         Reported by Jim Meyering.
53851
53852 2009-01-13  Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53855         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53856         * modules/unistdio/u8-printf-parse (Files): Likewise.
53857         * modules/unistdio/u32-printf-parse (Files): Likewise.
53858         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53859
53860 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53861
53862         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53863         and m4/inttypes_h.m4 too.
53864
53865 2009-01-12  Eric Blake  <ebb9@byu.net>
53866
53867         tests: IRIX 6.2 cc can't compile -0.0 into .data
53868         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53869         rather than at compile-time.
53870         * tests/test-floorl.c (minus_zero): Likewise.
53871         * tests/test-frexpl.c (minus_zero): Likewise.
53872         * tests/test-isnan.c (minus_zerol): Likewise.
53873         * tests/test-isnanl.h (minus_zero): Likewise.
53874         * tests/test-ldexpl.c (minus_zero): Likewise.
53875         * tests/test-roundl.c (minus_zero): Likewise.
53876         * tests/test-signbit.c (minus_zerol): Likewise.
53877         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53878         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53879         * tests/test-truncl.c (minus_zero): Likewise.
53880         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53881         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53882         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53883
53884 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53885
53886         regex: fix glibc bug 9697
53887         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53888         handling.
53889
53890 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53891
53892         regex: fix glibc bug 697
53893         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53894         being NULL also if there are no backreferences.
53895
53896 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53897
53898         regex: merge glibc changes
53899         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53900         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53901         re_string_skip_chars, re_string_reconstruct): Likewise.
53902         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53903
53904 2009-01-07  Jim Meyering  <meyering@redhat.com>
53905
53906         poll: filter through cppi
53907         * lib/poll.c: Indent cpp directives to reflect nesting.
53908
53909 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53910
53911         poll: don't return uninitialized
53912         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53913
53914 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53915
53916         avoid compile failure on AIX 6.1
53917         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53918         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53919
53920 2009-01-04  Jim Meyering  <meyering@redhat.com>
53921
53922         remove duplicate inclusion of <stdio.h>
53923         * tests/test-fprintf-posix.c: Likewise.
53924         * tests/test-printf-posix.c: Likewise.
53925         * tests/test-snprintf-posix.c: Likewise.
53926         * tests/test-sprintf-posix.c: Likewise.
53927         * tests/test-vasprintf-posix.c: Likewise.
53928         * tests/test-vfprintf-posix.c: Likewise.
53929         * tests/test-vprintf-posix.c: Likewise.
53930         * tests/test-vsnprintf-posix.c: Likewise.
53931         * tests/test-vsprintf-posix.c: Likewise.
53932
53933 2009-01-03  Jim Meyering  <meyering@redhat.com>
53934
53935         gnulib-tool: fix sed-based filtering
53936         * gnulib-tool (func_filter_filelist): Remove extra backslash
53937         in sed_fff_filter definition.
53938
53939 2009-01-02  Jim Meyering  <meyering@redhat.com>
53940
53941         strftime: avoid compilation failure on Solaris 2.6
53942         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53943         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53944         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53945         be available.  Reported by Tom G. Christensen.  Details in
53946         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53947
53948 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53949             Bruno Haible  <bruno@clisp.org>
53950
53951         Speed up gnulib-tool by doing more string processing through shell
53952         built-ins.
53953         * gnulib-tool (fast_func_append): New variable.
53954         (func_remove_prefix, func_remove_suffix): New functions.
53955         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53956         (func_filter_filelist): New function.
53957         (func_get_dependencies): Use func_remove_suffix instead of sed.
53958         (func_get_automake_snippet): Use func_filter_filelist instead of a
53959         subshell and sed invocation.
53960
53961 2009-01-01  Bruno Haible  <bruno@clisp.org>
53962
53963         Fix a security bug.
53964         * gnulib-tool (func_import, import, update): Don't allow the characters
53965         '"', '$', '`', '\' in macro arguments that become part of commands that
53966         are evaluated.
53967
53968 2009-01-01  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (func_reset_sigpipe): Add more comments.
53971
53972 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53973
53974         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53975         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53976         already know the answer.
53977
53978 2009-01-01  Jim Meyering  <meyering@redhat.com>
53979
53980         * lib/version-etc.c (version_etc_va): Update copyright year.
53981
53982 2008-12-30  Bruno Haible  <bruno@clisp.org>
53983
53984         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53985         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53986         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53987
53988 2008-12-29  Eric Blake  <ebb9@byu.net>
53989
53990         multiarch: avoid autoconf AC_REQUIRE bug
53991         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53992         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53993         2.63 and older.
53994         Reported by Bruno Haible, and analyzed in
53995         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53996
53997 2008-12-29  Bruno Haible  <bruno@clisp.org>
53998
53999         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
54000         files in subdirectories correctly.
54001         Reported by Ralf Wildenhues.
54002
54003 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54004
54005         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
54006         rather than 'join FILE -', for Solaris join.
54007
54008 2008-12-29  Bruno Haible  <bruno@clisp.org>
54009
54010         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
54011         quoting.
54012         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
54013         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
54014         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
54015         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
54016         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54017         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
54018         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
54019         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
54020         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54021         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
54022         * m4/nls.m4 (AM_NLS): Likewise.
54023         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
54024         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
54025         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
54026         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
54027         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
54028         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
54029         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
54030         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
54031         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
54032         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54033         * m4/xsize.m4 (gl_XSIZE): Likewise.
54034         Suggested by Jim Meyering.
54035
54036 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54037
54038         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
54039         * lib/parse-duration.c: use a switch instead of cascading if's.
54040
54041 2008-12-29  Eric Blake  <ebb9@byu.net>
54042
54043         wchar.h: supply WEOF on Irix 5.3
54044         * lib/wchar.in.h (wint_t): Also supply WEOF.
54045         * lib/wctype.in.h (wint_t): Likewise.
54046         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
54047         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
54048         Reported by Tom G. Christensen.
54049
54050 2008-12-26  Bruno Haible  <bruno@clisp.org>
54051
54052         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
54053         i486, i586, i686.
54054
54055 2008-12-26  Bruno Haible  <bruno@clisp.org>
54056
54057         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
54058
54059 2008-12-26  Bruno Haible  <bruno@clisp.org>
54060
54061         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
54062         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
54063         not __STDC_CONSTANT_MACROS.
54064         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54065
54066 2008-12-25  Bruno Haible  <bruno@clisp.org>
54067
54068         Add support for universal builds to vasnprintf.
54069         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
54070         universal builds, guess no.
54071         * modules/vasnprintf-posix (Depends-on): Add multiarch.
54072         * modules/vasprintf-posix (Depends-on): Likewise.
54073         * modules/fprintf-posix (Depends-on): Likewise.
54074         * modules/vfprintf-posix (Depends-on): Likewise.
54075         * modules/snprintf-posix (Depends-on): Likewise.
54076         * modules/vsnprintf-posix (Depends-on): Likewise.
54077         * modules/sprintf-posix (Depends-on): Likewise.
54078         * modules/vsprintf-posix (Depends-on): Likewise.
54079         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54080         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54081         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54082         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54083         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54084         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54085         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54086
54087         Add support for universal builds to <inttypes.h>.
54088         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
54089         _SCNu64_PREFIX): In Apple
54090         universal builds, define directly, using _LP64.
54091         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
54092         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
54093         * modules/inttypes (Depends-on): Add multiarch.
54094         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
54095
54096         Add support for universal builds to <stdint.h>.
54097         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
54098         universal builds, define directly, using _LP64.
54099         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
54100         Apple universal builds, don't test for the size and suffix of ptrdiff_t
54101         and size_t.
54102         * modules/stdint (Depends-on): Add multiarch.
54103         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
54104
54105         New module 'multiarch'.
54106         * modules/multiarch: New file.
54107         * m4/multiarch.m4: New file.
54108
54109 2008-12-25  Bruno Haible  <bruno@clisp.org>
54110
54111         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
54112
54113 2008-12-25  Bruno Haible  <bruno@clisp.org>
54114
54115         * modules/btowc (License): Relicense under LGPLv2+.
54116         * modules/mbsinit (License): Likewise.
54117         * modules/mbrtowc (License): Likewise.
54118         * modules/wcrtomb (License): Likewise.
54119         * modules/streq (License): Likewise.
54120         Reported by David Lutterkort <lutter@redhat.com>.
54121
54122 2008-12-23  Bruno Haible  <bruno@clisp.org>
54123
54124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
54125
54126 2008-12-23  Bruno Haible  <bruno@clisp.org>
54127
54128         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
54129         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
54130         GETADDRINFO_LIB, not in LIBS.
54131         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
54132         * modules/canon-host (Link): Likewise.
54133         * NEWS: Mention the change.
54134         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
54135         GETADDRINFO_LIB.
54136
54137 2008-12-22  Bruno Haible  <bruno@clisp.org>
54138
54139         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
54140         * doc/posix-functions/iswalpha_l.texi: Likewise.
54141         * doc/posix-functions/iswblank_l.texi: Likewise.
54142         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54143         * doc/posix-functions/iswctype_l.texi: Likewise.
54144         * doc/posix-functions/iswdigit_l.texi: Likewise.
54145         * doc/posix-functions/iswgraph_l.texi: Likewise.
54146         * doc/posix-functions/iswlower_l.texi: Likewise.
54147         * doc/posix-functions/iswprint_l.texi: Likewise.
54148         * doc/posix-functions/iswpunct_l.texi: Likewise.
54149         * doc/posix-functions/iswspace_l.texi: Likewise.
54150         * doc/posix-functions/iswupper_l.texi: Likewise.
54151         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54152         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54153         * doc/posix-functions/open_wmemstream.texi: Likewise.
54154         * doc/posix-functions/swscanf.texi: Likewise.
54155         * doc/posix-functions/towctrans_l.texi: Likewise.
54156         * doc/posix-functions/towlower.texi: Likewise.
54157         * doc/posix-functions/towlower_l.texi: Likewise.
54158         * doc/posix-functions/towupper.texi: Likewise.
54159         * doc/posix-functions/towupper_l.texi: Likewise.
54160         * doc/posix-functions/vfwprintf.texi: Likewise.
54161         * doc/posix-functions/vfwscanf.texi: Likewise.
54162         * doc/posix-functions/vswscanf.texi: Likewise.
54163         * doc/posix-functions/vwprintf.texi: Likewise.
54164         * doc/posix-functions/vwscanf.texi: Likewise.
54165         * doc/posix-functions/wcpcpy.texi: Likewise.
54166         * doc/posix-functions/wcpncpy.texi: Likewise.
54167         * doc/posix-functions/wcscasecmp.texi: Likewise.
54168         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54169         * doc/posix-functions/wcscoll_l.texi: Likewise.
54170         * doc/posix-functions/wcsdup.texi: Likewise.
54171         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54172         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54173         * doc/posix-functions/wcsnlen.texi: Likewise.
54174         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54175         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54176         * doc/posix-functions/wctrans_l.texi: Likewise.
54177         * doc/posix-functions/wctype_l.texi: Likewise.
54178         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54179         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54180         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54181         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54182         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54183         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54184         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54185         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54186         * doc/glibc-functions/wcschrnul.texi: Likewise.
54187         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54188         * doc/glibc-functions/wcstod_l.texi: Likewise.
54189         * doc/glibc-functions/wcstof_l.texi: Likewise.
54190         * doc/glibc-functions/wcstol_l.texi: Likewise.
54191         * doc/glibc-functions/wcstold_l.texi: Likewise.
54192         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54193         * doc/glibc-functions/wcstoq.texi: Likewise.
54194         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54195         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54196         * doc/glibc-functions/wcstouq.texi: Likewise.
54197         * doc/glibc-functions/wmempcpy.texi: Likewise.
54198
54199 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54200             Eric Blake  <ebb9@byu.net>
54201             Paolo Bonzini  <bonzini@gnu.org>
54202             Bruno Haible  <bruno@clisp.org>
54203
54204         Make c-stack work on Haiku.
54205         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54206         (c_stack_action): Use SA_ONSTACK flag.
54207
54208 2008-12-22  Bruno Haible  <bruno@clisp.org>
54209
54210         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54211
54212 2008-12-22  Bruno Haible  <bruno@clisp.org>
54213
54214         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54215         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54216         being overridden.
54217         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54218         New macros.
54219         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54221         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54222         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54223
54224 2008-12-22  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54227         from test code.
54228
54229 2008-12-22  Eric Blake  <ebb9@byu.net>
54230
54231         Avoid gcc warnings on cygwin.
54232         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54233         Avoid unused variable.
54234         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54235         Likewise.
54236
54237 2008-12-22  Bruno Haible  <bruno@clisp.org>
54238
54239         Remove HAVE_MBRTOWC conditionals.
54240         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54241         (mbscasecmp): Assume mbrtowc function.
54242         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54243         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54244         * lib/mbschr.c: Include mbuiter.h unconditionally.
54245         (mbschr): Assume mbrtowc function.
54246         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54247         (mbscspn): Assume mbrtowc function.
54248         * lib/mbslen.c: Include mbuiter.h unconditionally.
54249         (mbslen): Assume mbrtowc function.
54250         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54251         (mbsncasecmp): Assume mbrtowc function.
54252         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54253         (mbsnlen): Assume mbrtowc function.
54254         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54255         (mbspbrk): Assume mbrtowc function.
54256         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54257         (mbspcasecmp): Assume mbrtowc function.
54258         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54259         (mbsrchr): Assume mbrtowc function.
54260         * lib/mbssep.c: Include mbuiter.h unconditionally.
54261         (mbssep): Assume mbrtowc function.
54262         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54263         (mbsspn): Assume mbrtowc function.
54264         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54265         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54266         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54267         (mbstok_r): Assume mbrtowc function.
54268         * lib/propername.c: Include mbuiter.h unconditionally.
54269         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54270         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54271         (trim2): Assume mbrtowc function.
54272         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54273         (mbsnwidth): Assume mbrtowc function.
54274         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54275         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54276         fallback definitions.
54277         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54278
54279 2008-12-22  Bruno Haible  <bruno@clisp.org>
54280
54281         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54282
54283 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54284
54285         * modules/regex: Request emulations for the mb*/wc* functions we need.
54286         * m4/regex.m4: Don't look for those functions here.
54287         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54288
54289 2008-12-22  Bruno Haible  <bruno@clisp.org>
54290
54291         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54292
54293 2008-12-21  Bruno Haible  <bruno@clisp.org>
54294
54295         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54296         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54297         (Include): Remove conditionalization.
54298         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54299         (Include): Remove conditionalization.
54300         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54301         (Include): Remove conditionalization.
54302         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54303         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54304         * NEWS: Mention the change.
54305         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54306         via Sergey Poznyakoff <gray@gnu.org.ua>.
54307
54308 2008-12-21  Bruno Haible  <bruno@clisp.org>
54309
54310         * MODULES.html.sh (Extended multibyte and wide character utilities
54311         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54312         wcrtomb, wcsrtombs.
54313         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54314         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54315         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54316         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54317
54318 2008-12-21  Bruno Haible  <bruno@clisp.org>
54319
54320         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54321
54322 2008-12-21  Bruno Haible  <bruno@clisp.org>
54323
54324         * modules/wcsnrtombs-tests: New file.
54325         * tests/test-wcsnrtombs1.sh: New file.
54326         * tests/test-wcsnrtombs2.sh: New file.
54327         * tests/test-wcsnrtombs3.sh: New file.
54328         * tests/test-wcsnrtombs4.sh: New file.
54329         * tests/test-wcsnrtombs.c: New file.
54330
54331         New module 'wcsnrtombs'.
54332         * lib/wchar.in.h (wcsnrtombs): New declaration.
54333         * lib/wcsnrtombs.c: New file.
54334         * lib/wcsrtombs-state.c: New file.
54335         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54336         (internal_state): Remove variable.
54337         * m4/wcsnrtombs.m4: New file.
54338         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54339         compilation units.
54340         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54341         HAVE_WCSNRTOMBS.
54342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54343         HAVE_WCSNRTOMBS.
54344         * modules/wcsnrtombs: New file.
54345         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54346         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54347
54348 2008-12-21  Bruno Haible  <bruno@clisp.org>
54349
54350         * modules/wcsrtombs-tests: New file.
54351         * tests/test-wcsrtombs1.sh: New file.
54352         * tests/test-wcsrtombs2.sh: New file.
54353         * tests/test-wcsrtombs3.sh: New file.
54354         * tests/test-wcsrtombs4.sh: New file.
54355         * tests/test-wcsrtombs.c: New file.
54356
54357         New module 'wcsrtombs'.
54358         * lib/wchar.in.h (wcsrtombs): New declaration.
54359         * lib/wcsrtombs.c: New file.
54360         * m4/wcsrtombs.m4: New file.
54361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54362         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54363         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54364         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54365         * modules/wcsrtombs: New file.
54366         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54367         bugs.
54368
54369 2008-12-21  Bruno Haible  <bruno@clisp.org>
54370
54371         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54372         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54373         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54374         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54375         if not correct.
54376         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54377         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54378         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54379         m4/locale-zh.m4, m4/codeset.m4.
54380         * doc/posix-functions/wcrtomb.texi: Document the bug.
54381
54382 2008-12-21  Bruno Haible  <bruno@clisp.org>
54383
54384         Work around a btowc() bug on IRIX 6.5.
54385         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54386         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54387         REPLACE_WTOBC if not.
54388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54389         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54390         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54391
54392 2008-12-21  Bruno Haible  <bruno@clisp.org>
54393
54394         * modules/wcrtomb-tests: New file.
54395         * tests/test-wcrtomb.sh: New file.
54396         * tests/test-wcrtomb.c: New file.
54397
54398         New module 'wcrtomb'.
54399         * lib/wchar.in.h (wcrtomb): New declaration.
54400         * lib/wcrtomb.c: New file.
54401         * m4/wcrtomb.m4: New file.
54402         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54403         HAVE_WCRTOMB.
54404         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54405         HAVE_WCRTOMB.
54406         * modules/wcrtomb: New file.
54407         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54408
54409 2008-12-21  Bruno Haible  <bruno@clisp.org>
54410
54411         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54412         * modules/mbsrtowcs (Files): Likewise.
54413         * modules/wctob (Files): Likewise.
54414         * modules/c-strcase-tests (Files): Likewise.
54415         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54416         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54417         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54418         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54419         * modules/vasnprintf-posix-tests (Files): Likewise.
54420
54421 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54422
54423         gitlog-to-changelog: pass all command-line arguments to git-log
54424         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54425         it is sometimes convenient to filter the commits in various ways.
54426         gitlog-to-changelog only allows --since to specify a start date,
54427         but git-log itself supports many other filtering mechanisms.
54428         At the moment, I want to filter by branch name.  Rather than
54429         adding a --branch option to gitlog-to-changelog, it seems more
54430         flexible to simply pass all options directly to git-log and let
54431         git do the work.  Notice that this effectively makes --since a
54432         redundant option for gitlog-to-changelog, but removing it would
54433         require current usage to change since calls would then require
54434         an additional '--'.
54435
54436 2008-12-21  Bruno Haible  <bruno@clisp.org>
54437
54438         * modules/mbsnrtowcs-tests: New file.
54439         * tests/test-mbsnrtowcs1.sh: New file.
54440         * tests/test-mbsnrtowcs2.sh: New file.
54441         * tests/test-mbsnrtowcs3.sh: New file.
54442         * tests/test-mbsnrtowcs4.sh: New file.
54443         * tests/test-mbsnrtowcs.c: New file.
54444
54445         New module 'mbsnrtowcs'.
54446         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54447         * lib/mbsnrtowcs.c: New file.
54448         * lib/mbsrtowcs-state.c: New file.
54449         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54450         (internal_state): Remove variable.
54451         * m4/mbsnrtowcs.m4: New file.
54452         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54453         compilation units.
54454         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54455         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54456         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54457         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54458         * modules/mbsnrtowcs: New file.
54459         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54460         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54461         portability problem.
54462
54463 2008-12-21  Bruno Haible  <bruno@clisp.org>
54464
54465         Work around mbsrtowcs bug.
54466         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54467         (gl_FUNC_MBSRTOWCS): Invoke it.
54468         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54469         m4/locale-zh.m4.
54470         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54471
54472 2008-12-21  Bruno Haible  <bruno@clisp.org>
54473
54474         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54475
54476 2008-12-21  Bruno Haible  <bruno@clisp.org>
54477
54478         Update doc for AIX.
54479         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54480         16-bit wchar_t type.
54481         * doc/posix-functions/btowc.texi: Likewise.
54482         * doc/posix-functions/fgetwc.texi: Likewise.
54483         * doc/posix-functions/fgetws.texi: Likewise.
54484         * doc/posix-functions/fputwc.texi: Likewise.
54485         * doc/posix-functions/fputws.texi: Likewise.
54486         * doc/posix-functions/fwide.texi: Likewise.
54487         * doc/posix-functions/fwprintf.texi: Likewise.
54488         * doc/posix-functions/fwscanf.texi: Likewise.
54489         * doc/posix-functions/getwchar.texi: Likewise.
54490         * doc/posix-functions/getwc.texi: Likewise.
54491         * doc/posix-functions/iswalnum.texi: Likewise.
54492         * doc/posix-functions/iswalpha.texi: Likewise.
54493         * doc/posix-functions/iswblank.texi: Likewise.
54494         * doc/posix-functions/iswcntrl.texi: Likewise.
54495         * doc/posix-functions/iswctype.texi: Likewise.
54496         * doc/posix-functions/iswdigit.texi: Likewise.
54497         * doc/posix-functions/iswgraph.texi: Likewise.
54498         * doc/posix-functions/iswlower.texi: Likewise.
54499         * doc/posix-functions/iswprint.texi: Likewise.
54500         * doc/posix-functions/iswpunct.texi: Likewise.
54501         * doc/posix-functions/iswspace.texi: Likewise.
54502         * doc/posix-functions/iswupper.texi: Likewise.
54503         * doc/posix-functions/iswxdigit.texi: Likewise.
54504         * doc/posix-functions/mbrtowc.texi: Likewise.
54505         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54506         * doc/posix-functions/mbstowcs.texi: Likewise.
54507         * doc/posix-functions/mbtowc.texi: Likewise.
54508         * doc/posix-functions/putwchar.texi: Likewise.
54509         * doc/posix-functions/putwc.texi: Likewise.
54510         * doc/posix-functions/swprintf.texi: Likewise.
54511         * doc/posix-functions/tolower.texi: Likewise.
54512         * doc/posix-functions/toupper.texi: Likewise.
54513         * doc/posix-functions/towctrans.texi: Likewise.
54514         * doc/posix-functions/ungetwc.texi: Likewise.
54515         * doc/posix-functions/vswprintf.texi: Likewise.
54516         * doc/posix-functions/wcrtomb.texi: Likewise.
54517         * doc/posix-functions/wcscat.texi: Likewise.
54518         * doc/posix-functions/wcschr.texi: Likewise.
54519         * doc/posix-functions/wcscmp.texi: Likewise.
54520         * doc/posix-functions/wcscoll.texi: Likewise.
54521         * doc/posix-functions/wcscpy.texi: Likewise.
54522         * doc/posix-functions/wcscspn.texi: Likewise.
54523         * doc/posix-functions/wcsftime.texi: Likewise.
54524         * doc/posix-functions/wcslen.texi: Likewise.
54525         * doc/posix-functions/wcsncat.texi: Likewise.
54526         * doc/posix-functions/wcsncmp.texi: Likewise.
54527         * doc/posix-functions/wcsncpy.texi: Likewise.
54528         * doc/posix-functions/wcspbrk.texi: Likewise.
54529         * doc/posix-functions/wcsrchr.texi: Likewise.
54530         * doc/posix-functions/wcsrtombs.texi: Likewise.
54531         * doc/posix-functions/wcsspn.texi: Likewise.
54532         * doc/posix-functions/wcsstr.texi: Likewise.
54533         * doc/posix-functions/wcstod.texi: Likewise.
54534         * doc/posix-functions/wcstof.texi: Likewise.
54535         * doc/posix-functions/wcstoimax.texi: Likewise.
54536         * doc/posix-functions/wcstok.texi: Likewise.
54537         * doc/posix-functions/wcstold.texi: Likewise.
54538         * doc/posix-functions/wcstoll.texi: Likewise.
54539         * doc/posix-functions/wcstol.texi: Likewise.
54540         * doc/posix-functions/wcstombs.texi: Likewise.
54541         * doc/posix-functions/wcstoull.texi: Likewise.
54542         * doc/posix-functions/wcstoul.texi: Likewise.
54543         * doc/posix-functions/wcstoumax.texi: Likewise.
54544         * doc/posix-functions/wcswidth.texi: Likewise.
54545         * doc/posix-functions/wcsxfrm.texi: Likewise.
54546         * doc/posix-functions/wctob.texi: Likewise.
54547         * doc/posix-functions/wctomb.texi: Likewise.
54548         * doc/posix-functions/wctrans.texi: Likewise.
54549         * doc/posix-functions/wctype.texi: Likewise.
54550         * doc/posix-functions/wcwidth.texi: Likewise.
54551         * doc/posix-functions/wmemchr.texi: Likewise.
54552         * doc/posix-functions/wmemcmp.texi: Likewise.
54553         * doc/posix-functions/wmemcpy.texi: Likewise.
54554         * doc/posix-functions/wmemmove.texi: Likewise.
54555         * doc/posix-functions/wmemset.texi: Likewise.
54556         * doc/posix-functions/wprintf.texi: Likewise.
54557         * doc/posix-functions/wscanf.texi: Likewise.
54558
54559 2008-12-21  Bruno Haible  <bruno@clisp.org>
54560
54561         Update doc for HP-UX 11.11.
54562         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54563         in HP-UX version 11.00, not in all versions of HP-UX 11.
54564         * doc/posix-functions/fwide.texi: Likewise.
54565         * doc/posix-functions/fwprintf.texi: Likewise.
54566         * doc/posix-functions/fwscanf.texi: Likewise.
54567         * doc/posix-functions/inet_ntop.texi: Likewise.
54568         * doc/posix-functions/inet_pton.texi: Likewise.
54569         * doc/posix-functions/mbrlen.texi: Likewise.
54570         * doc/posix-functions/mbrtowc.texi: Likewise.
54571         * doc/posix-functions/mbsinit.texi: Likewise.
54572         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54573         * doc/posix-functions/swprintf.texi: Likewise.
54574         * doc/posix-functions/swscanf.texi: Likewise.
54575         * doc/posix-functions/towctrans.texi: Likewise.
54576         * doc/posix-functions/vfwprintf.texi: Likewise.
54577         * doc/posix-functions/vswprintf.texi: Likewise.
54578         * doc/posix-functions/vwprintf.texi: Likewise.
54579         * doc/posix-functions/wcrtomb.texi: Likewise.
54580         * doc/posix-functions/wcsrtombs.texi: Likewise.
54581         * doc/posix-functions/wcsstr.texi: Likewise.
54582         * doc/posix-functions/wctob.texi: Likewise.
54583         * doc/posix-functions/wctrans.texi: Likewise.
54584         * doc/posix-functions/wmemchr.texi: Likewise.
54585         * doc/posix-functions/wmemcmp.texi: Likewise.
54586         * doc/posix-functions/wmemcpy.texi: Likewise.
54587         * doc/posix-functions/wmemmove.texi: Likewise.
54588         * doc/posix-functions/wmemset.texi: Likewise.
54589         * doc/posix-functions/wprintf.texi: Likewise.
54590         * doc/posix-functions/wscanf.texi: Likewise.
54591
54592 2008-12-21  Bruno Haible  <bruno@clisp.org>
54593
54594         Work around a portability problem.
54595         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54596         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54597
54598 2008-12-20  Bruno Haible  <bruno@clisp.org>
54599
54600         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54601         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54602         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54604         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54605
54606         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54607         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54608         set.
54609         (GNULIB_defined_mbstate_t): New macro.
54610         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54611         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54612         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54613         reuses the system's mbrtowc function but works around the bugs.
54614         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54615         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54616         macros.
54617         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54618         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54619         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54620         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54621         REPLACE_MBSINIT if mbsinit needs to be overridden.
54622         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54623         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54624         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54625         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54626         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54627         m4/locale-zh.m4.
54628         (Depends): Add mbsinit.
54629         * modules/mbsinit (Depends): Add mbrtowc.
54630         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54631
54632 2008-12-20  Bruno Haible  <bruno@clisp.org>
54633
54634         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54635         so that there are no conversion errors on AIX.
54636         * tests/test-mbsrtowcs.c (main): LIkewise.
54637
54638 2008-12-20  Bruno Haible  <bruno@clisp.org>
54639
54640         Work around wctob bug on Solaris <= 9.
54641         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54642         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54643         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54644         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54645         * modules/wctob (Files): Add m4/locale-fr.m4.
54646         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54647
54648 2008-12-20  Bruno Haible  <bruno@clisp.org>
54649
54650         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54651         /dev/null.
54652         * tests/test-select-in.sh: Likewise.
54653         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54654
54655 2008-12-20  Bruno Haible  <bruno@clisp.org>
54656
54657         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54658         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54659         Cygwin 1.5.x.
54660
54661 2008-12-20  Bruno Haible  <bruno@clisp.org>
54662
54663         Ensure mbstate_t is defined on HP-UX 11.11.
54664         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54665         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54666         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54667         AC_USE_SYSTEM_EXTENSIONS.
54668         * modules/fnmatch (Depends-on): Add extensions.
54669         * modules/mbrlen (Depends-on): Likewise.
54670         * modules/mbrtowc (Depends-on): Likewise.
54671         * modules/mbsinit (Depends-on): Likewise.
54672         * modules/mbsrtowcs (Depends-on): Likewise.
54673         * modules/mbswidth (Depends-on): Likewise.
54674         * modules/quotearg (Depends-on): Likewise.
54675         * modules/strftime (Depends-on): Likewise.
54676
54677 2008-12-20  Bruno Haible  <bruno@clisp.org>
54678
54679         Ensure wctob is declared on IRIX 6.5.
54680         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54681         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54682         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54683         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54684         of HAVE_WCTOB.
54685         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54686         HAVE_WCTOB.
54687         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54688
54689 2008-12-19  Bruno Haible  <bruno@clisp.org>
54690
54691         * modules/mbsrtowcs-tests: New file.
54692         * tests/test-mbsrtowcs1.sh: New file.
54693         * tests/test-mbsrtowcs2.sh: New file.
54694         * tests/test-mbsrtowcs3.sh: New file.
54695         * tests/test-mbsrtowcs4.sh: New file.
54696         * tests/test-mbsrtowcs.c: New file.
54697
54698         New module 'mbsrtowcs'.
54699         * lib/wchar.in.h (mbsrtowcs): New declaration.
54700         * lib/mbsrtowcs.c: New file.
54701         * m4/mbsrtowcs.m4: New file.
54702         * modules/mbsrtowcs: New file.
54703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54704         HAVE_MBSRTOWCS.
54705         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54706         HAVE_MBSRTOWCS.
54707         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54708
54709 2008-12-19  Bruno Haible  <bruno@clisp.org>
54710
54711         New module 'mbrlen'.
54712         * lib/wchar.in.h (mbrlen): New declaration.
54713         * lib/mbrlen.c: New file.
54714         * m4/mbrlen.m4: New file.
54715         * modules/mbrlen: New file.
54716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54717         HAVE_MBRLEN.
54718         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54719         HAVE_MBRLEN.
54720         * doc/posix-functions/mbrlen.texi: Document the new module.
54721
54722 2008-12-19  Bruno Haible  <bruno@clisp.org>
54723
54724         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54725         * modules/mbrtowc (Depends-on): Add verify.
54726         Suggested by Paul Eggert.
54727
54728 2008-12-18  Bruno Haible  <bruno@clisp.org>
54729
54730         * modules/mbsinit-tests: New file.
54731         * tests/test-mbsinit.sh: New file.
54732         * tests/test-mbsinit.c: New file.
54733
54734 2008-12-18  Bruno Haible  <bruno@clisp.org>
54735
54736         * modules/mbrtowc-tests: New file.
54737         * tests/test-mbrtowc1.sh: New file.
54738         * tests/test-mbrtowc2.sh: New file.
54739         * tests/test-mbrtowc3.sh: New file.
54740         * tests/test-mbrtowc4.sh: New file.
54741         * tests/test-mbrtowc.c: New file.
54742
54743         New module 'mbrtowc'.
54744         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54745         mbsinit and mbrtowc.
54746         (mbrtowc): New declaration.
54747         * lib/mbrtowc.c: New file.
54748         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54749         * modules/mbrtowc: New file.
54750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54751         HAVE_MBRTOWC.
54752         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54753         HAVE_MBRTOWC.
54754         * doc/posix-functions/mbrtowc.texi: Document the new module.
54755
54756 2008-12-18  Bruno Haible  <bruno@clisp.org>
54757
54758         New module 'wctob'.
54759         * lib/wchar.in.h (wctob): New declaration.
54760         * lib/wctob.c: New file.
54761         * m4/wctob.m4: New file.
54762         * modules/wctob: New file.
54763         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54764         HAVE_WCTOB.
54765         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54766         * doc/posix-functions/wctob.texi: Document the new module.
54767
54768 2008-12-18  Bruno Haible  <bruno@clisp.org>
54769
54770         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54771         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54772
54773 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54774
54775         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54776         G. Christensen" <tgc@jupiterrise.com>.
54777
54778         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54779         G. Christensen" <tgc@jupiterrise.com>.
54780
54781         * lib/flock.c: Need to include string.h.  Reported by "Tom
54782         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54783         <ebb9@byu.net>.
54784
54785 2008-12-18  Bruno Haible  <bruno@clisp.org>
54786
54787         * m4/locale-ja.m4: New file, from GNU gettext.
54788
54789 2008-12-17  Bruno Haible  <bruno@clisp.org>
54790
54791         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54792         Suggested by Eric Blake.
54793
54794 2008-12-17  Bruno Haible  <bruno@clisp.org>
54795
54796         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54797
54798 2008-12-17  Bruno Haible  <bruno@clisp.org>
54799
54800         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54801         * modules/mbsinit (Depends-on): Add verify.
54802         Suggested by Paul Eggert.
54803
54804 2008-12-17  Bruno Haible  <bruno@clisp.org>
54805
54806         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54807         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54808         gl_FUNC_MBRTOWC.
54809         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54810         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54811         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54812         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54813         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54814         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54815         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54816         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54817         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54818         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54819         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54820         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54821         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54822         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54823         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54824         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54825         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54826         * modules/trim (configure.ac): Likewise.
54827
54828 2008-12-17  Bruno Haible  <bruno@clisp.org>
54829
54830         * modules/btowc-tests: New file.
54831         * tests/test-btowc1.sh: New file.
54832         * tests/test-btowc2.sh: New file.
54833         * tests/test-btowc.c: New file.
54834
54835         New module 'btowc'.
54836         * lib/wchar.in.h (btowc): New declaration.
54837         * lib/btowc.c: New file.
54838         * m4/btowc.m4: New file.
54839         * modules/btowc: New file.
54840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54841         HAVE_BTOWC.
54842         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54843         * doc/posix-functions/btowc.texi: Document the new module.
54844
54845 2008-12-17  Bruno Haible  <bruno@clisp.org>
54846
54847         New module 'mbsinit'.
54848         * lib/wchar.in.h (mbsinit): New declaration.
54849         * lib/mbsinit.c: New file.
54850         * m4/mbsinit.m4: New file.
54851         * modules/mbsinit: New file.
54852         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54853         HAVE_MBSINIT.
54854         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54855         HAVE_MBSINIT.
54856         * doc/posix-functions/mbsinit.texi: Document the new module.
54857
54858 2008-12-16  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/unistd.in.h: Add comment.
54861         * tests/test-environ.c: Don't include <stdlib.h>.
54862
54863 2008-12-16  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/parse-duration.h (parse_duration): Document return value
54866         convention.
54867         * lib/parse-duration.c: Include specification header first. Add
54868         comments.
54869         (_): Remove macro.
54870         (parse_year_month_day, parse_hour_minute_second): Move side effects
54871         outside of strchr call.
54872         (parse_non_iso8601): Move side effects outside of isspace call.
54873         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54874         call.
54875
54876 2008-12-16  Bruno Haible  <bruno@clisp.org>
54877
54878         * tests/test-parse-duration.sh: Produce no output when the test
54879         succeeds.
54880
54881 2008-12-16  Bruno Haible  <bruno@clisp.org>
54882
54883         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54884         expressions.
54885
54886 2008-12-15  Bruno Haible  <bruno@clisp.org>
54887
54888         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54889         * doc/glibc-functions/flistxattr.texi: Likewise.
54890         * doc/glibc-functions/fopencookie.texi: Likewise.
54891         * doc/glibc-functions/fremovexattr.texi: Likewise.
54892         * doc/glibc-functions/fsetxattr.texi: Likewise.
54893         * doc/glibc-functions/getxattr.texi: Likewise.
54894         * doc/glibc-functions/lgetxattr.texi: Likewise.
54895         * doc/glibc-functions/listxattr.texi: Likewise.
54896         * doc/glibc-functions/llistxattr.texi: Likewise.
54897         * doc/glibc-functions/lremovexattr.texi: Likewise.
54898         * doc/glibc-functions/lsetxattr.texi: Likewise.
54899         * doc/glibc-functions/removexattr.texi: Likewise.
54900         * doc/glibc-functions/setxattr.texi: Likewise.
54901         * doc/posix-functions/open_memstream.texi: Likewise.
54902
54903 2008-12-15  Eric Blake  <ebb9@byu.net>
54904
54905         Update doc for cygwin 1.7.
54906         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54907         functions.
54908         * doc/posix-functions/fchmodat.texi: Likewise.
54909         * doc/posix-functions/fchownat.texi: Likewise.
54910         * doc/posix-functions/fdopendir.texi: Likewise.
54911         * doc/posix-functions/fmemopen.texi: Likewise.
54912         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54913         * doc/posix-functions/fstatat.texi: Likewise.
54914         * doc/posix-functions/futimens.texi: Likewise.
54915         * doc/posix-functions/gai_strerror.texi: Likewise.
54916         * doc/posix-functions/getaddrinfo.texi: Likewise.
54917         * doc/posix-functions/getnameinfo.texi: Likewise.
54918         * doc/posix-functions/if_freenameindex.texi: Likewise.
54919         * doc/posix-functions/if_indextoname.texi: Likewise.
54920         * doc/posix-functions/if_nameindex.texi: Likewise.
54921         * doc/posix-functions/if_nametoindex.texi: Likewise.
54922         * doc/posix-functions/insque.texi: Likewise.
54923         * doc/posix-functions/linkat.texi: Likewise.
54924         * doc/posix-functions/llrint.texi: Likewise.
54925         * doc/posix-functions/llrintf.texi: Likewise.
54926         * doc/posix-functions/llrintl.texi: Likewise.
54927         * doc/posix-functions/lockf.texi: Likewise.
54928         * doc/posix-functions/lrintl.texi: Likewise.
54929         * doc/posix-functions/mkdirat.texi: Likewise.
54930         * doc/posix-functions/mkfifoat.texi: Likewise.
54931         * doc/posix-functions/mknodat.texi: Likewise.
54932         * doc/posix-functions/mq_close.texi: Likewise.
54933         * doc/posix-functions/mq_getattr.texi: Likewise.
54934         * doc/posix-functions/mq_notify.texi: Likewise.
54935         * doc/posix-functions/mq_open.texi: Likewise.
54936         * doc/posix-functions/mq_receive.texi: Likewise.
54937         * doc/posix-functions/mq_send.texi: Likewise.
54938         * doc/posix-functions/mq_setattr.texi: Likewise.
54939         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54940         * doc/posix-functions/mq_timedsend.texi: Likewise.
54941         * doc/posix-functions/mq_unlink.texi: Likewise.
54942         * doc/posix-functions/open_memstream.texi: Likewise.
54943         * doc/posix-functions/openat.texi: Likewise.
54944         * doc/posix-functions/posix_fadvise.texi: Likewise.
54945         * doc/posix-functions/posix_fallocate.texi: Likewise.
54946         * doc/posix-functions/posix_madvise.texi: Likewise.
54947         * doc/posix-functions/posix_memalign.texi: Likewise.
54948         * doc/posix-functions/posix_openpt.texi: Likewise.
54949         * doc/posix-functions/readlinkat.texi: Likewise.
54950         * doc/posix-functions/remque.texi: Likewise.
54951         * doc/posix-functions/renameat.texi: Likewise.
54952         * doc/posix-functions/rintl.texi: Likewise.
54953         * doc/posix-functions/sem_unlink.texi: Likewise.
54954         * doc/posix-functions/shm_open.texi: Likewise.
54955         * doc/posix-functions/shm_unlink.texi: Likewise.
54956         * doc/posix-functions/signgam.texi: Likewise.
54957         * doc/posix-functions/sigset.texi: Likewise.
54958         * doc/posix-functions/stpcpy.texi: Likewise.
54959         * doc/posix-functions/stpncpy.texi: Likewise.
54960         * doc/posix-functions/strerror.texi: Likewise.
54961         * doc/posix-functions/strtod.texi: Likewise.
54962         * doc/posix-functions/symlinkat.texi: Likewise.
54963         * doc/posix-functions/unlinkat.texi: Likewise.
54964         * doc/posix-functions/utimensat.texi: Likewise.
54965         * doc/glibc-functions/bindresvport.texi: Likewise.
54966         * doc/glibc-functions/dn_expand.texi: Likewise.
54967         * doc/glibc-functions/exp10.texi: Likewise.
54968         * doc/glibc-functions/exp10f.texi: Likewise.
54969         * doc/glibc-functions/fgetxattr.texi: Likewise.
54970         * doc/glibc-functions/flistxattr.texi: Likewise.
54971         * doc/glibc-functions/fopencookie.texi: Likewise.
54972         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54973         * doc/glibc-functions/fremovexattr.texi: Likewise.
54974         * doc/glibc-functions/fsetxattr.texi: Likewise.
54975         * doc/glibc-functions/getifaddrs.texi: Likewise.
54976         * doc/glibc-functions/getxattr.texi: Likewise.
54977         * doc/glibc-functions/lgetxattr.texi: Likewise.
54978         * doc/glibc-functions/listxattr.texi: Likewise.
54979         * doc/glibc-functions/llistxattr.texi: Likewise.
54980         * doc/glibc-functions/lremovexattr.texi: Likewise.
54981         * doc/glibc-functions/lsetxattr.texi: Likewise.
54982         * doc/glibc-functions/pow10.texi: Likewise.
54983         * doc/glibc-functions/pow10f.texi: Likewise.
54984         * doc/glibc-functions/rcmd_af.texi: Likewise.
54985         * doc/glibc-functions/removexattr.texi: Likewise.
54986         * doc/glibc-functions/res_init.texi: Likewise.
54987         * doc/glibc-functions/res_mkquery.texi: Likewise.
54988         * doc/glibc-functions/res_query.texi: Likewise.
54989         * doc/glibc-functions/res_querydomain.texi: Likewise.
54990         * doc/glibc-functions/res_send.texi: Likewise.
54991         * doc/glibc-functions/rresvport_af.texi: Likewise.
54992         * doc/glibc-functions/setxattr.texi: Likewise.
54993         * doc/glibc-functions/strcasestr.texi: Likewise.
54994
54995 2008-12-15  Bruno Haible  <bruno@clisp.org>
54996
54997         Fix compilation error on OSF/1 4.0.
54998         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54999         <sys/time.h>, simply delegate to the system header.
55000         Reported by Daniel Richard G. <oss@teragram.com>.
55001
55002 2008-12-15  Bruno Haible  <bruno@clisp.org>
55003
55004         * doc/posix-functions/openat.texi: Mention the 'openat' module.
55005         * doc/posix-functions/fchmodat.texi: Likewise.
55006         * doc/posix-functions/fchownat.texi: Likewise.
55007         * doc/posix-functions/fdopendir.texi: Likewise.
55008         * doc/posix-functions/fstatat.texi: Likewise.
55009         * doc/posix-functions/mkdirat.texi: Likewise.
55010         * doc/posix-functions/unlinkat.texi: Likewise.
55011
55012 2008-12-14  Bruno Haible  <bruno@clisp.org>
55013
55014         Update doc for POSIX:2008.
55015         * doc/posix-functions/faccessat.texi: New file.
55016         * doc/posix-functions/fchmodat.texi: New file.
55017         * doc/posix-functions/fchownat.texi: New file.
55018         * doc/posix-functions/fdopendir.texi: New file.
55019         * doc/posix-functions/fstatat.texi: New file.
55020         * doc/posix-functions/futimens.texi: New file.
55021         * doc/posix-functions/linkat.texi: New file.
55022         * doc/posix-functions/mkdirat.texi: New file.
55023         * doc/posix-functions/mkfifoat.texi: New file.
55024         * doc/posix-functions/mknodat.texi: New file.
55025         * doc/posix-functions/open_wmemstream.texi: New file.
55026         * doc/posix-functions/openat.texi: New file.
55027         * doc/posix-functions/psiginfo.texi: New file.
55028         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
55029         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
55030         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
55031         * doc/posix-functions/readlinkat.texi: New file.
55032         * doc/posix-functions/renameat.texi: New file.
55033         * doc/posix-functions/strerror_l.texi: New file.
55034         * doc/posix-functions/symlinkat.texi: New file.
55035         * doc/posix-functions/unlinkat.texi: New file.
55036         * doc/posix-functions/utimensat.texi: New file.
55037         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55038
55039 2008-12-14  Bruno Haible  <bruno@clisp.org>
55040
55041         Update doc for POSIX:2008.
55042         * doc/posix-functions/alphasort.texi: Renamed from
55043         doc/glibc-functions/alphasort.texi.
55044         * doc/posix-functions/dirfd.texi: Renamed from
55045         doc/glibc-functions/dirfd.texi.
55046         * doc/posix-functions/dprintf.texi: Renamed from
55047         doc/glibc-functions/dprintf.texi.
55048         * doc/posix-functions/duplocale.texi: Renamed from
55049         doc/glibc-functions/duplocale.texi.
55050         * doc/posix-functions/fexecve.texi: Renamed from
55051         doc/glibc-functions/fexecve.texi.
55052         * doc/posix-functions/fmemopen.texi: Renamed from
55053         doc/glibc-functions/fmemopen.texi.
55054         * doc/posix-functions/freelocale.texi: Renamed from
55055         doc/glibc-functions/freelocale.texi.
55056         * doc/posix-functions/getdate_err.texi: Renamed from
55057         doc/glibc-functions/getdate_err.texi.
55058         * doc/posix-functions/isalnum_l.texi: Renamed from
55059         doc/glibc-functions/isalnum_l.texi.
55060         * doc/posix-functions/isalpha_l.texi: Renamed from
55061         doc/glibc-functions/isalpha_l.texi.
55062         * doc/posix-functions/isblank_l.texi: Renamed from
55063         doc/glibc-functions/isblank_l.texi.
55064         * doc/posix-functions/iscntrl_l.texi: Renamed from
55065         doc/glibc-functions/iscntrl_l.texi.
55066         * doc/posix-functions/isdigit_l.texi: Renamed from
55067         doc/glibc-functions/isdigit_l.texi.
55068         * doc/posix-functions/isgraph_l.texi: Renamed from
55069         doc/glibc-functions/isgraph_l.texi.
55070         * doc/posix-functions/islower_l.texi: Renamed from
55071         doc/glibc-functions/islower_l.texi.
55072         * doc/posix-functions/isprint_l.texi: Renamed from
55073         doc/glibc-functions/isprint_l.texi.
55074         * doc/posix-functions/ispunct_l.texi: Renamed from
55075         doc/glibc-functions/ispunct_l.texi.
55076         * doc/posix-functions/isspace_l.texi: Renamed from
55077         doc/glibc-functions/isspace_l.texi.
55078         * doc/posix-functions/isupper_l.texi: Renamed from
55079         doc/glibc-functions/isupper_l.texi.
55080         * doc/posix-functions/iswalnum_l.texi: Renamed from
55081         doc/glibc-functions/iswalnum_l.texi.
55082         * doc/posix-functions/iswalpha_l.texi: Renamed from
55083         doc/glibc-functions/iswalpha_l.texi.
55084         * doc/posix-functions/iswblank_l.texi: Renamed from
55085         doc/glibc-functions/iswblank_l.texi.
55086         * doc/posix-functions/iswcntrl_l.texi: Renamed from
55087         doc/glibc-functions/iswcntrl_l.texi.
55088         * doc/posix-functions/iswctype_l.texi: Renamed from
55089         doc/glibc-functions/iswctype_l.texi.
55090         * doc/posix-functions/iswdigit_l.texi: Renamed from
55091         doc/glibc-functions/iswdigit_l.texi.
55092         * doc/posix-functions/iswgraph_l.texi: Renamed from
55093         doc/glibc-functions/iswgraph_l.texi.
55094         * doc/posix-functions/iswlower_l.texi: Renamed from
55095         doc/glibc-functions/iswlower_l.texi.
55096         * doc/posix-functions/iswprint_l.texi: Renamed from
55097         doc/glibc-functions/iswprint_l.texi.
55098         * doc/posix-functions/iswpunct_l.texi: Renamed from
55099         doc/glibc-functions/iswpunct_l.texi.
55100         * doc/posix-functions/iswspace_l.texi: Renamed from
55101         doc/glibc-functions/iswspace_l.texi.
55102         * doc/posix-functions/iswupper_l.texi: Renamed from
55103         doc/glibc-functions/iswupper_l.texi.
55104         * doc/posix-functions/iswxdigit_l.texi: Renamed from
55105         doc/glibc-functions/iswxdigit_l.texi.
55106         * doc/posix-functions/isxdigit_l.texi: Renamed from
55107         doc/glibc-functions/isxdigit_l.texi.
55108         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
55109         doc/glibc-functions/mbsnrtowcs.texi.
55110         * doc/posix-functions/mkdtemp.texi: Renamed from
55111         doc/glibc-functions/mkdtemp.texi.
55112         * doc/posix-functions/newlocale.texi: Renamed from
55113         doc/glibc-functions/newlocale.texi.
55114         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
55115         doc/glibc-functions/nl_langinfo_l.texi.
55116         * doc/posix-functions/open_memstream.texi: Renamed from
55117         doc/glibc-functions/open_memstream.texi.
55118         * doc/posix-functions/opterr.texi: Renamed from
55119         doc/glibc-functions/opterr.texi.
55120         * doc/posix-functions/optind.texi: Renamed from
55121         doc/glibc-functions/optind.texi.
55122         * doc/posix-functions/optopt.texi: Renamed from
55123         doc/glibc-functions/optopt.texi.
55124         * doc/posix-functions/psignal.texi: Renamed from
55125         doc/glibc-functions/psignal.texi.
55126         * doc/posix-functions/scandir.texi: Renamed from
55127         doc/glibc-functions/scandir.texi.
55128         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
55129         doc/glibc-functions/sched_get_priority_min.texi.
55130         * doc/posix-functions/signgam.texi: Renamed from
55131         doc/glibc-functions/signgam.texi.
55132         * doc/posix-functions/stpcpy.texi: Renamed from
55133         doc/glibc-functions/stpcpy.texi.
55134         * doc/posix-functions/stpncpy.texi: Renamed from
55135         doc/glibc-functions/stpncpy.texi.
55136         * doc/posix-functions/strcasecmp_l.texi: Renamed from
55137         doc/glibc-functions/strcasecmp_l.texi.
55138         * doc/posix-functions/strcoll_l.texi: Renamed from
55139         doc/glibc-functions/strcoll_l.texi.
55140         * doc/posix-functions/strfmon_l.texi: Renamed from
55141         doc/glibc-functions/strfmon_l.texi.
55142         * doc/posix-functions/strftime_l.texi: Renamed from
55143         doc/glibc-functions/strftime_l.texi.
55144         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55145         doc/glibc-functions/strncasecmp_l.texi.
55146         * doc/posix-functions/strndup.texi: Renamed from
55147         doc/glibc-functions/strndup.texi.
55148         * doc/posix-functions/strnlen.texi: Renamed from
55149         doc/glibc-functions/strnlen.texi.
55150         * doc/posix-functions/strsignal.texi: Renamed from
55151         doc/glibc-functions/strsignal.texi.
55152         * doc/posix-functions/strxfrm_l.texi: Renamed from
55153         doc/glibc-functions/strxfrm_l.texi.
55154         * doc/posix-functions/timer_gettime.texi: Renamed from
55155         doc/glibc-functions/timer_gettime.texi.
55156         * doc/posix-functions/tolower_l.texi: Renamed from
55157         doc/glibc-functions/tolower_l.texi.
55158         * doc/posix-functions/toupper_l.texi: Renamed from
55159         doc/glibc-functions/toupper_l.texi.
55160         * doc/posix-functions/towctrans_l.texi: Renamed from
55161         doc/glibc-functions/towctrans_l.texi.
55162         * doc/posix-functions/towlower_l.texi: Renamed from
55163         doc/glibc-functions/towlower_l.texi.
55164         * doc/posix-functions/towupper_l.texi: Renamed from
55165         doc/glibc-functions/towupper_l.texi.
55166         * doc/posix-functions/uselocale.texi: Renamed from
55167         doc/glibc-functions/uselocale.texi.
55168         * doc/posix-functions/vdprintf.texi: Renamed from
55169         doc/glibc-functions/vdprintf.texi.
55170         * doc/posix-functions/wcpcpy.texi:
55171         Renamed from doc/glibc-functions/wcpcpy.texi.
55172         * doc/posix-functions/wcpncpy.texi: Renamed from
55173         doc/glibc-functions/wcpncpy.texi.
55174         * doc/posix-functions/wcscasecmp.texi: Renamed from
55175         doc/glibc-functions/wcscasecmp.texi.
55176         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55177         doc/glibc-functions/wcscasecmp_l.texi.
55178         * doc/posix-functions/wcscoll_l.texi: Renamed from
55179         doc/glibc-functions/wcscoll_l.texi.
55180         * doc/posix-functions/wcsdup.texi: Renamed from
55181         doc/glibc-functions/wcsdup.texi.
55182         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55183         doc/glibc-functions/wcsncasecmp.texi.
55184         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55185         doc/glibc-functions/wcsncasecmp_l.texi.
55186         * doc/posix-functions/wcsnlen.texi: Renamed from
55187         doc/glibc-functions/wcsnlen.texi.
55188         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55189         doc/glibc-functions/wcsnrtombs.texi.
55190         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55191         doc/glibc-functions/wcsxfrm_l.texi.
55192         * doc/posix-functions/wctrans_l.texi: Renamed from
55193         doc/glibc-functions/wctrans_l.texi.
55194         * doc/posix-functions/wctype_l.texi: Renamed from
55195         doc/glibc-functions/wctype_l.texi.
55196         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55197         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55198         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55199         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55200         these subsections.
55201         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55202         Remove sections.
55203
55204 2008-12-14  Bruno Haible  <bruno@clisp.org>
55205
55206         Update doc for POSIX:2008.
55207         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55208
55209 2008-12-14  Bruno Haible  <bruno@clisp.org>
55210
55211         Update doc for POSIX:2008.
55212         * doc/pastposix-functions/bcmp.texi: Renamed from
55213         doc/posix-functions/bcmp.texi.
55214         * doc/pastposix-functions/bcopy.texi: Renamed from
55215         doc/posix-functions/bcopy.texi.
55216         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55217         doc/posix-functions/bsd_signal.texi.
55218         * doc/pastposix-functions/bzero.texi: Renamed from
55219         doc/posix-functions/bzero.texi.
55220         * doc/pastposix-functions/ecvt.texi: Renamed from
55221         doc/posix-functions/ecvt.texi.
55222         * doc/pastposix-functions/fcvt.texi: Renamed from
55223         doc/posix-functions/fcvt.texi.
55224         * doc/pastposix-functions/ftime.texi: Renamed from
55225         doc/posix-functions/ftime.texi.
55226         * doc/pastposix-functions/gcvt.texi: Renamed from
55227         doc/posix-functions/gcvt.texi.
55228         * doc/pastposix-functions/getcontext.texi: Renamed from
55229         doc/posix-functions/getcontext.texi.
55230         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55231         doc/posix-functions/gethostbyaddr.texi.
55232         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55233         doc/posix-functions/gethostbyname.texi.
55234         * doc/pastposix-functions/getwd.texi: Renamed from
55235         doc/posix-functions/getwd.texi.
55236         * doc/pastposix-functions/h_errno.texi: Renamed from
55237         doc/posix-functions/h_errno.texi.
55238         * doc/pastposix-functions/index.texi: Renamed from
55239         doc/posix-functions/index.texi.
55240         * doc/pastposix-functions/makecontext.texi: Renamed from
55241         doc/posix-functions/makecontext.texi.
55242         * doc/pastposix-functions/mktemp.texi: Renamed from
55243         doc/posix-functions/mktemp.texi.
55244         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55245         doc/posix-functions/pthread_attr_getstackaddr.texi.
55246         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55247         doc/posix-functions/pthread_attr_setstackaddr.texi.
55248         * doc/pastposix-functions/rindex.texi: Renamed from
55249         doc/posix-functions/rindex.texi.
55250         * doc/pastposix-functions/scalb.texi: Renamed from
55251         doc/posix-functions/scalb.texi.
55252         * doc/pastposix-functions/setcontext.texi: Renamed from
55253         doc/posix-functions/setcontext.texi.
55254         * doc/pastposix-functions/swapcontext.texi: Renamed from
55255         doc/posix-functions/swapcontext.texi.
55256         * doc/pastposix-functions/ualarm.texi: Renamed from
55257         doc/posix-functions/ualarm.texi.
55258         * doc/pastposix-functions/usleep.texi: Renamed from
55259         doc/posix-functions/usleep.texi.
55260         * doc/pastposix-functions/vfork.texi: Renamed from
55261         doc/posix-functions/vfork.texi.
55262         * doc/pastposix-functions/wcswcs.texi: Renamed from
55263         doc/posix-functions/wcswcs.texi.
55264         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55265         (Function Substitutes): Update.
55266
55267 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55268
55269         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55270         m4/strerror.m4.
55271
55272 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55273             Bruno Haible  <bruno@clisp.org>
55274
55275         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55276
55277 2008-12-13  Bruno Haible  <bruno@clisp.org>
55278
55279         * modules/strtoull (Depends-on): Remove unistd.
55280
55281 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55282
55283         * modules/strtoull (Depends-on): Add stdlib.
55284
55285 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55286
55287         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55288
55289 2008-12-10  Jim Meyering  <meyering@redhat.com>
55290
55291         gl_ASSERT: don't say assertions are disabled when they're not
55292         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55293         "checking whether to enable assertions... no", when they are in
55294         fact enabled.  This is solely a bug in the output of configure.
55295         In spite of saying "no", NDEBUG was not defined in that case.
55296         Also, as noted by Eric Blake, leave assertions enabled upon
55297         --enable-assert=INVALID.
55298
55299 2008-12-10  Bruno Haible  <bruno@clisp.org>
55300
55301         Change MODULES.html to refer to POSIX:2008 where possible.
55302         * MODULES.html.sh (POSIX2008_URL): New variable.
55303         (posix_headers): Remove sys/timeb, ucontext.
55304         (posix2001_headers): New variable.
55305         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55306         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55307         index, makecontext, mktemp, pthread_attr_getstackaddr,
55308         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55309         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55310         (posix2001_functions): New variable.
55311         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55312         otherwise.
55313
55314 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55315
55316         add missing include to parse-duration.c
55317         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55318         * modules/parse-duration (Depends-on): Add xalloc.
55319
55320         fix sed script reading maint.mk
55321         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55322         (syntax-check-rules): Use it.
55323
55324 2008-12-09  Bruno Haible  <bruno@clisp.org>
55325
55326         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55327         MacOS X 10.4/PowerPC.
55328         Reported by Simon Josefsson.
55329
55330 2008-12-08  Jim Meyering  <meyering@redhat.com>
55331
55332         work around mingw's lack of some S_IF definitions
55333         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55334         Reported by Simon Josefsson.
55335
55336 2008-12-08  Bruno Haible  <bruno@clisp.org>
55337
55338         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55339         applied to variables. Needed on MacOS X 10.4/PowerPC.
55340         Reported by Simon Josefsson.
55341
55342 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55343         and Eric Blake  <ebb9@byu.net>
55344
55345         assert: honor --enable-assert
55346         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55347         order to honor --enable-assert, rather than treating it as a
55348         synonym for --disable-assert.
55349
55350 2008-12-08  Jim Meyering  <meyering@redhat.com>
55351
55352         * lib/posixtm.c: Remove now-useless declaration of mktime.
55353
55354         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55355
55356 2008-12-07  Bruno Haible  <bruno@clisp.org>
55357
55358         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55359         test_once): Mark functions as static.
55360         * tests/test-tls.c (test_tls): Likewise.
55361
55362 2008-12-07  Bruno Haible  <bruno@clisp.org>
55363
55364         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55365         iconv_register_autodetect.
55366
55367 2008-12-07  Jim Meyering  <meyering@redhat.com>
55368
55369         posixtm.c: avoid a warning
55370         * lib/posixtm.c (posixtime): Don't initialize tm0.
55371         It's no longer needed to placate gcc4's -Wuninitialized,
55372         and the attempt to placate would elicit a new warning.
55373
55374         unicodeio.c: mark unused parameters
55375         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55376         (fallback_failure_callback): Likewise.
55377
55378 2008-12-07  Bruno Haible  <bruno@clisp.org>
55379
55380         * gnulib-tool (func_create_testdir): When building the tests
55381         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55382         Reported by Simon Josefsson.
55383
55384 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55385
55386         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55387
55388 2008-12-06  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55391         Suggested by Eric Blake.
55392
55393 2008-12-06  Bruno Haible  <bruno@clisp.org>
55394
55395         Fix a c-stack test failure on MacOS X.
55396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55397         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55398         handler for SIGBUS as well.
55399         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55400         install a signal handler for SIGBUS as well.
55401         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55402
55403 2008-12-06  Bruno Haible  <bruno@clisp.org>
55404
55405         Advocacy documentation.
55406         * doc/gnulib-intro.texi (Benefits): New section.
55407         * doc/gnulib.texi: Update.
55408
55409 2008-12-06  Bruno Haible  <bruno@clisp.org>
55410
55411         Document the 'manywarnings' module.
55412         * doc/manywarnings.texi: New file.
55413         * doc/gnulib.texi: Include it.
55414
55415 2008-12-05  Eric Blake  <ebb9@byu.net>
55416
55417         tests: silence some gcc warnings
55418         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55419         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55420         type mismatches.
55421
55422 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55423             Bruno Haible  <bruno@clisp.org>
55424
55425         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55426
55427 2008-11-29  Jim Meyering  <meyering@redhat.com>
55428
55429         unicodeio.c: mark unused parameters
55430         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55431         (fallback_failure_callback): Likewise.
55432
55433         fts: fix a thinko
55434         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55435         (set_stat_type): Return S_IF*-valued "type" directly.
55436         Prompted by James Youngman's spotting a related bug.
55437         Confirmed by further testing through find.
55438
55439         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55440         * lib/fts.c (D_TYPE): Define.
55441         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55442         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55443         (s_ifmt_shift_bits): New function.
55444         (set_stat_type): New function.
55445         (fts_build): When not calling fts_stat, call set_stat_type
55446         to propagate dirent.d_type info to fts_read caller.
55447         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55448         fts_statp->st_mode type information may be valid.
55449
55450 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55451
55452         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55453         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55454         <sds@gnu.org>.
55455
55456 2008-11-20  Bruno Haible  <bruno@clisp.org>
55457
55458         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55459         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55460         INCLUDE_NEXT.
55461         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55462         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55463         * modules/math (Makefile.am): Substitute
55464         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55465         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55466
55467 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55468             Bruno Haible  <bruno@clisp.org>
55469
55470         * lib/stdint.in.h: Define all type macros so that their expansion is
55471         a single typedef'ed token. Fixes a compilation failure in Boost which
55472         does "using ::int8_t;".
55473
55474 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55475
55476         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55477         gl_MANYWARN_ALL_GCC.
55478         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55479         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55480         * modules/manywarnings: New file.
55481         * MODULES.html.sh: Mention manywarnings module.
55482
55483 2008-11-18  Bruno Haible  <bruno@clisp.org>
55484
55485         * doc/gnulib-tool.texi (Unit tests): New section.
55486
55487 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55488
55489         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55490         paths like 'lib/po/foo.po'.
55491
55492 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55493
55494         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55495         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55496
55497 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55498
55499         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55500         parameter works.
55501
55502 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55503
55504         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55505
55506 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55507
55508         * modules/parse-duration-tests: New file.
55509         * tests/test-parse-duration.sh: New file.
55510         * tests/test-parse-duration.c: New file.
55511
55512         New module 'parse-duration'.
55513         * lib/parse-duration.h: New file.
55514         * lib/parse-duration.c: New file.
55515         * modules/parse-duration: New file.
55516
55517 2008-11-17  Bruno Haible  <bruno@clisp.org>
55518
55519         * tests/test-select-out.sh: Comment out the first pipe test.
55520         Reported by Simon Josefsson.
55521
55522 2008-11-17  Bruno Haible  <bruno@clisp.org>
55523
55524         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55525         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55526         gl_HOSTENT.
55527
55528 2008-11-17  Bruno Haible  <bruno@clisp.org>
55529
55530         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55531         -lnetwork and -lnet. Needed for Haiku and BeOS.
55532
55533 2008-11-16  Bruno Haible  <bruno@clisp.org>
55534
55535         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55536
55537 2008-11-16  Bruno Haible  <bruno@clisp.org>
55538
55539         Avoid test failure on Haiku.
55540         * tests/test-fsync.c: Include <errno.h>.
55541         (main): Don't require that fsync (0) fails.
55542
55543 2008-11-15  Bruno Haible  <bruno@clisp.org>
55544
55545         New module 'hostent'.
55546         * modules/hostent: New file.
55547         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55548
55549 2008-11-15  Bruno Haible  <bruno@clisp.org>
55550
55551         New module 'servent'.
55552         * modules/servent: New file.
55553         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55554
55555 2008-11-15  Bruno Haible  <bruno@clisp.org>
55556
55557         Avoid generating same test program with two different rules.
55558         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55559         test-frexp to test-frexp-nolibm.
55560         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55561         test-frexpl to test-frexpl-nolibm.
55562
55563 2008-11-15  Bruno Haible  <bruno@clisp.org>
55564
55565         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55566         $(FREXPL_LIBM).
55567
55568 2008-11-15  Bruno Haible  <bruno@clisp.org>
55569
55570         * lib/netdb.in.h: Activate the definitions also when the system's
55571         <netdb.h> has 'struct addrinfo'.
55572         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55573         EAI_OVERFLOW or AI_NUMERICSERV.
55574         * doc/posix-headers/netdb.texi: Document the problem.
55575
55576 2008-11-15  Bruno Haible  <bruno@clisp.org>
55577
55578         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55579
55580         Make the 'sched' module work on platforms where <sched.h> exists but
55581         is incomplete (such as Haiku).
55582         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55583         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55584         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55585         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55586         HAVE_STRUCT_SCHED_PARAM.
55587         * modules/sched (Depends-on): Add include_next.
55588         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55589         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55590         * doc/posix-headers/sched.texi: Document the issue.
55591
55592 2008-11-13  Jim Meyering  <meyering@redhat.com>
55593
55594         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55595         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55596         test would fail due to the difference in the Report bugs to ...
55597         line.  The expected address is empty, "<>", while the actual
55598         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55599
55600 2008-11-12  Bruno Haible  <bruno@clisp.org>
55601
55602         lstat: don't compile lstat.c on systems lacking lstat
55603         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55604         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55605         Reported by Daniel P. Berrange via Jim Meyering.
55606
55607 2008-11-12  Jim Meyering  <meyering@redhat.com>
55608
55609         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55610
55611 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55612
55613         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55614         instead.
55615
55616 2008-11-12  Bruno Haible  <bruno@clisp.org>
55617
55618         * lib/unicodeio.c: Include unistr.h.
55619         (utf8_wctomb): Remove function.
55620         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55621
55622 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55623
55624         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55625         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55626         <bruno@clisp.org>.
55627         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55628
55629 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55630
55631         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55632         * doc/gnulib.texi: Add section for warnings.
55633
55634 2008-11-11  Bruno Haible  <bruno@clisp.org>
55635
55636         * lib/sockets.h: Add a comment.
55637
55638 2008-11-11  Karl Berry  <karl@gnu.org>
55639
55640         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55641
55642 2008-11-11  Eric Blake  <ebb9@byu.net>
55643
55644         fdl.texi: avoid git symlinks
55645         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55646
55647 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55648
55649         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55650
55651 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55652
55653         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55654         (gl_WARN_ADD): Substitute $2 if literal.
55655
55656 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55657
55658         * m4/warning.m4: Remove.
55659
55660 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55661
55662         * m4/warnings.m4: Almost complete rewrite. :-)
55663
55664 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55665
55666         * modules/warnings: New module.
55667         * m4/warnings.m4: New file.
55668         * MODULES.html.sh: Mention warnings module.
55669         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55670         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55671
55672 2008-11-10  Eric Blake  <ebb9@byu.net>
55673
55674         fdl.texi: make a symlink to the latest version
55675         * doc/standards.texi: Revert today's earlier change.
55676         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55677         * doc/fdl.texi: ...and replace this with a symlink to the newer
55678         fdl-1.3.texi.
55679
55680 2008-11-10  Bruno Haible  <bruno@clisp.org>
55681
55682         * tests/test-select-fd.c (main): Accept the result file name as fourth
55683         argument.
55684         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55685         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55686
55687 2008-11-10  Bruno Haible  <bruno@clisp.org>
55688
55689         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55690         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55691         as autoconf-substituted macros.
55692         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55693         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55694         gl_NETDB_H_DEFAULTS. Set these variables.
55695         * modules/netdb (Makefile.am): Substitute these variables.
55696
55697 2008-11-10  Eric Blake  <ebb9@byu.net>
55698
55699         standards.texi: include correct file for FDL 1.3
55700         * doc/standards.texi (GNU Free Documentation License): Change
55701         include file to pull in FDL 1.3, not 1.2.
55702
55703         fdl.texi: revert accidental change to license
55704         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55705
55706 2008-11-10  Bruno Haible  <bruno@clisp.org>
55707
55708         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55709         cross-compiling guesses also when the native compile gives no result.
55710
55711 2008-11-10  Bruno Haible  <bruno@clisp.org>
55712
55713         * lib/spawni.c (__spawni): Force variable into the stack.
55714
55715 2008-11-10  Bruno Haible  <bruno@clisp.org>
55716
55717         Add support for Haiku.
55718         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55719         glibc and BeOS, but also on Haiku.
55720         * lib/fpurge.c (fpurge): Likewise.
55721         * lib/freadable.c (freadable): Likewise.
55722         * lib/freadahead.c (freadahead): Likewise.
55723         * lib/freading.c (freading): Likewise.
55724         * lib/freadptr.c (freadptr): Likewise.
55725         * lib/freadseek.c (freadptrinc): Likewise.
55726         * lib/fseeko.c (rpl_fseeko): Likewise.
55727         * lib/fseterr.c (fseterr): Likewise.
55728         * lib/fwritable.c (fwritable): Likewise.
55729         * lib/fwriting.c (fwriting): Likewise.
55730         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55731
55732 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55733
55734         * lib/config.charset: Treat Haiku like BeOS.
55735
55736 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55737
55738         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55739         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55740
55741 2008-11-08  Bruno Haible  <bruno@clisp.org>
55742
55743         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55744         AC_CACHE_CHECK.
55745
55746 2008-11-08  Bruno Haible  <bruno@clisp.org>
55747
55748         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55749
55750 2008-11-08  Bruno Haible  <bruno@clisp.org>
55751
55752         * tests/test-select-fd.c: New file.
55753         * tests/test-select-in.sh: New file.
55754         * tests/test-select-out.sh: New file.
55755         * tests/test-select-stdin.c: New file.
55756         * modules/select-tests (Files): Add the new files.
55757         (Depends-on): Add gettimeofday.
55758         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55759         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55760         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55761
55762 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55763             Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55766
55767 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55768
55769         * build-aux/pmccabe2html: Added support for C++ source files.
55770
55771 2008-11-05  Ben Pfaff  <blp@gnu.org>
55772
55773         Fix lib/close.c build on Windows.
55774         * modules/close (Files): Add lib/w32sock.h.
55775
55776 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55777
55778         Accept Bison's NEWS format.
55779         * build-aux/announce-gen (print_news_deltas): Tweak
55780         $re_prefix.
55781
55782 2008-11-04  Bruno Haible  <bruno@clisp.org>
55783
55784         * modules/random_r (Maintainer): Add glibc.
55785
55786 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55787
55788         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55789         by karl@freefriends.org (Karl Berry).
55790         * doc/alloca.texi: Likewise.
55791         * doc/c-ctype.texi: Likewise.
55792         * doc/c-strcase.texi: Likewise.
55793         * doc/c-strcaseeq.texi: Likewise.
55794         * doc/c-strcasestr.texi: Likewise.
55795         * doc/c-strstr.texi: Likewise.
55796         * doc/c-strtod.texi: Likewise.
55797         * doc/c-strtold.texi: Likewise.
55798         * doc/ctime.texi: Likewise.
55799         * doc/error.texi: Likewise.
55800         * doc/fdl.texi: Likewise.
55801         * doc/gcd.texi: Likewise.
55802         * doc/getdate.texi: Likewise.
55803         * doc/gnulib-intro.texi: Likewise.
55804         * doc/gnulib-tool.texi: Likewise.
55805         * doc/gnulib.texi: Likewise.
55806         * doc/inet_ntoa.texi: Likewise.
55807         * doc/maintain.texi: Likewise.
55808         * doc/make-stds.texi: Likewise.
55809         * doc/quote.texi: Likewise.
55810         * doc/regexprops-generic.texi: Likewise.
55811         * doc/standards.texi: Likewise.
55812         * doc/verify.texi: Likewise.
55813         * doc/visibility.texi: Likewise.
55814         * doc/gnulib.texi (GNU Free Documentation License): Include
55815         fdl-1.3.texi instead of fdl.texi.
55816
55817 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55818
55819         * doc/fdl-1.3.texi: New file, from
55820         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55821         * modules/fdl-1.3: Add.
55822         * MODULES.html.sh: Add fdl-1.3.
55823
55824 2008-11-03  Bruno Haible  <bruno@clisp.org>
55825
55826         Make determination of absolute name of header file work with AIX xlc.
55827         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55828         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55829         preprocessing.
55830         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55831         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55832
55833 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55834
55835         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55836         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55837         <ludo@gnu.org>.
55838
55839 2008-11-02  Bruno Haible  <bruno@clisp.org>
55840
55841         Mark 'strpbrk' obsolete.
55842         * modules/strpbrk (Status, Notice): New sections.
55843         * modules/strtok_r (Depends-on): Add strpbrk.
55844
55845 2008-11-02  Bruno Haible  <bruno@clisp.org>
55846
55847         Mark 'strdup' obsolete.
55848         * modules/strdup (Status, Notice): New sections.
55849         * modules/findprog (Depends-on): Add strdup.
55850         * modules/getaddrinfo (Depends-on): Likewise.
55851         * modules/localename (Depends-on): Likewise.
55852         * modules/relocatable-lib (Depends-on): Likewise.
55853         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55854         * modules/relocatable-prog (Depends-on): Likewise.
55855         * modules/trim (Depends-on): Likewise.
55856         * modules/unictype/gen-ctype (Depends-on): Likewise.
55857         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55858
55859 2008-11-02  Bruno Haible  <bruno@clisp.org>
55860
55861         Mark 'strcspn' obsolete.
55862         * modules/strcspn (Status, Notice): New sections.
55863
55864 2008-11-02  Bruno Haible  <bruno@clisp.org>
55865
55866         Mark 'rmdir' obsolete.
55867         * modules/rmdir (Status, Notice): New sections.
55868         * modules/clean-temp (Depends-on): Add rmdir.
55869         * modules/openat (Depends-on): Likewise.
55870
55871 2008-11-02  Bruno Haible  <bruno@clisp.org>
55872
55873         Mark 'raise' obsolete.
55874         * modules/raise (Status, Notice): New sections.
55875         (Include): Specify <signal.h>.
55876         * modules/stdio (Depends-on): Add raise.
55877         * modules/write (Depends-on): Likewise.
55878
55879 2008-11-02  Bruno Haible  <bruno@clisp.org>
55880
55881         Mark 'memset' obsolete.
55882         * modules/memset (Status, Notice): New sections.
55883
55884 2008-11-02  Bruno Haible  <bruno@clisp.org>
55885
55886         Mark 'memmove' obsolete.
55887         * modules/memmove (Status, Notice): New sections.
55888         * modules/argp (Depends-on): Add memmove.
55889         * modules/argz (Depends-on): Likewise.
55890         * modules/canonicalize (Depends-on): Likewise.
55891         * modules/canonicalize-lgpl (Depends-on): Likewise.
55892         * modules/fts (Depends-on): Likewise.
55893         * modules/getcwd (Depends-on): Likewise.
55894         * modules/human (Depends-on): Likewise.
55895         * modules/regex (Depends-on): Likewise.
55896         * modules/striconveh (Depends-on): Likewise.
55897         * modules/trim (Depends-on): Likewise.
55898         * modules/unistr/u8-move (Depends-on): Likewise.
55899         * modules/unistr/u16-move (Depends-on): Likewise.
55900         * modules/unistr/u32-move (Depends-on): Likewise.
55901
55902 2008-11-02  Bruno Haible  <bruno@clisp.org>
55903
55904         Mark 'memcpy' obsolete.
55905         * modules/memcpy (Status, Notice): New sections.
55906
55907 2008-11-02  Bruno Haible  <bruno@clisp.org>
55908
55909         Mark 'memcmp' obsolete.
55910         * modules/memcmp (Status, Notice): New sections.
55911         * modules/argmatch (Depends-on): Add memchr.
55912         * modules/backupfile (Depends-on): Likewise.
55913         * modules/c-strcasestr (Depends-on): Likewise.
55914         * modules/crypto/des (Depends-on): Likewise.
55915         * modules/csharpcomp (Depends-on): Likewise.
55916         * modules/fnmatch (Depends-on): Likewise.
55917         * modules/git-merge-changelog (Depends-on): Likewise.
55918         * modules/isnand (Depends-on): Likewise.
55919         * modules/isnand-nolibm (Depends-on): Likewise.
55920         * modules/isnanf (Depends-on): Likewise.
55921         * modules/isnanf-nolibm (Depends-on): Likewise.
55922         * modules/isnanl (Depends-on): Likewise.
55923         * modules/isnanl-nolibm (Depends-on): Likewise.
55924         * modules/mbchar (Depends-on): Likewise.
55925         * modules/memcoll (Depends-on): Likewise.
55926         * modules/quotearg (Depends-on): Likewise.
55927         * modules/regex (Depends-on): Likewise.
55928         * modules/relocatable-prog (Depends-on): Likewise.
55929         * modules/same (Depends-on): Likewise.
55930         * modules/signbit (Depends-on): Likewise.
55931         * modules/strcasestr-simple (Depends-on): Likewise.
55932         * modules/unictype/gen-ctype (Depends-on): Likewise.
55933         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55934         * modules/uniname/uniname (Depends-on): Likewise.
55935         * modules/unistr/u8-cmp (Depends-on): Likewise.
55936
55937 2008-11-02  Bruno Haible  <bruno@clisp.org>
55938
55939         Mark 'memchr' obsolete.
55940         * modules/memchr (Status, Notice): New sections.
55941         * modules/argp (Depends-on): Add memchr.
55942         * modules/base64 (Depends-on): Likewise.
55943         * modules/c-strcasestr (Depends-on): Likewise.
55944         * modules/chdir-long (Depends-on): Likewise.
55945         * modules/fnmatch (Depends-on): Likewise.
55946         * modules/getsubopt (Depends-on): Likewise.
55947         * modules/git-merge-changelog (Depends-on): Likewise.
55948         * modules/glob (Depends-on): Likewise.
55949         * modules/strcasestr-simple (Depends-on): Likewise.
55950         * modules/strnlen (Depends-on): Likewise.
55951
55952 2008-11-02  Bruno Haible  <bruno@clisp.org>
55953
55954         Mark 'atexit' obsolete.
55955         * modules/atexit (Status, Notice): New sections.
55956         * modules/chdir-long (Depends-on): Add atexit.
55957         * modules/wait-process (Depends-on): Likewise.
55958
55959 2008-11-02  Bruno Haible  <bruno@clisp.org>
55960
55961         * gnulib-tool: New option --with-obsolete.
55962         (func_usage): Document it.
55963         (func_modules_transitive_closure): Drop obsolete dependencies if
55964         incobsolete is not true.
55965         (func_import): Read and save the incobsolete variable to the cache.
55966
55967 2008-11-02  Bruno Haible  <bruno@clisp.org>
55968
55969         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55970         * gnulib-tool: New option --extract-status.
55971         (func_usage): Document it.
55972         (sed_extract_prog): Recognize it.
55973         (func_get_status): New function.
55974
55975 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55976
55977         * modules/sockets (License): Change from LGPL to LGPLv2+.
55978
55979 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55980
55981         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55982
55983 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55984
55985         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55986         Mention times and sys_times.
55987         * modules/sys_times, modules/sys_times-tests: New modules.
55988         * modules/times, modules/times-tests: Likewise
55989         * m4/sys_times_h.m4: New file.
55990         * lib/sys_times.in.h: Likewise
55991         * lib/times.c: Likewise.
55992         * tests/test-sys_times.c: Likewise.
55993         * tests/test-times.c: Likewise.
55994         * doc/posix-headers/sys_times.texi: Update.
55995         * doc/posix-functions/times.texi: Update.
55996
55997 2008-10-28  Jim Meyering  <meyering@redhat.com>
55998
55999         * modules/tempname (Depends-on): Add lstat.
56000
56001         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
56002
56003 2008-10-28  Simon Josefsson  <simon@josefsson.org>
56004
56005         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
56006         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
56007         using idiom used elsewhere in gnulib.
56008
56009 2008-10-27  Jim Meyering  <meyering@redhat.com>
56010
56011         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
56012
56013 2008-10-27  Simon Josefsson  <simon@josefsson.org>
56014
56015         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
56016         TESTS_ENVIRONMENT, for shell scripts that needs to call built
56017         programs.
56018         * tests/test-argp-2.sh: Use $EXEEXT when needed.
56019
56020 2008-10-27  Simon Josefsson  <simon@josefsson.org>
56021
56022         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
56023
56024 2008-10-27  Bruno Haible  <bruno@clisp.org>
56025
56026         * tests/test-lstat.c: Include <stdio.h>.
56027
56028 2008-10-27  Simon Josefsson  <simon@josefsson.org>
56029
56030         * modules/lstat-tests: New module.
56031         * tests/test-lstat.c: New file.
56032
56033 2008-10-26  Jim Meyering  <meyering@redhat.com>
56034
56035         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
56036
56037 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56038             Bruno Haible  <bruno@clisp.org>
56039
56040         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
56041         * modules/configmake (Include): Add a note that the include must come
56042         after all system headers.
56043         * lib/javaversion.c: Include configmake.h after all other includes.
56044
56045 2008-10-26  Bruno Haible  <bruno@clisp.org>
56046
56047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
56048         HAVE_STRUCT_RANDOM_DATA to 1.
56049         (gl_STDLIB_H): Simplify.
56050
56051 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56052
56053         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
56054         substitute HAVE_STRUCT_RANDOM_DATA.
56055         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
56056         random_data.
56057         * modules/stdlib (Makefile.am): Substitute
56058         HAVE_STRUCT_RANDOM_DATA.
56059
56060 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56061
56062         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
56063         * doc/gnulib-intro.texi (Copyright): Likewise.
56064
56065 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56066
56067         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
56068         findings.
56069
56070 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
56071             Bruno Haible  <bruno@clisp.org>
56072
56073         * lib/unistd.in.h: Include <winsock2.h>.
56074         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
56075         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
56076         Provide dummy declarations.
56077         (gethostname): Override.
56078         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
56079         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
56080         gl_PREREQ_SYS_H_WINSOCK2.
56081         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
56082         * doc/posix-functions/gethostname.texi: More details.
56083
56084 2008-10-25  Bruno Haible  <bruno@clisp.org>
56085
56086         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56087         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
56088         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
56089
56090         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
56091         here ...
56092         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
56093         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
56094         gl_UNISTD_H_DEFAULTS.
56095
56096 2008-10-25  Eric Blake  <ebb9@byu.net>
56097
56098         signbit: avoid spurious compiler failure
56099         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
56100         declarations inside function.
56101
56102 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56103             Bruno Haible  <bruno@clisp.org>
56104
56105         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
56106         * modules/random_r (Depends-on): Add stdint.
56107
56108 2008-10-24  Bruno Haible  <bruno@clisp.org>
56109
56110         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
56111         Eggert.
56112         * modules/strerror (License): Likewise.
56113
56114 2008-10-24  Jim Meyering  <meyering@redhat.com>
56115
56116         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
56117         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
56118
56119 2008-10-24  Eric Blake  <ebb9@byu.net>
56120
56121         getgroups: fix compilation when getgroups is available
56122         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
56123         but with <config.h> override of getgroups disabled.
56124
56125 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56126
56127         * doc/gnulib.texi (Header files): Add note about C++ problems.
56128         Explained by Bruno Haible <bruno@clisp.org>.
56129
56130 2008-10-23  Bruno Haible  <bruno@clisp.org>
56131
56132         Define a dummy SA_NODEFER macro on Interix.
56133         * lib/signal.in.h (SA_NODEFER): Define fallback.
56134         Reported by Aleksey Cheusov <cheusov@tut.by> via
56135         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
56136
56137 2008-10-23  Bruno Haible  <bruno@clisp.org>
56138
56139         * modules/freadahead (License): Change to LGPLv2+.
56140         Suggested by Simon Josefsson.
56141
56142 2008-10-23  Jim Meyering  <meyering@redhat.com>
56143
56144         random_r: new module
56145         * modules/random_r: New file.
56146         * m4/random_r.m4: New file.
56147         * lib/random_r.c: New file, from glibc.
56148         * modules/random_r-tests: New file.
56149         * tests/test-random_r.c: New file.
56150         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56151          Declare.
56152         (RAND_MAX): Define.
56153         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56154         * modules/stdlib: Substitute them, too.
56155         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56156         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56157         * doc/glibc-functions/random_r.texi: Likewise.
56158         * doc/glibc-functions/setstate_r.texi: Likewise.
56159         * doc/glibc-functions/srandom_r.texi: Likewise.
56160         * config/srclist.txt: Mention it.
56161
56162 2008-10-23  David Lutterkort  <lutter@redhat.com>
56163
56164         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56165         link requirement
56166
56167 2008-10-23  Jim Meyering  <meyering@redhat.com>
56168
56169         selinux-h: mark parameters of stub functions as intentionally unused
56170         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56171         * lib/se-context.in.h: Likewise.
56172
56173 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56174
56175         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56176
56177 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56178
56179         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56180
56181 2008-10-22  Eric Blake  <ebb9@byu.net>
56182
56183         glthread/thread: avoid compiler warning
56184         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56185         Add unreachable abort to silence compiler.
56186
56187 2008-10-22  Eric Blake  <ebb9@byu.net>
56188
56189         netdb: also supply struct addrinfo for cygwin 1.5.x
56190         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56191         older cygwin.
56192         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56193         cygwin.
56194         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56195
56196 2008-10-22  Bruno Haible  <bruno@clisp.org>
56197
56198         * users.txt: Update entry about pspp.
56199
56200 2008-10-21  Bruno Haible  <bruno@clisp.org>
56201
56202         Simplification.
56203         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56204         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56205
56206         Simplification.
56207         * lib/ioctl.c (ioctl): Don't undefine.
56208         * lib/socket.c (socket): Don't undefine.
56209
56210         Remove unused module indicator macros.
56211         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56212         GNULIB_$1 as a C macro.
56213
56214         * doc/posix-functions/close.texi: Undo last change.
56215         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56216         Windows platforms.
56217
56218 2008-10-21  Bruno Haible  <bruno@clisp.org>
56219
56220         Add gethostname() declaration to <unistd.h>.
56221         * lib/unistd.in.h (gethostname): New declaration.
56222         * lib/gethostname.c: Include <unistd.h>.
56223         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56224         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56226         and HAVE_GETHOSTNAME.
56227         * modules/gethostname (Depends-on): Add unistd.
56228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56229         (Include): Specify <unistd.h>.
56230         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56231         HAVE_GETHOSTNAME.
56232         * tests/test-gethostname.c: Include <unistd.h> first.
56233
56234 2008-10-21  Bruno Haible  <bruno@clisp.org>
56235
56236         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56237         * modules/select-tests (Depends-on): Likewise.
56238         Reported by Simon Josefsson.
56239
56240 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56241
56242         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56243         * lib/accept.c: New file, based on winsock.c.
56244         * lib/bind.c: New file, based on winsock.c.
56245         * lib/connect.c: New file, based on winsock.c.
56246         * lib/getpeername.c: New file, based on winsock.c.
56247         * lib/getsockname.c: New file, based on winsock.c.
56248         * lib/getsockopt.c: New file, based on winsock.c.
56249         * lib/ioctl.c: New file, based on winsock.c.
56250         * lib/listen.c: New file, based on winsock.c.
56251         * lib/recv.c: New file, based on winsock.c.
56252         * lib/recvfrom.c: New file, based on winsock.c.
56253         * lib/send.c: New file, based on winsock.c.
56254         * lib/sendto.c: New file, based on winsock.c.
56255         * lib/setsockopt.c: New file, based on winsock.c.
56256         * lib/shutdown.c: New file, based on winsock.c.
56257         * lib/socket.c: New file, based on winsock.c.
56258         * lib/w32sock.h: New file, based on winsock.c.
56259         * lib/winsock.c: Remove file.
56260         * modules/accept: Likewise.
56261         * modules/bind: Likewise.
56262         * modules/connect: Likewise.
56263         * modules/getpeername: Likewise.
56264         * modules/getsockname: Likewise.
56265         * modules/getsockopt: Likewise.
56266         * modules/ioctl: Likewise.
56267         * modules/listen: Likewise.
56268         * modules/recv: Likewise.
56269         * modules/recvfrom: Likewise.
56270         * modules/send: Likewise.
56271         * modules/sendto: Likewise.
56272         * modules/setsockopt: Likewise.
56273         * modules/shutdown: Likewise.
56274         * modules/socket: Use socket.c instead of winsock.c.
56275         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56276         * doc/posix-functions/accept.texi: Doc fix.
56277         * doc/posix-functions/bind.texi: Doc fix.
56278         * doc/posix-functions/close.texi: Doc fix.
56279         * doc/posix-functions/connect.texi: Doc fix.
56280         * doc/posix-functions/getpeername.texi: Doc fix.
56281         * doc/posix-functions/getsockname.texi: Doc fix.
56282         * doc/posix-functions/getsockopt.texi: Doc fix.
56283         * doc/posix-functions/ioctl.texi: Doc fix.
56284         * doc/posix-functions/listen.texi: Doc fix.
56285         * doc/posix-functions/recv.texi: Doc fix.
56286         * doc/posix-functions/recvfrom.texi: Doc fix.
56287         * doc/posix-functions/send.texi: Doc fix.
56288         * doc/posix-functions/sendto.texi: Doc fix.
56289         * doc/posix-functions/setsockopt.texi: Doc fix.
56290         * doc/posix-functions/shutdown.texi: Doc fix.
56291         * doc/posix-functions/socket.texi: Doc fix.
56292
56293 2008-10-20  Bruno Haible  <bruno@clisp.org>
56294
56295         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56296         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56297         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56298         as an alias for SIGABRT.
56299         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56300         (sigaction): Map it to SIGABRT.
56301         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56302
56303 2008-10-20  Bruno Haible  <bruno@clisp.org>
56304
56305         * lib/fts.c: Don't include lstat.h.
56306         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56307
56308         Move the lstat() declaration to <sys/stat.h>.
56309         * lib/lstat.h: Remove file.
56310         * lib/sys_stat.in.h: Add special invocation convention.
56311         (lstat): New declaration.
56312         * lib/lstat.c (orig_lstat): New function.
56313         (rpl_lstat): Use orig_lstat instead of lstat.
56314         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56315         AC_C_INLINE. Set REPLACE_LSTAT.
56316         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56317         and REPLACE_LSTAT.
56318         * modules/lstat (Files): Remove lib/lstat.h.
56319         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56320         (Include): Specify <sys/stat.h> instead of lstat.h.
56321         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56322         REPLACE_LSTAT.
56323         * NEWS: Mention the change.
56324
56325 2008-10-20  Bruno Haible  <bruno@clisp.org>
56326
56327         * modules/posix_spawn-tests: New file.
56328         * tests/test-posix_spawn3.c: New file.
56329
56330 2008-10-20  Bruno Haible  <bruno@clisp.org>
56331
56332         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56333         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56334         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56335         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56336         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56337
56338 2008-10-20  Bruno Haible  <bruno@clisp.org>
56339
56340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56341         of posix_spawn on AIX 5.3.
56342
56343 2008-10-20  Bruno Haible  <bruno@clisp.org>
56344
56345         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56346
56347 2008-10-20  Bruno Haible  <bruno@clisp.org>
56348
56349         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56350         of AC_LANG_PROGRAM.
56351
56352 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56353
56354         * lib/netdb.in.h: Don't define GNU specific constants until they
56355         are supported or needed.  Reported by Bruno Haible
56356         <bruno@clisp.org>.
56357
56358 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56359
56360         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56361
56362 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56363
56364         * lib/getaddrinfo.h: Remove file.
56365         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56366         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56367         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56368         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56369         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56370         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56371         * tests/test-getaddrinfo.c: Likewise.
56372         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56373         * NEWS: Mention change.
56374
56375 2008-10-19  Bruno Haible  <bruno@clisp.org>
56376
56377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56378
56379 2008-10-19  Bruno Haible  <bruno@clisp.org>
56380
56381         * lib/wait-process.c: Include simply <sys/wait.h>.
56382         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56383         WIFSTOPPED): Remove fallback definitions.
56384         * modules/wait-process (Depends-on): Add sys_wait.
56385
56386         New module 'sys_wait'.
56387         * modules/sys_wait: New file.
56388         * lib/sys_wait.in.h: New file, partially copied from
56389         lib/wait-process.c.
56390         * m4/sys_wait_h.m4: New file.
56391         * doc/posix-headers/sys_wait.texi: Mention the new module.
56392
56393 2008-10-19  Bruno Haible  <bruno@clisp.org>
56394
56395         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56396
56397 2008-10-19  Bruno Haible  <bruno@clisp.org>
56398
56399         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56400         * lib/wait-process.c (WAIT_T): Remove type.
56401         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56402         (wait_subprocess): Update.
56403
56404 2008-10-19  Bruno Haible  <bruno@clisp.org>
56405
56406         New module 'atoll'.
56407         * modules/atoll: New file.
56408         * lib/stdlib.in.h (atoll): New declaration.
56409         * lib/atoll.c: New file, from glibc with modifications.
56410         * m4/atoll.m4: New file.
56411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56412         HAVE_ATOLL.
56413         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56414         * doc/posix-functions/atoll.texi: Mention the new module.
56415
56416 2008-10-19  Bruno Haible  <bruno@clisp.org>
56417
56418         Add strtoull() declaration to <stdlib.h>.
56419         * lib/stdlib.in.h (strtoull): New declaration.
56420         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56421         Set HAVE_STRTOULL.
56422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56423         HAVE_STRTOULL.
56424         * modules/strtoull (Depends-on): Add stdlib.
56425         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56426         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56427         HAVE_STRTOULL.
56428
56429 2008-10-19  Bruno Haible  <bruno@clisp.org>
56430
56431         Add strtoll() declaration to <stdlib.h>.
56432         * lib/stdlib.in.h (strtoll): New declaration.
56433         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56434         Set HAVE_STRTOLL.
56435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56436         HAVE_STRTOLL.
56437         * modules/strtoll (Depends-on): Add stdlib.
56438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56439         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56440
56441 2008-10-19  Bruno Haible  <bruno@clisp.org>
56442
56443         * modules/bcopy (Depends-on): Add strings.
56444         (Include): Specify <strings.h>.
56445
56446 2008-10-19  Bruno Haible  <bruno@clisp.org>
56447
56448         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56449
56450 2008-10-19  Bruno Haible  <bruno@clisp.org>
56451
56452         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56453         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56454         mingw.
56455
56456 2008-10-19  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/atanl.c: Don't include isnanl.h.
56459         * lib/cosl.c: Likewise.
56460         * lib/ldexpl.c: Likewise.
56461         * lib/logl.c: Likewise.
56462         * lib/sinl.c: Likewise.
56463         * lib/sqrtl.c: Likewise.
56464         * lib/tanl.c: Likewise.
56465
56466         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56467         * lib/isnanf.h: Remove file.
56468         * lib/isnand.h: Remove file.
56469         * lib/isnanl.h: Remove file.
56470         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56471         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56472         macros.
56473         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56474         HAVE_ISNANF, don't define it as a C macro.
56475         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56476         HAVE_ISNAND, don't define it as a C macro.
56477         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56478         HAVE_ISNANL, don't define it as a C macro.
56479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56480         HAVE_ISNAN[FDL].
56481         * modules/isnanf (Files): Remove lib/isnanf.h.
56482         (Depends-on): Add math.
56483         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56484         (Include): Specify <math.h> instead of isnanf.h.
56485         * modules/isnand (Files): Remove lib/isnand.h.
56486         (Depends-on): Add math.
56487         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56488         (Include): Specify <math.h> instead of isnand.h.
56489         * modules/isnanl (Files): Remove lib/isnanl.h.
56490         (Depends-on): Add math.
56491         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56492         (Include): Specify <math.h> instead of isnanl.h.
56493         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56494         HAVE_ISNAN[FDL].
56495         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56496         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56497         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56498         * NEWS: Mention the change.
56499
56500 2008-10-18  Bruno Haible  <bruno@clisp.org>
56501
56502         Add getusershell(), setusershell(), endusershell() declarations to
56503         <unistd.h>.
56504         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56505         declarations.
56506         * lib/getusershell.c: Include unistd.h.
56507         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56508         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56509         HAVE_GETUSERSHELL.
56510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56511         and HAVE_GETUSERSHELL.
56512         * modules/getusershell (Depends-on): Add unistd, extensions.
56513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56514         (Include): Specify <unistd.h>.
56515         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56516         HAVE_GETUSERSHELL.
56517
56518 2008-10-18  Bruno Haible  <bruno@clisp.org>
56519
56520         Add a getloadavg() declaration to <stdlib.h>.
56521         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56522         getloadavg declaration.
56523         (getloadavg): New declaration.
56524         * lib/getloadavg.c: Include <stdlib.h> first.
56525         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56526         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56527         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56529         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56530         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56531         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56532         (Include): Specify <stdlib.h>.
56533         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56534         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56535
56536 2008-10-18  Bruno Haible  <bruno@clisp.org>
56537
56538         * lib/dirchownmod.c: Don't include lchmod.h.
56539
56540         Move the lchmod() declaration to <sys/stat.h>.
56541         * lib/lchmod.h: Remove file.
56542         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56543         (lchmod): New declaration, moved here from lib/lchown.h.
56544         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56545         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56546         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56547         and HAVE_LCHMOD.
56548         * modules/lchmod (Files): Remove lib/lchmod.h.
56549         (Depends-on): Add sys_stat, extensions.
56550         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56551         (Include): Specify <sys/stat.h> instead of lchmod.h.
56552         * modules/sys_stat (Depends-on): Add link-warning.
56553         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56554         definition of GL_LINK_WARNING.
56555         * NEWS: Mention the change.
56556
56557 2008-10-18  Bruno Haible  <bruno@clisp.org>
56558
56559         * lib/fchdir.c: Don't include dirfd.h.
56560         * lib/fts.c: Likewise.
56561         * lib/getcwd.c: Likewise.
56562         * lib/glob.c: Likewise.
56563
56564         Move the dirfd() declaration to <dirent.h>.
56565         * lib/dirfd.h: Remove file.
56566         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56567         (dirfd): New declaration.
56568         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56569         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56570         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56571         HAVE_DECL_DIRFD.
56572         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56573         HAVE_DECL_DIRFD.
56574         * modules/dirfd (Files): Remove lib/dirfd.h.
56575         (Depends-on): Add dirent, extensions.
56576         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56577         (Include): Specify <dirent.h> instead of dirfd.h.
56578         * modules/dirent (Depends-on): Add link-warning.
56579         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56580         definition of GL_LINK_WARNING.
56581         * NEWS: Mention the change.
56582
56583 2008-10-18  Bruno Haible  <bruno@clisp.org>
56584
56585         Move the euidaccess() declaration to <unistd.h>.
56586         * lib/euidaccess.h: Remove file.
56587         * lib/unistd.in.h (euidaccess): New declaration.
56588         * lib/euidaccess.c: Don't include euidaccess.h.
56589         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56590         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56592         and HAVE_EUIDACCESS.
56593         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56594         (Depends-on): Add unistd.
56595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56596         (Include): Specify <unistd.h> instead of euidaccess.h.
56597         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56598         HAVE_EUIDACCESS.
56599         * NEWS: Mention the change.
56600
56601 2008-10-18  Bruno Haible  <bruno@clisp.org>
56602
56603         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56604
56605         Move the getdomainname() declaration to <unistd.h>.
56606         * lib/getdomainname.h: Remove file.
56607         * lib/unistd.in.h (getdomainname): New declaration.
56608         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56609         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56610         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56611         HAVE_GETDOMAINNAME.
56612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56613         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56614         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56615         (Depends-on): Add unistd, extensions.
56616         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56617         (Includes): Specify <unistd.h> instead of getdomainname.h.
56618         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56619         HAVE_GETDOMAINNAME.
56620         * NEWS: Mention the change.
56621
56622 2008-10-18  Bruno Haible  <bruno@clisp.org>
56623
56624         * modules/dirent: New file.
56625         * m4/dirent_h.m4: New file.
56626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56627         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56628         * modules/fchdir (Files): Remove lib/dirent.in.h.
56629         (Depends-on): Add dirent.
56630         (Makefile.am): Move rules to modules/dirent.
56631         * doc/posix-headers/dirent.texi: Mention the new module.
56632
56633 2008-10-18  Bruno Haible  <bruno@clisp.org>
56634
56635         Avoid -Wunused-parameter warnings in public gnulib header files.
56636         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56637         macro.
56638         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56639
56640 2008-10-18  Bruno Haible  <bruno@clisp.org>
56641
56642         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56643         * doc/glibc-functions/error.texi: Mention the module 'error'.
56644         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56645         * doc/glibc-functions/getdomainname.texi: Mention the module
56646         'getdomainname'.
56647         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56648         * doc/glibc-functions/getpagesize.texi: Mention the module
56649         'getpagesize'.
56650         * doc/glibc-functions/getusershell.texi: Mention the module
56651         'getusershell'.
56652         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56653         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56654         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56655         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56656         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56657         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56658         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56659         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56660         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56661         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56662         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56663         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56664         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56665         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56666
56667 2008-10-17  Bruno Haible  <bruno@clisp.org>
56668
56669         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56670         HP-UX and IRIX, use -0.0L.
56671         * tests/test-ceill.c (minus_zero): Likewise.
56672         * tests/test-floorl.c (minus_zero): Likewise.
56673         * tests/test-frexpl.c (minus_zero): Likewise.
56674         * tests/test-isnan.c (minus_zerol): Likewise.
56675         * tests/test-isnanl.h (minus_zero): Likewise.
56676         * tests/test-ldexpl.c (minus_zero): Likewise.
56677         * tests/test-roundl.c (minus_zero): Likewise.
56678         * tests/test-signbit.c (minus_zerol): Likewise.
56679         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56680         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56681         * tests/test-truncl.c (minus_zero): Likewise.
56682         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56683         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56684         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56685         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56686
56687 2008-10-17  Bruno Haible  <bruno@clisp.org>
56688
56689         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56690         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56691         that it gets activated only for gcc >= 3.0.
56692         * lib/dirent.in.h: Likewise.
56693         * lib/errno.in.h: Likewise.
56694         * lib/fcntl.in.h: Likewise.
56695         * lib/float.in.h: Likewise.
56696         * lib/iconv.in.h: Likewise.
56697         * lib/inttypes.in.h: Likewise.
56698         * lib/locale.in.h: Likewise.
56699         * lib/math.in.h: Likewise.
56700         * lib/netdb.in.h: Likewise.
56701         * lib/netinet_in.in.h: Likewise.
56702         * lib/search.in.h: Likewise.
56703         * lib/signal.in.h: Likewise.
56704         * lib/spawn.in.h: Likewise.
56705         * lib/stdarg.in.h: Likewise.
56706         * lib/stdint.in.h: Likewise.
56707         * lib/stdio.in.h: Likewise.
56708         * lib/stdlib.in.h: Likewise.
56709         * lib/string.in.h: Likewise.
56710         * lib/strings.in.h: Likewise.
56711         * lib/sys_file.in.h: Likewise.
56712         * lib/sys_ioctl.in.h: Likewise.
56713         * lib/sys_select.in.h: Likewise.
56714         * lib/sys_socket.in.h: Likewise.
56715         * lib/sys_stat.in.h: Likewise.
56716         * lib/sys_time.in.h: Likewise.
56717         * lib/sysexits.in.h: Likewise.
56718         * lib/time.in.h: Likewise.
56719         * lib/unistd.in.h: Likewise.
56720         * lib/wchar.in.h: Likewise.
56721         * lib/wctype.in.h: Likewise.
56722         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56723
56724 2008-10-17  Jim Meyering  <meyering@redhat.com>
56725
56726         ignore-value: don't depend on inline module
56727         * modules/ignore-value (Depends-on): Remove 'inline'.
56728         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56729         Suggestion from Bruno Haible.
56730
56731 2008-10-17  Bruno Haible  <bruno@clisp.org>
56732
56733         New implementation of condition variables for Win32.
56734         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56735         (gl_linked_waitqueue_t): New type.
56736         (gl_cond_t): Use it.
56737         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56738         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56739         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56740         (glthread_cond_init_func, glthread_cond_wait_func,
56741         glthread_cond_timedwait_func, glthread_cond_signal_func,
56742         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56743         Reimplemented on the basis of gl_linked_waitqueue_t.
56744         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56745         gl_waitqueue_t.
56746         (gl_rwlock_t): Update.
56747         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56748
56749 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56750
56751         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56752         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56753
56754 2008-10-17  Jim Meyering  <meyering@redhat.com>
56755
56756         ignore-value: new module
56757         * modules/ignore-value: New file.
56758         * lib/ignore-value.h: New file.
56759         * MODULES.html.sh (Compiler warning management): New section,
56760         just for this module.  More to come.
56761
56762 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56763
56764         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56765         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56766         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56767
56768 2008-10-16  Jim Meyering  <meyering@redhat.com>
56769
56770         openat-die.c: avoid 'no previous prototype' warning
56771         * lib/openat-die.c: Include "openat.h".
56772         Reported by Reuben Thomas <rrt@sc3d.org>.
56773
56774 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56775
56776         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56777         * lib/netdb.in.h: Fix typo.
56778         Reported by Bruno Haible  <bruno@clisp.org>
56779
56780         * lib/netdb.in.h: Include sys/socket.h for platforms without
56781         netdb.h, to get structures like hostent on MinGW.
56782         * modules/netdb (Depends-on): Add sys_socket.
56783
56784 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56785
56786         * modules/netdb, modules/netdb-tests: New file.
56787         * m4/netdb_h.m4: New file.
56788         * lib/netdb.in.h: Add, currently just an empty file pending
56789         definitions.
56790         * tests/test-netdb.c: New file.
56791         * doc/posix-headers/netdb.texi: Mention that we replace it if
56792         needed.
56793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56794         netdb.
56795
56796 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56797
56798         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56799         with code.
56800
56801 2008-10-13  Bruno Haible  <bruno@clisp.org>
56802
56803         * lib/glthread/cond.c (glthread_cond_wait_func,
56804         glthread_cond_timedwait_func): Add a comment.
56805
56806 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56807
56808         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56809         * tests/test-select.c: Likewise,
56810
56811 2008-10-13  Bruno Haible  <bruno@clisp.org>
56812
56813         * lib/glthread/cond.c (glthread_cond_wait_func,
56814         glthread_cond_timedwait_func): Fix variable name.
56815         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56816
56817 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56818
56819         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56821         struct sockaddr.sa_len.
56822         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56823
56824 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56825
56826         * build-aux/pmccabe2html: Add css and css_url parameters.
56827
56828 2008-10-12  Bruno Haible  <bruno@clisp.org>
56829
56830         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56831         calling aclx_get.
56832         Reported by Rainer Tammer <tammer@tammer.net>.
56833
56834 2008-10-12  Bruno Haible  <bruno@clisp.org>
56835
56836         Use msvcrt aware primitives for creation/termination of Win32 threads.
56837         * lib/glthread/thread.c: Include <process.h>.
56838         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56839         (wrapper_func): Update signature.
56840         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56841
56842 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56843             Bruno Haible  <bruno@clisp.org>
56844
56845         Provide a Win32 implementation of the 'cond' module.
56846         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56847         * lib/glthread/cond.c (glthread_cond_init_func,
56848         glthread_cond_wait_func, glthread_cond_timedwait_func,
56849         glthread_cond_signal_func, glthread_cond_broadcast_func,
56850         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56851         * modules/cond (Dependencies): Add gettimeofday.
56852
56853 2008-10-11  Bruno Haible  <bruno@clisp.org>
56854
56855         Make sleep work on older versions of mingw.
56856         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56857         only whether it exists.
56858         * doc/posix-functions/sleep.texi: Mention the problem with older
56859         versions of mingw.
56860
56861 2008-10-11  Bruno Haible  <bruno@clisp.org>
56862
56863         New module 'shutdown'.
56864         * modules/shutdown: New file.
56865         * lib/sys_socket.in.h (shutdown): New declaration.
56866         * lib/winsock.c (shutdown): New function.
56867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56868         GNULIB_SHUTDOWN.
56869         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56870         * doc/posix-functions/shutdown.texi: Document the new module.
56871
56872 2008-10-11  Jim Meyering  <meyering@redhat.com>
56873
56874         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56875
56876 2008-10-11  Bruno Haible  <bruno@clisp.org>
56877
56878         New module 'fclose'.
56879         * modules/fclose: New file.
56880         * lib/stdio.in.h (fclose): New declaration.
56881         * lib/fclose.c: New file.
56882         * m4/fclose.m4: New file.
56883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56884         REPLACE_FCLOSE.
56885         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56886         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56887         REPLACE_FCLOSE.
56888         * modules/close (Depends-on): fclose.
56889         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56890
56891 2008-10-11  Bruno Haible  <bruno@clisp.org>
56892
56893         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56894         set errno and don't call _close.
56895
56896 2008-10-10  Bruno Haible  <bruno@clisp.org>
56897
56898         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56899         ACL, not afterwards. Fixes test failure on Cygwin.
56900
56901 2008-10-09  Ben Pfaff  <blp@gnu.org>
56902
56903         * build-aux/announce-gen: Fix gnulib version related part of usage
56904         message.  Die with a useful error message if no tarballs are
56905         found.
56906
56907 2008-10-10  Jim Meyering  <meyering@redhat.com>
56908
56909         bootstrap: use git's --depth=N option only if it's supported
56910         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56911         recognize the --depth option.  Reported by Pádraig Brady.
56912
56913 2008-10-09  Bruno Haible  <bruno@clisp.org>
56914
56915         New module 'ioctl'.
56916         * modules/ioctl: New file.
56917         * lib/sys_socket.in.h (ioctl): Remove declaration.
56918         * lib/winsock.c: Include <sys/ioctl.h>.
56919         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56920         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56921         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56922         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56923         * doc/posix-functions/ioctl.texi: Mention the new module.
56924
56925 2008-10-09  Bruno Haible  <bruno@clisp.org>
56926
56927         New module 'sys_ioctl'.
56928         * lib/sys_ioctl.in.h: New file.
56929         * m4/sys_ioctl_h.m4: New file.
56930         * modules/sys_ioctl: New file.
56931         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56932
56933 2008-10-09  Bruno Haible  <bruno@clisp.org>
56934
56935         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56936         * lib/winsock.c: Include <stdarg.h>.
56937         (rpl_ioctl): Change to second argument 'int' and then varargs.
56938
56939 2008-10-09  Bruno Haible  <bruno@clisp.org>
56940
56941         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56942         when the sys_socket module is present and the system has <winsock2.h>.
56943
56944 2008-10-09  Bruno Haible  <bruno@clisp.org>
56945
56946         * doc/posix-functions/close.texi: Mention module 'close' instead of
56947         module 'sys_socket'.
56948
56949 2008-10-09  Bruno Haible  <bruno@clisp.org>
56950
56951         * doc/glibc-headers/sys_ioctl.texi: New file.
56952         * doc/gnulib.texi: Include it.
56953
56954 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56955             Bruno Haible  <bruno@clisp.org>
56956
56957         Combine the two replacements of 'close'.
56958         * lib/sys_socket.in.h (close): Define to a reminder to include
56959         <unistd.h>.
56960         (_gl_close_fd_maybe_socket): New declaration.
56961         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56962         * lib/winsock.c (close): Remove undefinition.
56963         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56964         needed for the gnulib module 'close'.
56965         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56966         define to an error symbol or to a warning, if suitable.
56967         * lib/close.c: Include <sys/socket.h>.
56968         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56969         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56970         UNISTD_H_HAVE_WINSOCK2_H.
56971         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56972         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56973         UNISTD_H_HAVE_WINSOCK2_H.
56974         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56975         (configure.ac): Set a module indicator.
56976         (Makefile.am): Substitute GNULIB_CLOSE.
56977         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56978         * modules/poll-tests (Depends-on): Add close.
56979         * modules/select-tests (Depends-on): Likewise.
56980
56981 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56982             Bruno Haible  <bruno@clisp.org>
56983
56984         New module 'close'.
56985         * modules/close: New file.
56986         * lib/unistd.in.h (close): Move declaration out of the
56987         FCHDIR_REPLACEMENT scope.
56988         (_gl_unregister_fd): New declaration.
56989         * lib/close.c: New file.
56990         * lib/fchdir.c (rpl_close): Remove function.
56991         * m4/close.m4: New file.
56992         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56993         close.
56994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56995         REPLACE_CLOSE.
56996         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56997         REPLACE_CLOSE.
56998         * modules/fchdir (Depends-on): Add close.
56999
57000 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
57001             Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/fcntl.in.h (open): Simplify conditionals.
57004         (_gl_register_fd): New declaration.
57005         * lib/fchdir.c (rpl_open): Remove function.
57006         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
57007         also.
57008         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
57009         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
57010         open.
57011
57012 2008-10-09  Jim Meyering  <meyering@redhat.com>
57013
57014         GNUmakefile: use the more name-space-friendly "_version"
57015         * top/GNUmakefile (_dummy): Update.
57016         (_version): Rename from "version".
57017
57018 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
57019             Bruno Haible  <bruno@clisp.org>
57020
57021         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
57022         rpl_close.
57023         (_gl_register_fd): New function, extracted from rpl_open.
57024         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
57025         (rpl_open, rpl_opendir): Use _gl_register_fd.
57026
57027 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
57028
57029         Fix organization of 'open' replacement.
57030         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
57031         (gl_FUNC_OPEN): Use it.
57032         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
57033
57034 2008-10-08  Bruno Haible  <bruno@clisp.org>
57035
57036         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
57037
57038 2008-10-08  Simon Josefsson  <simon@josefsson.org>
57039
57040         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
57041         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
57042         listen).
57043
57044 2008-10-08  Eric Blake  <ebb9@byu.net>
57045
57046         GNUmakefile: add 'make version' target
57047         * top/GNUmakefile (_curr-ver): Split version update rules...
57048         (version): ...into a target.
57049
57050 2008-10-07  Bruno Haible  <bruno@clisp.org>
57051
57052         Use a more portable replacement expression for -0.0L.
57053         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
57054         instead of -0.0L. Fix m4 quotation.
57055
57056         * tests/test-signbit.c: Include <float.h>.
57057         (minus_zero): New variable.
57058         (test_signbitl): Use minus_zero instead of -zero.
57059         * modules/signbit-tests (Depends-on): Add float.
57060
57061         * tests/test-ceill.c: Include <float.h>.
57062         (zero): Remove variable.
57063         (minus_zero): New variable.
57064         (main): Use minus_zero instead of -zero.
57065         * modules/ceill-tests (Depends-on): Add float.
57066
57067         * tests/test-floorl.c: Include <float.h>.
57068         (zero): Remove variable.
57069         (minus_zero): New variable.
57070         (main): Use minus_zero instead of -zero.
57071         * modules/floorl-tests (Depends-on): Add float.
57072
57073         * tests/test-roundl.c: Include <float.h>.
57074         (zero): Remove variable.
57075         (minus_zero): New variable.
57076         (main): Use minus_zero instead of -zero.
57077         * modules/roundl-tests (Depends-on): Add float.
57078
57079         * tests/test-truncl.c: Include <float.h>.
57080         (zero): Remove variable.
57081         (minus_zero): New variable.
57082         (main): Use minus_zero instead of -zero.
57083         * modules/truncl-tests (Depends-on): Add float.
57084
57085         * tests/test-frexpl.c (zero): Remove variable.
57086         (minus_zero): New variable.
57087         (main): Use minus_zero instead of -zero.
57088         * modules/frexpl-tests (Depends-on): Add float.
57089
57090         * tests/test-isnan.c (zerol): Remove variable.
57091         (minus_zerol): New variable.
57092         (test_long_double): Use minus_zerol instead of -zerol.
57093         * modules/isnan-tests (Depends-on): Add float.
57094
57095         * tests/test-isnanl.h (zero): Remove variable.
57096         (minus_zero): New variable.
57097         (main): Use minus_zero instead of -zero.
57098         * modules/isnanl-nolibm-tests (Depends-on): Add float.
57099         * modules/isnanl-tests (Depends-on): Add float.
57100
57101         * tests/test-ldexpl.c (zero): Remove variable.
57102         (minus_zero): New variable.
57103         (main): Use minus_zero instead of -zero.
57104         * modules/ldexpl-tests (Depends-on): Add float.
57105
57106         * tests/test-snprintf-posix.h (zerol): Remove variable.
57107         (minus_zerol): New variable.
57108         (test_function): Use minus_zerol instead of -zerol.
57109         * modules/snprintf-posix-tests (Depends-on): Add float.
57110         * modules/vsnprintf-posix-tests (Depends-on): Add float.
57111
57112         * tests/test-sprintf-posix.h (zerol): Remove variable.
57113         (minus_zerol): New variable.
57114         (test_function): Use minus_zerol instead of -zerol.
57115         * modules/sprintf-posix-tests (Depends-on): Add float.
57116         * modules/vsprintf-posix-tests (Depends-on): Add float.
57117
57118         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
57119         (minus_zerol): New variable.
57120         (test_function): Use minus_zerol instead of -zerol.
57121         * modules/vasnprintf-posix-tests (Depends-on): Add float.
57122
57123         * tests/test-vasprintf-posix.c (zerol): Remove variable.
57124         (minus_zerol): New variable.
57125         (test_function): Use minus_zerol instead of -zerol.
57126         * modules/vasprintf-posix-tests (Depends-on): Add float.
57127
57128 2008-10-07  Simon Josefsson  <simon@josefsson.org>
57129
57130         * MODULES.html.sh (Support for building documentation): Mention
57131         pmccabe2html.  Sort entries.
57132
57133         Add pmccabe2html module, from gnupdf.
57134         * build-aux/pmccabe.css: New file.
57135         * build-aux/pmccabe2html: New file.
57136         * m4/pmccabe2html.m4: New file.
57137         * modules/pmccabe2html: New file.
57138
57139 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
57140
57141         flock: new module
57142         * MODULES.html.sh: Add to list of modules.
57143         * lib/flock.c: flock implementation for Windows and Unix systems
57144         which have fcntl.
57145         * doc/glibc-functions/flock.texi: Update documentation.
57146         * lib/sys_file.in.h: <sys/file.h> header file.
57147         * m4/flock.m4: M4 macros.
57148         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57149         * modules/flock: flock module.
57150         * modules/flock-tests: flock tests module.
57151         * modules/sys_file: sys/file.h module.
57152         * tests/test-flock.c: test suite for flock.
57153
57154 2008-10-06  Jim Meyering  <meyering@redhat.com>
57155
57156         bootstrap: check for LT_INIT more portably still ;-)
57157         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57158         Spotted by Bruno Haible.
57159
57160 2008-10-06  Eric Blake  <ebb9@byu.net>
57161
57162         test-signbit: avoid tripping Irix cc bug on -0.0L
57163         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57164         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57165         entire testsuite consistent and avoids an Irix 6.2 bug.
57166
57167 2008-10-05  Bruno Haible  <bruno@clisp.org>
57168             Jim Meyering  <jim@meyering.net>
57169
57170         Add an option for ignoring EPIPE during close_stdout.
57171         * lib/closeout.h: Include <stdbool.h>.
57172         (close_stdout_set_ignore_EPIPE): New declaration.
57173         * lib/closeout.c: Include <stdbool.h>.
57174         (ignore_EPIPE): New variable.
57175         (close_stdout_set_ignore_EPIPE): New function.
57176         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57177         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57178         failure.
57179         * modules/closeout (Depends-on): Add stdbool.
57180
57181 2008-10-05  Bruno Haible  <bruno@clisp.org>
57182
57183         * modules/accept: New file.
57184         * modules/bind: New file.
57185         * modules/connect: New file.
57186         * modules/getpeername: New file.
57187         * modules/getsockname: New file.
57188         * modules/getsockopt: New file.
57189         * modules/listen: New file.
57190         * modules/recv: New file.
57191         * modules/recvfrom: New file.
57192         * modules/send: New file.
57193         * modules/sendto: New file.
57194         * modules/setsockopt: New file.
57195         * modules/socket: New file.
57196         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57197         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57198         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57199         the particular module is requested. Add a link warning when the
57200         particular module is not requested.
57201         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57202         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57203         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57204         the particular module is requested.
57205         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57206         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57207         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57208         * modules/sys_socket (Depends-on): Add link-warning.
57209         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57210         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57211         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57212         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57213         GL_LINK_WARNING.
57214         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57215         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57216         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57217         * doc/posix-functions/getpeername.texi: Mention the new module
57218         'getpeername'.
57219         * doc/posix-functions/getsockname.texi: Mention the new module
57220         'getsockname'.
57221         * doc/posix-functions/getsockopt.texi: Mention the new module
57222         'getsockopt'.
57223         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57224         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57225         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57226         * doc/posix-functions/send.texi: Mention the new module 'send'.
57227         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57228         * doc/posix-functions/setsockopt.texi: Mention the new module
57229         'setsockopt'.
57230         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57231         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57232         listen, connect, accept.
57233         * modules/select-tests (Depends-on): Likewise.
57234
57235 2008-10-05  Bruno Haible  <bruno@clisp.org>
57236
57237         * lib/winsock.c (strerror): Remove unused #undef.
57238         (rpl_close): Remove unused local variable.
57239
57240         * modules/sys_socket (Depends-on); Add errno.
57241
57242 2008-10-05  Bruno Haible  <bruno@clisp.org>
57243
57244         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57245         (select): Add a link warning when the 'select' module is not used.
57246         * modules/sys_select (Depends-on): Add link-warning.
57247         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57248         Suggested by Paolo Bonzini.
57249
57250 2008-10-05  Jim Meyering  <meyering@redhat.com>
57251
57252         bootstrap: check for LT_INIT more portably
57253         * build-aux/bootstrap: Avoid using grep -E, since it's not
57254         portable enough.  Suggestion from Bruno Haible.
57255
57256 2008-10-05  Bruno Haible  <bruno@clisp.org>
57257
57258         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57259         as being fixed by gnulib.
57260
57261 2008-10-05  Bruno Haible  <bruno@clisp.org>
57262
57263         * modules/select-tests: New file, mostly copied from
57264         modules/sys_select-tests.
57265         * tests/test-select.c: New file, mostly copied from
57266         tests/test-sys_select.c.
57267         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57268         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57269         (Makefile.am): Remove test_sys_select_LDADD.
57270
57271         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57272         to an undefined symbol, for an error message.
57273         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57274         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57275         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57276         winsock-select.c here.
57277         * modules/sys_select (Files): Remove lib/winsock-select.c.
57278         (Depends-on): Remove alloca.
57279         (Makefile.am): Substitute GNULIB_SELECT.
57280         * modules/select: New file.
57281         * doc/posix-functions/select.texi: Update.
57282
57283 2008-10-05  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57286         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57287         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57288         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57289         getdtablesize.
57290         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57291         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57292
57293 2008-10-05  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/getdtablesize-tests: New file.
57296         * tests/test-getdtablesize.c: New file.
57297
57298         New module 'getdtablesize'.
57299         * lib/unistd.in.h (getdtablesize): New declaration.
57300         * lib/getdtablesize.c: New file.
57301         * m4/getdtablesize.m4: New file.
57302         * modules/getdtablesize: New file.
57303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57304         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57305         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57306         HAVE_GETDTABLESIZE.
57307         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57308
57309 2008-10-05  Bruno Haible  <bruno@clisp.org>
57310
57311         * modules/sched (Makefile.am): Fix typo.
57312         Reported by Simon Josefsson.
57313
57314 2008-10-05  Jim Meyering  <meyering@redhat.com>
57315
57316         bootstrap: check for LT_INIT, too
57317         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57318         are deprecated.  Suggestion from Ralf Wildenhues.
57319
57320 2008-10-05  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57323         overriding them by ours.
57324         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57325
57326 2008-10-05  Jim Meyering  <meyering@redhat.com>
57327
57328         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57329         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57330         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57331
57332 2008-10-04  Bruno Haible  <bruno@clisp.org>
57333
57334         * modules/dup2 (License): Change to LGPLv2+.
57335         * modules/sleep (License): Likewise.
57336         * modules/perror (License): Likewise.
57337         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57338         Blake.
57339         * modules/signal (License): Likewise.
57340         * modules/sigprocmask (License): Likewise.
57341         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57342         Meyering.
57343
57344 2008-10-04  Bruno Haible  <bruno@clisp.org>
57345
57346         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57347         Reported by Rainer Tammer <tammer@tammer.net>.
57348
57349 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57350             Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57353         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57354         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57355
57356 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57357
57358         filevercmp: new module
57359         * lib/filevercmp.h: New function filevercmp comparing version strings.
57360         * lib/filevercmp.c: Implementation of filevercmp function.
57361         * modules/filevercmp: Module metadata.
57362         * tests/test-filevercmp.c: Unit test for new module.
57363         * modules/filevercmp-tests: Unit test metadata.
57364         * MODULES.html.sh: Add filevercmp module.
57365
57366 2008-10-03  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/c-ctype.h: Add comment.
57369         Reported by Jim Meyering.
57370
57371 2008-10-02  Bruno Haible  <bruno@clisp.org>
57372
57373         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57374
57375 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57376
57377         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57378         name of bootstrap.conf accordingly.
57379
57380 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57381
57382         * build-aux/bootstrap: Install git-merge-changelog configuration
57383         items into .gitconfig if needed.
57384
57385 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57386
57387         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57388         git repository, and initialize/update it accordingly.
57389
57390 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57391
57392         * modules/fsync-tests: New file.
57393         * tests/test-fsync.c: New file.
57394
57395         New module 'fsync'.
57396         * lib/fsync.c: New file.
57397         * m4/fsync.m4: New file.
57398         * modules/fsync: New file.
57399         * lib/unistd.in.h (fsync): New declaration.
57400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57401         GNULIB_FSYNC and HAVE_FSYNC.
57402         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57403         * MODULES.html.sh (posix_functions): Add fsync.
57404         * doc/posix-functions/fsync.texi: Mention the new module.
57405
57406 2008-10-02  Jim Meyering  <meyering@redhat.com>
57407
57408         fts.c: sync with similar code from coreutils' remove.c
57409         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57410         Guard also with "#if defined __linux__", since for now at least,
57411         this code is Linux-kernel-specific.
57412
57413 2008-10-02  Jim Meyering  <meyering@redhat.com>
57414
57415         fts: bug fixes
57416         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57417         Include <sys/vfs.h>, not <sys/statfs.h>.
57418
57419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57420         Include <sys/vfs.h>, not <sys/statfs.h>.
57421
57422 2008-10-01  Bruno Haible  <bruno@clisp.org>
57423
57424         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57425         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57426         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57427         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57428         * doc/posix-functions/posix_spawnp.texi: Likewise.
57429         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57430         whether posix_spawn actually works.
57431         * m4/pipe.m4 (gl_PIPE): Likewise.
57432         * modules/execute (Files): Add m4/posix_spawn.m4.
57433         * modules/pipe (Files): Add m4/posix_spawn.m4.
57434         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57435
57436 2008-10-01  Jim Meyering  <meyering@redhat.com>
57437
57438         remove trailing spaces
57439         * NEWS: Likewise.
57440         * lib/poll.c (poll): Likewise.
57441         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57442         * lib/winsock.c (rpl_close): Likewise.
57443         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57444         * modules/yield: Likewise.
57445         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57446         * tests/test-sys_select.c (connect_to_socket): Likewise.
57447
57448         fts.c: adjust a new interface to be more generally useful
57449         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57450         (fts_build): Adjust caller.
57451
57452 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57453
57454         * modules/cond-tests: New file.
57455         * tests/test-cond.c: New file.
57456
57457 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57458             Bruno Haible  <bruno@clisp.org>
57459
57460         * modules/cond (Dependencies): Add errno, time.
57461         * lib/glthread/cond.h: Include <time.h>.
57462         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57463         across platforms.
57464
57465 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57466             Bruno Haible  <bruno@clisp.org>
57467
57468         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57469
57470 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57471             Bruno Haible  <bruno@clisp.org>
57472
57473         * modules/tls-tests (Depends-on): Add thread, yield.
57474         (configure.ac): Remove all checks.
57475         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57476         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57477         gl_thread_self): Remove definitions. Include glthread/thread.h and
57478         glthread/yield.h instead.
57479         (test_tls): Pass an additional NULL argument to gl_thread_join.
57480
57481 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57482             Bruno Haible  <bruno@clisp.org>
57483
57484         * modules/lock-tests (Depends-on): Add thread, yield.
57485         (configure.ac): Remove all checks.
57486         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57487         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57488         gl_thread_self): Remove definitions. Include glthread/thread.h and
57489         glthread/yield.h instead.
57490         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57491         additional NULL argument to gl_thread_join.
57492
57493 2008-09-30  Bruno Haible  <bruno@clisp.org>
57494
57495         Fix the Win32 implementation of the 'thread' module.
57496         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57497         pointer type.
57498         (gl_thread_self): Invoke gl_thread_self_func.
57499         (gl_thread_self_func): New declaration.
57500         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57501         (do_init_self_key, init_self_key): New functions.
57502         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57503         Remove some fields.
57504         (running_threads, running_lock): Remove variables.
57505         (get_current_thread_handle): New function.
57506         (gl_thread_self_func, wrapper_func, glthread_create_func,
57507         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57508         simplified.
57509
57510 2008-09-30  Bruno Haible  <bruno@clisp.org>
57511
57512         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57513         files.
57514
57515 2008-09-30  Jim Meyering  <meyering@redhat.com>
57516
57517         fts.m4: correct the test for statfs.f_type
57518         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57519         when checking for statfs.f_type.
57520
57521 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57522
57523         tests: avoid some compiler warnings
57524         * tests/test-memchr.c (main): Pass NULL indirectly.
57525         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57526
57527 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57528
57529         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57530         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57531         exactly specified dayshifts.
57532         (dayshift): New rule.
57533         (rel): Add dayshift.
57534         (relative_time_table) [tomorrow, yesterday, today, now]:
57535         Use tDAY_SHIFT in place of tDAY_UNIT.
57536         * tests/test-getdate.c: Add tests for now-disallowed countable
57537         dayshifts, e.g., "4 yesterday ago".
57538
57539 2008-09-29  Bruno Haible  <bruno@clisp.org>
57540
57541         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57542         * tests/test-posix_spawn1.in.sh: Renamed from
57543         tests/test-posix_spawn.in.sh.
57544         * tests/test-posix_spawn2.c: New file.
57545         * tests/test-posix_spawn2.in.sh: New file.
57546         * modules/posix_spawnp-tests (Files): Update.
57547         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57548
57549 2008-09-29  Bruno Haible  <bruno@clisp.org>
57550
57551         Propagate effects of putenv/setenv/unsetenv to child processes.
57552         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57553         * lib/pipe.c (create_pipe): Likewise.
57554
57555 2008-09-29  Bruno Haible  <bruno@clisp.org>
57556
57557         Enable use of shell scripts as executables in mingw.
57558         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57559         run the program as a shell script.
57560         * lib/pipe.c (create_pipe): Likewise.
57561         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57562         resulting array.
57563
57564 2008-09-29  Eric Blake  <ebb9@byu.net>
57565
57566         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57567
57568 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57569
57570         * doc/posix-functions/accept.texi: Update mingw problems.
57571         * doc/posix-functions/bind.texi: Update mingw problems.
57572         * doc/posix-functions/close.texi: Update mingw problems.
57573         * doc/posix-functions/connect.texi: Update mingw problems.
57574         * doc/posix-functions/getpeername.texi: Update mingw problems.
57575         * doc/posix-functions/getsockname.texi: Update mingw problems.
57576         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57577         * doc/posix-functions/ioctl.texi: Update mingw problems.
57578         * doc/posix-functions/listen.texi: Update mingw problems.
57579         * doc/posix-functions/recv.texi: Update mingw problems.
57580         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57581         * doc/posix-functions/select.texi: Update mingw problems.
57582         * doc/posix-functions/send.texi: Update mingw problems.
57583         * doc/posix-functions/sendto.texi: Update mingw problems.
57584         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57585         * doc/posix-functions/socket.texi: Update mingw problems.
57586
57587 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57588             Bruno Haible  <bruno@clisp.org>
57589
57590         * lib/sys_select.in.h: Include sys/time.h.
57591         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57592         * modules/sys_select: Depend on sys_time.
57593         * tests/test-sys_select.c: Test that sys/select.h defines struct
57594         timeval fully.
57595
57596 2008-09-29  Bruno Haible  <bruno@clisp.org>
57597
57598         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57599         * lib/sys_select.in.h: Likewise.
57600
57601 2008-09-29  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57604
57605 2008-09-29  Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57608         Set LIBSOCKET instead of augmenting LIBS.
57609         * modules/sockets (Link): New section.
57610         * modules/sockets-tests (test_sockets_LDADD): New variable.
57611         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57612         * modules/poll-tests (test_poll_LDADD): New variable.
57613         * NEWS: Document the change.
57614
57615 2008-09-29  Bruno Haible  <bruno@clisp.org>
57616
57617         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57618         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57619         ARPA_INET_H directly.
57620         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57621
57622 2008-09-28  Bruno Haible  <bruno@clisp.org>
57623
57624         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57625         from gl_HEADER_SYS_SOCKET.
57626         (gl_HEADER_SYS_SOCKET): Invoke it.
57627         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57628
57629 2008-09-28  Bruno Haible  <bruno@clisp.org>
57630
57631         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57632         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57633         Needed on OSF/1 4.0.
57634
57635 2008-09-28  Bruno Haible  <bruno@clisp.org>
57636
57637         Override open more carefully.
57638         * lib/open.c (orig_open): New function.
57639         (rpl_open): Use orig_open instead of open.
57640         * lib/fcntl.in.h: Add special invocation convention.
57641         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57642         (gl_FUNC_OPEN): Invoke it.
57643
57644         Override freopen more carefully.
57645         * lib/freopen.c (orig_freopen): New function.
57646         (rpl_freopen): Use orig_freopen instead of freopen.
57647         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57648         (gl_FUNC_FREOPEN): Invoke it.
57649
57650         Override fopen more carefully.
57651         * lib/fopen.c (orig_fopen): New function.
57652         (rpl_fopen): Use orig_fopen instead of fopen.
57653         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57654         (gl_FUNC_FOPEN): Invoke it.
57655         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57656
57657 2008-09-28  Bruno Haible  <bruno@clisp.org>
57658
57659         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57660         SIGPIPE.
57661
57662 2008-09-28  Bruno Haible  <bruno@clisp.org>
57663
57664         * tests/test-sigaction.c (handler, main): Disable the check whether
57665         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57666         glibc systems with LinuxThreads.
57667
57668 2008-09-28  Bruno Haible  <bruno@clisp.org>
57669
57670         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57671
57672         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57673         with AIX xlc.
57674         * lib/fcntl.in.h (open): Likewise.
57675         Reported by Rainer Tammer <tammer@tammer.net>.
57676
57677 2008-09-28  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/posix_spawnp-tests: New file.
57680         * tests/test-posix_spawn.c: New file.
57681         * tests/test-posix_spawn.in.sh: New file.
57682
57683         New module 'posix_spawnp'.
57684         * modules/posix_spawnp: New file.
57685         * lib/spawnp.c: New file, from GNU libc with modifications.
57686         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57687
57688         New module 'posix_spawn'.
57689         * modules/posix_spawn: New file.
57690         * lib/spawn.c: New file, from GNU libc with modifications.
57691         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57692
57693         New module 'posix_spawnattr_destroy'.
57694         * modules/posix_spawnattr_destroy: New file.
57695         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57696         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57697         module.
57698
57699         New module 'posix_spawnattr_setsigmask'.
57700         * modules/posix_spawnattr_setsigmask: New file.
57701         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57702         modifications.
57703         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57704         new module.
57705
57706         New module 'posix_spawnattr_getsigmask'.
57707         * modules/posix_spawnattr_getsigmask: New file.
57708         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57709         modifications.
57710         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57711         new module.
57712
57713         New module 'posix_spawnattr_setsigdefault'.
57714         * modules/posix_spawnattr_setsigdefault: New file.
57715         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57716         modifications.
57717         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57718         new module.
57719
57720         New module 'posix_spawnattr_getsigdefault'.
57721         * modules/posix_spawnattr_getsigdefault: New file.
57722         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57723         modifications.
57724         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57725         new module.
57726
57727         New module 'posix_spawnattr_setschedpolicy'.
57728         * modules/posix_spawnattr_setschedpolicy: New file.
57729         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57730         modifications.
57731         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57732         new module.
57733
57734         New module 'posix_spawnattr_getschedpolicy'.
57735         * modules/posix_spawnattr_getschedpolicy: New file.
57736         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57737         modifications.
57738         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57739         new module.
57740
57741         New module 'posix_spawnattr_setschedparam'.
57742         * modules/posix_spawnattr_setschedparam: New file.
57743         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57744         modifications.
57745         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57746         new module.
57747
57748         New module 'posix_spawnattr_getschedparam'.
57749         * modules/posix_spawnattr_getschedparam: New file.
57750         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57751         modifications.
57752         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57753         new module.
57754
57755         New module 'posix_spawnattr_setpgroup'.
57756         * modules/posix_spawnattr_setpgroup: New file.
57757         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57758         modifications.
57759         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57760         module.
57761
57762         New module 'posix_spawnattr_getpgroup'.
57763         * modules/posix_spawnattr_getpgroup: New file.
57764         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57765         modifications.
57766         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57767         module.
57768
57769         New module 'posix_spawnattr_setflags'.
57770         * modules/posix_spawnattr_setflags: New file.
57771         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57772         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57773         module.
57774
57775         New module 'posix_spawnattr_getflags'.
57776         * modules/posix_spawnattr_getflags: New file.
57777         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57778         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57779         module.
57780
57781         New module 'posix_spawnattr_init'.
57782         * modules/posix_spawnattr_init: New file.
57783         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57784         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57785         module.
57786
57787         New module 'posix_spawn_file_actions_destroy'.
57788         * modules/posix_spawn_file_actions_destroy: New file.
57789         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57790         modifications.
57791         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57792         the new module.
57793
57794         New module 'posix_spawn_file_actions_addopen'.
57795         * modules/posix_spawn_file_actions_addopen: New file.
57796         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57797         modifications.
57798         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57799         the new module.
57800
57801         New module 'posix_spawn_file_actions_adddup2'.
57802         * modules/posix_spawn_file_actions_adddup2: New file.
57803         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57804         modifications.
57805         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57806         the new module.
57807
57808         New module 'posix_spawn_file_actions_addclose'.
57809         * modules/posix_spawn_file_actions_addclose: New file.
57810         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57811         modifications.
57812         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57813         the new module.
57814
57815         New module 'posix_spawn_file_actions_init'.
57816         * modules/posix_spawn_file_actions_init: New file.
57817         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57818         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57819         new module.
57820
57821         New module 'posix_spawn-internal'.
57822         * modules/posix_spawn-internal: New file.
57823         * lib/spawn_int.h: New file, from GNU libc with modifications.
57824         * lib/spawni.c: New file, from GNU libc with modifications.
57825         * m4/posix_spawn.m4: New file.
57826
57827         New module 'spawn'.
57828         * modules/spawn: New file.
57829         * lib/spawn.in.h: New file, from GNU libc with modifications.
57830         * m4/spawn_h.m4: New file.
57831         * doc/posix-headers/spawn.texi: Mention the new module.
57832
57833 2008-09-28  Bruno Haible  <bruno@clisp.org>
57834
57835         * modules/sched-tests: New file.
57836         * tests/test-sched.c: New file.
57837
57838         New module 'sched'.
57839         * modules/sched: New file.
57840         * lib/sched.in.h: New file.
57841         * m4/sched_h.m4: New file.
57842         * doc/posix-headers/sched.texi: Mention the new module.
57843
57844 2008-09-27  Eric Blake  <ebb9@byu.net>
57845
57846         Fix previous patch, and tweak references to $0.
57847         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57848         (func_version, func_gnulib_dir): Don't call this program
57849         gnulib-tool.
57850         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57851         with using $0 in function.
57852         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57853         (func_fatal_error): Reuse the name the user invoked us with.
57854
57855 2008-09-27  Bruno Haible  <bruno@clisp.org>
57856
57857         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57858         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57859         (gl_ICONV_H): Not here.
57860         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57861         instead of assigning ICONV_H directly.
57862
57863         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57865         WCHAR_H directly.
57866
57867 2008-09-27  Bruno Haible  <bruno@clisp.org>
57868
57869         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57870         * modules/arpa_inet (Depends-on): Add link-warning.
57871         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57872         * modules/unistd (Makefile.am): Likewise.
57873
57874 2008-09-26  Bruno Haible  <bruno@clisp.org>
57875
57876         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57877         variables.
57878         (func_version): Essentially copied from gnulib-tool.
57879         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57880         func_readlink): Copied from gnulib-tool.
57881
57882 2008-09-26  Bruno Haible  <bruno@clisp.org>
57883
57884         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57885         invoking git-version-gen.
57886
57887 2008-09-26  Bruno Haible  <bruno@clisp.org>
57888
57889         * posix-modules: Update to directory names changed on 2008-01-19.
57890         Remove commas in output before splitting into words. No more need to
57891         avoid 'ftruncate' since 2007-02-19.
57892
57893 2008-09-26  Bruno Haible  <bruno@clisp.org>
57894
57895         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57896
57897 2008-09-26  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57900         * modules/fwriteerror (Depends-on): Add errno.
57901
57902 2008-09-26  Bruno Haible  <bruno@clisp.org>
57903
57904         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57905         * tests/test-vc-list-files-cvs.sh: Likewise.
57906
57907 2008-09-26  Bruno Haible  <bruno@clisp.org>
57908
57909         * doc/posix-headers/sys_resource.texi: Reorder items.
57910
57911 2008-09-26  Jim Meyering  <meyering@redhat.com>
57912
57913         fts: tweak inode comparison function
57914         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57915         inode numbers, as documented.
57916
57917         fts: sort dirent entries on inode number before traversing
57918         This avoids a quadratic, seek-related performance penalty when
57919         operating on a directory containing many entries (measurable at 10k;
57920         3.5 hours at 2 million entries with a cold cache) on certain types
57921         of file systems, including ext3 and ext4, but not tmpfs.
57922         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57923         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57924         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57925         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57926         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57927         (fts_build): Set the stat.st_ino member from D_INO.
57928         If it is likely to be useful, sort dirent entries on inode number.
57929
57930         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57931         and the struct statfs.f_type member.
57932         * modules/fts (Depends-on): Add d-ino.
57933
57934 2008-09-26  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/sigpipe-die (Depends-on): Add sigpipe.
57937
57938         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57939         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57940         and GNULIB_STDIO_H_SIGPIPE are set.
57941         * lib/stdio-write.c: New file.
57942         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57943         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57944         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57945         REPLACE_STDIO_WRITE_FUNCS.
57946         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57947         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57948         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57949         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57950         * modules/stdio (Files): Add lib/stdio-write.c.
57951         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57952         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57953         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57954         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57955         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57956         REPLACE_FPRINTF_POSIX.
57957         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57958         REPLACE_PRINTF_POSIX.
57959         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57960         REPLACE_VFPRINTF_POSIX.
57961         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57962         REPLACE_VPRINTF_POSIX.
57963         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57964         SIGPIPE issue.
57965         * doc/posix-functions/fputc.texi: Likewise.
57966         * doc/posix-functions/fputs.texi: Likewise.
57967         * doc/posix-functions/fwrite.texi: Likewise.
57968         * doc/posix-functions/printf.texi: Likewise.
57969         * doc/posix-functions/putc.texi: Likewise.
57970         * doc/posix-functions/putchar.texi: Likewise.
57971         * doc/posix-functions/puts.texi: Likewise.
57972         * doc/posix-functions/vfprintf.texi: Likewise.
57973         * doc/posix-functions/vprintf.texi: Likewise.
57974
57975         * modules/safe-write (Depends-on): Add write.
57976
57977         * modules/sigpipe-tests: New file.
57978         * tests/test-sigpipe.c: New file.
57979         * tests/test-sigpipe.sh: New file.
57980
57981         * modules/write: New file.
57982         * lib/unistd.in.h: Include <sys/types.h>.
57983         (write): New declaration.
57984         * lib/write.c: New file.
57985         * m4/write.m4: New file.
57986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57987         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57988         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57989         GNULIB_WRITE, REPLACE_WRITE.
57990         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57991         and the SIGPIPE issue.
57992
57993         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57994         (raise): New declaration.
57995         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57996         (ext_signal): New function.
57997         (rpl_raise): New function.
57998         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57999         GNULIB_SIGNAL_H_SIGPIPE.
58000         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
58001         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
58002
58003         * modules/sigpipe: New file.
58004         * m4/sigpipe.m4: New file.
58005
58006 2008-09-25  Derek Price  <derek@ximbiot.com>
58007             Bruno Haible  <bruno@clisp.org>
58008
58009         * gnulib-tool (func_import): Report all license incompatibilities, not
58010         just the first one.
58011
58012 2008-09-25  Bruno Haible  <bruno@clisp.org>
58013
58014         * gnulib-tool (func_import): When computing the edits, consider not
58015         only the Makefile.ams that exist but also those that will be generated.
58016
58017 2008-09-25  Simon Josefsson  <simon@josefsson.org>
58018
58019         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
58020         fixes gnulib-tool --test warning about duplicate dependency.
58021
58022 2008-09-25  Bruno Haible  <bruno@clisp.org>
58023
58024         * gnulib-tool: Don't ask the user to perform edits in the generated
58025         Makefile.ams.
58026         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
58027         apply to the Makefile.am being generated.
58028         (func_emit_tests_Makefile_am): Execute edits that apply to the
58029         Makefile.am being generated.
58030         (func_import): Setup list of Makefile.am edits before emitting the
58031         Makefile.ams, not at the end.
58032         (func_create_testdir): Update.
58033         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58034
58035 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58036
58037         * gnulib-tool (func_import): Store the --tests-base option in the
58038         comment in gnulib-cache.m4.
58039
58040 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
58041
58042         * NEWS: Document increased portability that sys_select now provides.
58043
58044         * lib/sys_select.in.h: Install select wrapper.
58045         * lib/sys_socket.in.h: Use more descriptive name when there is no
58046         select wrapper.
58047         * lib/winsock-select.c: New.
58048         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
58049         Require gl_HEADER_SYS_SOCKET.
58050         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
58051         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
58052         * tests/test-sys_select.c: Add functional tests.
58053
58054 2008-09-24  Eric Blake  <ebb9@byu.net>
58055
58056         open, fopen: close fd leak in last patch
58057         * lib/open.c (rpl_open): Close fd before returning error.
58058         * lib/fopen.c (rpl_fopen): Close fd before returning error.
58059         * doc/posix-functions/open.texi (open): Document that Irix also
58060         has the bug.
58061         * doc/posix-functions/fopen.texi (fopen): Likewise.
58062         Reported by Paolo Bonzini.
58063
58064 2008-09-24  Bruno Haible  <bruno@clisp.org>
58065
58066         Ensure that a filename ending in a slash cannot be used to access a
58067         non-directory.
58068         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
58069         to check whether it's really a directory.
58070         * lib/fopen.c: Include fcntl.h, unistd.h.
58071         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
58072         and fdopen().
58073         * modules/fopen (Depends-on): Add unistd.
58074         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
58075         * tests/test-fopen.c (main): Likewise.
58076         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
58077         * doc/posix-functions/fopen.texi: Likewise.
58078         Reported by Eric Blake.
58079
58080 2008-09-23  Eric Blake  <ebb9@byu.net>
58081
58082         c-stack: avoid compiler optimizations when provoking overflow
58083         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
58084         recursion harder to optimize, to ensure a stack overflow occurs.
58085         * tests/test-c-stack.c (recurse): Likewise.
58086         Borrowed from libsigsegv.
58087
58088         c-stack: work around Irix sigaltstack bug
58089         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
58090         whether sigaltstack uses wrong end of stack_t (copied in part from
58091         libsigsegv).
58092         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
58093         Irix bug, without requiring an over-allocation.
58094         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
58095         bug.
58096
58097         fopen: document mingw bug on directories
58098         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
58099         not allowing a stream visiting a directory, even though reading
58100         from such a stream is not portable.
58101
58102 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58103
58104         * lib/poll.c: Rewrite.
58105         * modules/poll: Depend on alloca.
58106
58107 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58108
58109         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
58110         instead define prototypes for a full set of wrappers.  Ensure
58111         that Cygwin does not use the compatibility code, which is only
58112         for MinGW.
58113         * lib/winsock.c: New.
58114         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
58115         * modules/sys_socket: Add lib/winsock.c.
58116
58117         * modules/poll-tests: Add errno and perror.
58118         * tests/test-poll.c: Use ioctl, not ioctlsocket.
58119
58120 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58121
58122         * tests/test-poll.c: Downgrade minimum needed Winsock version.
58123
58124 2008-09-23  Bruno Haible  <bruno@clisp.org>
58125
58126         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
58127         * doc/glibc-functions/*: Likewise.
58128
58129 2008-09-23  Simon Josefsson  <simon@josefsson.org>
58130
58131         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
58132         success.
58133
58134 2008-09-22  Eric Blake  <ebb9@byu.net>
58135             Bruno Haible  <bruno@clisp.org>
58136
58137         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
58138         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
58139         supply %A but mishandle pseudo-NaN.
58140         Reported by Simon Josefsson.
58141
58142 2008-09-21  Bruno Haible  <bruno@clisp.org>
58143
58144         * tests/test-lock.c (main): Tweak skip message.
58145         * tests/test-tls.c (main): Likewise.
58146
58147 2008-09-21  Bruno Haible  <bruno@clisp.org>
58148
58149         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58150         whether 'struct sigaction' has sa_sigaction here...
58151         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58152         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58153
58154 2008-09-21  Bruno Haible  <bruno@clisp.org>
58155
58156         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58157         section.
58158         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58159         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58160         the new section.
58161         (Support for obsolete systems lacking POSIX:2001): New section.
58162         (String handling <string.h>): Move strdup to the new section.
58163         Suggested by Simon Josefsson and Paolo Bonzini.
58164
58165 2008-09-21  Bruno Haible  <bruno@clisp.org>
58166
58167         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58168         exponents in %e and %g results on 'long double'. Needed for mingw's
58169         improved *printf functions.
58170         * tests/test-vasprintf-posix.c (test_function): Likewise.
58171         * tests/test-snprintf-posix.h (test_function): Likewise.
58172         * tests/test-sprintf-posix.h (test_function): Likewise.
58173         Reported by Eric Blake.
58174
58175 2008-09-21  Bruno Haible  <bruno@clisp.org>
58176
58177         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58178         * tests/test-sprintf-posix.h (test_function): Likewise.
58179
58180 2008-09-21  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/getpass (Depends-on): Add strdup-posix.
58183
58184         New module 'strdup-posix'.
58185         * modules/strdup-posix: New file.
58186         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58187         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58188         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58189         REPLACE_STRDUP.
58190         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58191         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58192         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58193         strdup-posix.
58194
58195         * modules/strdup (Depends-on): Remove malloc-posix.
58196
58197 2008-09-20  Bruno Haible  <bruno@clisp.org>
58198
58199         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58200         Wildenhues.
58201
58202 2008-09-20  Bruno Haible  <bruno@clisp.org>
58203
58204         Ensure that wint_t gets defined on IRIX 5.3.
58205         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58206         * lib/wctype.in.h (wint_t): Likewise.
58207         (__wctype_wint_t): Remove type.
58208         (isw*): Use wint_t instead of __wctype_wint_t.
58209         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58210         * modules/wchar (Files): Add m4/wint_t.m4.
58211         (Makefile.am): Substitute HAVE_WINT_T.
58212         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58213         * tests/test-wctype.c: Check that wint_t is defined.
58214         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58215         * doc/posix-headers/wctype.texi: Likewise.
58216         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58217
58218 2008-09-18  Bruno Haible  <bruno@clisp.org>
58219
58220         * gnulib-tool (func_exit): Update comment.
58221
58222 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58223
58224         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58225         assumes strdup exists and does not depend on strdup to return
58226         ENOMEM on out of memory conditions.
58227
58228 2008-09-18  Bruno Haible  <bruno@clisp.org>
58229
58230         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58231         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58232         digits for the exponent.
58233
58234 2008-09-18  Jim Meyering  <meyering@redhat.com>
58235             Bruno Haible  <bruno@clisp.org>
58236
58237         * lib/vasnprintf.c (decimal_point_char): Define also if
58238         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58239
58240 2008-09-16  Bruno Haible  <bruno@clisp.org>
58241         and Eric Blake  <ebb9@byu.net>
58242
58243         vasnprintf: support Irix 5.3
58244         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58245         that mishandle long double infinity.
58246         Reported by Tom G. Christensen.
58247
58248 2008-09-16  Bruno Haible  <bruno@clisp.org>
58249
58250         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58251         Solaris 9.
58252         * doc/glibc-functions/alphasort.texi: Likewise.
58253         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58254
58255 2008-09-16  Jim Meyering  <meyering@redhat.com>
58256
58257         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58258         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58259         a umask modification leak out of a subshell.  Otherwise, the
58260         opensolaris /bin/sh would be accepted and thus cause unwarranted
58261         failures in the coreutils test suite.
58262
58263 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58264
58265         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58266         to succeed.
58267
58268 2008-09-16  Jim Meyering  <meyering@redhat.com>
58269
58270         avoid spurious test failure when library is built without ACL support
58271         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58272         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58273         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58274         * tests/test-copy-acl.sh: Likewise.
58275
58276 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58277
58278         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58279         based on character occurrence counts.
58280
58281 2008-09-15  Eric Blake  <ebb9@byu.net>
58282
58283         tests: avoid some compiler warnings
58284         * tests/test-memchr.c (main): Pass NULL indirectly.
58285         * tests/test-closein.c (main): Avoid unused variable.
58286
58287 2008-09-15  Bruno Haible  <bruno@clisp.org>
58288
58289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58290         are missing on OpenBSD 4.0 individually.
58291         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58292
58293 2008-09-15  Bruno Haible  <bruno@clisp.org>
58294
58295         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58296         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58297         * doc/posix-functions/perror.texi: Likewise.
58298         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58299         is missing.
58300         Reported by Eric Blake.
58301
58302         * lib/errno.in.h: Use replacement values >= 2000.
58303         Reported by Eric Blake.
58304
58305 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58306
58307         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58308         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58309         limit.
58310         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58311         compareseq was aborted.
58312
58313 2008-09-14  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58316         yvec_edit_count.
58317         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58318         (fstrcmp_bounded): Simplify result computation accordingly.
58319
58320 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58321
58322         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58323         (fstrcmp): Define in terms of fstrcmp_bounded.
58324         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58325         lower_bound argument.
58326         Return quickly if the result is certainly < lower_bound.
58327         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58328
58329 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58330
58331         * lib/diffseq.h (EARLY_ABORT): New macro.
58332         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58333         evaluates to true.
58334
58335 2008-09-14  Bruno Haible  <bruno@clisp.org>
58336
58337         * modules/perror-tests: New file.
58338         * tests/test-perror.sh: New file.
58339         * tests/test-perror.c: New file.
58340
58341         New module 'perror'.
58342         * lib/stdio.in.h (perror): New declaration.
58343         * lib/perror.c: New file.
58344         * m4/perror.m4: New file.
58345         * modules/perror: New file.
58346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58347         * doc/posix-functions/perror.texi: Mention the perror module.
58348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58349         REPLACE_PERROR.
58350         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58351         REPLACE_PERROR.
58352
58353 2008-09-14  Bruno Haible  <bruno@clisp.org>
58354
58355         * modules/stdio (Makefile.am): Reorder to match the order in
58356         lib/stdio.in.h.
58357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58358
58359 2008-09-13  Bruno Haible  <bruno@clisp.org>
58360
58361         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58362
58363 2008-09-13  Bruno Haible  <bruno@clisp.org>
58364
58365         Extend strerror to cover the added errno values.
58366         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58367         (rpl_strerror): Provide error messages for the added errno values and
58368         for the WSA* values.
58369         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58370         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58371         strerror.
58372         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58373         * modules/strerror (Depends-on): Add errno.
58374         * doc/posix-functions/strerror.texi: Document the change.
58375         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58376         and EOVERFLOW.
58377
58378 2008-09-13  Bruno Haible  <bruno@clisp.org>
58379
58380         * modules/EOVERFLOW: Remove file.
58381         * m4/eoverflow.m4: Remove file.
58382         * modules/EOVERFLOW-tests: Remove file.
58383         * tests/test-EOVERFLOW.c: Remove file.
58384         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58385         * modules/ftell (Depends-on): Likewise.
58386         * modules/getdelim (Depends-on): Likewise.
58387         * modules/getugroups (Depends-on): Likewise.
58388         * modules/poll (Depends-on): Likewise.
58389         * modules/snprintf (Depends-on): Likewise.
58390         * modules/sprintf-posix (Depends-on): Likewise.
58391         * modules/vasnprintf (Depends-on): Likewise.
58392         * modules/vasprintf (Depends-on): Likewise.
58393         * modules/vfprintf-posix (Depends-on): Likewise.
58394         * modules/vsnprintf (Depends-on): Likewise.
58395         * modules/vsprintf-posix (Depends-on): Likewise.
58396         * modules/xvasprintf (Depends-on): Likewise.
58397         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58398         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58399         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58400         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58401         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58402         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58403         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58404         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58405         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58406         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58407         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58408         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58409         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58410         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58411         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58412         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58413         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58414         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58415         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58416         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58417         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58418         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58419         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58420         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58421         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58422         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58423         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58424         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58425         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58426         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58427         * MODULES.html.sh: Remove EOVERFLOW.
58428         * NEWS: Mention the change.
58429
58430 2008-09-13  Bruno Haible  <bruno@clisp.org>
58431
58432         * modules/errno-tests: New file.
58433         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58434
58435         * lib/errno.in.h: New file.
58436         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58437         * modules/errno: New file.
58438         * doc/posix-headers/errno.texi: Update documentation.
58439         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58440
58441 2008-09-13  Bruno Haible  <bruno@clisp.org>
58442
58443         * tests/test-poll.c: Use #if for native Windows, rather than testing
58444         __MSVCRT__.
58445
58446 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58447             Bruno Haible  <bruno@clisp.org>
58448
58449         * lib/glob.c: Don't include <pwd.h> on native Windows.
58450         (WINDOWS32): New macro.
58451         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58452
58453 2008-09-13  Bruno Haible  <bruno@clisp.org>
58454
58455         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58456         (ETIMEDOUT): Remove macro.
58457         (glthread_cond_timedwait_multithreaded): New declaration.
58458         (glthread_cond_timedwait): Use it.
58459         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58460         (glthread_cond_timedwait_multithreaded): New function.
58461
58462 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58463
58464         * modules/poll-tests: Do not check for io.h.
58465         * tests/test-poll.c: Check for __MSVCRT__ instead.
58466
58467 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58468
58469         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58470         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58471         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58472
58473 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58474
58475         * modules/poll-tests: New.
58476         * tests/test-poll.c: New.
58477
58478 2008-09-12  Eric Blake  <ebb9@byu.net>
58479
58480         frexp: test for NetBSD failure on -0.0
58481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58482         not all, bugs from NetBSD 3.0 have been fixed.
58483         * doc/posix-functions/frexp.texi (frexp): Document bug.
58484         Reported by Thomas Klausner.
58485
58486         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58487         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58488         literal -0.0.
58489         Reported by Jonathan C. Patschke <jp@centtech.com>.
58490
58491 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58492
58493         * lib/glthread/cond.h: Use dummy implementation also if
58494         USE_WIN32_THREADS.
58495
58496 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58497
58498         * modules/fnmatch-posix (License): Change to LGPLv2+.
58499         * modules/fnmatch-gnu (License): Likewise.
58500
58501 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58502
58503         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58504
58505 2008-09-11  Jim Meyering  <meyering@redhat.com>
58506
58507         * users.txt: Add gtk-vnc.
58508
58509 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58510
58511         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58512         rotate amounts.
58513
58514         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58515         required for 16-bit and 8-bit rotates.
58516         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58517         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58518         UINT8_MAX instead of hard-coded constants.
58519         Suggested by Paul Eggert.
58520
58521 2008-09-07  Bruno Haible  <bruno@clisp.org>
58522
58523         * tests/test-striconveh.c (main): Check behaviour when converting from
58524         UTF-7.
58525
58526         Make striconveh work better with stateful encodings.
58527         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58528         that iconv does not increment the inptr when returning -1/EINVAL.
58529
58530 2008-09-07  Bruno Haible  <bruno@clisp.org>
58531
58532         * build-aux/config.rpath: Update according to libtool-2.2.6.
58533         * build-aux/config.libpath: Likewise.
58534
58535 2008-09-06  Bruno Haible  <bruno@clisp.org>
58536
58537         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58538         * lib/freadptr.c (freadptr): Likewise.
58539         * lib/freadseek.c (freadptrinc): Likewise.
58540         Reported by Simon Josefsson.
58541
58542 2008-09-06  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/freadptr (License): Change to LGPLv2+.
58545         * modules/freadseek (License): Likewise.
58546         Suggested by Eric Blake.
58547
58548         * modules/memchr2 (License): Change to LGPLv2+.
58549         Approved by Eric Blake.
58550
58551 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58552             Bruno Haible  <bruno@clisp.org>
58553
58554         Make gnulib-tool work with native 'sed' on AIX.
58555         * gnulib-tool (sed_noop): New variable.
58556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58557         func_add_or_update, func_create_testdir): Use it to initialize sed
58558         script variables.
58559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58560
58561 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58562             Bruno Haible  <bruno@clisp.org>
58563
58564         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58565         also works after #include directives.
58566
58567 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58568
58569         getdate.y: reject an out-of-range timezone value
58570         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58571         the range [-24...+24].  When specified with only one or two digits,
58572         * tests/test-getdate.c: Tests for the fix.
58573         * doc/getdate.texi: Document this change.
58574
58575 2008-09-03  Bruno Haible  <bruno@clisp.org>
58576
58577         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58578
58579 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58580
58581         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58582         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58583         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58584         Blake <ebb9@byu.net>.
58585
58586         * tests/test-bitrotate.c: Add more test vectors.
58587
58588 2008-09-02  Eric Blake  <ebb9@byu.net>
58589
58590         vasnprintf-posix: handle large precision via %.*d
58591         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58592         when handling it ourselves.
58593         * tests/test-vasnprintf-posix.c (test_function): Add test.
58594         * tests/test-snprintf-posix.h (test_function): Likewise.
58595         * tests/test-sprintf-posix.h (test_function): Likewise.
58596         * tests/test-vasprintf-posix.c (test_function): Likewise.
58597         Reported by Alain Guibert.
58598
58599 2008-09-01  Eric Blake  <ebb9@byu.net>
58600
58601         c-stack: make configure-time check more robust
58602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58603         successful sigaction call.
58604         Reported by Tom G. Christensen.
58605
58606 2008-09-01  Bruno Haible  <bruno@clisp.org>
58607
58608         New module 'findprog-lgpl'.
58609         * modules/findprog-lgpl: New file.
58610         * lib/findprog-lgpl.c: New file.
58611         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58612         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58613         to decide whether to use strdup or xstrdup, concatenated_filename or
58614         xconcatenated_filename.
58615
58616 2008-09-01  Bruno Haible  <bruno@clisp.org>
58617
58618         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58619         'xconcat-filename' (GPL).
58620         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58621         (License): Change to LGPLv2+.
58622         * modules/xconcat-filename: New file.
58623         * lib/concat-filename.h (concatenated_filename): Change specification.
58624         (xconcatenated_filename): New declaration.
58625         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58626         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58627         memory situations.
58628         * lib/xconcat-filename.c: New file.
58629         * NEWS: Mention the change.
58630         * lib/findprog.c: Include concat-filename.h, not filename.h.
58631         (find_in_path): Use xconcatenated_filename instead of
58632         concatenated_filename.
58633         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58634         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58635         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58636         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58637         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58638         instead of concatenated_filename.
58639         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58640         (execute_java_class): Use xconcatenated_filename instead of
58641         concatenated_filename.
58642         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58643         * modules/javacomp (Depends-on): Likewise.
58644         * modules/javaexec (Depends-on): Likewise.
58645
58646 2008-09-01  Bruno Haible  <bruno@clisp.org>
58647
58648         Split module 'filename' into 'filename' and 'concat-filename'.
58649         * modules/filename: Keep only lib/filename.h.
58650         (License): Change to LGPLv2+.
58651         * modules/concat-filename: New file, extracted from modules/filename.
58652         * lib/filename.h (concatenated_filename): Remove declaration.
58653         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58654         * lib/concat-filename.c: Include concat-filename.h.
58655         * NEWS: Mention the change.
58656
58657 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58658
58659         * lib/bitrotate.h (rotl8, rotr8): Add.
58660
58661         * modules/bitrotate (configure.ac): Need
58662         AC_REQUIRE([AC_C_INLINE]).
58663         (Description): Mention stdint.h.  Reported by Bruno Haible
58664         <bruno@clisp.org>.
58665
58666         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58667         Paolo Bonzini <bonzini@gnu.org>.
58668
58669 2008-08-31  Bruno Haible  <bruno@clisp.org>
58670
58671         Assume Solaris specific bi-arch conventions on Solaris systems.
58672         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58673         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58674         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58675         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58676         like acl_libdirstem.
58677         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58678         acl_libdirstem.
58679         * NEWS: Mention the change.
58680         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58681
58682 2008-08-31  Jim Meyering  <meyering@redhat.com>
58683
58684         * lib/strftime.h: Add comments describing the two added arguments.
58685
58686         remove duplicate #include directives
58687         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58688         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58689
58690 2008-08-31  Bruno Haible  <bruno@clisp.org>
58691
58692         New module 'sigpipe-die'.
58693         * modules/sigpipe-die: New file.
58694         * lib/sigpipe-die.h: New file.
58695         * lib/sigpipe-die.c: New file.
58696         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58697
58698 2008-08-31  Bruno Haible  <bruno@clisp.org>
58699
58700         Don't override previously installed signal handlers.
58701         * lib/fatal-signal.c (saved_sigactions): New variable.
58702         (uninstall_handlers): Reset the signal to the saved handler, not
58703         to SIG_DFL (except when ignored).
58704         (install_handlers): Save the previous handlers.
58705
58706 2008-08-30  Bruno Haible  <bruno@clisp.org>
58707
58708         * gnulib-tool (func_reset_sigpipe): New function.
58709         (func_get_automake_snippet, func_modules_transitive_closure,
58710         func_import): Invoke it before a join command that reads from stdin,
58711         to avoid "echo: write error: Broken pipe" error messages on stderr.
58712         Reported by Sam Steingold <sds@gnu.org>.
58713
58714 2008-08-30  Bruno Haible  <bruno@clisp.org>
58715
58716         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58717         Code copied from m4/open.m4.
58718         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58719         access and the filename ends in a slash. Code copied from lib/open.c.
58720         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58721         * tests/test-fopen.c (main): Check against bug with trailing slash.
58722
58723 2008-08-29  Bruno Haible  <bruno@clisp.org>
58724
58725         Avoid some "gcc -pedantic" warnings.
58726         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58727         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58728         * lib/dirent.in.h: Likewise.
58729         * lib/fcntl.in.h: Likewise.
58730         * lib/float.in.h: Likewise.
58731         * lib/iconv.in.h: Likewise.
58732         * lib/inttypes.in.h: Likewise.
58733         * lib/locale.in.h: Likewise.
58734         * lib/math.in.h: Likewise.
58735         * lib/netinet_in.in.h: Likewise.
58736         * lib/search.in.h: Likewise.
58737         * lib/signal.in.h: Likewise.
58738         * lib/stdarg.in.h: Likewise.
58739         * lib/stdint.in.h: Likewise.
58740         * lib/stdio.in.h: Likewise.
58741         * lib/stdlib.in.h: Likewise.
58742         * lib/string.in.h: Likewise.
58743         * lib/strings.in.h: Likewise.
58744         * lib/sys_select.in.h: Likewise.
58745         * lib/sys_socket.in.h: Likewise.
58746         * lib/sys_stat.in.h: Likewise.
58747         * lib/sys_time.in.h: Likewise.
58748         * lib/sysexits.in.h: Likewise.
58749         * lib/time.in.h: Likewise.
58750         * lib/unistd.in.h: Likewise.
58751         * lib/wchar.in.h: Likewise.
58752         * lib/wctype.in.h: Likewise.
58753         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58754         * modules/fchdir (Makefile.am): Likewise.
58755         * modules/fcntl (Makefile.am): Likewise.
58756         * modules/float (Makefile.am): Likewise.
58757         * modules/iconv_open (Makefile.am): Likewise.
58758         * modules/inttypes (Makefile.am): Likewise.
58759         * modules/locale (Makefile.am): Likewise.
58760         * modules/math (Makefile.am): Likewise.
58761         * modules/netinet_in (Makefile.am): Likewise.
58762         * modules/search (Makefile.am): Likewise.
58763         * modules/signal (Makefile.am): Likewise.
58764         * modules/stdarg (Makefile.am): Likewise.
58765         * modules/stdint (Makefile.am): Likewise.
58766         * modules/stdio (Makefile.am): Likewise.
58767         * modules/stdlib (Makefile.am): Likewise.
58768         * modules/string (Makefile.am): Likewise.
58769         * modules/strings (Makefile.am): Likewise.
58770         * modules/sys_select (Makefile.am): Likewise.
58771         * modules/sys_socket (Makefile.am): Likewise.
58772         * modules/sys_stat (Makefile.am): Likewise.
58773         * modules/sys_time (Makefile.am): Likewise.
58774         * modules/sysexits (Makefile.am): Likewise.
58775         * modules/time (Makefile.am): Likewise.
58776         * modules/unistd (Makefile.am): Likewise.
58777         * modules/wchar (Makefile.am): Likewise.
58778         * modules/wctype (Makefile.am): Likewise.
58779         Reported by Reuben Thomas <rrt@sc3d.org>.
58780
58781 2008-08-29  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58784         any more.
58785
58786 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58787
58788         * MODULES.html.sh (Misc): Add bitrotate.
58789
58790         * modules/bitrotate: New file.
58791
58792         * lib/bitrotate.h: New file.
58793
58794         * modules/bitrotate-tests: New file.
58795
58796         * tests/test-bitrotate.c: New file.
58797
58798         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58799         on the bitrotate module.
58800
58801         * lib/arctwo.c: Use new bitrotate module.
58802
58803 2008-08-29  Jim Meyering  <meyering@redhat.com>
58804
58805         bootstrap: merge changes from coreutils
58806         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58807         of copied files.  Remove a kludge, now that this is fixed.
58808         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58809         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58810         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58811
58812 2008-08-29  Bruno Haible  <bruno@clisp.org>
58813
58814         * MODULES.html.sh: Remove --cvs-urls option.
58815
58816 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58817
58818         maint.mk: adjust to file name change
58819         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58820
58821 2008-08-28  Jim Meyering  <meyering@redhat.com>
58822
58823         * modules/getndelim2 (License): Relicense to LGPLv2+.
58824         Approved by Richard Stallman for the version of 1995, and by
58825         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58826
58827 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58828
58829         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58830         dummy if one is not available.  Do not touch them if
58831         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58832         (getc_maybe_unlocked): New.
58833         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58834
58835 2008-08-26  Eric Blake  <ebb9@byu.net>
58836
58837         doc/INSTALL: resync from autoconf
58838         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58839         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58840         moving...
58841         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58842         * INSTALL: Regenerate.
58843         * INSTALL.ISO: New file.
58844         * INSTALL.UTF-8: Likewise.
58845
58846 2008-08-26  Jim Meyering  <meyering@redhat.com>
58847
58848         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58849         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58850         these definitions conditional, so that they may be overridden, too.
58851
58852 2008-08-26  Bruno Haible  <bruno@clisp.org>
58853
58854         Generate INSTALL file variants with prettier quotes.
58855         * doc/Makefile (INSTALL_PRELUDE): New macro.
58856         (INSTALL): Use it.
58857         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58858
58859 2008-08-26  Bruno Haible  <bruno@clisp.org>
58860
58861         Run makeinfo in an English locale.
58862         * doc/Makefile (MAKEINFO): New variable.
58863
58864 2008-08-26  Bruno Haible  <bruno@clisp.org>
58865
58866         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58867         Suggested by Eric Blake.
58868
58869 2008-08-25  Bruno Haible  <bruno@clisp.org>
58870
58871         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58872
58873 2008-08-25  Eric Blake  <ebb9@byu.net>
58874
58875         c-stack: test that stack overflow can be caught
58876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58877         that platform allows handling stack overflow; at least OS/2 EMX
58878         has sigaltstack, but crashes before transferring control to
58879         handler on stack overflow.
58880         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58881         check for HAVE_STACK_OVERFLOW_HANDLING.
58882         Reported by Elbert Pol.
58883
58884 2008-08-25  Bruno Haible  <bruno@clisp.org>
58885
58886         * doc/posix-functions/strftime.texi: Fix description of strftime
58887         module.
58888
58889 2008-08-24  Bruno Haible  <bruno@clisp.org>
58890
58891         * tests/uniwidth/test-uc_width2.c: New file.
58892         * tests/uniwidth/test-uc_width2.sh: New file.
58893         * modules/uniwidth/width-tests (Files): Add the new files.
58894         (TESTS): Add uniwidth/test-uc_width2.sh.
58895         (TESTS_ENVIRONMENT): New variable.
58896         (check_PROGRAMS): Add test-uc_width2.
58897         (test_uc_width2_SOURCES): New variable.
58898
58899         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58900         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58901         not 0x00AB.
58902         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58903
58904 2008-08-22  Eric Blake  <ebb9@byu.net>
58905
58906         test-lock, test-tls: mention why a test is skipped
58907         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58908         skipped.
58909         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58910
58911         count-one-bits: relax license
58912         * modules/count-one-bits (License): Relicense to LGPLv2+.
58913         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58914
58915 2008-08-22  Andreas Schwab  <schwab@suse.de>
58916
58917         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58918         Remove spurious space in assignment.
58919
58920 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58921
58922         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58923         Paul Eggert <eggert@CS.UCLA.EDU>.
58924
58925 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58926
58927         * modules/gettext: Add m4/threadlib.m4.
58928
58929 2008-08-19  Eric Blake  <ebb9@byu.net>
58930
58931         test-c-stack: fix compilation failure on FreeBSD 5.0
58932         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58933         headers before <sys/resource.h>.
58934         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58935         the bug.
58936         Reported by Nelson H. F. Beebe.
58937
58938         strverscmp: migrate from "strverscmp.h" to <string.h>
58939         * modules/string (Makefile.am): Add new hooks.
58940         * modules/strverscmp (Files): Remove strverscmp.h.
58941         (Depends-on): Add string.
58942         (configure.ac): Add indicator.
58943         (Include): Mention new header.
58944         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58945         defaults.
58946         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58947         results.
58948         * lib/strverscmp.h: Delete.
58949         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58950         * tests/test-strverscmp.c (includes): Adjust client.
58951         * lib/check-version.c (includes): Likewise.
58952         * NEWS: Document the change.
58953
58954         strverscmp: add unit test
58955         * modules/strverscmp-tests: New file.
58956         * tests/test-strverscmp.c: Likewise.
58957
58958 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58959
58960         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58961         regarding Windows crypto stuff, from Mono.
58962
58963 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58964
58965         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58966         if present, for intel RND.  Return error on failures.
58967
58968 2008-08-18  Ben Pfaff  <blp@gnu.org>
58969
58970         gitlog-to-changelog: give better diagnostic for failed pipe-open
58971         * build-aux/gitlog-to-changelog: Improve error message: suggest
58972         that the version of Git may be too old.
58973
58974 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58975
58976         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58977         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58978
58979 2008-08-18  Bruno Haible  <bruno@clisp.org>
58980
58981         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58982         pthread_in_use().
58983
58984 2008-08-18  Bruno Haible  <bruno@clisp.org>
58985
58986         * lib/glthread/threadlib.c: Include <pthread.h>.
58987
58988 2008-08-18  Bruno Haible  <bruno@clisp.org>
58989
58990         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58991         glthread_recursive_lock_* macros.
58992         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58993         Fix syntax error.
58994
58995 2008-08-18  Bruno Haible  <bruno@clisp.org>
58996
58997         * lib/glthread/thread.c: Avoid forcing a context switch right after
58998         thread creation.
58999
59000 2008-08-17  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
59003         * lib/glthread/thread.h: Provide Win32 specific implementation.
59004         * modules/thread (Files): Add lib/glthread/thread.c.
59005         (Depends-on): Add lock.
59006         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
59007
59008 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59009
59010         New module 'yield'.
59011         * modules/yield: New file.
59012         * lib/glthread/yield.h: New file.
59013         * m4/yield.m4: New file.
59014         * MODULES.html.sh (Multithreading): Add yield.
59015
59016 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59017
59018         New module 'thread'.
59019         * modules/thread: New file.
59020         * lib/glthread/thread.h: New file.
59021         * m4/thread.m4: New file.
59022         * MODULES.html.sh (Multithreading): Add thread.
59023
59024 2008-08-17  Bruno Haible  <bruno@clisp.org>
59025
59026         * lib/glthread/lock.h: Include <stdlib.h> always.
59027         * lib/glthread/tls.h: Likewise.
59028         * lib/glthread/cond.h: Likewise.
59029
59030 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59031
59032         New module 'cond'.
59033         * modules/cond: New file.
59034         * lib/glthread/cond.h: New file.
59035         * lib/glthread/cond.c: New file.
59036         * m4/cond.m4: New file.
59037         * MODULES.html.sh (Multithreading): Add cond.
59038
59039 2008-08-16  Eric Blake  <ebb9@byu.net>
59040
59041         c-stack: fix regression on Irix 5.3 from 2008-06-21
59042         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
59043         sa_sigaction...
59044         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
59045         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
59046         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
59047         * modules/signal (Makefile.am): Use the value.
59048         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
59049         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
59050         * doc/posix-headers/signal.texi (signal.h): Document this
59051         portability issue.
59052         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
59053         Reported by Tom G. Christensen.
59054
59055 2008-08-17  Bruno Haible  <bruno@clisp.org>
59056
59057         New module 'threadlib'.
59058         * modules/threadlib: New file.
59059         * lib/glthread/threadlib.c: New file, extracted from
59060         lib/glthread/lock.c.
59061         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
59062         functions.
59063         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
59064         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
59065         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
59066         macros.
59067         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
59068         (gl_DISABLE_THREADS): Remove macro.
59069         * modules/lock (Files): Remove build-aux/config.rpath.
59070         (Depends-on): Remove havelib. Add threadlib.
59071         (configure.ac-early): Remove section.
59072         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
59073         * modules/tls (Depends-on): Remove lock. Add threadlib.
59074         (Link): New section, copied from threadlib.
59075         * MODULES.html.sh (Multithreading): Add threadlib.
59076
59077 2008-08-14  Bruno Haible  <bruno@clisp.org>
59078
59079         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
59080         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
59081         glthread_rwlock_unlock, glthread_rwlock_destroy,
59082         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
59083         glthread_recursive_lock_destroy): Define as macros always.
59084         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
59085         glthread_lock_lock.
59086         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
59087         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
59088         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
59089         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
59090         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
59091         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
59092         (glthread_recursive_lock_lock_func): Renamed from
59093         glthread_recursive_lock_lock.
59094         (glthread_recursive_lock_unlock_func): Renamed from
59095         glthread_recursive_lock_unlock.
59096         (glthread_recursive_lock_destroy_func): Renamed from
59097         glthread_recursive_lock_destroy.
59098
59099 2008-08-14  Bruno Haible  <bruno@clisp.org>
59100
59101         * lib/glthread/lock.h: Renamed from lib/lock.h.
59102         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
59103         * lib/glthread/tls.h: Renamed from lib/tls.h.
59104         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
59105         * lib/fstrcmp.c: Update includes.
59106         * lib/strsignal.c: Update includes.
59107         * modules/lock (Files, Makefile.am): Update.
59108         (Include): Change to "glthread/lock.h".
59109         * modules/tls (Files, Makefile.am): Update.
59110         (Include): Change to "glthread/tls.h".
59111         * tests/test-lock.c: Update includes.
59112         * tests/test-tls.c: Update includes.
59113         * NEWS: Mention the renamed header files.
59114
59115 2008-08-11  Jim Meyering  <meyering@redhat.com>
59116
59117         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
59118
59119 2008-08-11  Eric Blake  <ebb9@byu.net>
59120
59121         test-c-stack: avoid C99-ism
59122         * tests/test-c-stack.c (main): Fix whitespace, move declaration
59123         before statement.
59124         Reported by Alain Guibert.
59125
59126 2008-08-10  Jim Meyering  <meyering@redhat.com>
59127
59128         ensure that return value of uinttostr et al are not ignored
59129         * lib/inttostr.h (__GNUC_PREREQ): Define.
59130         (__attribute_warn_unused_result__): Define.
59131         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
59132
59133 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
59134
59135         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
59136         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
59137
59138 2008-08-07  Jim Meyering  <meyering@redhat.com>
59139
59140         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
59141
59142         * modules/mkstemp (License): Relicense under LGPLv2+.
59143         * modules/tempname (License): Likewise.
59144
59145 2008-08-06  Bruno Haible  <bruno@clisp.org>
59146
59147         * lib/poll.c (poll): Further micro-optimization.
59148
59149 2008-08-06  Jim Meyering  <meyering@redhat.com>
59150
59151         inet_pton.c: use locale-independent tolower
59152         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59153         (inet_pton6): Use c_tolower rather than tolower.
59154         * modules/inet_pton (Depends-on): Add c-ctype.
59155
59156 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59157
59158         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59159         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59160
59161 2008-08-06  Jim Meyering  <meyering@redhat.com>
59162
59163         * modules/inet_pton (License): Relicense under LGPLv2+.
59164
59165 2008-08-03  Bruno Haible  <bruno@clisp.org>
59166
59167         Additional non-aborting API for lock and tls.
59168         * lib/lock.h: Include <errno.h>.
59169         (glthread_lock_init): New macro/function.
59170         (gl_lock_init): Define as wrapper around glthread_lock_init.
59171         (glthread_lock_lock): New macro/function.
59172         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59173         (glthread_lock_unlock): New macro/function.
59174         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59175         (glthread_lock_destroy): New macro/function.
59176         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59177         (glthread_rwlock_init): New macro/function.
59178         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59179         (glthread_rwlock_rdlock): New macro/function.
59180         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59181         (glthread_rwlock_wrlock): New macro/function.
59182         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59183         (glthread_rwlock_unlock): New macro/function.
59184         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59185         (glthread_rwlock_destroy): New macro/function.
59186         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59187         (glthread_recursive_lock_init): New macro/function.
59188         (gl_recursive_lock_init): Define as wrapper around
59189         glthread_recursive_lock_init.
59190         (glthread_recursive_lock_lock): New macro/function.
59191         (gl_recursive_lock_lock): Define as wrapper around
59192         glthread_recursive_lock_lock.
59193         (glthread_recursive_lock_unlock): New macro/function.
59194         (gl_recursive_lock_unlock): Define as wrapper around
59195         glthread_recursive_lock_unlock.
59196         (glthread_recursive_lock_destroy): New macro/function.
59197         (gl_recursive_lock_destroy): Define as wrapper around
59198         glthread_recursive_lock_destroy.
59199         (glthread_once): New macro/function.
59200         (gl_once): Define as wrapper around glthread_once.
59201         Update function declarations.
59202         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59203         glthread_rwlock_init. Return error code.
59204         (glthread_rwlock_rdlock_multithreaded): Renamed from
59205         glthread_rwlock_rdlock. Return error code.
59206         (glthread_rwlock_wrlock_multithreaded): Renamed from
59207         glthread_rwlock_wrlock. Return error code.
59208         (glthread_rwlock_unlock_multithreaded): Renamed from
59209         glthread_rwlock_unlock. Return error code.
59210         (glthread_rwlock_destroy_multithreaded): Renamed from
59211         glthread_rwlock_destroy. Return error code.
59212         (glthread_recursive_lock_init_multithreaded): Renamed from
59213         glthread_recursive_lock_init. Return error code.
59214         (glthread_recursive_lock_lock_multithreaded): Renamed from
59215         glthread_recursive_lock_lock. Return error code.
59216         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59217         glthread_recursive_lock_unlock. Return error code.
59218         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59219         glthread_recursive_lock_destroy. Return error code.
59220         (glthread_once_call): Make static.
59221         (glthread_once_multithreaded): Renamed from glthread_once.
59222         * lib/tls.h: Include <errno.h>.
59223         (glthread_tls_key_init): New macro/function.
59224         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59225         (glthread_tls_set): New macro/function.
59226         (gl_tls_set): Define as wrapper around glthread_tls_set.
59227         (glthread_tls_key_destroy): New macro/function.
59228         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59229         Update function declarations.
59230         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59231         glthread_tls_get.
59232         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59233
59234 2008-08-04  Eric Blake  <ebb9@byu.net>
59235
59236         gnumakefile: use space, not TAB, outside of targets
59237         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59238
59239 2008-08-02  Jim Meyering  <meyering@redhat.com>
59240
59241         getdate.y: avoid locale-dependent date parsing failure
59242         In Turkish locales, getdate would fail to recognize keywords
59243         containing a lowercase "i".  The solution is not to rely on
59244         locale-sensitive case-conversion.
59245         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59246         (lookup_word): Use c_toupper in place of toupper.
59247         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59248         Reported by Vefa Bicakci <bicave@superonline.com> in
59249         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59250         * modules/getdate (Depends-on): Add c-ctype.
59251
59252 2008-08-02  Bruno Haible  <bruno@clisp.org>
59253
59254         * gnulib-tool (func_import): When updating or creating a .gitignore
59255         file, prepend each added line with a slash, and ignore leading slashes
59256         from the existing lines.
59257         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59258
59259 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59260
59261         Portability fix for GNU make 3.79.1.
59262         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59263         versions do not understand.
59264
59265 2008-08-01  Bruno Haible  <bruno@clisp.org>
59266
59267         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59268         * tests/test-isnanf.h (zero): New variable.
59269         (main): Avoid literal -0.0f.
59270         * tests/test-isnand.h (zero): New variable.
59271         (main): Avoid literal -0.0.
59272         * tests/test-isnanl.h (zero): New variable.
59273         (main): Avoid literal -0.0L.
59274         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59275         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59276         -0.0, -0.0L.
59277         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59278         (test_signbitd): Avoid literal -0.0.
59279         (test_signbitl): Avoid literal -0.0L.
59280         * tests/test-ceilf1.c (zero): New variable.
59281         (main): Avoid literal -0.0f.
59282         * tests/test-ceill.c (zero): New variable.
59283         (main): Avoid literal -0.0L.
59284         * tests/test-floorf1.c (zero): New variable.
59285         (main): Avoid literal -0.0f.
59286         * tests/test-floorl.c (zero): New variable.
59287         (main): Avoid literal -0.0L.
59288         * tests/test-roundf1.c (zero): New variable.
59289         (main): Avoid literal -0.0f.
59290         * tests/test-round1.c (zero): New variable.
59291         (main): Avoid literal -0.0.
59292         * tests/test-roundl.c (zero): New variable.
59293         (main): Avoid literal -0.0L.
59294         * tests/test-truncf1.c (zero): New variable.
59295         (main): Avoid literal -0.0f.
59296         * tests/test-trunc1.c (zero): New variable.
59297         (main): Avoid literal -0.0.
59298         * tests/test-truncl.c (zero): New variable.
59299         (main): Avoid literal -0.0L.
59300         * tests/test-frexp.c (zero): New variable.
59301         (main): Avoid literal -0.0.
59302         * tests/test-frexpl.c (zero): New variable.
59303         (main): Avoid literal -0.0L.
59304         * tests/test-ldexpl.c (zero): New variable.
59305         (main): Avoid literal -0.0L.
59306         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59307         (zerod, zerol): New variables.
59308         (test_function): Avoid literals -0.0, -0.0L.
59309         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59310         (zerod, zerol): New variables.
59311         (test_function): Avoid literals -0.0, -0.0L.
59312         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59313         (zerod, zerol): New variables.
59314         (test_function): Avoid literals -0.0, -0.0L.
59315         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59316         (zerod, zerol): New variables.
59317         (test_function): Avoid literals -0.0, -0.0L.
59318         * tests/test-strtod.c (zero): New variable.
59319         (main): Avoid literal -0.0.
59320         Reported by Jonathan C. Patschke <jp@centtech.com>.
59321
59322 2008-07-31  Jim Meyering  <meyering@redhat.com>
59323
59324         sha256.h: correct definition of SHA224_DIGEST_SIZE
59325         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59326         Reported by Paulie Pena IV <paulie4@gmail.com>.
59327         Define as 224 / 8, rather than as a literal.
59328         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59329         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59330         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59331
59332 2008-07-31  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59335         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59336         Reported by Jonathan Patschke <jp@centtech.com>.
59337
59338 2008-07-31  Bruno Haible  <bruno@clisp.org>
59339
59340         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59341         Reported by Paolo Bonzini <bonzini@gnu.org>.
59342
59343 2008-07-30  Eric Blake  <ebb9@byu.net>
59344
59345         test-strtod: allow compilation without -lm
59346         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59347         Reported by Dennis Clarke <blastwave@gmail.com>.
59348
59349 2008-07-28  Jim Meyering  <meyering@redhat.com>
59350
59351         bootstrap: work also when there are no .po files in po/
59352         * build-aux/bootstrap (update_po_files): Complete the change
59353         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59354
59355 2008-07-27  Jim Meyering  <meyering@redhat.com>
59356
59357         * users.txt: Add zile.
59358
59359 2008-07-26  Ben Pfaff  <blp@gnu.org>
59360
59361         Add missing dependencies on new m4/exponent[fdl].m4 files.
59362         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59363         * modules/isnand-nolibm: Add m4/exponentd.m4.
59364         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59365         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59366         m4/isnan[fdl].m4, because the macros actually used moved.
59367         Reported by Jim Meyering.
59368
59369 2008-07-14  Ben Pfaff  <blp@gnu.org>
59370
59371         Add isinf module.
59372         * lib/isinf.c: New file.
59373         * lib/math.in.h: Define isinf macro if we have decided to replace
59374         it.
59375         * m4/isinf.m4: New file.
59376         * m4/math_h.m4: Initialize and substitute variables for isinf
59377         module.
59378         * modules/isinf: New file.
59379         * modules/isinf-tests: New file.
59380         * modules/math: Add substitutions for new module.
59381         * tests/test-isinf.c: New file.
59382         * doc/posix-functions/isinf.texi: Mention new module.
59383         * MODULES.html.sh: Mention new module.
59384
59385 2008-07-14  Ben Pfaff  <blp@gnu.org>
59386
59387         Factor out some macros for use by additional modules.
59388         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59389         exponentf.m4.
59390         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59391         exponentd.m4.
59392         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59393         file exponentl.m4.
59394         * m4/exponentf.m4: New file.
59395         * m4/exponentd.m4: New file.
59396         * m4/exponentl.m4: New file.
59397         * modules/isnanf: Use new file m4/exponentf.m4.
59398         * modules/isnand: Use new file m4/exponentd.m4.
59399         * modules/isnanl: Use new file m4/exponentl.m4.
59400
59401 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59402
59403         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59404         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59405         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59406         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59407
59408         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59409         readlink on platforms without PATH_MAX.
59410
59411 2008-07-21  Eric Blake  <ebb9@byu.net>
59412
59413         Warn, not fail, on stale version.
59414         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59415
59416         Don't allow installation with stale devel version number.
59417         * top/GNUmakefile (_is-install-target): New macro.
59418         (_curr-ver): Forbid installation with stale version number.
59419
59420 2008-07-20  Bruno Haible  <bruno@clisp.org>
59421
59422         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59423         TESTS_ENVIRONMENT.
59424         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59425
59426 2008-07-20  Bruno Haible  <bruno@clisp.org>
59427
59428         * lib/c-stack.h (c_stack_action): Add documentation.
59429         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59430
59431 2008-07-20  Bruno Haible  <bruno@clisp.org>
59432
59433         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59434         * modules/readlink (License): Likewise.
59435
59436 2008-07-17  Eric Blake  <ebb9@byu.net>
59437
59438         * modules/c-stack (Link): Fix typo.
59439
59440         Make c-stack use libsigsegv, when available.
59441         * modules/c-stack (Depends-on): Add libsigsegv.
59442         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59443         needed.
59444         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59445         (segv_handler, overflow_handler, c_stack_action)
59446         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59447         implementation when libsigsegv is available, but only when using
59448         the library is necessary.
59449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59450         comment, explaining why XSI check fails on Linux.
59451         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59452         * tests/test-c-stack2.sh: Tweak skip message.
59453         * NEWS: Document new link-time requirements.
59454
59455 2008-07-16  Eric Blake  <ebb9@byu.net>
59456
59457         c-stack: Expose false positives when not using libsigsegv.
59458         * modules/c-stack-tests (Files): Expand test.
59459         * tests/test-c-stack.c (main): Add means to conditionally trigger
59460         non-overflow SIGSEGV.
59461         * tests/test-c-stack2.sh: New file.
59462
59463 2008-07-14  Bruno Haible  <bruno@clisp.org>
59464
59465         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59466         Reported by Eric Blake.
59467
59468 2008-07-14  Sam Steingold  <sds@gnu.org>
59469             Bruno Haible  <bruno@clisp.org>
59470
59471         New module libsigsegv.
59472         * modules/libsigsegv: New file.
59473         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59474         modifications.
59475         * MODULES.html.sh (Signal handling): New section.
59476
59477 2008-07-14  Bruno Haible  <bruno@clisp.org>
59478
59479         * modules/unictype/ctype-* (Description): Add the word "function".
59480         Improves the resulting doc in MODULES.html.
59481
59482 2008-07-12  Ben Pfaff  <blp@gnu.org>
59483
59484         Add longlong module.
59485         * modules/longlong: New file.
59486
59487 2008-07-12  Bruno Haible  <bruno@clisp.org>
59488
59489         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59490         to empty.
59491
59492 2008-07-10  Ben Pfaff  <blp@gnu.org>
59493
59494         Add isnan module.
59495         * doc/posix-functions/isnan.texi: Mention new module.
59496         * lib/math.in.h: Define isnan macro if we have decided to replace
59497         it.
59498         * m4/isnan.m4: New file.
59499         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59500         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59501         also.
59502         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59503         redundancy.
59504         * m4/math_h.m4: Initialize and substitute variables for isnan
59505         module.
59506         * modules/isnan: New file.
59507         * modules/isnan-tests: New file.
59508         * modules/math: Add substitutions for new module.
59509         * tests/test-isnan.c: New file.
59510         * MODULES.html.sh: Mention new module.
59511
59512 2008-07-10  Ben Pfaff  <blp@gnu.org>
59513
59514         Add isnanf module.
59515         * lib/isnanf.m4: New file.
59516         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59517         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59518         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59519         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59520         * modules/isnanf: New file.
59521         * modules/isnanf-tests: New file.
59522         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59523         files.
59524         * tests/test-isnanf-nolibm.c: factored most of its contents into
59525         new file tests/test-isnanf.h.
59526         * tests/test-isnanf.h: New file.
59527         * tests/test-isnanf.c: New file.
59528         * MODULES.html.sh: Mention new module.
59529         * doc/glibc-functions/isnanf.texi: Mention new module.
59530
59531 2008-07-10  Ben Pfaff  <blp@gnu.org>
59532
59533         Add isnand module.
59534         * lib/isnand.h: New file.
59535         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59536         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59537         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59538         functionality also.
59539         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59540         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59541         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59542         * modules/isnand: New file.
59543         * modules/isnand-tests: New file.
59544         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59545         files.
59546         * tests/test-isnand-nolibm.c: factored most of its contents into
59547         new file tests/test-isnand.h.
59548         * tests/test-isnand.h: New file.
59549         * tests/test-isnand.c: New file.
59550         * MODULES.html.sh: Mention new module.
59551
59552 2008-07-10  Ben Pfaff  <blp@gnu.org>
59553
59554         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59555         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59556         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59557         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59558         * modules/isnanf-nolibm: Update references to renamed files.
59559         * modules/isnand-nolibm: Likewise.
59560         * modules/isnanf-nolibm-tests: Likewise.
59561         * modules/isnand-nolibm-tests: Likewise.
59562         * lib/frexp.c: Likewise.
59563         * lib/isfinite.c: Likewise.
59564         * lib/signbitd.c: Likewise.
59565         * lib/signbitf.c: Likewise.
59566         * lib/vasnprintf.c: Likewise.
59567         * tests/test-ceilf1.c: Likewise.
59568         * tests/test-ceilf2.c: Likewise.
59569         * tests/test-floorf1.c: Likewise.
59570         * tests/test-floorf2.c: Likewise.
59571         * tests/test-frexp.c: Likewise.
59572         * tests/test-round1.c: Likewise.
59573         * tests/test-round2.c: Likewise.
59574         * tests/test-roundf1.c: Likewise.
59575         * tests/test-strtod.c: Likewise.
59576         * tests/test-trunc1.c: Likewise.
59577         * tests/test-trunc2.c: Likewise.
59578         * tests/test-truncf1.c: Likewise.
59579         * tests/test-truncf2.c: Likewise.
59580         * NEWS: Mention the renamed header files.
59581
59582 2008-07-11  Jim Meyering  <meyering@redhat.com>
59583
59584         vc-list-files: make the last-resort awk code more portable
59585         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59586         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59587         does not support it.
59588
59589 2008-07-10  Eric Blake  <ebb9@byu.net>
59590
59591         Work with tar's bootstrap.
59592         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59593         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59594         an m4 comment.
59595
59596 2008-07-09  Jim Meyering  <meyering@redhat.com>
59597
59598         posix-shell.m4: fix typo that made this test malfunction
59599         * m4/posix-shell.m4: Remove capitalization in variable name.
59600
59601 2008-07-08  Bruno Haible  <bruno@clisp.org>
59602
59603         * m4/onceonly.m4: Update comments.
59604         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59605
59606 2008-07-04  Jim Meyering  <meyering@redhat.com>
59607
59608         * users.txt: Add vc-dwim.
59609         (bison, coreutils): Use the gitweb URL.
59610
59611 2008-07-03  Jim Meyering  <meyering@redhat.com>
59612
59613         * users.txt: Add libffcall.  From Sam Steingold.
59614
59615 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59616
59617         getdate.y: do not ignore TZ with relative day, month or year offset
59618         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59619         relative-date-handling, since otherwise, the latter would clobber the
59620         sole output (an updated Start value) of the tz-handling block.
59621         * tests/test-getdate.c: Tests for the fix
59622
59623 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59624
59625         Recognize 'foo_LIBRARIES += libgnu.a'.
59626         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59627         makefile snippet has already specified an installation location,
59628         also using '+='.
59629
59630 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59631
59632         getdate.y: factor out common actions
59633         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59634         Use them in place of open-coded actions.
59635
59636 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59637
59638         Add self-test for getdate module.
59639         * modules/getdate-tests: New file.
59640         * tests/test-getdate.c: New file.
59641
59642 2008-06-29  Bruno Haible  <bruno@clisp.org>
59643
59644         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59645         .gitignore.
59646         Reported by Sylvain Beucler <beuc@beuc.net>.
59647
59648 2008-06-29  Bruno Haible  <bruno@clisp.org>
59649
59650         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59651         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59652
59653 2008-06-29  Bruno Haible  <bruno@clisp.org>
59654
59655         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59656         EXTRA_DIST.
59657         Reported by Sylvain Beucler <beuc@beuc.net>.
59658
59659 2008-06-26  Jim Meyering  <meyering@redhat.com>
59660
59661         make several modules depend on the "open" module
59662         This provides slightly increased consistency when opening-for-write
59663         the name of a non-directory spelled with a trailing slash.
59664         * modules/chdir-safer: Likewise.
59665         * modules/chown: Likewise.
59666         * modules/clean-temp: Likewise.
59667         * modules/copy-file: Likewise.
59668         * modules/fchdir: Likewise.
59669         * modules/fcntl-safer: Likewise.
59670         * modules/pipe: Likewise.
59671         * modules/utime: Likewise.
59672         Prompted by Eric Blake and Bruno Haible.
59673
59674 2008-06-24  Andreas Schwab  <schwab@suse.de>
59675
59676         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59677         literals can be used as initializers for global variables.
59678
59679 2008-06-23  Eric Blake  <ebb9@byu.net>
59680
59681         Make gnulib-cache.m4 easier to diff.
59682         * gnulib-tool (func_import): Allow newlines when reading cached
59683         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59684
59685 2008-06-23  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59688         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59689         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59690         m4/signalblocking.m4.
59691         (gl_PREREQ_SIGACTION): Don't invoke it.
59692         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59693         gl_PREREQ_SIG_HANDLER_H.
59694         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59695         Don't check for sigaction here.
59696
59697 2008-06-23  Bruno Haible  <bruno@clisp.org>
59698
59699         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59700         (install_handlers): Don't set the SA_RESETHAND flag.
59701
59702 2008-06-23  Bruno Haible  <bruno@clisp.org>
59703
59704         * m4/sigaction.m4: Comment fixes.
59705         * lib/signal.in.h: Likewise.
59706
59707 2008-06-23  Eric Blake  <ebb9@byu.net>
59708
59709         Fix typo.
59710         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59711
59712         Avoid SA_ namespace.
59713         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59714         Reported by Ralf Wildenhues.
59715
59716         Avoid test failure due to SA_RESTORER.
59717         * tests/test-sigaction.c (SA_MASK): New macro.
59718         (main): Avoid failing due to extension flags being set.
59719         Reported by Jim Meyering.
59720
59721         Revert use of sig-handler.h in sigprocmask.c.
59722         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59723         it requires the existence of struct sigaction.
59724         * lib/sigprocmask.c (handler_t): Restore typedef.
59725         (rpl_signal, old_handlers): Use local type.
59726
59727 2008-06-22  Bruno Haible  <bruno@clisp.org>
59728
59729         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59730         conditionally.
59731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59732
59733 2008-06-22  Bruno Haible  <bruno@clisp.org>
59734
59735         * doc/posix-functions/siginterrupt.texi: Move note.
59736
59737         * lib/signal.in.h (SA_RESTART): New macro.
59738         * lib/sigaction.c: Update comment.
59739
59740         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59741
59742         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59743         (gl_PREREQ_SIGPROCMASK): Invoke it.
59744         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59745
59746         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59747
59748         * lib/sigprocmask.c: Update a comment.
59749
59750 2008-06-21  Eric Blake  <ebb9@byu.net>
59751
59752         Use sigaction module rather than signal().
59753         * modules/c-stack (Depends-on): Add sigaction.
59754         * modules/fatal-signal (Depends-on): Likewise.
59755         * modules/nanosleep (Depends-on): Likewise.
59756         * modules/sigprocmask (Files): Add sig-handler.h.
59757         * modules/sigaction (Files): Likewise.
59758         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59759         Eggert.
59760         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59761         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59762         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59763         (init_fatal_signals): Likewise.
59764         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59765         (siginterrupt): Delete fallback.
59766         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59767         instead.
59768         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59769         siginterrupt.
59770
59771         New module sigaction, for mingw.
59772         * modules/sigaction: New module...
59773         * modules/sigaction-tests: ...and its test.
59774         * m4/sigaction.m4: New file.
59775         * lib/sigaction.c: Likewise.
59776         * tests/test-sigaction.c: Likewise.
59777         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59778         * modules/signal (Makefile.am): Likewise.
59779         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59780         needed.
59781         * doc/posix-headers/signal.texi (signal.h): Mention provided
59782         types.
59783         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59784         that sigaction is preferable.
59785         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59786         module.
59787         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59788         sigaction.
59789
59790         Improve robustness of sigprocmask by overriding signal.
59791         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59792         is in use.
59793         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59794         (SIGKILL, SIGSTOP): Provide fallbacks.
59795         (rpl_signal): Implement.
59796         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59797         signal can be called inside handlers.
59798
59799         Fix nanosleep module on mingw.
59800         * modules/nanosleep (Depends-on): Add sys_select.
59801         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59802
59803         Fix licensing of sigprocmask.
59804         * modules/raise (License): Relicense as LGPL.
59805
59806 2008-06-21  Bruno Haible  <bruno@clisp.org>
59807
59808         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59809         result if it contains question marks.
59810         Reported by Michael Geng <linux@michaelgeng.de>.
59811
59812 2008-06-19  Bruno Haible  <bruno@clisp.org>
59813
59814         Fix CVS-ism.
59815         * doc/gnulib.texi: Include updated-stamp.texi.
59816         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59817         (updated-stamp.texi): New rule.
59818         (gnulib.info): Depend on it.
59819         * doc/.gitignore: Add updated-stamp.texi.
59820         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59821
59822 2008-06-19  Bruno Haible  <bruno@clisp.org>
59823
59824         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59825         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59826
59827 2008-06-19  Eric Blake  <ebb9@byu.net>
59828
59829         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59830         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59831         Reported by Stepan Kasal.
59832
59833 2008-06-18  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59836         Reported by Eric Blake.
59837
59838 2008-06-18  Eric Blake  <ebb9@byu.net>
59839
59840         Work around cygwin 1.5.25 strsignal bug.
59841         * tests/test-strsignal.c: Allow for const char *.
59842         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59843
59844 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59845
59846         * users.txt: Update URL to article and add author/date
59847         information.
59848
59849 2008-06-17  Bruno Haible  <bruno@clisp.org>
59850
59851         New macro gl_DISABLE_THREADS.
59852         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59853         if the user did not pass --enable-threads or --disable-threads option.
59854         (gl_DISABLE_THREADS): New macro.
59855         Reported by Eric Blake <ebb9@byu.net>.
59856
59857 2008-06-17  Bruno Haible  <bruno@clisp.org>
59858
59859         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59860         when the macro ignores it.
59861         Based on a patch by Eric Blake <ebb9@byu.net>.
59862
59863 2008-06-17  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/tls (License): Change to LGPLv2+.
59866         Reported by Eric Blake.
59867
59868 2008-06-17  Eric Blake  <ebb9@byu.net>
59869
59870         Simplify c-stack prerequisites.
59871         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59872         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59873         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59874         check.
59875         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59876         <sys/resource.h>.
59877
59878         Move c-stack test into testsuite.
59879         * modules/c-stack-tests: New file.
59880         * lib/c-stack.c [DEBUG]: Move test program...
59881         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59882         fail test if sigaltstack is lacking.
59883         * tests/test-c-stack.sh: New driver file.
59884
59885 2008-06-16  Eric Blake  <ebb9@byu.net>
59886
59887         Use raise module consistently.
59888         * modules/fatal-signal (Depends-on): Add raise.
59889         * modules/sigprocmask (Depends-on): Likewise.
59890         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59891         * lib/sigprocmask.c (sigprocmask): Likewise.
59892         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59893         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59894
59895         Fix compliance bug in sigpending.
59896         * lib/sigprocmask.c (sigpending): Return pending array via
59897         parameter, not return value.
59898
59899 2008-06-14  Eric Blake  <ebb9@byu.net>
59900
59901         Improve obstack-printf test code.
59902         * tests/test-obstack-printf.c (test_function): Fix comment, and
59903         simplify usage of obstack_* in macros.  Add a test for coverage.
59904         Reported by Bruno Haible.
59905
59906 2008-06-14  Bruno Haible  <bruno@clisp.org>
59907
59908         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59909         array size as a constant, not as a const variable.
59910         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59911         AC_USE_SYSTEM_EXTENSIONS.
59912         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59913         Test whether the obstack_printf function actually exists.
59914         * modules/obstack-printf (Depends-on): Add extensions.
59915         (Include): Remove obstack.h.
59916         * modules/obstack-printf-posix (Depends-on): Add extensions.
59917         (Include): Remove obstack.h.
59918
59919 2008-06-13  Eric Blake  <ebb9@byu.net>
59920
59921         Add obstack-printf and obstack-printf-posix modules.
59922         * modules/obstack-printf: New file.
59923         * modules/obstack-printf-posix: Likewise.
59924         * MODULES.html.sh (Misc): Mention them.
59925         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59926         Likewise.
59927         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59928         Likewise.
59929         * modules/stdio (Makefile.am): Accomodate new modules.
59930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59931         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59932         Declare.
59933         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59934         functions.
59935         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59936         (gl_REPLACE_OBSTACK_PRINTF): New macros
59937         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59938         * tests/test-obstack-printf.c: New file.
59939         * modules/obstack-printf-tests: Likewise.
59940         * modules/obstack-printf-posix-tests: Likewise.
59941
59942 2008-06-11  Bruno Haible  <bruno@clisp.org>
59943
59944         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59945         * lib/open.c: Include errno.h.
59946         (open): Fail when attempting to write to a file that has a trailing
59947         slash.
59948         * tests/test-open.c (main): Test against trailing slash bug.
59949         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59950
59951 2008-06-10  Bruno Haible  <bruno@clisp.org>
59952
59953         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59954         for $? to work inside the trap command, with various /bin/sh-s.
59955         * tests/test-vc-list-files-cvs.sh: Likewise.
59956
59957 2008-06-10  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/acl-internal.h: Don't include gettext.h here.
59960         * lib/set-mode-acl.c: Include gettext.h here.
59961         * lib/copy-acl.c: Likewise.
59962
59963 2008-06-10  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59966         * lib/wait-process.c (wait_subprocess): Likewise.
59967         * lib/execute.h (execute): Add termsigp argument.
59968         * lib/execute.c (execute): Likewise.
59969         * lib/csharpcomp.c (compile_csharp_using_pnet,
59970         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59971         * lib/csharpexec.c (execute_csharp_using_pnet,
59972         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59973         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59974         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59975         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59976         is_jikes_present): Update.
59977         * lib/javaexec.c (execute_java_class): Update.
59978         * lib/javaversion.c (execute_and_read_line): Update.
59979         * NEWS: Document the changes.
59980         Reported by Eric Blake.
59981
59982 2008-06-10  Eric Blake  <ebb9@byu.net>
59983
59984         Add missing include.
59985         * tests/test-strstr.c (includes): Add <signal.h>.
59986         * tests/test-strcasestr.c (includes): Likewise.
59987         * tests/test-memmem.c (includes): Likewise.
59988
59989 2008-06-10  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/wait-process.c (wait_subprocess): Add an assertion.
59992
59993 2008-06-10  Bruno Haible  <bruno@clisp.org>
59994
59995         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59996
59997 2008-06-10  Bruno Haible  <bruno@clisp.org>
59998
59999         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
60000         using alarm().
60001         * tests/test-strcasestr.c (main): Likewise.
60002         * tests/test-strstr.c (main): Likewise.
60003
60004 2008-06-09  Bruno Haible  <bruno@clisp.org>
60005
60006         Work around the Solaris 10 ACE ACLs ABI change.
60007         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
60008         declare if ACL_NO_TRIVIAL is present.
60009         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
60010         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
60011         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
60012         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
60013         define if ACL_NO_TRIVIAL is present.
60014         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
60015         and use the current ABI.
60016         (file_has_acl): Use same #if condition as elsewhere.
60017         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
60018         in use, and use the current ABI.
60019         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
60020         Reported by Jim Meyering.
60021
60022 2008-06-09  Eric Blake  <ebb9@byu.net>
60023
60024         Work around environments that (stupidly) ignore SIGALRM.
60025         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
60026         before using alarm().
60027         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60028         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60029         Reported by Ian Beckwith <ianb@erislabs.net>.
60030
60031         Produce autobuild blurb earlier in log.
60032         * modules/autobuild (configure.ac-early): Move AB_INIT here.
60033
60034 2008-06-09  Jim Meyering  <meyering@redhat.com>
60035         and Ondřej Vašík  <ovasik@redhat.com>
60036
60037         utimens.c: correct kernel bug work-around
60038         Ondřej Vašík found that the invalid return value of 280 indicates
60039         failure, not success, and the kernel bug we're trying to work
60040         around affects not just the utimensat call, but also the fallback
60041         futimens call.
60042         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
60043         not success.
60044         [HAVE_FUTIMENS]: Use the same work-around, here.
60045
60046 2008-06-09  Jim Meyering  <meyering@redhat.com>
60047
60048         add more guards around definition of ACE_-related code
60049         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
60050         ALLOW and ACE_OWNER are also defined.
60051
60052 2008-06-08  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/acl-internal.h: Add me as co-author.
60055         * lib/file-has-acl.c: Likewise.
60056         * lib/set-mode-acl.c: Likewise.
60057         * lib/copy-acl.c: Likewise.
60058
60059 2008-06-08  Bruno Haible  <bruno@clisp.org>
60060
60061         Add support for AIX ACLs.
60062         * lib/acl-internal.h (acl_nontrivial): New declaration.
60063         * lib/file-has-acl.c (acl_nontrivial): New function.
60064         (file_has_acl): Add implementation using AIX 4 ACL API.
60065         * lib/set-mode-acl.c (qset_acl): Likewise.
60066         * lib/copy-acl.c (qcopy_acl): Likewise.
60067
60068 2008-06-08  Bruno Haible  <bruno@clisp.org>
60069
60070         Add support for HP-UX ACLs.
60071         * lib/acl-internal.h (acl_nontrivial): New declaration.
60072         * lib/file-has-acl.c (acl_nontrivial): New function.
60073         (file_has_acl): Add implementation using HP-UX 11 ACL API.
60074         * lib/set-mode-acl.c (qset_acl): Likewise.
60075         * lib/copy-acl.c (qcopy_acl): Likewise.
60076
60077 2008-06-08  Bruno Haible  <bruno@clisp.org>
60078
60079         Add support for Cygwin ACLs.
60080         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
60081         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
60082         the chmod_or_fchmod call.
60083         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
60084
60085 2008-06-08  Bruno Haible  <bruno@clisp.org>
60086
60087         Fix bug with setuid modes in Solaris 10+ code.
60088         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
60089         succeeded, when the mode contains some special bits.
60090
60091 2008-06-08  Bruno Haible  <bruno@clisp.org>
60092
60093         Add support for Solaris 7..10 ACLs.
60094         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
60095         declarations.
60096         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
60097         functions.
60098         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
60099         * lib/set-mode-acl.c (qset_acl): Likewise.
60100         * lib/copy-acl.c (qcopy_acl): Likewise.
60101
60102 2008-06-08  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
60105         declaration.
60106         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
60107         (acl_access_nontrivial): Remove MacOS X case.
60108         (file_has_acl): Use acl_extended_nontrivial.
60109         * lib/copy-acl.c (qcopy_acl): Likewise.
60110
60111 2008-06-08  Bruno Haible  <bruno@clisp.org>
60112
60113         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
60114
60115 2008-06-08  Jim Meyering  <meyering@redhat.com>
60116
60117         * modules/acl (Maintainer): Add Bruno Haible.
60118
60119 2008-06-07  Bruno Haible  <bruno@clisp.org>
60120
60121         Improve support for Tru64 ACLs.
60122         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
60123         ACL on OSF/1.
60124
60125 2008-06-07  Bruno Haible  <bruno@clisp.org>
60126
60127         Add support for MacOS X ACLs.
60128         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
60129         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
60130         * lib/set-mode-acl.c (qset_acl): Likewise.
60131         * lib/copy-acl.c (qcopy_acl): Likewise.
60132
60133 2008-06-07  Bruno Haible  <bruno@clisp.org>
60134
60135         Fix memory leak introduced on 2008-05-22.
60136         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
60137         use.
60138
60139 2008-06-07  Bruno Haible  <bruno@clisp.org>
60140
60141         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
60142         to construct an empty ACL.
60143
60144 2008-06-07  Bruno Haible  <bruno@clisp.org>
60145
60146         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60147         precisely.
60148         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60149
60150 2008-06-07  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60153         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60154
60155 2008-06-07  Bruno Haible  <bruno@clisp.org>
60156
60157         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60158         regardless of POSIX.
60159         * doc/posix-functions/_longjmp.texi: Likewise.
60160         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60161         SystemV platform in this case.
60162
60163 2008-06-06  Eric Blake  <ebb9@byu.net>
60164
60165         Document abort() bugs.
60166         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60167
60168         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60169         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60170         sigsetjmp.
60171         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60172         siglongjmp, but only as a macro.
60173         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60174         is obsolete.
60175         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60176
60177         Tweak documentation to cover cygwin argz bugs.
60178         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60179         argz bug fix; no code change needed since no cygwin releases
60180         occurred between the last fix and the bug being tested.
60181         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60182         module and recently fixed cygwin bugs.
60183         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60184         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60185         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60186         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60187         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60188         Likewise.
60189         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60190         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60191         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60192         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60193         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60194         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60195         Likewise.
60196
60197         Avoid gcc warning on cygwin.
60198         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60199         !ACL_NO_TRIVIAL]: Avoid unused variable.
60200
60201 2008-06-05  Eric Blake  <ebb9@byu.net>
60202
60203         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60204         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60205         git-version-gen fails to come up with a version.
60206         Reported by Simon Josefsson.
60207
60208 2008-06-05  Jim Meyering  <meyering@redhat.com>
60209             Paul Eggert  <eggert@cs.ucla.edu>
60210
60211         utimens.c: work around a probable Linux kernel bug
60212         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60213         appears to be a kernel bug that causes utimensat to return 280
60214         instead of 0, indicating success.
60215
60216 2008-06-04  Bruno Haible  <bruno@clisp.org>
60217
60218         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60219         2008-06-01 commit.
60220
60221 2008-06-04  Bruno Haible  <bruno@clisp.org>
60222
60223         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60224         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60225         (file_has_acl): Use it. Save errno afterwards.
60226         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60227
60228 2008-06-03  Bruno Haible  <bruno@clisp.org>
60229
60230         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60231         draft code. Simplify #ifs.
60232         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60233         Put Solaris code after POSIX-draft code. Fix comments regarding
60234         Solaris 10, HP-UX. Mention Cygwin.
60235         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60236
60237 2008-06-03  Eric Blake  <ebb9@byu.net>
60238
60239         Provide fallback for older kernels.
60240         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60241         Provide runtime fallback if kernel lacks support.
60242         Reported by Mike Frysinger.
60243
60244 2008-06-02  Bruno Haible  <bruno@clisp.org>
60245
60246         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60247         it exists.
60248
60249 2008-06-02  Bruno Haible  <bruno@clisp.org>
60250
60251         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60252         * lib/copy-acl.c (qcopy_acl): Update comment.
60253
60254 2008-06-02  Bruno Haible  <bruno@clisp.org>
60255
60256         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60257         like ACL APIs.
60258
60259 2008-06-02  Bruno Haible  <bruno@clisp.org>
60260
60261         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60262         * tests/test-set-mode-acl.sh: Likewise.
60263         * tests/test-copy-acl.sh: Likewise.
60264         * tests/test-copy-file.sh: Likewise.
60265
60266 2008-06-02  Bruno Haible  <bruno@clisp.org>
60267
60268         * tests/test-file-has-acl.sh: Remove unused code.
60269
60270 2008-06-01  Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60273         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60274         messages.
60275         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60276
60277 2008-06-01  Bruno Haible  <bruno@clisp.org>
60278
60279         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60280         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60281         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60282         APIs.
60283         * modules/acl-tests (configure.ac): Remove tests now contained in
60284         m4/acl.m4.
60285
60286 2008-06-02  Jim Meyering  <meyering@redhat.com>
60287
60288         announce-gen: use a better key-server host name
60289         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60290         it may be more consistently reliable.  Suggested by Werner Koch
60291         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60292
60293 2008-06-01  Bruno Haible  <bruno@clisp.org>
60294
60295         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60296         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60297
60298 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60299
60300         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60301
60302 2008-06-01  Bruno Haible  <bruno@clisp.org>
60303
60304         New ACL tests.
60305         * tests/test-file-has-acl.sh: New file.
60306         * tests/test-file-has-acl.c: New file.
60307         * tests/test-set-mode-acl.sh: New file.
60308         * tests/test-set-mode-acl.c: New file.
60309         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60310         * tests/test-copy-acl.c: New file.
60311         * modules/acl-tests: New file, based on modules/copy-file-tests.
60312         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60313         (Depends-on): Add acl-tests.
60314         (configure.ac): Remove checks.
60315         (Makefile.am): Don't create test-sameacls program here any more.
60316
60317 2008-06-01  Bruno Haible  <bruno@clisp.org>
60318
60319         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60320         * tests/test-sameacls.c: Include progname.h.
60321         (main): Invoke set_program_name. Portability fixes for MacOS X,
60322         Solaris, HP-UX.
60323
60324 2008-06-01  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60327         function.
60328         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60329
60330 2008-06-01  Bruno Haible  <bruno@clisp.org>
60331
60332         * modules/rpmatch (Depends-on): Add strdup.
60333
60334 2008-06-01  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/pipe.c: Include unistd-safer.h.
60337         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60338         * modules/pipe (Depends-on): Add unistd-safer.
60339
60340 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60341
60342         * modules/autobuild (configure.ac): Call AB_INIT.
60343
60344 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60345
60346         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60347         Suggested by Bruno Haible <bruno@clisp.org>.
60348
60349 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60350
60351         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60352         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60353         <bruno@clisp.org>.
60354
60355 2008-05-29  Eric Blake  <ebb9@byu.net>
60356
60357         Prefer new POSIX 200x interfaces over futimesat.
60358         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60359         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60360         when available.
60361         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60362
60363 2008-05-28  Bruno Haible  <bruno@clisp.org>
60364
60365         * modules/stpcpy (License): Change to LGPLv2+.
60366         Requested by David Lutterkort <dlutter@redhat.com>.
60367
60368 2008-05-27  Bruno Haible  <bruno@clisp.org>
60369
60370         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60371         current mingw.
60372         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60373
60374 2008-05-27  Bruno Haible  <bruno@clisp.org>
60375
60376         * modules/iconv_open (Link): New section, from module 'iconv'.
60377         * modules/striconv (Link): Likewise.
60378         * modules/striconveh (Link): Likewise.
60379         * modules/xstriconv (Link): Likewise.
60380         * modules/unicodeio (Link): Likewise.
60381         * modules/propername (Link): Likewise.
60382         Reported by Jim Meyering.
60383
60384 2008-05-26  Jim Meyering  <meyering@redhat.com>
60385
60386         sha256: do not artificially restrict buffer length to be < 2^32
60387         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60388         uint32_t to size_t.
60389         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60390         to match.
60391
60392         avoid unaligned access errors, e.g., on sparc
60393         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60394         direct access through a possibly-unaligned uint64* pointer.
60395         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60396         direct access through a possibly-unaligned uint32* pointer.
60397         Prompted by this patch from Tom "spot" Callaway:
60398         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60399
60400         sha512.c: fix typo in comment
60401         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60402
60403 2008-05-25  Bruno Haible  <bruno@clisp.org>
60404
60405         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60406         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60407         (Makefile.am): Update lib_SOURCES.
60408
60409 2008-05-25  Bruno Haible  <bruno@clisp.org>
60410
60411         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60412
60413 2008-05-25  Jim Meyering  <meyering@redhat.com>
60414
60415         useless-if-before-free: freed expr may have white-space differences
60416         * build-aux/useless-if-before-free: Recognize cases in which the
60417         freed expression differs from the tested one in embedded white
60418         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60419         $1 was used, so we can't make any regexp shy.  Improved tests now
60420         detect this.
60421
60422         useless-if-before-free: accept white space in the expression.
60423         * build-aux/useless-if-before-free: For now, any white space
60424         in the expression must be identical in the free argument.
60425
60426         useless-if-before-free: efficiency tweak
60427         * build-aux/useless-if-before-free: Make the expression-matching
60428         regexp "shy".
60429         Make the *outer* regexp shy, not the expr-matching one.
60430
60431         update code-in-comment to accept cast of free arg
60432         * build-aux/useless-if-before-free: Update regexp.
60433
60434 2008-05-25  Bruno Haible  <bruno@clisp.org>
60435
60436         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60437         * modules/copy-file-tests (Files, Makefile.am): Update.
60438         * tests/test-copy-file.c (func_test_copy): Update.
60439
60440 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60441
60442         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60443
60444 2008-05-23  Bruno Haible  <bruno@clisp.org>
60445
60446         Improve support for ACLs on OSF/1.
60447         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60448         Remove fallback for unknown flavors of ACLs.
60449
60450 2008-05-22  Bruno Haible  <bruno@clisp.org>
60451
60452         Add support for ACLs on OSF/1.
60453         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60454         replacements.
60455         (acl_free_text): New macro fallback.
60456         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60457         acl_free.
60458         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60459         acl_free_text function. Require AC_C_INLINE.
60460
60461 2008-05-22  Bruno Haible  <bruno@clisp.org>
60462
60463         Make copy_acl work on MacOS X 10.5.
60464         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60465         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60466         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60467         If MODE_INSIDE_ACL, don't assume that every system has the same text
60468         representation for ACLs as FreeBSD.
60469         * lib/copy-acl.c (copy_acl): Add support for platforms with
60470         !MODE_INSIDE_ACL.
60471         * lib/file-has-acl.c (file_has_acl): Likewise.
60472         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60473         FreeBSD, MacOS X, or IRIX, respectively.
60474
60475 2008-05-22  Bruno Haible  <bruno@clisp.org>
60476
60477         * lib/acl.h: Don't include <sys/acl.h>.
60478         (GETACLCNT): Move fallback to lib/acl-internal.h.
60479         * lib/acl-internal.h: Include <sys/acl.h> here.
60480         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60481
60482 2008-05-22  Bruno Haible  <bruno@clisp.org>
60483
60484         Split off copy_acl function to separate file.
60485         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60486         * lib/acl.c (copy_acl): Moved function to separate file.
60487         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60488         * modules/acl (Files): Add lib/copy-acl.c.
60489         (Makefiles.am): Augment lib_SOURCES.
60490
60491 2008-05-22  Bruno Haible  <bruno@clisp.org>
60492
60493         * modules/copy-file-tests: New file.
60494         * tests/test-copy-file.sh: New file.
60495         * tests/test-copy-file.c: New file.
60496         * tests/test-copy-file-sameacls.c: New file.
60497
60498 2008-05-22  Eric Blake  <ebb9@byu.net>
60499
60500         Avoid gcc warning.
60501         * tests/test-memcmp.c (main): Pass NULL indirectly.
60502
60503 2008-05-21  Bruno Haible  <bruno@clisp.org>
60504
60505         Add reference doc about ACLs.
60506         * doc/acl-resources.txt: New file.
60507         * doc/acl-cygwin.txt: New file.
60508
60509 2008-05-21  Bruno Haible  <bruno@clisp.org>
60510
60511         Avoid one more warning from gcc.
60512         * lib/vasnprintf.c (IF_LINT): Update comments.
60513         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60514
60515 2008-05-21  Jim Meyering  <meyering@redhat.com>
60516
60517         avoid a warning from gcc
60518         * lib/vasnprintf.c (IF_LINT): Define.
60519         (scale10_round_decimal_long_double):
60520         Use it to avoid a "may be used uninitialized" warning.
60521         (scale10_round_decimal_double): Likewise.
60522
60523 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60524
60525         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60526         declared.
60527
60528 2008-05-20  Bruno Haible  <bruno@clisp.org>
60529
60530         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60531         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60532
60533 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60534
60535         * modules/memcmp-tests: New file.
60536         * tests/test-memcmp.c: New file.
60537
60538 2008-05-19  Bruno Haible  <bruno@clisp.org>
60539
60540         * modules/propername (Notice, configure.ac): Put quoted "..." into
60541         --keyword option.
60542         * lib/propername.h: Update comments accordingly.
60543         Reported by Eric Blake.
60544
60545 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60546
60547         * modules/getpass-gnu (Depends-on): Add fseeko.
60548
60549 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60550
60551         * modules/base64-tests: New file.
60552
60553 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60554
60555         * lib/base64.c (base64_decode_ctx): If a decode context structure
60556         was passed in use it to ignore newlines.  If a context structure
60557         was _not_ passed in, continue to treat newlines as garbage (this
60558         is the historical behavior).  Formerly base64_decode.
60559         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60560         takes a decode context structure.
60561         * lib/base64.h (base64_decode): Macro for four-argument calls.
60562         (base64_decode_alloc): Likewise.
60563         * lib/base64.c (base64_decode_ctx): If a decode context structure
60564         was passed in use it to ignore newlines.  If a context structure
60565         was _not_ passed in, continue to treat newlines as garbage (this
60566         is the historical behavior).  Formerly base64_decode.
60567         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60568         takes a decode context structure.
60569         * lib/base64.h (base64_decode): Macro for four-argument calls.
60570         (base64_decode_alloc): Likewise.
60571
60572 2008-05-19  Jim Meyering  <meyering@redhat.com>
60573
60574         avoid a warning from gcc
60575         * lib/trim.c (IF_LINT): Define.
60576         (trim2): Use it to avoid a "may be used uninitialized" warning.
60577
60578         Fix doc typo.
60579         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60580
60581 2008-05-19  Bruno Haible  <bruno@clisp.org>
60582
60583         * doc/glibc-functions/getpass.texi: Document limits of other
60584         implementations.
60585
60586 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60587             Bruno Haible <bruno@clisp.org>
60588
60589         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60590
60591 2008-05-18  Bruno Haible  <bruno@clisp.org>
60592
60593         * modules/propername: New file, from GNU gettext.
60594         * lib/propername.h: New file, from GNU gettext.
60595         * lib/propername.c: New file, from GNU gettext.
60596         * MODULES.html.sh (Internationalization functions): Add propername.
60597
60598 2008-05-16  Jim Meyering  <meyering@redhat.com>
60599             Bruno Haible  <bruno@clisp.org>
60600
60601         Avoid some warnings from "gcc -Wshadow".
60602         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60603
60604 2008-05-15  Eric Blake  <ebb9@byu.net>
60605
60606         Extend previous patch to cygwin 1.7.0.
60607         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60608         fast implementation in cygwin >= 1.7.0.
60609         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60611
60612 2008-05-15  Bruno Haible  <bruno@clisp.org>
60613
60614         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60615         implementation in glibc >= 2.9.
60616         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60617         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60618
60619 2008-05-15  Bruno Haible  <bruno@clisp.org>
60620
60621         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60622         (Unicode string functions): Add unilbrk/*.
60623         Reported by Karl Berry.
60624
60625 2008-05-15  Eric Blake  <ebb9@byu.net>
60626
60627         Fix violation of <stdbool.h> replacement in regex.
60628         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60629         * lib/regexec.c (re_search_internal): Likewise.
60630         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60631
60632 2008-05-15  Jim Meyering  <meyering@redhat.com>
60633
60634         avoid distracting test output when git or cvs is not found
60635         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60636         * tests/test-vc-list-files-git.sh: Likewise.
60637
60638 2008-05-15  Eric Blake  <ebb9@byu.net>
60639
60640         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60641         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60642         glibc version.
60643         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60644         * doc/posix-functions/strstr.texi (strstr): Likewise.
60645         * lib/str-two-way.h (MAX): Sychronize with glibc.
60646
60647 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60648
60649         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60650         opr.ctx_type.
60651         (calc_first): Initialize constraint field.
60652         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60653         Fix grammar.
60654         (duplicate_node): Merge constraint field for all node types.
60655         (calc_eclosure_iter): Look at constraint field for all node types.
60656         * lib/regex_internal.c (create_cd_newstate): Don't look at
60657         opr.ctx_type.
60658
60659 2008-05-14  Bruno Haible  <bruno@clisp.org>
60660
60661         Help GCC to do better code generation.
60662         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60663         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60664         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60665         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60666         Declare with attribute 'malloc' if supported.
60667
60668 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60669
60670         use "echo STR|wc -c" rather than unportable "expr length STR"
60671         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60672         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60673
60674 2008-05-14  Jim Meyering  <meyering@redhat.com>
60675
60676         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60677         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60678         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60679         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60680         via Collin Lasse.
60681
60682 2008-05-14  Eric Blake  <ebb9@byu.net>
60683
60684         Avoid quadratic growth in gl_LIBSOURCES.
60685         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60686         Suggested by Bruno Haible.
60687
60688         Test xmemdup0.
60689         * modules/xmemdup0-tests: New file.
60690         * tests/test-xmemdup0.c: Likewise.
60691
60692 2008-05-13  Eric Blake  <ebb9@byu.net>
60693
60694         Split xmemdup0 into its own module.
60695         * modules/xmemdup0: New file.
60696         * lib/xmemdup0.h: Likewise.
60697         * lib/xmemdup0.c: Likewise.
60698         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60699         * lib/xalloc.h (xmemdup0): Remove.
60700         * lib/xmalloc.c (xmemdup0): Likewise.
60701
60702 2008-05-13  Eric Blake  <ebb9@byu.net>
60703             Bruno Haible  <bruno@clisp.org>
60704
60705         Reduce number of forks required during autoconf.
60706         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60707         and gl_LIBSOURCES_DIR.
60708         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60709         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60710         m4_syscmd per file.
60711         <m4_foreach_w>: Move...
60712         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60713
60714 2008-05-13  Eric Blake  <ebb9@byu.net>
60715
60716         * gnulib-tool: Fix various comment typos.
60717
60718 2008-05-12  Bruno Haible  <bruno@clisp.org>
60719
60720         Tailor the linebreaking algorithm.
60721         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60722
60723 2008-05-12  Bruno Haible  <bruno@clisp.org>
60724
60725         Update to Unicode 5.0.0.
60726         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60727         LBP_JV, LBP_JT. Redistribute values.
60728         (unilbrk_table): Change size.
60729         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60730         Unicode TR#14 rev. 22.
60731         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60732         LBP_JV, LBP_JT. Redistribute values.
60733         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60734         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60735         Update.
60736         * lib/unilbrk/lbrkprop1.h: Regenerated.
60737         * lib/unilbrk/lbrkprop2.h: Regenerated.
60738         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60739         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60740         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60741         Likewise.
60742         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60743         Likewise.
60744         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60745         result.
60746         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60747         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60748         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60749         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60750         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60751         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60752
60753 2008-05-11  Bruno Haible  <bruno@clisp.org>
60754
60755         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60756
60757 2008-05-11  Bruno Haible  <bruno@clisp.org>
60758
60759         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60760         * modules/unilbrk/gen-lbrk: New file.
60761
60762 2008-05-11  Bruno Haible  <bruno@clisp.org>
60763
60764         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60765         * m4/sha512.m4 (gl_SHA512): Likewise.
60766
60767 2008-05-11  Jim Meyering  <meyering@redhat.com>
60768
60769         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60770         * modules/crypto/sha256: New file.
60771         * modules/crypto/sha512: Likewise.
60772         * lib/sha256.c: Likewise.
60773         * lib/sha256.h: Likewise.
60774         * lib/sha512.c: Likewise.
60775         * lib/sha512.h: Likewise.
60776         * lib/u64.h: Likewise.
60777         * m4/sha256.m4: Likewise.
60778         * m4/sha512.m4: Likewise.
60779         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60780
60781 2008-05-10  Bruno Haible  <bruno@clisp.org>
60782
60783         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60784         (Input/Output <stdio.h>): Add xprintf.
60785         (Signal handling <signal.h>): Add strsignal.
60786         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60787         (Core language properties): Add func.
60788         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60789         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60790         strings.
60791         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60792         (Input/output): New section.
60793         (File system functions): Add openat-die, stat-macros.
60794         (Networking functions): Add sockets.
60795         (Unicode string functions): Add unictype/*.
60796         (Support for building libraries and executables): Add gperf.
60797         (Support for building documentation): Add agpl-3.0.
60798         (Misc): Add nocrash.
60799
60800 2008-05-10  Bruno Haible  <bruno@clisp.org>
60801
60802         * modules/unictype/gen-ctype: New file.
60803
60804 2008-05-10  Jim Meyering  <meyering@redhat.com>
60805
60806         Make chdir-safer.c more efficient on a system with no symlinks.
60807         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60808         also if ELOOP is zero.  Suggested by Bruno Haible.
60809
60810         Make chdir-safer.c slightly safer.
60811         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60812         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60813
60814         Avoid compile failure on systems without ELOOP (like mingw).
60815         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60816         Reported by Bruno Haible.
60817
60818 2008-05-10  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60821         (is_utf8_encoding): Use a case-insensitive comparison.
60822         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60823         streq.
60824
60825 2008-05-10  Bruno Haible  <bruno@clisp.org>
60826
60827         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60828         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60829         * lib/unilbrk/ulc-common.h (iconv_string_length,
60830         iconv_string_keeping_offsets): Remove declarations.
60831         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60832         Don't include <iconv.h>, streq.h, xsize.h.
60833         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60834         conversion.
60835         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60836         <iconv.h>, streq.h, xsize.h.
60837         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60838         conversion.
60839         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60840         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60841         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60842         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60843
60844 2008-05-10  Bruno Haible  <bruno@clisp.org>
60845
60846         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60847         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60848
60849         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60850         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60851
60852         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60853         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60854
60855         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60856         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60857
60858         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60859         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60860
60861         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60862         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60863
60864         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60865         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60866
60867         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60868         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60869
60870 2008-05-10  Bruno Haible  <bruno@clisp.org>
60871
60872         Split up 'linebreak' module.
60873         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60874         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60875         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60876         modifications.
60877         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60878         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60879         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60880         lib/linebreak.c.
60881         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60882         lib/linebreak.c.
60883         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60884         lib/linebreak.c.
60885         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60886         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60887         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60888         lib/linebreak.c.
60889         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60890         lib/linebreak.c.
60891         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60892         lib/linebreak.c.
60893         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60894         lib/linebreak.c.
60895         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60896         lib/linebreak.c.
60897         * modules/unilbrk/base: New file.
60898         * modules/unilbrk/tables: New file.
60899         * modules/unilbrk/u8-possible-linebreaks: New file.
60900         * modules/unilbrk/u16-possible-linebreaks: New file.
60901         * modules/unilbrk/u32-possible-linebreaks: New file.
60902         * modules/unilbrk/ulc-common: New file.
60903         * modules/unilbrk/ulc-possible-linebreaks: New file.
60904         * modules/unilbrk/u8-width-linebreaks: New file.
60905         * modules/unilbrk/u16-width-linebreaks: New file.
60906         * modules/unilbrk/u32-width-linebreaks: New file.
60907         * modules/unilbrk/ulc-width-linebreaks: New file.
60908         * lib/linebreak.h: Remove file.
60909         * lib/linebreak.c: Remove file.
60910         * m4/linebreak.m4: Remove file.
60911         * modules/linebreak: Remove file.
60912         * NEWS: Mention the changes.
60913
60914 2008-05-09  Eric Blake  <ebb9@byu.net>
60915
60916         Add xmemdup0.
60917         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60918         implementation.
60919         * lib/xmalloc.c (xmemdup0): New C implementation.
60920
60921 2008-05-08  Bruno Haible  <bruno@clisp.org>
60922
60923         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60924
60925 2008-05-07  Eric Blake  <ebb9@byu.net>
60926
60927         Support cross-compilation of <wctype.h>.
60928         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60929         AC_CACHE_CHECK.
60930
60931 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60932
60933         * build-aux/vc-list-files: Add support for bzr.
60934
60935 2008-05-03  Jim Meyering  <meyering@redhat.com>
60936
60937         avoid failed assertion with tight malloc
60938         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60939
60940 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60941
60942         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60943         are needed from arpa/inet.h.
60944         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60945         Reported by Bruno Haible.
60946
60947 2008-05-02  Jim Meyering  <meyering@redhat.com>
60948
60949         avoid compilation error on FreeBSD 6
60950         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60951
60952 2008-05-01  Jim Meyering  <meyering@redhat.com>
60953
60954         useless-if-before-free: correct --help's exit status description
60955         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60956         for one or more matches, etc.  Reported by Bruno Haible.
60957
60958         vc-list-files: make the stand-alone gnulib test work
60959         * modules/vc-list-files-tests (configure.ac):
60960         Define and AC_SUBST abs_aux_dir.
60961         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60962         $(abs_top_srcdir) to each script and having each of them
60963         duplicate the work of setting PATH, set PATH here, using
60964         the new variable, abs_aux_dir instead.
60965         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60966         * tests/test-vc-list-files-git.sh: Likewise.
60967         Reported by Bruno Haible.
60968
60969 2008-05-01  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60972         reallocation. Rename 'done' to 'found_delimiter'.
60973
60974 2008-05-01  Jim Meyering  <meyering@redhat.com>
60975
60976         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60977         * build-aux/vc-list-files: Use `...`, not $(...).
60978
60979 2008-04-30  Jim Meyering  <meyering@redhat.com>
60980
60981         add tests for vc-list-files
60982         * modules/vc-list-files-tests: New module.
60983         * tests/test-vc-list-files-cvs.sh: New file.
60984         * tests/test-vc-list-files-git.sh: New file.
60985
60986         avoid a warning from gcc
60987         * lib/getndelim2.c (IF_LINT): Define.
60988         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60989
60990         vc-list-files: work properly with build-aux/cvsu, too
60991         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60992         to all cvs-based clauses.
60993
60994         vc-list-files: work properly in the CVS+awk case, too
60995         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60996
60997         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60998         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60999         take more than one file argument, so .  Add quotes, just in case $dir
61000         ever contains a shell meta-character.  Prompted by Soren Hansen in
61001         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
61002
61003 2008-04-29  Eric Blake  <ebb9@byu.net>
61004
61005         Optimize getndelim2 to use block operations when possible.
61006         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
61007         freadseek, and memchr2.
61008         * lib/getndelim2.c (getndelim2): Use them for block reads.
61009
61010 2008-04-29  Bruno Haible  <bruno@clisp.org>
61011
61012         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
61013         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61014         * modules/inet_ntop (Depends-on): Add extensions.
61015         * modules/inet_pton (Depends-on): Likewise.
61016         Reported by Simon Josefsson.
61017
61018 2008-04-29  Jim Meyering  <meyering@redhat.com>
61019
61020         When the is more than one match in a block, match all of them.
61021         * build-aux/useless-if-before-free: Iterate through each block
61022         until there are no more matches.
61023
61024         Fix broken useless-if-before-free script.
61025         * build-aux/useless-if-before-free: Fix typo: missing "?" after
61026         the expression to match cast of argument to free-like function.
61027
61028 2008-04-29  Eric Blake  <ebb9@byu.net>
61029
61030         Use new header.
61031         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
61032
61033 2008-04-29  Jim Meyering  <meyering@redhat.com>
61034
61035         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
61036         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
61037         by gnulib to exist and to declare e.g., inet_ntop.
61038         Don't include "inet_ntop.h", now removed.
61039
61040         * m4/arpa_inet_h.m4: Remove trailing blanks.
61041
61042 2008-04-29  Eric Blake  <ebb9@byu.net>
61043
61044         Silence valgrind on safe reads beyond potential array bounds.
61045         * lib/rawmemchr.valgrind: New file.
61046         * lib/strchrnul.valgrind: Likewise.
61047         * modules/rawmemchr (Files): Distribute new file.
61048         * modules/strchrnul (Files): Likewise.
61049         Suggested by Bruno Haible.
61050
61051 2008-04-29  Bruno Haible  <bruno@clisp.org>
61052
61053         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
61054         (inet_ntop, inet_pton): Change portability warning's wording.
61055         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
61056         Invoke gl_CHECK_NEXT_HEADERS.
61057         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
61058         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
61059         set ARPA_INET_H.
61060         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61061         * modules/arpa_inet (Description): No longer only for systems that
61062         lack it.
61063         (Depends-on): Add include_next.
61064         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
61065         HAVE_ARPA_INET_H.
61066
61067 2008-04-29  Jim Meyering  <meyering@redhat.com>
61068
61069         * modules/mkdir (License): Re-license as LGPLv2+.
61070
61071 2008-04-29  Bruno Haible  <bruno@clisp.org>
61072
61073         * modules/rawmemchr (Maintainer): Set to Eric.
61074         * modules/strchrnul (Maintainer): Likewise.
61075
61076 2008-04-29  Simon Josefsson  <simon@josefsson.org>
61077
61078         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
61079         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
61080
61081         * modules/arpa_inet (arpa/inet.h): Use them.
61082
61083 2008-04-28  Eric Blake  <ebb9@byu.net>
61084
61085         Test getndelim2.
61086         * modules/getndelim2-tests: New file.
61087         * tests/test-getndelim2.c: Likewise.
61088         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
61089         stream.
61090         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
61091
61092         * MODULES.html.sh: Document new module.
61093
61094 2008-04-20  Bruno Haible  <bruno@clisp.org>
61095
61096         * lib/c-stack.c (die): Use raise.
61097         * modules/c-stack (Depends-on): Add raise.
61098
61099 2008-04-28  Bruno Haible  <bruno@clisp.org>
61100
61101         Expect rpmatch to be declared.
61102         * lib/yesno.c (rpmatch): Remove declaration.
61103
61104         Declare rpmatch.
61105         * lib/stdlib.in.h (rpmatch): New declaration.
61106         * lib/rpmatch.c: Include <stdlib.h> first.
61107         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
61108         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
61109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
61110         HAVE_RPMATCH.
61111         * modules/rpmatch (Depends-on): Add stdlib, extensions.
61112         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61113         (Include): Set to <stdlib.h>.
61114         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
61115         HAVE_RPMATCH.
61116         * NEWS: Document the change.
61117
61118 2008-04-28  Bruno Haible  <bruno@clisp.org>
61119
61120         Change rpmatch to use nl_langinfo when appropriate.
61121         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
61122         (N_): New macro.
61123         (localized_pattern): New function/macro.
61124         (try): Remove match, nomatch arguments. Copy the pattern into safe
61125         memory before caching it.
61126         (rpmatch): Use localized_pattern. Add translator comments.
61127         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
61128         Suggested by Eric Blake.
61129         * modules/rpmatch (Depends-on): Add stdbool.
61130
61131 2008-04-28  Eric Blake  <ebb9@byu.net>
61132
61133         Add rawmemchr module, matching glibc.
61134         * modules/string (Makefile.am): New indicator.
61135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
61136         * lib/string.in.h (rawmemchr): Declare when appropriate.
61137         * modules/rawmemchr: New file.
61138         * m4/rawmemchr.m4: Likewise.
61139         * lib/rawmemchr.c: Likewise.
61140         * modules/rawmemchr-tests: Likewise.
61141         * tests/test-rawmemchr.c: Likewise.
61142         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
61143         module.
61144         * modules/strchrnul (Depends-on): Add rawmemchr.
61145         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61146
61147         Whitespace cleanup.
61148         * tests/test-strchrnul.c: Reindent.
61149         * lib/strchrnul.c: Likewise.
61150
61151         Optimize and test strchrnul.
61152         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61153         * modules/strchrnul-tests: New file.
61154         * tests/test-strchrnul.c: Likewise.
61155
61156         Remove intprops dependency.
61157         * modules/memchr (Depends-on): Remove intprops.
61158         * modules/memrchr (Depends-on): Likewise.
61159         * modules/memchr2 (Depends-on): Likewise.
61160         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61161         * lib/memrchr.c (__memrchr): Likewise.
61162         * lib/memrchr2.c (memchr2): Likewise.
61163         Reported by Simon Josefsson.
61164
61165 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61166
61167         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61168         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61169
61170 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61171
61172         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61173
61174         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61175
61176         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61177
61178         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61179         declarations.
61180         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61181
61182         * m4/inet_pton.m4: Don't check for header files.
61183
61184         * m4/inet_ntop.m4: Don't check for header files.
61185
61186 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61187
61188         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61189         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61190         trigger for cygwin).
61191         Reported by Bruno Haible  <bruno@clisp.org>.
61192
61193 2008-04-28  Bruno Haible  <bruno@clisp.org>
61194
61195         * doc/posix-functions/strdup.texi: Mention mingw problem.
61196
61197 2008-04-27  Bruno Haible  <bruno@clisp.org>
61198
61199         * modules/stat-time-tests (Depends-on): Add sleep.
61200         * tests/test-stat-time.c (force_unlink): New function.
61201         (cleanup): Use it.
61202         (test_mtime): Remove the ctime related tests.
61203         (test_ctime): New function, containing the ctime related tests.
61204         (main): Call test_ctime, except on native Windows platforms.
61205
61206 2008-04-27  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/rpmatch.c (rpmatch): Add some comments.
61209         Reported by James Youngman <jay@gnu.org>.
61210
61211 2008-04-27  Bruno Haible  <bruno@clisp.org>
61212
61213         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61214         quiet NaNs.
61215
61216 2008-04-27  Bruno Haible  <bruno@clisp.org>
61217
61218         Make test-yesno.sh work on mingw.
61219         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61220         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61221         (main): Set stdin to binary mode.
61222         * modules/yesno-tests (Depends-on): Add binary-io.
61223
61224 2008-04-27  Bruno Haible  <bruno@clisp.org>
61225
61226         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61227         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61228         argument that lie outside the IEEE 854 domain.
61229         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61230         (gl_ISFINITE): Use it.
61231         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61232
61233 2008-04-27  Bruno Haible  <bruno@clisp.org>
61234
61235         Allow local renaming in config.h.
61236         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61237
61238 2008-04-27  Bruno Haible  <bruno@clisp.org>
61239
61240         * lib/memchr.c (__memchr): Change type of 'i'.
61241         * lib/memchr2.c (memchr2): Likewise.
61242
61243 2008-04-26  Eric Blake  <ebb9@byu.net>
61244         and Bruno Haible  <bruno@clisp.org>
61245
61246         Optimize and test memrchr.
61247         * modules/memrchr (Depends-on): Add intprops.
61248         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61249         * modules/memrchr-tests: New file.
61250         * tests/test-memrchr.c: New file.
61251
61252 2008-04-26  Bruno Haible  <bruno@clisp.org>
61253
61254         Add tentative support for DragonFly BSD.
61255         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61256         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61257         fp.
61258         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61259         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61260         * lib/fpurge.c (fpurge): Likewise.
61261         * lib/freadable.c (freaadable): Likewise.
61262         * lib/freadahead.c (freadahead): Likewise.
61263         * lib/freading.c (freading): Likewise.
61264         * lib/freadptr.c (freadptr): Likewise.
61265         * lib/freadseek.c (freadptrinc): Likewise.
61266         * lib/fseeko.c (fseeko): Likewise.
61267         * lib/fseterr.c (fseterr): Likewise.
61268         * lib/fwritable.c (fwritable): Likewise.
61269         * lib/fwriting.c (fwriting): Likewise.
61270
61271 2008-04-26  Bruno Haible  <bruno@clisp.org>
61272
61273         * lib/stdio-impl.h: New file.
61274         * lib/fbufmode.c: Include stdio-impl.h.
61275         (fbufmode): Use fp_, remove redundant #defines.
61276         * lib/fflush.c: Include stdio-impl.h.
61277         (clear_ungetc_buffer): Remove redundant #defines.
61278         * lib/fpurge.c: Include stdio-impl.h.
61279         (fpurge): Remove redundant #defines.
61280         * lib/freadable.c: Include stdio-impl.h.
61281         (freadable): Remove redundant #defines.
61282         * lib/freadahead.c: Include stdio-impl.h.
61283         (freadahead): Remove redundant #defines.
61284         * lib/freading.c: Include stdio-impl.h.
61285         (freading): Remove redundant #defines.
61286         * lib/freadptr.c: Include stdio-impl.h.
61287         (freadptr): Remove redundant #defines.
61288         * lib/freadseek.c: Include stdio-impl.h.
61289         (freadptrinc): Remove redundant #defines.
61290         * lib/fseeko.c: Include stdio-impl.h.
61291         (rpl_fseeko): Remove redundant #defines.
61292         * lib/fseterr.c: Include stdio-impl.h.
61293         (fseterr): Remove redundant #defines.
61294         * lib/fwritable.c: Include stdio-impl.h.
61295         (fwritable: Remove redundant #defines.
61296         * lib/fwriting.c: Include stdio-impl.h.
61297         (fwriting): Remove redundant #defines.
61298         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61299         * modules/fflush (Files): Likewise.
61300         * modules/fpurge (Files): Likewise.
61301         * modules/freadable (Files): Likewise.
61302         * modules/freadahead (Files): Likewise.
61303         * modules/freading (Files): Likewise.
61304         * modules/freadptr (Files): Likewise.
61305         * modules/freadseek (Files): Likewise.
61306         * modules/fseeko (Files): Likewise.
61307         * modules/fseterr (Files): Likewise.
61308         * modules/fwritable (Files): Likewise.
61309         * modules/fwriting (Files): Likewise.
61310
61311 2008-04-26  Bruno Haible  <bruno@clisp.org>
61312
61313         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61314         restore_seek_optimization, update_fpos_cache): New functions, extracted
61315         from rpl_fflush.
61316         (rpl_fflush): Use them.
61317         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61318         (gl_REPLACE_FFLUSH): Use it.
61319
61320 2008-04-26  Bruno Haible  <bruno@clisp.org>
61321
61322         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61323         on Solaris.
61324         * tests/test-xstrtoimax.sh: Likewise.
61325         * tests/test-xstrtoumax.sh: Likewise.
61326         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61327
61328 2008-04-26  Bruno Haible  <bruno@clisp.org>
61329
61330         * modules/memchr-tests: New file.
61331         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61332
61333 2008-04-26  Eric Blake  <ebb9@byu.net>
61334             Bruno Haible  <bruno@clisp.org>
61335
61336         * lib/memchr.c: Include intprops.h.
61337         (__memchr): Optimize parallel detection of matching bytes. Rename local
61338         variables. Add explanatory comments.
61339
61340 2008-04-26  Bruno Haible  <bruno@clisp.org>
61341
61342         Fix module 'memchr', broken since 2000-10-28.
61343         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61344
61345 2008-04-26  Bruno Haible  <bruno@clisp.org>
61346
61347         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61348         comments.
61349
61350 2008-04-25  Eric Blake  <ebb9@byu.net>
61351
61352         Use native fstatat on cygwin 1.7.0.
61353         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61354         first.
61355
61356 2008-04-23  Eric Blake  <ebb9@byu.net>
61357
61358         Improve memchr2 performance.
61359         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61360         NUL bytes.
61361         * modules/memchr2 (Depends-on): Use intprops.h.
61362
61363 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61364
61365         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61366         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61367         <blp@cs.stanford.edu>.
61368
61369 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61370
61371         * lib/arpa_inet.in.h: New file.
61372
61373         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61374         (Makefile.am): Sed in substitute header file.
61375
61376         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61377         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61378
61379         * modules/inet_ntop (configure.ac): Use
61380         gl_ARPA_INET_MODULE_INDICATOR.
61381
61382         * modules/inet_pton (configure.ac): Use
61383         gl_ARPA_INET_MODULE_INDICATOR.
61384
61385 2008-04-22  Jim Meyering  <meyering@redhat.com>
61386
61387         * modules/verify (License): Re-license as LGPLv2+.
61388
61389 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61390
61391         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61392         parameter to void* as per POSIX standard (MinGW uses char*).
61393
61394 2008-04-21  Bruno Haible  <bruno@clisp.org>
61395
61396         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61397         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61398         Define to replacements if REPLACE_ISWCNTRL is 1.
61399         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61400         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61401         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61402         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61403         what it fixes.
61404         * doc/posix-functions/iswalpha.texi: Likewise.
61405         * doc/posix-functions/iswblank.texi: Likewise.
61406         * doc/posix-functions/iswcntrl.texi: Likewise.
61407         * doc/posix-functions/iswdigit.texi: Likewise.
61408         * doc/posix-functions/iswgraph.texi: Likewise.
61409         * doc/posix-functions/iswlower.texi: Likewise.
61410         * doc/posix-functions/iswprint.texi: Likewise.
61411         * doc/posix-functions/iswpunct.texi: Likewise.
61412         * doc/posix-functions/iswspace.texi: Likewise.
61413         * doc/posix-functions/iswupper.texi: Likewise.
61414         * doc/posix-functions/iswxdigit.texi: Likewise.
61415         Reported by Alain Guibert.
61416
61417 2008-04-21  Bruno Haible  <bruno@clisp.org>
61418
61419         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61420         Patch by Alain Guibert.
61421
61422 2008-04-21  Bruno Haible  <bruno@clisp.org>
61423
61424         Fix test failures on mingw.
61425         * tests/test-xstrtol.c (print_no_progname): New function.
61426         (main): Install it in error_print_progname hook.
61427         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61428         * tests/test-xstrtoimax.sh: Likewise.
61429         * tests/test-xstrtoumax.sh: Likewise.
61430
61431 2008-04-21  Bruno Haible  <bruno@clisp.org>
61432
61433         Fix test failure on mingw.
61434         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61435
61436 2008-04-21  Bruno Haible  <bruno@clisp.org>
61437
61438         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61439         Actually assign a value.
61440
61441 2008-04-20  Bruno Haible  <bruno@clisp.org>
61442
61443         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61444         take 2.
61445         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61446         'canonicalize-lgpl' module is also used.
61447         * lib/canonicalize-lgpl.c: Undo last change.
61448         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61449
61450 2008-04-20  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61453         config.h. Provide _mkdir based fallback for mingw.
61454         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61455         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61456         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61457         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61458         rather than defining mkdir in config.h.
61459         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61460         (gl_SYS_STAT_H_DEFAULTS): New macro.
61461         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61462         HAVE_IO_H any more.
61463         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61464         HAVE_DECL_MKDIR and HAVE_IO_H.
61465
61466 2008-04-20  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/isapipe.c: Port to native Windows platforms.
61469
61470 2008-04-20  Bruno Haible  <bruno@clisp.org>
61471
61472         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61473
61474 2008-04-21  Eric Blake  <ebb9@byu.net>
61475
61476         Work around preprocessors that don't handle UINTMAX_MAX.
61477         * lib/memchr2.c (memchr2): Avoid embedded #if.
61478         Reported by Alain Guibert, fix suggested by Bruno Haible.
61479
61480 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61481
61482         * doc/posix-functions/strftime.texi (strftime): Explain better
61483         Windows incompatibility.  Suggested by Micah Cowan
61484         <micah@cowan.name>.
61485
61486 2008-04-20  Bruno Haible  <bruno@clisp.org>
61487
61488         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61489         unistr/u8-mblen.
61490
61491 2008-04-20  Bruno Haible  <bruno@clisp.org>
61492
61493         Fix test failure on platforms with non-GNU iconv.
61494         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61495         (U_TO_U8): Use it, rather than u16_to_u8.
61496         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61497         units at the end of the input string.
61498         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61499
61500 2008-04-20  Bruno Haible  <bruno@clisp.org>
61501
61502         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61503         when the resulting length is 0.
61504         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61505
61506 2008-04-20  Bruno Haible  <bruno@clisp.org>
61507
61508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61509         works.
61510         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61511
61512 2008-04-20  Bruno Haible  <bruno@clisp.org>
61513
61514         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61515         * modules/tsearch-tests (configure.ac): Test for initstate function.
61516
61517 2008-04-20  Bruno Haible  <bruno@clisp.org>
61518
61519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61520         for nlink_t if missing.
61521         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61522
61523 2008-04-19  Bruno Haible  <bruno@clisp.org>
61524
61525         Work around snprintf bug on Linux libc5.
61526         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61528         gl_SNPRINTF_SIZE1.
61529         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61530         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61531         that test failed.
61532         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61533         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61534         * modules/snprintf (Files): Add m4/printf.m4.
61535         * modules/vsnprintf (Files): Likewise.
61536         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61537         * doc/posix-functions/vsnprintf.texi: Likewise.
61538
61539 2008-04-19  Bruno Haible  <bruno@clisp.org>
61540
61541         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61542         from 0.0058 to less than 10^-7.
61543
61544 2008-04-19  Bruno Haible  <bruno@clisp.org>
61545
61546         Fix rounding when a precision is given.
61547         * lib/vasnprintf.c (is_borderline): New function.
61548         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61549         9...9x.
61550         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61551         %e, %g.
61552         * tests/test-vasprintf-posix.c (test_function): Likewise.
61553         * tests/test-snprintf-posix.h (test_function): Likewise.
61554         * tests/test-sprintf-posix.h (test_function): Likewise.
61555         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61556         * tests/test-printf-posix.h (test_function): Likewise.
61557         * tests/test-printf-posix.output: Update.
61558         Reported by John Darrington <john@darrington.wattle.id.au> via
61559         Ben Pfaff <blp@cs.stanford.edu>.
61560
61561 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61562
61563         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61564         Suggested by Bruno Haible <bruno@clisp.org>.
61565
61566 2008-04-17  Bruno Haible  <bruno@clisp.org>
61567
61568         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61569         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61570         implementation.
61571         Patch by Bruce Merry <bmerry@gmail.com>.
61572
61573 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61574
61575         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61576         doesn't work under Windows.
61577
61578 2008-04-16  Bruno Haible  <bruno@clisp.org>
61579
61580         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61581         New macros.
61582         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61583         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61584         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61585         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61586         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61587         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61588         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61589         macros.
61590         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61591         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61592         Northern Sotho, Uighur.
61593
61594 2008-04-16  Bruno Haible  <bruno@clisp.org>
61595
61596         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61597         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61598         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61599         Reported by Daniel Bergström <daniel@octocode.com>.
61600
61601 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61602             Bruno Haible  <bruno@clisp.org>
61603
61604         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61605         function.
61606         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61607         New functions, mostly extracted from gl_locale_name_default.
61608         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61609
61610 2008-04-16  Eric Blake  <ebb9@byu.net>
61611
61612         Adjust strtod detection to catch glibc 2.7 bug.
61613         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61614         Reported by John Gatewood Ham.
61615
61616 2008-04-16  Bruno Haible  <bruno@clisp.org>
61617
61618         Add tentative support for Linux libc5.
61619         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61620         * lib/fpurge.c (fpurge): Likewise.
61621         * lib/freadable.c (freadable): Likewise.
61622         * lib/freadahead.c (freadahead): Likewise.
61623         * lib/freading.c (freading): Likewise.
61624         * lib/freadptr.c (freadptr): Likewise.
61625         * lib/freadseek.c (freadptrinc): Likewise.
61626         * lib/fseeko.c (rpl_fseeko): Likewise.
61627         * lib/fseterr.c (fseterr): Likewise.
61628         * lib/fwritable.c (fwritable): Likewise.
61629         * lib/fwriting.c (fwriting): Likewise.
61630         Reported by Alain Guibert <alguibert+bts@free.fr>.
61631
61632 2008-04-15  Bruno Haible  <bruno@clisp.org>
61633
61634         * modules/mathl (configure.ac): Define module indicator.
61635
61636 2008-04-15  Bruno Haible  <bruno@clisp.org>
61637
61638         * lib/logl.c (logl): Remove unused variables.
61639
61640 2008-04-15  Bruno Haible  <bruno@clisp.org>
61641
61642         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61643         fails.
61644
61645 2008-04-15  Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/trim.c (trim2): Fix argument of isspace() macro.
61648
61649 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61650
61651         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61652         to 0.
61653         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61654
61655 2008-04-14  Bruno Haible  <bruno@clisp.org>
61656
61657         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61658         AC_LANG_PROGRAM argument.
61659         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61660         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61662         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61663         * m4/math_h.m4 (gl_MATH_H): Likewise.
61664         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61665         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61666         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61667         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61668         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61669         * m4/regex.m4 (gl_REGEX): Likewise.
61670         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61671         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61673         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61674         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61675         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61676         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61677         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61678
61679 2008-04-14  Jim Meyering  <meyering@redhat.com>
61680
61681         test-strtod: fix typos: s/abs/fabs/
61682         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61683
61684 2008-04-13  Bruno Haible  <bruno@clisp.org>
61685
61686         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61687         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61688         module is also used and while not building the reloc-wrapper.
61689
61690 2008-04-13  Bruno Haible  <bruno@clisp.org>
61691
61692         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61693
61694 2008-04-13  Bruno Haible  <bruno@clisp.org>
61695
61696         Fix AIX compilation failure introduced on 2008-04-02.
61697         * tests/test-frexp.c (exp): Undefine before redefining.
61698         * tests/test-frexpl.c (exp): Likewise.
61699
61700 2008-04-13  Bruno Haible  <bruno@clisp.org>
61701
61702         Work around a HP-UX stdio bug.
61703         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61704         * tests/test-ftello.c (main): Likewise.
61705         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61706         * doc/posix-functions/ftello.texi: Likewise.
61707
61708 2008-04-13  Bruno Haible  <bruno@clisp.org>
61709
61710         Make test-signbit pass on HP-UX/hppa.
61711         * tests/test-signbit.c (minus_zerol): New variable.
61712         (test_signbitl): Use it.
61713
61714 2008-04-13  Bruno Haible  <bruno@clisp.org>
61715
61716         Make truncl work on OSF/1 4.0.
61717         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61718         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61719         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61721         HAVE_DECL_TRUNCL.
61722         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61723         HAVE_DECL_TRUNCL.
61724         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61725
61726 2008-04-13  Bruno Haible  <bruno@clisp.org>
61727
61728         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61729
61730 2008-04-13  Bruno Haible  <bruno@clisp.org>
61731
61732         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61733         expression, so as to avoid HP-UX 11 cc compiler bug.
61734
61735 2008-04-13  Bruno Haible  <bruno@clisp.org>
61736
61737         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61738
61739 2008-04-13  Bruno Haible  <bruno@clisp.org>
61740
61741         * lib/git-merge-changelog.c: Remove empty declaration outside of
61742         functions.
61743
61744 2008-04-13  Bruno Haible  <bruno@clisp.org>
61745
61746         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61747
61748 2008-04-13  Bruno Haible  <bruno@clisp.org>
61749
61750         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61751         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61753         also if it exists but lacks definitions of the SHUT_* macros.
61754         * modules/sys_socket (Description): Update.
61755         Reported by Elbert Pol <e.pol@chello.nl>.
61756
61757 2008-04-13  Bruno Haible  <bruno@clisp.org>
61758
61759         * lib/localcharset.c (OS2): Don't redefine if already defined.
61760         Reported by Elbert Pol <e.pol@chello.nl>.
61761
61762 2008-04-13  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/binary-io.h [__EMX__]: Include <io.h>.
61765         Reported by Elbert Pol <e.pol@chello.nl>.
61766
61767 2008-04-12  Bruno Haible  <bruno@clisp.org>
61768
61769         * lib/fpucw.h: Enable the definitions also for x86_64.
61770         Needed for NetBSD/x86_64.
61771         Reported by Thomas Klausner <tk@giga.or.at>.
61772
61773 2008-04-12  Bruno Haible  <bruno@clisp.org>
61774
61775         * tests/test-strtod.c: Include isnand.h.
61776         (main): Use isnand instead of isnan.
61777         Reported by Jim Meyering.
61778
61779 2008-04-12  Bruno Haible  <bruno@clisp.org>
61780
61781         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61782         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61783
61784 2008-04-12  Jim Meyering  <meyering@redhat.com>
61785
61786         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61787
61788 2008-04-12  Bruno Haible  <bruno@clisp.org>
61789
61790         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61791         Reported by Elbert Pol <e.pol@chello.nl>.
61792
61793 2008-04-12  Eric Blake  <ebb9@byu.net>
61794
61795         Work around Solaris 10 math.h bug.
61796         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61797         (gl_MATH_H_DEFAULTS): Set up default.
61798         * modules/math (Makefile.am): Replace new indicators.
61799         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61800         * tests/test-math.c (main): Test this.
61801         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61802         * doc/posix-headers/math.texi (math.h): Mention bug.
61803         Reported by Nelson H. F. Beebe and Jim Meyering.
61804
61805 2008-04-11  Bruno Haible  <bruno@clisp.org>
61806
61807         Adapt to future versions of Apple GCC.
61808         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61809         Reported by Peter O'Gorman <peter@pogma.com>.
61810
61811 2008-04-11  Bruno Haible  <bruno@clisp.org>
61812
61813         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61814
61815 2008-04-11  Bruno Haible  <bruno@clisp.org>
61816
61817         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61818
61819         * modules/getaddrinfo-tests (Makefile.am): Define
61820         test_getaddrinfo_LDADD.
61821
61822 2008-04-11  Bruno Haible  <bruno@clisp.org>
61823
61824         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61825         (init): Fix syntax error.
61826         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61827         is declared.
61828
61829 2008-04-11  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61832         * modules/glob (Depends-on): Add stdbool.
61833
61834 2008-04-11  Bruno Haible  <bruno@clisp.org>
61835
61836         * lib/trim.c: Include <string.h>.
61837
61838 2008-04-11  Eric Blake  <ebb9@byu.net>
61839
61840         Avoid compile failure on OS/2.
61841         * lib/regex_internal.h (internal_function): Disable optimization
61842         on OS/2 (__EMX__), where it caused compiler error.
61843         Reported by Elbert Pol.
61844
61845 2008-04-11  Bruno Haible  <bruno@clisp.org>
61846
61847         Flush the standard error stream before aborting. Needed on mingw.
61848         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61849         * tests/test-array_list.c (ASSERT): Likewise.
61850         * tests/test-array_oset.c (ASSERT): Likewise.
61851         * tests/test-avltree_list.c (ASSERT): Likewise.
61852         * tests/test-avltree_oset.c (ASSERT): Likewise.
61853         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61854         * tests/test-binary-io.c (ASSERT): Likewise.
61855         * tests/test-byteswap.c (ASSERT): Likewise.
61856         * tests/test-c-ctype.c (ASSERT): Likewise.
61857         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61858         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61859         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61860         * tests/test-c-strstr.c (ASSERT): Likewise.
61861         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61862         * tests/test-canonicalize.c (ASSERT): Likewise.
61863         * tests/test-carray_list.c (ASSERT): Likewise.
61864         * tests/test-ceilf1.c (ASSERT): Likewise.
61865         * tests/test-ceilf2.c (ASSERT): Likewise.
61866         * tests/test-ceill.c (ASSERT): Likewise.
61867         * tests/test-count-one-bits.c (ASSERT): Likewise.
61868         * tests/test-fbufmode.c (ASSERT): Likewise.
61869         * tests/test-fflush2.c (ASSERT): Likewise.
61870         * tests/test-floorf1.c (ASSERT): Likewise.
61871         * tests/test-floorf2.c (ASSERT): Likewise.
61872         * tests/test-floorl.c (ASSERT): Likewise.
61873         * tests/test-fopen.c (ASSERT): Likewise.
61874         * tests/test-fpending.c (ASSERT): Likewise.
61875         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61876         * tests/test-fpurge.c (ASSERT): Likewise.
61877         * tests/test-freadable.c (ASSERT): Likewise.
61878         * tests/test-freadahead.c (ASSERT): Likewise.
61879         * tests/test-freading.c (ASSERT): Likewise.
61880         * tests/test-freadptr.c (ASSERT): Likewise.
61881         * tests/test-freadptr2.c (ASSERT): Likewise.
61882         * tests/test-freadseek.c (ASSERT): Likewise.
61883         * tests/test-freopen.c (ASSERT): Likewise.
61884         * tests/test-frexp.c (ASSERT): Likewise.
61885         * tests/test-frexpl.c (ASSERT): Likewise.
61886         * tests/test-fseek.c (ASSERT): Likewise.
61887         * tests/test-fseeko.c (ASSERT): Likewise.
61888         * tests/test-fstrcmp.c (ASSERT): Likewise.
61889         * tests/test-ftell.c (ASSERT): Likewise.
61890         * tests/test-ftello.c (ASSERT): Likewise.
61891         * tests/test-func.c (ASSERT): Likewise.
61892         * tests/test-fwritable.c (ASSERT): Likewise.
61893         * tests/test-fwriting.c (ASSERT): Likewise.
61894         * tests/test-getdelim.c (ASSERT): Likewise.
61895         * tests/test-getline.c (ASSERT): Likewise.
61896         * tests/test-i-ring.c (ASSERT): Likewise.
61897         * tests/test-iconv-utf.c (ASSERT): Likewise.
61898         * tests/test-iconv.c (ASSERT): Likewise.
61899         * tests/test-isfinite.c (ASSERT): Likewise.
61900         * tests/test-isnand.c (ASSERT): Likewise.
61901         * tests/test-isnanf.c (ASSERT): Likewise.
61902         * tests/test-isnanl.h (ASSERT): Likewise.
61903         * tests/test-ldexpl.c (ASSERT): Likewise.
61904         * tests/test-linked_list.c (ASSERT): Likewise.
61905         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61906         * tests/test-localename.c (ASSERT): Likewise.
61907         * tests/test-lseek.c (ASSERT): Likewise.
61908         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61909         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61910         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61911         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61912         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61913         * tests/test-mbschr.c (ASSERT): Likewise.
61914         * tests/test-mbscspn.c (ASSERT): Likewise.
61915         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61916         * tests/test-mbspbrk.c (ASSERT): Likewise.
61917         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61918         * tests/test-mbsrchr.c (ASSERT): Likewise.
61919         * tests/test-mbsspn.c (ASSERT): Likewise.
61920         * tests/test-mbsstr1.c (ASSERT): Likewise.
61921         * tests/test-mbsstr2.c (ASSERT): Likewise.
61922         * tests/test-mbsstr3.c (ASSERT): Likewise.
61923         * tests/test-memchr2.c (ASSERT): Likewise.
61924         * tests/test-memmem.c (ASSERT): Likewise.
61925         * tests/test-open.c (ASSERT): Likewise.
61926         * tests/test-printf-frexp.c (ASSERT): Likewise.
61927         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61928         * tests/test-printf-posix.c (ASSERT): Likewise.
61929         * tests/test-quotearg.c (ASSERT): Likewise.
61930         * tests/test-rbtree_list.c (ASSERT): Likewise.
61931         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61932         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61933         * tests/test-round1.c (ASSERT): Likewise.
61934         * tests/test-roundf1.c (ASSERT): Likewise.
61935         * tests/test-roundl.c (ASSERT): Likewise.
61936         * tests/test-signbit.c (ASSERT): Likewise.
61937         * tests/test-sleep.c (ASSERT): Likewise.
61938         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61939         * tests/test-snprintf.c (ASSERT): Likewise.
61940         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61941         * tests/test-stat-time.c (ASSERT): Likewise.
61942         * tests/test-strcasestr.c (ASSERT): Likewise.
61943         * tests/test-strerror.c (ASSERT): Likewise.
61944         * tests/test-striconv.c (ASSERT): Likewise.
61945         * tests/test-striconveh.c (ASSERT): Likewise.
61946         * tests/test-striconveha.c (ASSERT): Likewise.
61947         * tests/test-strsignal.c (ASSERT): Likewise.
61948         * tests/test-strstr.c (ASSERT): Likewise.
61949         * tests/test-strtod.c (ASSERT): Likewise.
61950         * tests/test-trunc1.c (ASSERT): Likewise.
61951         * tests/test-trunc2.c (ASSERT): Likewise.
61952         * tests/test-truncf1.c (ASSERT): Likewise.
61953         * tests/test-truncf2.c (ASSERT): Likewise.
61954         * tests/test-truncl.c (ASSERT): Likewise.
61955         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61956         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61957         * tests/test-vasnprintf.c (ASSERT): Likewise.
61958         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61959         * tests/test-vasprintf.c (ASSERT): Likewise.
61960         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61961         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61962         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61963         * tests/test-vsnprintf.c (ASSERT): Likewise.
61964         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61965         * tests/test-wcwidth.c (ASSERT): Likewise.
61966         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61967         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61968         * tests/test-xvasprintf.c (ASSERT): Likewise.
61969         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61970         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61971         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61972         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61973         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61974         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61975         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61976         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61977         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61978         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61979         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61980         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61981         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61982         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61983         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61984         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61985         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61986         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61987         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61988         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61989         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61990         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61991         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61992         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61993         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61994         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61995         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61996         * tests/unictype/test-combining.c (ASSERT): Likewise.
61997         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61998         * tests/unictype/test-digit.c (ASSERT): Likewise.
61999         * tests/unictype/test-mirror.c (ASSERT): Likewise.
62000         * tests/unictype/test-numeric.c (ASSERT): Likewise.
62001         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
62002         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
62003         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
62004         * tests/unictype/test-scripts.c (ASSERT): Likewise.
62005         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
62006         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
62007         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
62008         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
62009         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
62010         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
62011         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
62012         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
62013         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
62014         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
62015         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
62016         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
62017         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
62018         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
62019         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
62020         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
62021         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
62022         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
62023         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
62024         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
62025         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
62026         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
62027         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
62028         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
62029         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
62030         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
62031         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
62032         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
62033         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
62034         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
62035         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
62036         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
62037         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
62038         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
62039         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
62040         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
62041         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
62042         Reported by Eric Blake.
62043
62044 2008-04-11  Bruno Haible  <bruno@clisp.org>
62045
62046         * lib/wchar.in.h: Tweak comment.
62047
62048 2008-04-11  Bruno Haible  <bruno@clisp.org>
62049
62050         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
62051         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
62052         gl_COMMON.
62053         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
62054
62055 2008-04-11  Bruno Haible  <bruno@clisp.org>
62056
62057         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
62058
62059 2008-04-11  Simon Josefsson  <simon@josefsson.org>
62060
62061         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
62062         of attempting to use non-existing /dev/*random.  Based on patch
62063         from Adam Strzelecki <ono@java.pl> in
62064         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
62065
62066 2008-04-08  Bruno Haible  <bruno@clisp.org>
62067
62068         Add tentative support for emx+gcc.
62069         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
62070         * lib/fpurge.c (fpurge): Likewise.
62071         * lib/freadable.c (freadable): Likewise.
62072         * lib/freadahead.c (freadahead): Likewise.
62073         * lib/freading.c (freading): Likewise.
62074         * lib/freadptr.c (freadptr): Likewise.
62075         * lib/freadseek.c (freadptrinc): Likewise.
62076         * lib/fseeko.c (rpl_fseeko): Likewise.
62077         * lib/fseterr.c (fseterr): Likewise.
62078         * lib/fwritable.c (fwritable): Likewise.
62079         * lib/fwriting.c (fwriting): Likewise.
62080         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
62081
62082 2008-04-09  Eric Blake  <ebb9@byu.net>
62083
62084         Avoid some autoconf warnings.
62085         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
62086         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
62087         * m4/afs.m4 (gl_AFS): Likewise.
62088         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
62089         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
62090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62091         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
62092         (gl_INTEGER_TYPE_SUFFIX): Likewise.
62093         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
62094         (AC_CHECK_DECLS_ONCE): Likewise.
62095         Rename file...
62096         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
62097         gnulib-tool requires autoconf 2.59 or better.
62098         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
62099
62100 2008-04-08  Eric Blake  <ebb9@byu.net>
62101
62102         Use 'git describe --match' if present (added in git 1.5.5).
62103         * build-aux/git-version-gen: Limit result to tags that match 'v*'
62104         if possible.
62105
62106 2008-04-08  Bruno Haible  <bruno@clisp.org>
62107
62108         Add tentative support for OpenServer.
62109         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
62110         _ptr, _cnt.
62111         * lib/fpurge.c (fpurge): Likewise.
62112         * lib/freadable.c (freadable): Likewise.
62113         * lib/freadahead.c (freadahead): Likewise.
62114         * lib/freading.c (freading): Likewise.
62115         * lib/freadptr.c (freadptr): Likewise.
62116         * lib/freadseek.c (freadptrinc): Likewise.
62117         * lib/fseeko.c (rpl_fseeko): Likewise.
62118         * lib/fseterr.c (fseterr): Likewise.
62119         * lib/fwritable.c (fwritable): Likewise.
62120         * lib/fwriting.c (fwriting): Likewise.
62121         Reported by Roger Cornelius <rac@tenzing.org> and
62122         Brian K. White <brian@aljex.com>.
62123
62124 2008-04-06  Jim Meyering  <meyering@redhat.com>
62125
62126         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
62127
62128 2008-04-06  Bruno Haible  <bruno@clisp.org>
62129
62130         Avoid possible error with non-ASCII bytes in UTF-8 locales.
62131         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
62132         * tests/test-printf-posix.sh: Likewise.
62133         * tests/test-vfprintf-posix.sh: Likewise.
62134         * tests/test-vprintf-posix.sh: Likewise.
62135         * tests/test-xprintf-posix.sh: Likewise.
62136
62137 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62138
62139         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
62140         hide error from 'ls', needed on OS/2.
62141         Report by Elbert Pol <elbert.pol@gmail.com>.
62142
62143 2008-04-04  Eric Blake  <ebb9@byu.net>
62144
62145         Make test-fseeko.c failures meaningful.
62146         * tests/test-fseeko.c: Print line number on failure.
62147         * tests/test-fseek.c: Likewise.
62148         Reported by Nelson H. F. Beebe.
62149
62150         Improve strtod bug detection check.
62151         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62152         required for Solaris 10.
62153         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62154
62155 2008-04-04  Bruno Haible  <bruno@clisp.org>
62156
62157         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62158         by m4/setenv.m4.
62159
62160 2008-04-03  Eric Blake  <ebb9@byu.net>
62161
62162         Ensure sane .version contents.
62163         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62164         version string.
62165         * build-aux/git-version-gen: Improve documentation.
62166
62167         Make GNU make output nicer.
62168         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62169         MAKECMDGOALS to enforce message for all command line targets.  Set
62170         srcdir for use in maint.mk.
62171
62172         Another maintainer tweak.
62173         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62174         a target that regenerates version.
62175
62176 2008-04-03  Jim Meyering  <meyering@redhat.com>
62177
62178         vc-list-files: don't cause coreutils "make po-check" failure
62179         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62180
62181 2008-04-03  Eric Blake  <ebb9@byu.net>
62182
62183         Allow VPATH usage of vc-list-files.
62184         * build-aux/vc-list-files (scriptversion): Add timestamp.
62185         (options): Add --help, --version, -C.
62186         (CVS): Support installed cvsu.
62187
62188 2008-04-02  Bruno Haible  <bruno@clisp.org>
62189
62190         Avoid some "statement with no effect" warnings from gcc.
62191         * tests/test-wctype.c (main): Explicitly ignore unused values.
62192         Reported by Jim Meyering.
62193
62194 2008-04-02  Jim Meyering  <meyering@redhat.com>
62195
62196         Avoid some warnings from "gcc -Wshadow".
62197         * tests/test-frexp.c (exp): Define to a different identifier.
62198         * tests/test-frexpl.c (exp): Likewise.
62199
62200 2008-04-03  Jim Meyering  <meyering@redhat.com>
62201
62202         bootstrap: remove dangling *.[ch] symlinks from lib
62203         * build-aux/bootstrap [dangling symlink removal]: Move find's
62204         -depth option to precede all others, to avoid a warning.
62205         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62206
62207 2008-04-02  Bruno Haible  <bruno@clisp.org>
62208
62209         Avoid some warnings from "gcc -Wshadow".
62210         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62211         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62212         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62213         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62214         Reported by Jim Meyering.
62215
62216 2008-04-01  Bruno Haible  <bruno@clisp.org>
62217
62218         Fix test to work on IRIX 6.5 with cc.
62219         * tests/test-math.c (numeric_equal): New function.
62220         (main): Use it.
62221
62222 2008-04-01  Bruno Haible  <bruno@clisp.org>
62223
62224         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62225
62226 2008-04-01  Bruno Haible  <bruno@clisp.org>
62227
62228         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62229         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62230         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62231         (Depends-on): Remove math.
62232
62233         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62234         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62235         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62236         (Depends-on): Remove math.
62237
62238         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62239         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62240         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62241         (Depends-on): Remove math.
62242         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62243         (Depends-on): Remove math.
62244
62245         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62246         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62247         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62248         (Depends-on): Remove math.
62249         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62250         (Depends-on): Remove math.
62251
62252         * tests/test-round1.c: Include nan.h.
62253         (main): Use NaNd instead of NAN.
62254         * modules/round-tests (Files): Add tests/nan.h.
62255
62256         * tests/test-trunc1.c: Include nan.h.
62257         (main): Use NaNd instead of NAN.
62258         * modules/trunc-tests (Files): Add tests/nan.h.
62259
62260         * tests/test-roundf1.c: Include nan.h.
62261         (main): Use NaNf instead of NAN.
62262         * modules/roundf-tests (Files): Add tests/nan.h.
62263
62264         * tests/test-truncf1.c: Include nan.h.
62265         (main): Use NaNf instead of NAN.
62266         * modules/truncf-tests (Files): Add tests/nan.h.
62267
62268         * tests/test-ceilf1.c: Include nan.h.
62269         (main): Use NaNf instead of NAN.
62270         * modules/ceilf-tests (Files): Add tests/nan.h.
62271
62272         * tests/test-floorf1.c: Include nan.h.
62273         (main): Use NaNf instead of NAN.
62274         * modules/floorf-tests (Files): Add tests/nan.h.
62275
62276         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62277         (main): Use NaNf instead of NAN.
62278         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62279
62280         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62281         (main): Use NaNd instead of NAN.
62282         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62283
62284         * tests/test-frexp.c: Include nan.h.
62285         (main): Use NaNd instead of NAN.
62286         * modules/frexp-tests (Files): Add tests/nan.h.
62287
62288         * lib/isnan.c: Don't include <math.h>.
62289         (FUNC): Don't use NAN macro.
62290         * modules/isnand-nolibm (Depends-on): Remove math.
62291         * modules/isnanf-nolibm (Depends-on): Remove math.
62292         * modules/isnanl (Depends-on): Remove math.
62293         * modules/isnanl-nolibm (Depends-on): Remove math.
62294
62295         * tests/nan.h: New file.
62296
62297 2008-04-01  Eric Blake  <ebb9@byu.net>
62298
62299         Fix typos.
62300         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62301         values to be the right type.
62302
62303         For now, cater to gnulib strtod inaccuracies.
62304         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62305         fractional results.  While not as nice from a QoI perspective, it
62306         is a quicker patch than correctly implementing decimal to binary
62307         rounding.
62308
62309 2008-03-31  Eric Blake  <ebb9@byu.net>
62310
62311         Guarantee a definition of NAN.
62312         * lib/math.in.h (NAN): Define if missing.
62313         * tests/test-math.c (main): Test it.
62314         * doc/posix-headers/math.texi (math.h): Document this.
62315         * lib/isnan.c (rpl_isnand): Use it.
62316         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62317         * tests/test-floorf1.c (NaN): Likewise.
62318         * tests/test-frexp.c (NaN): Likewise.
62319         * tests/test-isnand.c (NaN): Likewise.
62320         * tests/test-isnanf.c (NaN): Likewise.
62321         * tests/test-round1.c (NaN): Likewise.
62322         * tests/test-roundf1.c (NaN): Likewise.
62323         * tests/test-snprintf-posix.h (NaN): Likewise.
62324         * tests/test-sprintf-posix.h (NaN): Likewise.
62325         * tests/test-trunc1.c (NaN): Likewise.
62326         * tests/test-truncf1.c (NaN): Likewise.
62327         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62328         * tests/test-vasprintf-posix.c (NaN): Likewise.
62329         * modules/isnand-nolibm (Depends-on): Add math.
62330         * modules/isnanf-nolibm (Depends-on): Likewise.
62331         * modules/isnanl (Depends-on): Likewise.
62332         * modules/isnanl-nolibm (Depends-on): Likewise.
62333         * modules/snprintf-posix-tests (Depends-on): Likewise.
62334         * modules/sprintf-posix-tests (Depends-on): Likewise.
62335         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62336         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62337         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62338         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62339
62340 2008-03-31  Bruno Haible  <bruno@clisp.org>
62341
62342         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62343         * doc/posix-functions/strtod.texi: Likewise.
62344
62345 2008-03-31  Bruno Haible  <bruno@clisp.org>
62346
62347         * tests/test-strtod.c (main): Don't use C99 syntax.
62348
62349 2008-03-31  Bruno Haible  <bruno@clisp.org>
62350
62351         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62352         Reported by Eric Blake.
62353
62354 2008-03-31  Jim Meyering  <meyering@redhat.com>
62355
62356         Don't compare actual signbit return values.
62357         * tests/test-strtod.c (main): Rather, compare only their
62358         zero/non-zero nature.
62359
62360 2008-03-31  Eric Blake  <ebb9@byu.net>
62361
62362         More strtod documentation.
62363         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62364         failures as distinct bugs.
62365
62366 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62369         Problem reported by Erik Benada in
62370         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62371
62372 2008-03-30  Bruno Haible  <bruno@clisp.org>
62373
62374         * tests/test-strtod.c: Add comments about which assertion fails on which
62375         platform.
62376         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62377
62378 2008-03-30  Eric Blake  <ebb9@byu.net>
62379
62380         Test signbit behavior on zeros.
62381         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62382         (test_signbitd, test_signbitl): Likewise.
62383
62384         More strtod touchups.
62385         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62386         sign of negative underflow, for now.  Use .5, not .1.
62387         * doc/posix-functions/strtod.texi (strtod): Mention these
62388         limitations.
62389         Reported by Jim Meyering.
62390
62391 2008-03-30  Bruno Haible  <bruno@clisp.org>
62392
62393         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62394         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62395
62396 2008-03-30  Bruno Haible  <bruno@clisp.org>
62397
62398         Avoid failure when attempting to return empty iconv results on some
62399         platforms.
62400         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62401         allocation, don't report ENOMEM when the resulting string is empty.
62402
62403 2008-03-30  Bruno Haible  <bruno@clisp.org>
62404
62405         Fix buffer overrun.
62406         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62407         Don't consider the width for tmp_length. Check count against tmp_length
62408         before doing the padding. Ensure enough allocation during padding.
62409
62410 2008-03-30  Eric Blake  <ebb9@byu.net>
62411
62412         strtod touchups.
62413         * lib/strtod.c (strtod): Avoid compiler warnings.
62414         Reported by Jim Meyering.
62415
62416 2008-03-30  Bruno Haible  <bruno@clisp.org>
62417
62418         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62419         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62420         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62421         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62422         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62423         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62424         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62425         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62426
62427         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62428         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62429         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62430         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62431         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62432         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62433         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62434         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62435
62436         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62437         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62438         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62439         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62440         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62441         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62442         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62443         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62444
62445         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62446         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62447
62448         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62449         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62450
62451         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62452         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62453
62454         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62455         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62456         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62457
62458         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62460         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62461
62462         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62463         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62464         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62465
62466         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62467         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62468         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62469
62470         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62471         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62472         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62473         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62474         (Depends-on): Add EOVERFLOW.
62475         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62476         (Depends-on): Add EOVERFLOW.
62477         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62478         (Depends-on): Add EOVERFLOW.
62479         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62480         (Depends-on): Add EOVERFLOW.
62481         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62482         (Depends-on): Add EOVERFLOW.
62483         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62484         (Depends-on): Add EOVERFLOW.
62485         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62486         (Depends-on): Add EOVERFLOW.
62487         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62488         (Depends-on): Add EOVERFLOW.
62489
62490         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62492         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62493
62494         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62496         * modules/snprintf (Depends-on): Add EOVERFLOW.
62497
62498         * lib/poll.c (EOVERFLOW): Remove fallback.
62499         * modules/poll (Depends-on): Add EOVERFLOW.
62500
62501         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62502         * modules/getugroups (Depends-on): Add EOVERFLOW.
62503
62504         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62505         * modules/getdelim (Depends-on): Add EOVERFLOW.
62506
62507         * lib/ftell.c (EOVERFLOW): Remove fallback.
62508         * modules/ftell (Depends-on): Add EOVERFLOW.
62509
62510         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62512         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62513
62514         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62515
62516         * modules/EOVERFLOW-tests: New file.
62517         * tests/test-EOVERFLOW.c: New file.
62518
62519         * modules/EOVERFLOW: New file.
62520         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62521
62522 2008-03-30  Bruno Haible  <bruno@clisp.org>
62523
62524         Fix bug introduced on 2007-06-10.
62525         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62526         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62527
62528 2008-03-30  Bruno Haible  <bruno@clisp.org>
62529
62530         Improve freadseek's efficiency after ungetc.
62531         * lib/freadseek.c: Include freadahead.h.
62532         (freadptrinc): New function, extracted from freadseek.
62533         (freadseek): Use it in a loop. Use freadahead to determine the number
62534         of loop iterations.
62535         * modules/freadseek (Depends-on): Add freadahead.
62536         (configure.ac): Require AC_C_INLINE.
62537
62538 2008-03-30  Bruno Haible  <bruno@clisp.org>
62539
62540         * lib/freadseek.c (freadseek): Don't ignore the return value of
62541         freadptr.
62542
62543 2008-03-29  Eric Blake  <ebb9@byu.net>
62544
62545         Add hex float support.
62546         * modules/strtod (Depends-on): Add c-ctype.
62547         (Link): Mention POW_LIB.
62548         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62549         whitespace between 'e' and exponent.
62550         * tests/test-strtod.c (main): Enable hex float tests.
62551         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62552         now provides.
62553
62554         Document various strtod bugs, with some fixes.
62555         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62556         "-0x", "inf", "nan", and hex constants.
62557         * doc/posix-functions/atof.texi (atof): Likewise.
62558         * modules/stdlib (Makefile.am): Support strtod.
62559         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62560         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62561         detect additional strtod bugs.
62562         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62563         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62564         bool where appropriate.  Parse 'inf' and 'nan'.
62565         * tests/test-strtod.c: New file.
62566         * modules/strtod (Depends-on): Add stdbool, stdlib.
62567         (configure.ac): Turn on module indicator.
62568         * modules/strtod-tests: New module.
62569
62570 2008-03-29  Eric Blake  <ebb9@byu.net>
62571
62572         Fix ftell on mingw.
62573         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62574         * modules/ftell-tests (Depends-on): Add binary-io.
62575         * modules/ftello-tests (Depends-on): Likewise.
62576         * tests/test-ftell.c (main): Enhance test to cover behavior after
62577         ungetc.  Enforce binary mode.
62578         * tests/test-ftello.c (main): Likewise.
62579
62580         Pass test-freadseek on cygwin.
62581         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62582         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62583         ungetc buffer.
62584
62585         * tests/test-fflush2.c (main): Fix typo.
62586
62587 2008-03-29  Bruno Haible  <bruno@clisp.org>
62588
62589         * tests/test-fflush2.c (main): Temporarily disable the contents of
62590         this test.
62591         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62592         Reported by Eric Blake.
62593
62594 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62595
62596         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62597         (GC_SHA224_DIGEST_SIZE): Add.
62598
62599         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62600         (gc_hash_digest_length): Likewise.
62601         (gc_hash_buffer): Likewise.
62602
62603 2008-03-25  Bruno Haible  <bruno@clisp.org>
62604
62605         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62606         detail which gettext release to use.
62607         Reported by Simon Josefsson.
62608
62609 2008-03-26  Jim Meyering  <meyering@redhat.com>
62610
62611         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62612         * modules/gnumakefile (clean-GNUmakefile): Also, use
62613         test ... && ... || : syntax rather than if-then ... fi.
62614
62615         gnumakefile: Don't double-quote-expand $(VPATH) value.
62616         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62617
62618 2008-03-24  Eric Blake  <ebb9@byu.net>
62619
62620         Alter GNUmakefile to install into top directory.
62621         * modules/maintainer-makefile: Split, and add dependency...
62622         * modules/gnumakefile: to this new module.
62623         * build-aux/GNUmakefile: Move...
62624         * top/GNUmakefile: ...here.
62625         * build-aux/maint.mk: Move...
62626         * top/maint.mk: ...here.
62627         * MODULES.html.sh (Support for maintaining...): Document new
62628         module.
62629
62630 2008-03-23  Bruno Haible  <bruno@clisp.org>
62631
62632         * gnulib-tool: New options --vc-files, --no-vc-files.
62633         (func_usage): Document them.
62634         (vc_files): New variable.
62635         (func_import): Consider vc_files.
62636         (func_create_testdir): Set vc_files to empty.
62637         Suggested by Jim Meyering and Karl Berry.
62638
62639 2008-03-23  Bruno Haible  <bruno@clisp.org>
62640
62641         Fix regex compilation error on HP-UX 11.
62642         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62643         * modules/regex (Files): Add m4/mbstate_t.m4.
62644         Reported by Ton Voon <ton.voon@altinity.com>.
62645
62646 2008-03-23  Bruno Haible  <bruno@clisp.org>
62647
62648         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62649
62650 2008-03-23  Eric Blake  <ebb9@byu.net>
62651             Bruno Haible  <bruno@clisp.org>
62652
62653         Install files from top/ in the destination directory.
62654         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62655         augmentation also for the files from top/.
62656         (func_import, func_create_testdir): Rewrite file names:
62657         top/filename -> filename.
62658
62659 2008-03-23  Bruno Haible  <bruno@clisp.org>
62660
62661         Tweak "gnulib --version" output.
62662         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62663
62664 2008-03-23  Bruno Haible  <bruno@clisp.org>
62665
62666         Tweak "gnulib --version" output.
62667         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62668         rather than contents of ChangeLog, when possible.
62669
62670 2008-03-21  Eric Blake  <ebb9@byu.net>
62671
62672         More --version tweaks.
62673         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62674         date of last ChangeLog entry.
62675
62676 2008-03-21  Jim Meyering  <meyering@redhat.com>
62677
62678         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62679
62680 2008-03-20  Eric Blake  <ebb9@byu.net>
62681
62682         VPATH fix.
62683         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62684
62685 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62686
62687         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62688         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62689
62690 2008-03-20  Eric Blake  <ebb9@byu.net>
62691
62692         Sync GNUmakefile with coreutils.
62693         * build-aux/GNUmakefile (have-Makefile): Rename...
62694         (_have-Makefile): ...to this, for namespace consideration.
62695         (GNUmakefile.cfg): Include, if present.
62696         (_autoreconf): Define a default.
62697         (_is-dist-target): New rule for rebuilds to pick up intra-release
62698         version.
62699         (maint-cfg.mk): Rename...
62700         (cfg.mk): ...to this.
62701
62702 2008-03-18  Jim Meyering  <meyering@redhat.com>
62703
62704         New script and module: mktempd
62705         * MODULES.html.sh (maint+release support): Add mktempd.
62706         * build-aux/mktempd: New file.
62707         * modules/mktempd: New file.
62708
62709 2008-03-15  Jim Meyering  <meyering@redhat.com>
62710
62711         Undo last change.
62712         * lib/sha1.c, lib/md5.c: 63 != ~63.
62713         Reported by Andreas Schwab.
62714
62715         sha1.c, md5.c: Hoist a redundant expression.
62716         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62717         "ctx->buflen" only once, before calling *_process_block.
62718         * lib/md5.c (md5_process_bytes): Likewise.
62719
62720 2008-03-14  Eric Blake  <ebb9@byu.net>
62721
62722         Bump copyright year in files generated by gnulib-tool.
62723         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62724         gnulib-tool, rather than hard-coding it.
62725
62726         Fix 'gnulib-tool --version' output to work with git.
62727         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62728         (startup): ...here.
62729         (func_version): Use it to invoke git-version-gen, rather than
62730         relying on CVS keyword expansion.  Modernize wording.
62731         (cvsdatestamp, last_checkin_date, version): Kill unused
62732         variables.
62733
62734 2008-03-12  Jim Meyering  <meyering@redhat.com>
62735
62736         Recognize optional cast of the argument to free.
62737         * build-aux/useless-if-before-free: Update regexps.
62738
62739         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62740
62741 2008-03-11  Bruno Haible  <bruno@clisp.org>
62742
62743         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62744         by a single package.
62745         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62746         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62747         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62748         Reported by Sam Steingold <sds@gnu.org>.
62749
62750 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62751
62752         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62753         repositories.
62754
62755 2008-03-11  Bruno Haible  <bruno@clisp.org>
62756
62757         Avoid conflicts between local macro definitions.
62758         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62759         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62760
62761 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62762             Bruno Haible  <bruno@clisp.org>
62763
62764         Make va_copy work with some version of xlc on AIX 5.1.
62765         * lib/stdarg.in.h: New file.
62766         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62767         On AIX, use a <stdarg.h> file substitute.
62768         * modules/stdarg (Files): Add lib/stdarg.in.h.
62769         (Depends-on): Add include_next.
62770         (Makefile.am): Build a stdarg.h substitute if requested.
62771         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62772
62773 2008-03-10  Bruno Haible  <bruno@clisp.org>
62774
62775         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62777         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62778
62779 2008-03-10  Bruno Haible  <bruno@clisp.org>
62780
62781         * modules/stdlib (Depends-on): Add include_next, remove
62782         absolute-header.
62783
62784 2008-03-09  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/freadahead.h (freadahead): Document more precisely.
62787         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62788         the sum of both buffer sizes.
62789         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62790         * NEWS: Document the change.
62791
62792 2008-03-09  Bruno Haible  <bruno@clisp.org>
62793
62794         Extend freadptr to return also the buffer size.
62795         * lib/freadptr.h (freadptr): Add sizep argument.
62796         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62797         (freadptr): Add sizep argument. Determine buffer size like freadahead
62798         does.
62799         * tests/test-freadptr.c: Don't include freadahead.h.
62800         (main): Adapt for new calling convention of freadptr.
62801         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62802         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62803         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62804         tests/test-freadptr2.sh.
62805         (Depends): Remove freadahead.
62806         (TESTS): Add test-freadptr2.sh.
62807         (check_PROGRAMS): Add test-freadptr2.
62808
62809 2008-03-09  Bruno Haible  <bruno@clisp.org>
62810
62811         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62812         Report and solution by Simon Josefsson.
62813
62814 2008-03-06  Bruno Haible  <bruno@clisp.org>
62815
62816         Make fflush after ungetc work on BSD platforms.
62817         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62818         * tests/test-fflush2.c: New file.
62819         * tests/test-fflush2.sh: New file.
62820         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62821         tests/test-fflush2.c.
62822         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62823         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62824
62825 2008-03-06  Eric Blake  <ebb9@byu.net>
62826
62827         Likewise for ftello.
62828         * modules/ftello (Dependencies): Add extensions.
62829         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62830
62831 2008-03-06  Bruno Haible  <bruno@clisp.org>
62832
62833         * modules/fseeko (Dependencies): Add extensions.
62834         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62835         Needed on glibc systems.
62836
62837 2008-03-06  Bruno Haible  <bruno@clisp.org>
62838
62839         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62840         email address.
62841         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62842
62843 2008-03-06  Bruno Haible  <bruno@clisp.org>
62844
62845         * users.txt: Add libgnupdf.
62846
62847 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62848
62849         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62850         (Header File Substitutes, Function Substitutes,
62851         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62852         (Build robot for gnulib): Fix typo.
62853
62854 2008-03-06  Bruno Haible  <bruno@clisp.org>
62855
62856         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62857         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62858
62859 2008-03-06  Bruno Haible  <bruno@clisp.org>
62860
62861         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62862         * doc/gnulib.texi: Include it.
62863
62864 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62865
62866         * modules/func (License): Change license to unlimited; there was
62867         no LGPL parts in the module anyway.
62868
62869 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62870
62871         * modules/__func__: Renamed to modules/func.
62872         * modules/__func__-tests: Renamed to modules/func-tests.
62873         * tests/test-__func__.c: Renamed to tests/test-func.c.
62874         * m4/__func__.m4: Renamed to m4/func.m4.
62875         * doc/gnulib.texi (__func__): Section renamed to func.
62876         Suggested by Eric Blake <ebb9@byu.net>.
62877
62878 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62879
62880         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62881         about __func__.  Make example self-contained.  Suggested by Eric
62882         Blake <ebb9@byu.net>.
62883
62884         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62885         Suggested by Eric Blake <ebb9@byu.net>.
62886
62887 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62888
62889         * modules/__func__: New file.
62890         * modules/__func__-tests: New file.
62891         * tests/test-__func__.c: New file.
62892         * m4/__func__.m4: New file.
62893         * doc/gnulib.texi (__func__): Document __func__ module.
62894
62895 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62896
62897         * modules/byteswap (License): Re-license as LGPLv2+.
62898
62899 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62900
62901         * doc/Makefile: Add pdf target.
62902
62903 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62904
62905         * modules/inline (License): Use 'unlimited', since there are only
62906         *.m4 files in this module.
62907
62908 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62909             Bruno Haible  <bruno@clisp.org>
62910
62911         Add support for HP C 7.1 on OpenVMS 8.3.
62912         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62913
62914 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62915
62916         Update VMS specifics.
62917         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62918
62919 2008-03-02  Jim Meyering  <meyering@redhat.com>
62920
62921         Remove the last dependency on the "free" module.
62922         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62923         Reported by Bob Proulx.
62924
62925         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62926
62927         Remove useless "if" tests before free.  Deprecate "free" module.
62928         * doc/posix-functions/free.texi: Mention that this
62929         module is no longer useful.
62930         * modules/free (Notice): Say this module is obsolete.
62931         * modules/readutmp (Depends-on): Remove free.
62932         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62933         * lib/putenv.c (putenv): Likewise.
62934         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62935         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62936         * tests/test-c-strcasestr.c (main): Likewise.
62937         * tests/test-c-strstr.c (main): Likewise.
62938         * tests/test-mbscasestr1.c (main): Likewise.
62939         * tests/test-mbscasestr2.c (main): Likewise.
62940         * tests/test-mbsstr1.c (main): Likewise.
62941         * tests/test-mbsstr2.c (main): Likewise.
62942         * tests/test-memmem.c (main): Likewise.
62943         * tests/test-strcasestr.c (main): Likewise.
62944         * tests/test-striconv.c (main): Likewise.
62945         * tests/test-striconveh.c (main): Likewise.
62946         * tests/test-striconveha.c (main): Likewise.
62947         * tests/test-strstr.c (main): Likewise.
62948
62949         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62950
62951         bootstrap: sync from coreutils again
62952         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62953
62954 2008-03-01  Jim Meyering  <meyering@redhat.com>
62955
62956         bootstrap: sync from coreutils
62957         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62958         also when the target doesn't exist.
62959
62960 2008-03-01  Eric Blake  <ebb9@byu.net>
62961
62962         Fix bugs in last patch.
62963         * lib/memchr2.c (memchr2): Fix typo.
62964         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62965         extension.
62966         Reported by Bruce Korb.
62967
62968         New module 'memchr2'.
62969         * modules/memchr2: New file.
62970         * modules/memchr2-tests: Likewise.
62971         * lib/memchr2.h: Likewise.
62972         * lib/memchr2.c: Likewise, based on memchr.c.
62973         * tests/test-memchr2.c: New test.
62974         * MODULES.html.sh (String handling): Add memchr2.
62975
62976 2008-02-29  Bruno Haible  <bruno@clisp.org>
62977
62978         * modules/freadseek-tests: New file.
62979         * tests/test-freadseek.sh: New file.
62980         * tests/test-freadseek.c: New file.
62981
62982         New module 'freadseek'.
62983         * modules/freadseek: New file.
62984         * lib/freadseek.h: New file.
62985         * lib/freadseek.c: New file.
62986         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62987
62988 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62989
62990         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62991         wydawca.
62992
62993         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62994         program_invocation_name and program_invocation_short_name are
62995         present.
62996
62997 2008-02-28  Bruno Haible  <bruno@clisp.org>
62998
62999         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
63000         * tests/test-freadptr.sh: Also test non-seekable stdin.
63001
63002 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
63003
63004         * build-aux/bootstrap (source_base, m4_base)
63005         (doc_base, tests_base): New variables.
63006         (gnulib_tool_options): Do not hardcode base directories, use
63007         the above variables instead.
63008
63009 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
63010
63011         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
63012
63013 2008-02-28  Bruno Haible  <bruno@clisp.org>
63014
63015         * modules/freadptr-tests: New file.
63016         * tests/test-freadptr.sh: New file.
63017         * tests/test-freadptr.c: New file.
63018
63019         New module 'freadptr'.
63020         * modules/freadptr: New file.
63021         * lib/freadptr.h: New file.
63022         * lib/freadptr.c: New file.
63023         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
63024
63025 2008-02-26  Karl Berry  <karl@freefriends.org>
63026
63027         Sync from Libtool:
63028         * libltdl/argz.c (argz_add, argz_count): New functions.
63029         * libltdl/argz.in.h: Declare them.
63030         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
63031
63032 2008-02-22  Bruno Haible  <bruno@clisp.org>
63033
63034         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
63035         is a pointer type.  Needed for HP-UX 10.
63036         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
63037         * doc/posix-functions/gmtime_r.texi: Likewise.
63038         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
63039
63040 2008-02-24  Bruno Haible  <bruno@clisp.org>
63041
63042         * modules/environ-tests: New file.
63043         * tests/test-environ.c: New file.
63044
63045         New module 'environ'.
63046         * modules/environ: New file.
63047         * lib/unistd.in.h (environ): New declaration.
63048         * m4/environ.m4: New file.
63049         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
63050         after use.
63051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
63052         HAVE_DECL_ENVIRON.
63053         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
63054         HAVE_DECL_ENVIRON.
63055         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
63056         wrong claim that 'environ' is missing on some systems.
63057         * modules/execute (Depends-on): Add environ.
63058         * lib/execute.c (environ): Remove fallback declaration.
63059         * modules/pipe (Depends-on): Add environ.
63060         * lib/pipe.c (environ): Remove fallback declaration.
63061         * modules/setenv (Depends-on): Add environ.
63062         * lib/setenv.c (environ): Remove fallback declaration.
63063         * modules/unsetenv (Depends-on): Add environ.
63064         * lib/unsetenv.c (environ): Remove fallback declaration.
63065         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
63066         m4/environ.m4.
63067         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
63068         (gl_PREREQ_UNSETENV): Likewise.
63069
63070 2008-02-24  Bruno Haible  <bruno@clisp.org>
63071
63072         * doc/posix-functions/environ.texi: Document the MacOS X problem.
63073
63074 2008-02-20  Bob Proulx  <bob@proulx.com>
63075
63076         Enable use of older two part flavor 'git describe'.
63077         * build-aux/git-version-gen: If using the older two part flavor of
63078         git version then recreate the third part now present in the
63079         newer three part flavor of git describe.
63080
63081 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
63082
63083         * lib/fts.c (fts_build): Typo correction to comment.
63084
63085 2008-02-17  Bruno Haible  <bruno@clisp.org>
63086
63087         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
63088         generating no-op conflicts.
63089
63090 2008-02-17  Bruno Haible  <bruno@clisp.org>
63091
63092         Speed up by 10%.
63093         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
63094         result_entries, rather than an index-based loop.
63095
63096 2008-02-17  Bruno Haible  <bruno@clisp.org>
63097
63098         Speed up by 25%.
63099         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
63100         'hashcode_cached'.
63101         (entry_create): New function.
63102         (entry_hashcode): Use the cached hashcode if possible.
63103         (read_changelog_file, try_split_merged_entry): Use entry_create.
63104
63105 2008-02-17  Bruno Haible  <bruno@clisp.org>
63106
63107         Speed up from O(n^2) to O(n) for long ChangeLog files.
63108         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
63109         (read_changelog_file): Change implementation of entries_reversed list
63110         to rbtreehash.
63111         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
63112
63113 2008-02-17  Bruno Haible  <bruno@clisp.org>
63114
63115         New option --split-merged-entry.
63116         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
63117         (find_paragraph_end, try_split_merged_entry): New functions.
63118         (long_options): Add option --split-merged-entry.
63119         (usage): Document option --split-merged-entry.
63120         (main): Implement option --split-merged-entry.
63121         Reported by Eric Blake.
63122
63123 2008-02-17  Bruno Haible  <bruno@clisp.org>
63124
63125         * lib/git-merge-changelog.c: Include c-strstr.h.
63126         (main): Support the "git pull --rebase" situation.
63127         * modules/git-merge-changelog (Depends-on): Add c-strstr.
63128         Reported by Eric Blake.
63129
63130 2008-02-16  Eric Blake  <ebb9@byu.net>
63131
63132         Avoid doubling \ in common case of "c-maybe" quoting style.
63133         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
63134         eliding outer quotes.
63135         * lib/quotearg.h: Document this.
63136         * tests/test-quotearg.c (result_strings, inputs, results_g)
63137         (flag_results, locale_results): Test it by adding a new string to
63138         each test group.
63139         (compare_strings): Test new string.
63140
63141 2008-02-13  Eric Blake  <ebb9@byu.net>
63142
63143         Avoid trigraph quoting in default output.
63144         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63145         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63146         unless explicitly requested.
63147         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63148
63149 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63150
63151         Don't rely on signed integer overflowing to negative value.
63152         * lib/getugroups.c (getugroups): Include <limits.h>.
63153         Instead, compare against INT_MAX, and increment only if the test passes.
63154
63155 2008-02-13  Jim Meyering  <meyering@redhat.com>
63156         and Eric Blake  <ebb9@byu.net>
63157
63158         Avoid shadowing warning and compile errors on Linux.
63159         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63160         forwarding macros on Linux.
63161         (dcgettext): Define a stub, for Linux.
63162         (results_g, main): Avoid warnings.
63163
63164 2008-02-12  Eric Blake  <ebb9@byu.net>
63165
63166         Silence warning in last patch.
63167         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63168
63169         Quotearg part 4: add tests, fix c-maybe colon quoting.
63170         * lib/quotearg.h: Improve documentation.
63171         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63172         escapes when adding outer quotes.  When quoting trigraphs, use
63173         valid C notation.  When quoting NUL, omit extra characters if next
63174         character is not digit.  Alter prototype.
63175         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63176         callers.
63177         * modules/quotearg-tests: New module.
63178         * tests/test-quotearg.c: New test.
63179
63180 2008-02-07  Eric Blake  <ebb9@byu.net>
63181
63182         Quotearg part 3: add flag to control outer quote elision.
63183         * lib/quotearg.h (c_maybe_quoting_style): New style.
63184         (enum quoting_flags): Better documentation of flags.
63185         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63186         c-maybe style.
63187         (quotearg_buffer_restyled): Handle new flag to elide outer
63188         quotes.
63189
63190         Quotearg part 2: add flag that can control NUL elision.
63191         * lib/quotearg.h (set_quoting_flags): New prototype.
63192         * lib/quotearg.c (struct quoting_options): Add flag field.
63193         (set_quoting_flags): New function.
63194         (quotearg_buffer_restyled): Add flags parameter.
63195         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63196         (quotearg_n_options): Set the flag, since length cannot be
63197         returned.
63198         (quoting_options_from_style): Default flags correctly.
63199
63200         Quotearg part 1: more wrappers, restore quotearg_char state.
63201         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63202         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63203         (quotearg_colon_mem): New wrappers.
63204         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63205         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63206         functions.
63207         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63208         (quotearg_colon_mem): New functions.
63209
63210 2008-02-11  Bruno Haible  <bruno@clisp.org>
63211
63212         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63213         library in the current directory: it does not work with parallel make.
63214         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63215
63216 2008-02-11  Bruno Haible  <bruno@clisp.org>
63217
63218         * .gitattributes: New file.
63219
63220 2008-02-11  Jim Meyering  <meyering@redhat.com>
63221
63222         useless-if-before-free: Fix reversed exit values.
63223         * build-aux/useless-if-before-free: Use correct values
63224         for EXIT_MATCH and EXIT_NO_MATCH.
63225
63226         * build-aux/useless-if-before-free: Close stdout carefully.
63227
63228 2008-02-10  Bruno Haible  <bruno@clisp.org>
63229
63230         New module 'git-merge-changelog'.
63231         * modules/git-merge-changelog: New file.
63232         * lib/git-merge-changelog.c: New file.
63233
63234 2008-02-10  Jim Meyering  <meyering@redhat.com>
63235
63236         useless-if-before-free: New option: --list (-l).
63237
63238         useless-if-before-free: Don't exit immediately upon open failure.
63239         * build-aux/useless-if-before-free: Exit 2 for errors.
63240         Upon failure to open a file, don't exit immediately.
63241         Rather, just warn and continue with any remaining files.
63242
63243 2008-02-10  Bruno Haible  <bruno@clisp.org>
63244
63245         New abstract list operation 'node_set_value'.
63246         * lib/gl_list.h (gl_list_node_set_value): New function.
63247         (struct gl_list_implementation): New field node_set_value.
63248         * lib/gl_list.c (gl_list_node_set_value): New function.
63249         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63250         (gl_array_list_implementation): Update.
63251         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63252         (gl_carray_list_implementation): Update.
63253         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63254         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63255         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63256         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63257         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63258         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63259         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63260         Update.
63261         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63262         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63263         (gl_sublist_list_implementation): Update.
63264
63265 2008-02-10  Bruno Haible  <bruno@clisp.org>
63266
63267         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63268         Needed when ELEMENT is #defined to 'some_type *'.
63269
63270 2008-02-10  Jim Meyering  <meyering@redhat.com>
63271
63272         New script and module: useless-if-before-free
63273         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63274         * build-aux/useless-if-before-free: New file.
63275         * modules/useless-if-before-free: New file.
63276
63277         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63278
63279         xstrtol_error: Fix typo.
63280         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63281         s/exit_failure/exit_status/.
63282
63283 2008-02-09  Jim Meyering  <meyering@redhat.com>
63284
63285         New script and module: gitlog-to-changelog
63286         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63287         * modules/gitlog-to-changelog: New file.
63288         * build-aux/gitlog-to-changelog: New file.
63289
63290 2008-02-08  Jim Meyering  <meyering@redhat.com>
63291
63292         Avoid two "parameter unused" warnings.
63293         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63294         Mark "st" as used.
63295
63296         Use "git COMMAND", not "git-COMMAND".
63297         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63298         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63299         * build-aux/git-version-gen: Use "git status", not "git-status".
63300
63301 2008-02-07  Bruno Haible  <bruno@clisp.org>
63302
63303         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63304         Avoids a crash on Windows Vista.
63305         Reported by Adam Strzelecki <ono@java.pl> via
63306         Simon Josefsson <simon@josefsson.org>.
63307
63308 2008-02-06  Bruno Haible  <bruno@clisp.org>
63309
63310         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63311         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63312         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63314         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63316         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63317         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63325         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63326         left-adjust flag.
63327         * tests/test-snprintf-posix.h (test_function): Likewise.
63328         * tests/test-sprintf-posix.h (test_function): Likewise.
63329         * tests/test-vasprintf-posix.c (test_function): Likewise.
63330         * doc/posix-functions/fprintf.texi: Update.
63331         * doc/posix-functions/printf.texi: Update.
63332         * doc/posix-functions/snprintf.texi: Update.
63333         * doc/posix-functions/sprintf.texi: Update.
63334         * doc/posix-functions/vfprintf.texi: Update.
63335         * doc/posix-functions/vprintf.texi: Update.
63336         * doc/posix-functions/vsnprintf.texi: Update.
63337         * doc/posix-functions/vsprintf.texi: Update.
63338         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63339
63340 2008-02-06  Bruno Haible  <bruno@clisp.org>
63341
63342         Fix bug introduced on 2008-01-26.
63343         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63344
63345 2008-02-06  Bruno Haible  <bruno@clisp.org>
63346
63347         Fix bug introduced on 2007-06-10.
63348         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63349         !NEED_PRINTF_FLAG_ZERO.
63350
63351 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63352
63353         getloadavg: use libperfstat on AIX5
63354         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63355
63356 2008-02-03  Bruno Haible  <bruno@clisp.org>
63357
63358         * lib/diffseq.h: Add comments about required #includes.
63359         Reported by Michael Biggs <gnulib@doubleplum.net>.
63360
63361 2008-02-01  Bruno Haible  <bruno@clisp.org>
63362
63363         * users.txt: Add gnuit.
63364
63365 2008-01-31  Bruno Haible  <bruno@clisp.org>
63366
63367         * lib/md4.c (set_uint32): Mark as inline.
63368         * lib/md5.c (set_uint32): Likewise.
63369         * lib/sha1.c (set_uint32): Likewise.
63370         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63371         * m4/md5.m4 (gl_MD5): Likewise.
63372         * m4/sha1.m4 (gl_SHA1): Likewise.
63373
63374 2008-01-31  Jim Meyering  <meyering@redhat.com>
63375
63376         Use "sizeof VAR", rather than a literal "4".
63377         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63378         * lib/md4.c (md4_read_ctx): Likewise.
63379         * lib/sha1.c (sha1_read_ctx): Likewise.
63380
63381 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63382
63383         * tests/test-sha1.c: New file, based on test-md5.c.
63384
63385         * modules/crypto/sha1-tests: New file.
63386
63387 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63388
63389         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63390
63391 2008-01-31  Jim Meyering  <meyering@redhat.com>
63392
63393         Prefer "sizeof v" over the equivalent "4".
63394         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63395         * lib/md5.c (set_uint32): Likewise.
63396         * lib/sha1.c (set_uint32): Likewise.
63397
63398 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63399
63400         * lib/sha1.c (set_uint32): Mark function as static.
63401
63402 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63403
63404         md2: clarify comments to say that alignment is not required.
63405         * lib/md2.h: Remove warning about alignment in comment.
63406         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63407         never been required.
63408
63409 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63410
63411         md4: adapt alignment constraint fix from sha1.
63412         * lib/md4.c (set_uint32): New function, from sha1.c
63413         (md4_read_ctx): Use it.
63414         (md4_finish_ctx): Doc fix.
63415         * lib/md4.h: Doc fix.
63416
63417 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63418
63419         md5: adapt alignment constraint fix from sha1.
63420         * lib/md5.c (set_uint32): New function, from sha1.c
63421         (md5_read_ctx): Use it.
63422         (md5_finish_ctx): Doc fix.
63423         * lib/md5.h: Doc fix.
63424
63425 2008-01-30  Peter Palfrader  <weasel@debian.org>
63426
63427         sha1: remove the result buffer alignment constraint
63428         * lib/sha1.c (set_uint32): New function.
63429         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63430         constraint.
63431         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63432         * lib/sha1.h: Likewise.
63433
63434 2008-01-30  Andreas Schwab  <schwab@suse.de>
63435             Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63438         correct definition of LDBL_MIN_EXP.
63439
63440 2008-01-30  Karl Berry  <karl@gnu.org>
63441
63442         * config/srclist-update: try to preserve x bit on updates.
63443         * config/srclistvars.sh: update for karl.
63444
63445 2008-01-29  Jim Meyering  <meyering@redhat.com>
63446
63447         vasnprintf.c: Avoid warning about unused label
63448         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63449         "overflow" label definition and associated code with the
63450         same cpp condition that guards the sole use of that label.
63451
63452 2008-01-26  Bruno Haible  <bruno@clisp.org>
63453
63454         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63455         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63456         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63457         * lib/isnanl-nolibm.h (isnanl): Likewise.
63458         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63459
63460 2008-01-26  Bruno Haible  <bruno@clisp.org>
63461
63462         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63463         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63464
63465 2008-01-26  Bruno Haible  <bruno@clisp.org>
63466
63467         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63468         GCC >= 4.0 built-in.
63469         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63470
63471 2008-01-26  Bruno Haible  <bruno@clisp.org>
63472
63473         Rename isnan, applicable to 'double' only, to isnand.
63474         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63475         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63476         (configure.ac): Update.
63477         (Include): Replace "isnan.h" with "isnand.h".
63478         * m4/isnand.m4: Renamed from m4/isnan.m4.
63479         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63480         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63481         instead of isnan.c.
63482         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63483         instead of HAVE_ISNAN_IN_LIBC.
63484         (isnand): Renamed from isnan.
63485         * lib/isnand.c: New file.
63486         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63487         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63488         (Makefile.am): Update.
63489         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63490         Include isnand.h instead of isnan.h.
63491         (main): Test isnand instead of isnan.
63492         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63493         isnan-nolibm.
63494         * modules/frexp (Depends-on): Likewise.
63495         * modules/frexp-tests (Depends-on): Likewise.
63496         * modules/frexp-nolibm (Depends-on): Likewise.
63497         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63498         * modules/isfinite (Depends-on): Likewise.
63499         * modules/round-tests (Depends-on): Likewise.
63500         * modules/signbit (Depends-on): Likewise.
63501         * modules/signbit-tests (Depends-on): Likewise.
63502         * modules/snprintf-posix (Depends-on): Likewise.
63503         * modules/sprintf-posix (Depends-on): Likewise.
63504         * modules/trunc-tests (Depends-on): Likewise.
63505         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63506         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63507         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63508         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63509         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63510         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63511         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63512         * modules/vasnprintf-posix (Depends-on): Likewise.
63513         * modules/vasprintf-posix (Depends-on): Likewise.
63514         * modules/vfprintf-posix (Depends-on): Likewise.
63515         * modules/vsnprintf-posix (Depends-on): Likewise.
63516         * modules/vsprintf-posix (Depends-on): Likewise.
63517         * lib/frexp.c: Include isnand.h instead of isnan.h.
63518         (ISNAN): Set to isnand instead of isnan.
63519         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63520         (gl_isfinited): Use isnand instead of isnan.
63521         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63522         (gl_signbitd): Use isnand instead of isnan.
63523         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63524         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63525         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63526         (main): Use isnand instead of isnan.
63527         * tests/test-round1.c: Include isnand.h.
63528         (main): Use isnand instead of isnan.
63529         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63530         (ISNAN): Set to isnand instead of isnan.
63531         * tests/test-trunc1.c: Include isnand.h.
63532         (main): Use isnand instead of isnan.
63533         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63534         (equal): Use isnand instead of isnan.
63535         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63536         isnand-nolibm.
63537         * NEWS: Mention the change.
63538
63539 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63540             Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63543         the GCC builtins for signbits are present and set
63544         REPLACE_SIGNBIT_USING_GCC if so.
63545         * lib/math.in.h (signbit): Define using GCC builtins if
63546         REPLACE_SIGNBIT_USING_GCC is set.
63547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63548         REPLACE_SIGNBIT_USING_GCC.
63549         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63550
63551 2008-01-25  Jim Meyering  <meyering@redhat.com>
63552
63553         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63554         * lib/poll.c: Include <config.h>, not "config.h".
63555         * tests/test-getaddrinfo.c: Likewise.
63556
63557 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63558
63559         * modules/sockets-tests: New file.
63560
63561 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63562
63563         * modules/sockets: New module, can be used to call WSA_Startup and
63564         WSA_Cleanup when needed.
63565
63566         * lib/sockets.h, lib/sockets.c: New files.
63567
63568         * m4/sockets.m4: New file.
63569
63570         * tests/test-sockets.c: New file.
63571
63572 2008-01-19  Bruno Haible  <bruno@clisp.org>
63573
63574         * doc/posix-headers: Renamed from doc/headers.
63575         * doc/posix-functions: Renamed from doc/functions.
63576         * doc/gnulib.texi: Update.
63577
63578 2008-01-19  Bruno Haible  <bruno@clisp.org>
63579
63580         * doc/glibc-functions/strcasestr.texi: Include contents of
63581         doc/functions/strcasestr.texi, fixing the list of platforms.
63582         * doc/functions/strcasestr.texi: Remove file.
63583
63584 2008-01-19  Bruno Haible  <bruno@clisp.org>
63585
63586         * doc/glibc-functions/memmem.texi: Include contents of
63587         doc/functions/memmem.texi.
63588         * doc/functions/memmem.texi: Remove file.
63589
63590 2008-01-18  Bruno Haible  <bruno@clisp.org>
63591
63592         * doc/glibc-functions/*.texi: New files.
63593         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63594         to use the new files.
63595
63596 2008-01-17  Bruno Haible  <bruno@clisp.org>
63597
63598         * tests/test-gethostname.c (main): Fix printf statement.
63599
63600 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63601
63602         * modules/gethostname-tests: New file.
63603
63604         * tests/test-gethostname.c: New file.
63605
63606 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63607
63608         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63609         used by the UNAME case.  Reported by Bruno Haible
63610         <bruno@clisp.org>.
63611
63612 2008-01-17  Eric Blake  <ebb9@byu.net>
63613
63614         Convert c-strcasestr to be more efficient.
63615         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63616         (Depends-on): Add c-strcase, remove malloca, strnlen.
63617         * tests/test-c-strcasestr.c (main): Enhance test.
63618         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63619
63620 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63621
63622         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63623         Use it in creating po/Makevars.
63624
63625 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63626
63627         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63628         Applications that requires it should initialize libgcrypt
63629         manually.
63630
63631 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63632
63633         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63634
63635 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63636
63637         Fix problem with getdate on mingw32 reported by Simon Josefsson
63638         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63639         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63640         tzname", when deciding whether to declare tzname.
63641         * lib/strftime.c (tzname): Likewise.
63642
63643 2008-01-15  Bruno Haible  <bruno@clisp.org>
63644
63645         Work around a MacOS X 10.5 bug in frexpl().
63646         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63647         * doc/functions/frexpl.texi: Document the bug.
63648         Reported by Elias Pipping <pipping@gentoo.org>.
63649
63650 2008-01-14  Eric Blake  <ebb9@byu.net>
63651
63652         Touch up previous patch.
63653         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63654         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63655
63656         Convert strcasestr module to use Two-Way algorithm.
63657         * modules/strcasestr-simple: New module, based on the old
63658         strcasestr, but with Two-Way rather than KMP.
63659         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63660         * lib/string.in.h (rpl_strcasestr): Declare.
63661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63662         performance.
63663         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63664         * modules/string (Makefile.am): Support strcasestr.
63665         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63666         * modules/strcasestr-tests (Depends-on): Check for alarm.
63667         * tests/test-strcasestr.c: Augment test.
63668         * lib/str-two-way.h: Clean up stray macro.
63669         * NEWS: Document new module.
63670         * MODULES.html.sh (string handling): Likewise.
63671         * doc/functions/strcasestr.texi: New file.
63672         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63673         here, since it is not a POSIX function.
63674
63675 2008-01-14  Colin Watson  <cjwatson@debian.org>
63676             Bruno Haible  <bruno@clisp.org>
63677
63678         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63679         works fine; if not, set REPLACE_STRSIGNAL.
63680         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63681         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63682         REPLACE_STRSIGNAL.
63683         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63684         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63685         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63686
63687 2008-01-14  Bruno Haible  <bruno@clisp.org>
63688
63689         * modules/strsignal (Include): Change to <string.h>.
63690
63691 2008-01-14  Colin Watson  <cjwatson@debian.org>
63692
63693         * modules/argp (Notice): Add a notice recommending to change
63694         XGETTEXT_OPTIONS.
63695         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63696
63697 2008-01-13  Colin Watson  <cjwatson@debian.org>
63698
63699         * modules/strsignal-tests: New file.
63700         * tests/test-strsignal.c: New file.
63701
63702         * lib/strsignal.c: New file, from glibc with modifications.
63703         * lib/siglist.h: New file, from glibc with modifications.
63704         * lib/string.in.h (strsignal): New declaration.
63705         * m4/strsignal.m4: New file.
63706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63707         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63708         * modules/strsignal: New file.
63709         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63710         HAVE_DECL_STRSIGNAL.
63711
63712 2008-01-13  Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63715         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63716         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63717         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63718
63719 2008-01-13  Bruno Haible  <bruno@clisp.org>
63720
63721         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63722         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63723         * lib/argp.h (__attribute__): Likewise.
63724         * lib/c-stack.c (__attribute__): Likewise.
63725         * lib/error.h (__attribute__): Likewise.
63726         * lib/fts.c (__attribute__): Likewise.
63727         * lib/openat.h (__attribute__): Likewise.
63728         * lib/stdio.in.h (__attribute__): Likewise.
63729         * lib/string.in.h (__attribute__): Likewise.
63730         * lib/utimens.c (__attribute__): Likewise.
63731         * lib/vasnprintf.h (__attribute__): Likewise.
63732         * lib/xalloc.h (__attribute__): Likewise.
63733         * lib/xprintf.h (__attribute__): Likewise.
63734         * lib/xstrtol.h (__attribute__): Likewise.
63735         * lib/xvasprintf.h (__attribute__): Likewise.
63736
63737 2008-01-12  Bruno Haible  <bruno@clisp.org>
63738
63739         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63740         * doc/glibc-headers/a.out.texi: New file.
63741         * doc/glibc-headers/aliases.texi: New file.
63742         * doc/glibc-headers/alloca.texi: New file.
63743         * doc/glibc-headers/ar.texi: New file.
63744         * doc/glibc-headers/argp.texi: New file.
63745         * doc/glibc-headers/argz.texi: New file.
63746         * doc/glibc-headers/byteswap.texi: New file.
63747         * doc/glibc-headers/crypt.texi: New file.
63748         * doc/glibc-headers/endian.texi: New file.
63749         * doc/glibc-headers/envz.texi: New file.
63750         * doc/glibc-headers/err.texi: New file.
63751         * doc/glibc-headers/error.texi: New file.
63752         * doc/glibc-headers/execinfo.texi: New file.
63753         * doc/glibc-headers/fpu_control.texi: New file.
63754         * doc/glibc-headers/fstab.texi: New file.
63755         * doc/glibc-headers/fts.texi: New file.
63756         * doc/glibc-headers/getopt.texi: New file.
63757         * doc/glibc-headers/ieee754.texi: New file.
63758         * doc/glibc-headers/ifaddrs.texi: New file.
63759         * doc/glibc-headers/libintl.texi: New file.
63760         * doc/glibc-headers/mcheck.texi: New file.
63761         * doc/glibc-headers/mntent.texi: New file.
63762         * doc/glibc-headers/obstack.texi: New file.
63763         * doc/glibc-headers/paths.texi: New file.
63764         * doc/glibc-headers/printf.texi: New file.
63765         * doc/glibc-headers/pty.texi: New file.
63766         * doc/glibc-headers/resolv.texi: New file.
63767         * doc/glibc-headers/shadow.texi: New file.
63768         * doc/glibc-headers/sysexits.texi: New file.
63769         * doc/glibc-headers/ttyent.texi: New file.
63770
63771 2008-01-12  Jim Meyering  <meyering@redhat.com>
63772
63773         announce-gen: emit Gnulib's git-based version string.
63774         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63775         New option --gnulib-version=V, where V is expected to be
63776         the output of running git describe in the gnulib directory.
63777         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63778         not useful, and plan to stop publishing an xdelta file with each
63779         coreutils release.
63780
63781         * build-aux/announce-gen: Also check for lzma-compressed files.
63782
63783 2008-01-11  Bruno Haible  <bruno@clisp.org>
63784
63785         * tests/test-memmem.c (main): Increase maximum allowed time.
63786         * tests/test-strstr.c (main): Likewise.
63787
63788 2008-01-11  Bruno Haible  <bruno@clisp.org>
63789
63790         * doc/functions/memmem.texi: Add more precisions about platforms.
63791         * doc/functions/strstr.texi: Likewise.
63792
63793 2008-01-10  Eric Blake  <ebb9@byu.net>
63794
63795         * m4/strstr.m4: Delete cruft from copy-n-paste.
63796         Reported by Bruno Haible.
63797
63798 2008-01-10  Bruno Haible  <bruno@clisp.org>
63799
63800         Make c-strstr rely on strstr.
63801         * lib/c-strstr.c: Don't include str-kmp.h.
63802         (c_strstr): Define in terms of strstr.
63803         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63804         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63805
63806 2008-01-10  Bruno Haible  <bruno@clisp.org>
63807
63808         * doc/gnulib.texi (String Functions in C Locale): New section.
63809         * doc/c-ctype.texi: New file.
63810         * doc/c-strcase.texi: New file.
63811         * doc/c-strcaseeq.texi: New file.
63812         * doc/c-strcasestr.texi: New file.
63813         * doc/c-strstr.texi: New file.
63814         * doc/c-strtod.texi: New file.
63815         * doc/c-strtold.texi: New file.
63816
63817 2008-01-10  Eric Blake  <ebb9@byu.net>
63818
63819         * lib/relocatable.h: Fix a comment.
63820
63821 2008-01-10  Eric Blake  <ebb9@byu.net>
63822
63823         Share two-way algorithm.
63824         * lib/str-two-way.h: New file, merged from...
63825         * lib/memmem.c: ...here...
63826         * lib/strstr.c: ...and here.
63827         * modules/memmem (Files): Use it.
63828         * modules/strstr (Files): Likewise.
63829
63830         Avoid quadratic strstr implementations.
63831         * lib/strstr.c: New file.
63832         * m4/strstr.m4: Likewise.
63833         * modules/strstr: Likewise.
63834         * modules/strstr-tests: Likewise.
63835         * tests/test-strstr.c: Likewise.
63836         * lib/string.in.h (rpl_strstr): Declare.
63837         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63838         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63839         * modules/string (Makefile.am): Likewise.
63840         * MODULES.html.sh (string handling): Mention new module.
63841         * doc/functions/strstr.texi (strstr): Document the bug.
63842
63843 2008-01-10  Bruno Haible  <bruno@clisp.org>
63844
63845         * lib/relocatable.h (relocate): State whether result is freshly
63846         allocated or not.
63847         * lib/relocatable.c (relocate): Return a freshly allocated string
63848         instead of a pointer to a privately held string.
63849         Reported by Sylvain Beucler <beuc@gnu.org>.
63850
63851 2008-01-10  Colin Watson  <cjwatson@debian.org>
63852
63853         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63854         s/S_ISNLK/S_ISLNK/.
63855
63856 2008-01-09  Bruno Haible  <bruno@clisp.org>
63857
63858         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63859         and other files.
63860         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63861         if it's only a guess.
63862         * modules/memmem: Simplify by depending on memmem-simple.
63863
63864 2008-01-09  Bruno Haible  <bruno@clisp.org>
63865
63866         Work around OpenBSD 4.0 tdelete() bug.
63867         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63868         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63869         macros and don't redefine the enum values.
63870         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63871         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63872         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63873
63874 2008-01-09  Bruno Haible  <bruno@clisp.org>
63875
63876         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63877         (main): Don't perform the tests if setlocale did not install a UTF-8
63878         locale. Needed on OpenBSD 4.0.
63879         * modules/wcwidth-tests (Depends-on): Add localcharset.
63880
63881 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63882
63883         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63884         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63885         * NEWS: announce this.
63886         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63887
63888 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63889         and Eric Blake  <ebb9@byu.net>
63890
63891         Add memmem-simple module.
63892         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63893         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63894         * modules/memmem-simple: New file.
63895         * modules/memmem (Description): Tweak.
63896         * MODULES.html.sh (string handling): Mention new module.
63897         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63898         addressed by memmem-simple.
63899         * NEWS: Document the difference.
63900
63901 2008-01-09  Eric Blake  <ebb9@byu.net>
63902
63903         Give gcc some memmem optimization hints.
63904         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63905         (strcasestr): Declare as pure.
63906         * modules/memmem (Maintainer): Claim my implementation.
63907
63908 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63909
63910         Support AIX 6.1 and higher.
63911         * build-aux/config.libpath: Likewise.
63912         * build-aux/config.rpath: Likewise.
63913
63914 2008-01-08  Jim Meyering  <meyering@redhat.com>
63915             Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63918         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63919         Reported by Peter Fales in
63920         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63921
63922 2008-01-08  Bruno Haible  <bruno@clisp.org>
63923
63924         * modules/unictype/category-of (Depends-on): Add
63925         unictype/category-none.
63926         * modules/unictype/category-and-tests (Depends-on): Add
63927         unictype/category-{L,N,Lu,Nd}.
63928         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63929         * modules/unictype/category-or-tests (Depends-on): Add
63930         unictype/category-{L,N}.
63931         * modules/unictype/category-name-tests (Depends-on): Add
63932         unictype/category-{Z,Nl}.
63933         Reported by Simon Josefsson.
63934
63935 2008-01-08  Bruno Haible  <bruno@clisp.org>
63936
63937         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63938         convention better.
63939         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63940         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63941         Reported by Peter Miller <millerp@canb.auug.org.au>.
63942
63943 2008-01-08  Eric Blake  <ebb9@byu.net>
63944
63945         Rewrite memmem to guarantee linear complexity without malloc.
63946         * lib/memmem.c (memmem): Use Two-Way rather than
63947         Knuth-Morris-Pratt, to allow O(1) space usage.
63948         (critical_factorization, two_way_short_needle)
63949         (two_way_long_needle): New functions.
63950         (knuth_morris_pratt): Delete.
63951         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63952         Add stdint.
63953         * tests/test-memmem.c (main): Add tests for periodic needle and
63954         sublinear performance.
63955         * doc/functions/memmem.texi (memmem): Document other deficiencies
63956         in cygwin and older glibc.
63957
63958 2008-01-08  Bruno Haible  <bruno@clisp.org>
63959
63960         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63961         augmentation.
63962
63963 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63964
63965         Add a configure time option: --disable-acl.
63966         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63967         AC_ARG_ENABLE(acl).
63968
63969 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63970
63971         * tests/test-localename.c: Don't include obsolete "setenv.h".
63972
63973         * modules/localename-tests (Depends-on): Need unsetenv.
63974
63975 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63976
63977         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63978
63979 2008-01-06  Colin Watson  <cjwatson@debian.org>
63980
63981         * users.txt: Add man-db.
63982
63983 2008-01-07  Bruno Haible  <bruno@clisp.org>
63984
63985         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63986         previous section name.
63987
63988 2008-01-07  Bruno Haible  <bruno@clisp.org>
63989
63990         * lib/progname.c (set_program_name): Don't strip off a leading
63991         "lt-" prefix outside a .libs directory.
63992         Suggested by Paul Eggert.
63993
63994 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63995             Bruno Haible  <bruno@clisp.org>
63996
63997         Improve memory cleanup in 'relocatable' module.
63998         * lib/relocatable.h (compute_curr_prefix): Change return type to
63999         'char *'.
64000         * lib/relocatable.c (compute_curr_prefix): Change return type to
64001         'char *'. Free curr_installdir after use.
64002         (relocate): Free curr_prefix_better after use.
64003         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
64004
64005 2008-01-01  Bruno Haible  <bruno@clisp.org>
64006
64007         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
64008         failure on older glibc systems.
64009         Reported by Peter Fales <psfales@alcatel-lucent.com>.
64010
64011 2008-01-05  Eric Blake  <ebb9@byu.net>
64012
64013         Avoid quadratic system memmem.
64014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
64015         Reported by Ralf Wildenhues.
64016
64017         Fix memmem test for mingw.
64018         * modules/memmem-tests (configure.ac): Check for alarm.
64019         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
64020         it.
64021         * doc/functions/memmem.texi: New file.
64022         * doc/gnulib.texi (Function Substitutes): Add memmem.
64023         Reported by Bruno Haible.
64024
64025 2008-01-04  Bruno Haible  <bruno@clisp.org>
64026
64027         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
64028         Require gl_HEADER_STRINGS_H_DEFAULTS, not
64029         gl_HEADER_STRING_H_DEFAULTS.
64030
64031 2008-01-04  Eric Blake  <ebb9@byu.net>
64032
64033         Shorten duration of memmem test.
64034         * tests/test-memmem.c (main): Use alarm to declare failure if test
64035         is taking too long.
64036         Reported by Ralf Wildenhues.
64037
64038 2007-12-21  Simon Josefsson  <simon@josefsson.org>
64039
64040         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
64041         string, needed by strerror.
64042
64043 2008-01-03  Colin Watson  <cjwatson@debian.org>
64044             Bruno Haible  <bruno@clisp.org>
64045
64046         * doc/gnulib-tool.texi (Localization): New section.
64047
64048 2008-01-02  Bruno Haible  <bruno@clisp.org>
64049
64050         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
64051         variables to 'unsigned char *' type.
64052         Reported by Paul Eggert.
64053
64054 2008-01-02  Jim Meyering  <jim@meyering.net>
64055
64056         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
64057
64058 2007-12-31  Jim Meyering  <jim@meyering.net>
64059
64060         Avoid use of private FTS type name.
64061         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
64062
64063 2007-12-30  Karl Berry  <karl@gnu.org>
64064
64065         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
64066         work around defect in Texinfo and/or the standalone Info browser.
64067
64068 2007-12-30  Bruno Haible  <bruno@clisp.org>
64069
64070         Unify 5 copies of the KMP code.
64071         * lib/str-kmp.h: New file.
64072         * lib/c-strcasestr.c: Include str-kmp.h.
64073         (knuth_morris_pratt): Remove function.
64074         (c_strcasestr): Update.
64075         * lib/c-strstr.c: Include str-kmp.h.
64076         (knuth_morris_pratt): Remove function.
64077         (c_strcasestr): Update.
64078         * lib/mbscasestr.c: Include str-kmp.h.
64079         (knuth_morris_pratt_unibyte): Remove function.
64080         * lib/mbsstr.c: Include str-kmp.h.
64081         (knuth_morris_pratt_unibyte): Remove function.
64082         * lib/strcasestr.c: Include str-kmp.h.
64083         (knuth_morris_pratt): Remove function.
64084         (strcasestr): Update.
64085         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
64086         * modules/c-strstr (Files): Likewise.
64087         * modules/mbscasestr (Files): Likewise.
64088         * modules/mbsstr (Files): Likewise.
64089         * modules/strcasestr (Files): Likewise.
64090         Suggested by Paul Eggert.
64091
64092 2007-12-30  Bruno Haible  <bruno@clisp.org>
64093
64094         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
64095         defined.
64096
64097 2007-12-30  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/xmalloca.h: Include xalloc.h.
64100         (xnmalloca): New macro.
64101
64102 2007-12-30  Bruno Haible  <bruno@clisp.org>
64103
64104         * lib/malloca.h (nmalloca): New macro.
64105         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
64106         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
64107         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
64108         knuth_morris_pratt_multibyte): Likewise.
64109         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
64110         knuth_morris_pratt_multibyte): Likewise.
64111         * lib/memmem.c (knuth_morris_pratt): Likewise.
64112         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
64113
64114 2007-12-25  Bruno Haible  <bruno@clisp.org>
64115
64116         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
64117         * lib/glob.c: Don't include openat.h.
64118         (link_exists2_p): Add back the code that deals with the
64119         !GLOB_ALTDIRFUNC case.
64120         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
64121         let it do the filename concatenation.
64122         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
64123         * modules/glob (Depends-on): Remove openat.
64124
64125 2007-12-31  Bruno Haible  <bruno@clisp.org>
64126
64127         * modules/dirfd (License): Change to LGPLv2+.
64128         Approved by Jim Meyering.
64129
64130 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64131
64132         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
64133         when multiplying M by sizeof (size_t).
64134
64135 2007-12-10  Martin Lambers  <marlam@marlam.de>
64136
64137         Override getpagesize on mingw.
64138         * lib/getpagesize.c: New file.
64139         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
64140         * modules/getpagesize (Files): Add lib/getpagesize.c.
64141         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
64142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64143         REPLACE_GETPAGESIZE.
64144         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64145
64146 2007-12-25  Bruno Haible  <bruno@clisp.org>
64147
64148         * modules/localcharset (Notice): New field.
64149         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64150         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64151
64152 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64153             Bruno Haible  <bruno@clisp.org>
64154
64155         Avoid using the syntax symbol() in formatted documentation.
64156         * MODULES.html.sh (func_module): When replacing symbol() with a
64157         hyperlink, remove the parentheses. Show an error if some remain.
64158         Recognize and render the '...' syntax.
64159         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64160         Rework. Add paragraph about GCC's inlining.
64161         * doc/alloca.texi: Likewise.
64162         * doc/error.texi: Remove parentheses from symbol reference.
64163         * doc/gnulib-intro.texi: Likewise.
64164         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64165         * modules/fnmatch (Description): Reword to say "the ... function".
64166         * modules/full-read (Description): Likewise.
64167         * modules/full-write (Description): Likewise.
64168         * modules/safe-read (Description): Likewise.
64169         * modules/safe-write (Description): Likewise.
64170         * modules/strchrnul (Description): Likewise.
64171         * modules/trim (Description): Likewise.
64172         * modules/error (Description): Remove parentheses from symbol
64173         references.
64174         * modules/verror (Description): Likewise.
64175         Reported by Karl Berry.
64176
64177 2007-12-25  Bruno Haible  <bruno@clisp.org>
64178
64179         Fixup after 2007-10-16 commit.
64180         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64181
64182 2007-12-24  Bruno Haible  <bruno@clisp.org>
64183
64184         Make --enable-relocatable work with DESTDIR.
64185         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64186         to compute installdir from destprog.
64187         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64188         also set the RELOC_DESTDIR variable.
64189         Reported by Левашев Иван <octagram@bluebottle.com>.
64190
64191 2007-12-24  Bruno Haible  <bruno@clisp.org>
64192
64193         Fix link error due to xalloc_die().
64194         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64195         of xreadlink.
64196         * lib/relocwrapper.c: Update comments.
64197         * build-aux/install-reloc: Remove xreadlink.c from file list.
64198         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64199         xreadlink.c.
64200         Reported by Левашев Иван <octagram@bluebottle.com>.
64201
64202 2007-12-24  Bruno Haible  <bruno@clisp.org>
64203
64204         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64205         * lib/setenv.h: Remove file.
64206         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64207         lib/setenv.h.
64208         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64209         (Depends-on): Add stdlib.
64210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64211         gl_FUNC_UNSETENV.
64212         (Include): Replace setenv.h with <stdlib.h>.
64213         * modules/unsetenv: New file.
64214         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64215         * lib/unsetenv.c: Include <stdlib.h> first.
64216         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64217         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64218         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64219         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64220         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64221         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64222         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64223         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64224         * doc/functions/unsetenv.texi: Update.
64225         * modules/xsetenv (Depends-on): Add unsetenv.
64226         * modules/getdate (Depends-on): Likewise.
64227         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64228         * lib/xsetenv.c: Don't include setenv.h.
64229         * lib/getdate.y: Likewise.
64230         * lib/relocwrapper.c: Likewise.
64231         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64232         (Depends-on): Add stdlib.
64233         * NEWS: Mention the changes.
64234         Reported by Левашев Иван <octagram@bluebottle.com>.
64235
64236 2007-12-23  Bruno Haible  <bruno@clisp.org>
64237
64238         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64239         indentation.
64240
64241 2007-12-23  Bruno Haible  <bruno@clisp.org>
64242
64243         * lib/c-strcasestr.c: Add more comments.
64244         * lib/c-strstr.c: Likewise.
64245         * lib/mbscasestr.c: Likewise.
64246         * lib/mbsstr.c: Likewise.
64247         * lib/strcasestr.c: Likewise.
64248         * lib/memmem.c: Likewise.
64249
64250 2007-12-23  Bruno Haible  <bruno@clisp.org>
64251
64252         * tests/test-memmem.c: Include <string.h> first.
64253
64254 2007-12-22  Bruno Haible  <bruno@clisp.org>
64255
64256         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64257         the contents of $testsbase.
64258         Reported by Ralf Wildenhues.
64259
64260 2007-12-22  Bruno Haible  <bruno@clisp.org>
64261
64262         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64263         two variables local_ldadd_before, local_ldadd_last.
64264
64265 2007-12-20  Eric Blake  <ebb9@byu.net>
64266
64267         Work around circular library issue when cross-compiling.
64268         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64269         that progname.o does not need to pull in rpl_memcmp.
64270
64271 2007-12-19  Eric Blake  <ebb9@byu.net>
64272
64273         Fix memmem to avoid O(n^2) worst-case complexity.
64274         * lib/memmem.c (knuth_morris_pratt): New function.
64275         (memmem): Use it if first few naive iterations fail.
64276         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64277         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64278         * modules/memchr (License): Likewise.
64279         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64280         malloca.
64281         * tests/test-memmem.c: Rewrite, borrowing ideas from
64282         test-mbsstr1.c; the old version wouldn't even compile!
64283         * modules/memmem-tests: New file.
64284         * lib/string.in.h (rpl_memmem): Add declaration.
64285         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64287         REPLACE_MEMMEM.
64288
64289 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64290
64291         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64292         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64293         before any system include files, and undef after them all.  This
64294         should fix a problem on VMS reported by John E. Malmberg in
64295         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64296
64297 2007-12-17  Eric Blake  <ebb9@byu.net>
64298
64299         Revert addition of verify, for BSD/OS.
64300         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64301         can't handle large files, for the sake of obsolete platforms.
64302         * modules/fseeko (Depends-on): Remove verify.
64303         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64304         * doc/functions/ftello.texi (ftello): Likewise.
64305         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64306         Reported by Larry Jones.
64307
64308 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64309
64310         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64311         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64312
64313 2007-12-17  Jim Meyering  <meyering@redhat.com>
64314
64315         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64316         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64317         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64318         * modules/getcwd (Depends-on): Add openat.
64319         Reported by Petr Salinger.
64320
64321 2007-12-17  Bruno Haible  <bruno@clisp.org>
64322
64323         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64324         avoid a segmentation fault of the configure test on x86_64 systems.
64325
64326 2007-12-15  Jim Meyering  <meyering@redhat.com>
64327
64328         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64329
64330 2007-12-13  Eric Blake  <ebb9@byu.net>
64331
64332         Another fseek test.
64333         * tests/test-fseek.c (main): Also test ungetc handling.
64334         * tests/test-fseeko.c (main): Likewise.
64335         * modules/fseeko (Depends-on): Add verify.
64336         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64337         large.
64338         Reported by Larry Jones.
64339
64340         Fix fseeko on mingw.
64341         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64342         seek.
64343
64344         Beef up fseek tests.
64345         * tests/test-fseek.c (main): Also test eof handling.
64346         * tests/test-fseeko.c (main): Likewise.
64347         Reported by Larry Jones.
64348
64349 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64350
64351         Fix fseeko on BSD-based platforms.
64352         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64353         successful seek.
64354
64355 2007-12-12  Eric Blake  <ebb9@byu.net>
64356
64357         Allow circular dependency of separate libtests.a
64358         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64359         when use_libtests.
64360
64361 2007-12-11  Eric Blake  <ebb9@byu.net>
64362
64363         Fix bug with -0.0L in previous patch.
64364         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64365         * tests/test-isnan.c (main): Also test on zeroes.
64366         * tests/test-isnanf.c (main): Likewise.
64367         * tests/test-isnanl.h (main): Likewise.
64368
64369         Detect pseudo-denormals on x86 even when cross-compiling.
64370         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64371         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64372         invalid bit patterns that happen to satisfy ==.
64373
64374         Avoid link failures with separate libtests.a.
64375         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64376         last, to satisfy circular dependencies.
64377
64378 2007-12-11  Eric Blake  <ebb9@byu.net>
64379         and Bruno Haible  <bruno@clisp.org>
64380
64381         Fix OpenBSD 4.0 <float.h> handling of long double.
64382         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64383         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64384         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64385
64386 2007-12-11  Jim Meyering  <meyering@redhat.com>
64387
64388         * users.txt: Add libvirt.
64389
64390         Support versions of autoconf prior to 2.59c.
64391         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64392         if it is not already defined.
64393
64394 2007-12-09  Bruno Haible  <bruno@clisp.org>
64395
64396         Let 'gnulib-tool --import' collect sources needed for the tests in
64397         tests/ rather than in lib/.
64398         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64399         argument. If true, add rules to generate libtests.a, and put libtests.a
64400         into $(LDADD). Consider source files in subdirectories and set
64401         uses_subdirs.
64402         (func_emit_initmacro_start, func_emit_initmacro_end,
64403         func_emit_initmacro_done): Pass all arguments explicitly.
64404         (func_import): Determine two module lists main_modules,
64405         testsrelated_modules. Determine use_libtests. Determine two variables
64406         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64407         instead of just sed_transform_lib_file. Determine two variables
64408         main_files and testsrelated_files. Compute 'files' as the union of
64409         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64410         func_add_or_update. In the generated gnulib-comp.m4, collect the
64411         object files for tests/ in different variables than those for lib/.
64412         Substitute LIBTESTS_LIBDEPS.
64413         (func_create_testdir): Combine the uses_subdirs results from
64414         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64415
64416 2007-12-09  Bruno Haible  <bruno@clisp.org>
64417
64418         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64419         the build-aux directory.
64420
64421 2007-12-09  Bruno Haible  <bruno@clisp.org>
64422
64423         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64424         introduced on 2006-09-09.
64425
64426 2007-12-07  Jim Meyering  <meyering@redhat.com>
64427
64428         Let these macros work also with autoconf-2.59.
64429         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64430         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64431         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64432
64433 2007-12-06  Jim Meyering  <meyering@redhat.com>
64434
64435         Avoid a configure-time syntax error in gl_FUNC_ACL.
64436         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64437         function in each branch, before testing the cache variable.
64438
64439 2007-12-04  Eric Blake  <ebb9@byu.net>
64440
64441         Make scripts executable.
64442         * build-aux/config.guess: Add execute permissions.
64443         * build-aux/config.sub: Likewise.
64444         * build-aux/gendocs.sh: Likewise.
64445
64446         Fix frexp on mingw.
64447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64448         cross-compiling.
64449         * doc/functions/frexp.texi (frexp): Document the bug.
64450
64451         Make cygwin fseeko check more reliable.
64452         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64453         version numbers, rather than unrelated feature check.
64454         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64455         * doc/functions/ftello.texi (ftello): Likewise.
64456         Reported by Bruno Haible.
64457
64458         * m4/strerror.m4: Bump version number.
64459
64460 2007-12-03  Bruno Haible  <bruno@clisp.org>
64461
64462         * doc/functions/mprotect.texi: Mention the mingw problem.
64463
64464 2007-12-03  Eric Blake  <ebb9@byu.net>
64465
64466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64467         REPLACE_STRERROR is initialized before this macro.
64468
64469 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64470
64471         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64472         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64473         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64474         put -lsec in even for programs other than 'ls'.  This fixes a problem
64475         for gettext reported by Bruno Haible in
64476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64477         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64478         Add support for Solaris 10.  This isn't efficient, but should get the
64479         job done for now.
64480
64481 2007-12-03  James Youngman  <jay@gnu.org>
64482
64483         * doc/regexprops-generic.texi: change "an close-group" to "a
64484         close-group" and "illegal" to "not allowed".
64485
64486 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64487
64488         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64489         pr_byname.h. Needed for the rare case when the maintainer has done
64490         "make maintainer-clean" in the source directory and then attempts a
64491         build outside the source directory.
64492         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64493         scripts_byname.h.
64494
64495 2007-12-02  Martin Lambers <marlam@marlam.de>
64496             Bruno Haible  <bruno@clisp.org>
64497
64498         * lib/getpagesize.h: Remove file.
64499         * lib/unistd.in.h: Include declaration of getpagesize here.
64500         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64501         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64502         HAVE_SYS_PARAM_H.
64503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64504         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64505         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64506         (Depends-on): Add unistd.
64507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64508         (Include): Use <unistd.h> instead of getpagesize.h.
64509         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64510         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64511         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64512         gl_GETPAGESIZE invocation, already handled by module dependency.
64513         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64514
64515 2007-12-02  Bruno Haible  <bruno@clisp.org>
64516
64517         * modules/strings-tests: New file.
64518         * tests/test-strings.c: New file.
64519
64520         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64521         * lib/strings.in.h: New file.
64522         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64523         * m4/strings_h.m4: New file.
64524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64525         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64526         * modules/strings: New file.
64527         * modules/string (Makefile.am): Update.
64528         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64529         Reported by Karl Berry.
64530
64531 2007-12-01  Eric Blake  <ebb9@byu.net>
64532
64533         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64534         accommodate fix in cygwin 1.5.25.
64535
64536 2007-12-01  Jim Meyering  <meyering@redhat.com>
64537
64538         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64539         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64540         that would inhibit utf8-optimization of a regexp containing line-
64541         or buffer-anchors, e.g., `^', `$'.
64542
64543 2007-11-30  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64546         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64547         glthread_recursive_lock_init.
64548         * lib/lock.c (glthread_recursive_lock_init)
64549         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64550         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64551
64552 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         New function qset_acl, like set_acl but with syscall semantics.
64555         * lib/acl.h (qset_acl): New decl.
64556         * lib/acl.c (qset_acl): New function.
64557         (set_acl): Use new function.  Use more-consistent diagnostics.
64558
64559 2007-11-28  Jim Meyering  <meyering@redhat.com>
64560
64561         * modules/physmem (License): Change from GPL to LGPLv2+.
64562
64563 2007-11-26  Bruno Haible  <bruno@clisp.org>
64564
64565         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64566         'long double' type has excess precision.
64567         Reported by Jim Meyering in
64568         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64569
64570 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64571
64572         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64573         Sync from <http://gnu.org/licenses>.
64574         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64575         with license text from same location.
64576         * doc/maintain.texi, doc/standards.texi:  Sync from
64577         <http://savannah.gnu.org/projects/gnustandards>.
64578
64579 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64580         and Jim Meyering  <meyering@redhat.com>
64581
64582         Adjust getdate' grammar to accept a slightly more regular language.
64583         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64584         Before, the former was rejected.
64585         * lib/getdate.y (digits_to_date_time): New function, factored
64586         out of ...
64587         (number): ...here.  Just call digits_to_date_time.
64588         (hybrid): New non-terminal to handle an <unsigned number,
64589         signed relative offset> sequence consistently.
64590
64591 2007-11-18  Jim Meyering  <meyering@redhat.com>
64592
64593         Pull my changes from coreutils:
64594         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64595         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64596         use of $gnulib_tool_option_extras, so that it's separated from the
64597         preceding argument.
64598
64599         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64600         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64601         parent destination directories before copying a file into place.
64602
64603 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64604
64605         bootstrap: work also with 4-argument variant of AC_INIT
64606         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64607
64608 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64609
64610         Port test-getaddrinfo to Solaris.
64611         Problem reported by Bruno Haible in
64612         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64613         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64614         explanation of setting 'hints'.
64615         Don't reject an implementation merely because it returns EAI_SERVICE.
64616         (EAI_SERVICE): Define to 0 if not defined.
64617
64618 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64619
64620         The license of gnu-make and posix-shell is now "GPLed build tool".
64621         * modules/gnu-make (License): Likewise.
64622         * modules/posix-shell (License): Likewise.
64623
64624         New module posix-shell, for determining a POSIX shell
64625         or perhaps something that is close enough to a POSIX shell.
64626         * m4/posix-shell.m4: New file.
64627         * modules/posix-shell: New file.
64628
64629         * MODULES.html.sh: Mention new module.
64630
64631         New module gnu-make, for determining whether we're using GNU Make.
64632         * m4/gnu-make.m4: New file.
64633         * modules/gnu-make: New file.
64634         * MODULES.html.sh: Mention new module.
64635
64636 2007-11-14  Jim Meyering  <meyering@redhat.com>
64637
64638         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64639         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64640         use this macro to create a function _definition_.
64641         Remove useless "#undef ARGMATCH_DIE".
64642
64643 2007-11-14  Bruno Haible  <bruno@clisp.org>
64644
64645         * lib/config.charset: Update for OpenBSD 4.1.
64646         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64647
64648 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         Document 64-bit #if problems in stdint.texi.
64651         * doc/headers/stdint.texi (stdint.h): Mention problems with
64652         64-bit-#if, and how to work around them.
64653
64654         Don't insist on 'long long int' support in the preprocessor.  It
64655         breaks too many things.  For example, PRIdMAX still uses a 'long
64656         long int' format with the latest Sun compiler, even though
64657         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64658         preprocessor problem.  This causes the latest coreutils to dump
64659         core on Solaris 10 sparc with the Sun C compiler.
64660         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64661         the troublesome expressions at configure-time, not at #if-time.
64662         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64663         preprocessor.
64664         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64665         compile-time C checks, done at 'configure'-time.
64666         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64667         * modules/inttypes (Makefile): Substitute the new symbols that
64668         gl_INTTYPES_H now generates.
64669         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64670
64671 2007-11-12  Bruno Haible  <bruno@clisp.org>
64672
64673         Tests for Unicode character classification functions.
64674
64675         * modules/unictype/bidicategory-byname-tests: New file.
64676         * modules/unictype/bidicategory-name-tests: New file.
64677         * modules/unictype/bidicategory-of-tests: New file.
64678         * modules/unictype/bidicategory-test-tests: New file.
64679         * modules/unictype/block-list-tests: New file.
64680         * modules/unictype/block-of-tests: New file.
64681         * modules/unictype/block-test-tests: New file.
64682         * modules/unictype/category-C-tests: New file.
64683         * modules/unictype/category-Cc-tests: New file.
64684         * modules/unictype/category-Cf-tests: New file.
64685         * modules/unictype/category-Cn-tests: New file.
64686         * modules/unictype/category-Co-tests: New file.
64687         * modules/unictype/category-Cs-tests: New file.
64688         * modules/unictype/category-L-tests: New file.
64689         * modules/unictype/category-Ll-tests: New file.
64690         * modules/unictype/category-Lm-tests: New file.
64691         * modules/unictype/category-Lo-tests: New file.
64692         * modules/unictype/category-Lt-tests: New file.
64693         * modules/unictype/category-Lu-tests: New file.
64694         * modules/unictype/category-M-tests: New file.
64695         * modules/unictype/category-Mc-tests: New file.
64696         * modules/unictype/category-Me-tests: New file.
64697         * modules/unictype/category-Mn-tests: New file.
64698         * modules/unictype/category-N-tests: New file.
64699         * modules/unictype/category-Nd-tests: New file.
64700         * modules/unictype/category-Nl-tests: New file.
64701         * modules/unictype/category-No-tests: New file.
64702         * modules/unictype/category-P-tests: New file.
64703         * modules/unictype/category-Pc-tests: New file.
64704         * modules/unictype/category-Pd-tests: New file.
64705         * modules/unictype/category-Pe-tests: New file.
64706         * modules/unictype/category-Pf-tests: New file.
64707         * modules/unictype/category-Pi-tests: New file.
64708         * modules/unictype/category-Po-tests: New file.
64709         * modules/unictype/category-Ps-tests: New file.
64710         * modules/unictype/category-S-tests: New file.
64711         * modules/unictype/category-Sc-tests: New file.
64712         * modules/unictype/category-Sk-tests: New file.
64713         * modules/unictype/category-Sm-tests: New file.
64714         * modules/unictype/category-So-tests: New file.
64715         * modules/unictype/category-Z-tests: New file.
64716         * modules/unictype/category-Zl-tests: New file.
64717         * modules/unictype/category-Zp-tests: New file.
64718         * modules/unictype/category-Zs-tests: New file.
64719         * modules/unictype/category-and-not-tests: New file.
64720         * modules/unictype/category-and-tests: New file.
64721         * modules/unictype/category-byname-tests: New file.
64722         * modules/unictype/category-name-tests: New file.
64723         * modules/unictype/category-none-tests: New file.
64724         * modules/unictype/category-of-tests: New file.
64725         * modules/unictype/category-or-tests: New file.
64726         * modules/unictype/category-test-withtable-tests: New file.
64727         * modules/unictype/combining-class-tests: New file.
64728         * modules/unictype/ctype-alnum-tests: New file.
64729         * modules/unictype/ctype-alpha-tests: New file.
64730         * modules/unictype/ctype-blank-tests: New file.
64731         * modules/unictype/ctype-cntrl-tests: New file.
64732         * modules/unictype/ctype-digit-tests: New file.
64733         * modules/unictype/ctype-graph-tests: New file.
64734         * modules/unictype/ctype-lower-tests: New file.
64735         * modules/unictype/ctype-print-tests: New file.
64736         * modules/unictype/ctype-punct-tests: New file.
64737         * modules/unictype/ctype-space-tests: New file.
64738         * modules/unictype/ctype-upper-tests: New file.
64739         * modules/unictype/ctype-xdigit-tests: New file.
64740         * modules/unictype/decimal-digit-tests: New file.
64741         * modules/unictype/digit-tests: New file.
64742         * modules/unictype/mirror-tests: New file.
64743         * modules/unictype/numeric-tests: New file.
64744         * modules/unictype/property-alphabetic-tests: New file.
64745         * modules/unictype/property-ascii-hex-digit-tests: New file.
64746         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64747         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64748         * modules/unictype/property-bidi-block-separator-tests: New file.
64749         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64750         * modules/unictype/property-bidi-common-separator-tests: New file.
64751         * modules/unictype/property-bidi-control-tests: New file.
64752         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64753         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64754         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64755         * modules/unictype/property-bidi-european-digit-tests: New file.
64756         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64757         * modules/unictype/property-bidi-left-to-right-tests: New file.
64758         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64759         * modules/unictype/property-bidi-other-neutral-tests: New file.
64760         * modules/unictype/property-bidi-pdf-tests: New file.
64761         * modules/unictype/property-bidi-segment-separator-tests: New file.
64762         * modules/unictype/property-bidi-whitespace-tests: New file.
64763         * modules/unictype/property-byname-tests: New file.
64764         * modules/unictype/property-combining-tests: New file.
64765         * modules/unictype/property-composite-tests: New file.
64766         * modules/unictype/property-currency-symbol-tests: New file.
64767         * modules/unictype/property-dash-tests: New file.
64768         * modules/unictype/property-decimal-digit-tests: New file.
64769         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64770         * modules/unictype/property-deprecated-tests: New file.
64771         * modules/unictype/property-diacritic-tests: New file.
64772         * modules/unictype/property-extender-tests: New file.
64773         * modules/unictype/property-format-control-tests: New file.
64774         * modules/unictype/property-grapheme-base-tests: New file.
64775         * modules/unictype/property-grapheme-extend-tests: New file.
64776         * modules/unictype/property-grapheme-link-tests: New file.
64777         * modules/unictype/property-hex-digit-tests: New file.
64778         * modules/unictype/property-hyphen-tests: New file.
64779         * modules/unictype/property-id-continue-tests: New file.
64780         * modules/unictype/property-id-start-tests: New file.
64781         * modules/unictype/property-ideographic-tests: New file.
64782         * modules/unictype/property-ids-binary-operator-tests: New file.
64783         * modules/unictype/property-ids-trinary-operator-tests: New file.
64784         * modules/unictype/property-ignorable-control-tests: New file.
64785         * modules/unictype/property-iso-control-tests: New file.
64786         * modules/unictype/property-join-control-tests: New file.
64787         * modules/unictype/property-left-of-pair-tests: New file.
64788         * modules/unictype/property-line-separator-tests: New file.
64789         * modules/unictype/property-logical-order-exception-tests: New file.
64790         * modules/unictype/property-lowercase-tests: New file.
64791         * modules/unictype/property-math-tests: New file.
64792         * modules/unictype/property-non-break-tests: New file.
64793         * modules/unictype/property-not-a-character-tests: New file.
64794         * modules/unictype/property-numeric-tests: New file.
64795         * modules/unictype/property-other-alphabetic-tests: New file.
64796         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64797         * modules/unictype/property-other-grapheme-extend-tests: New file.
64798         * modules/unictype/property-other-id-continue-tests: New file.
64799         * modules/unictype/property-other-id-start-tests: New file.
64800         * modules/unictype/property-other-lowercase-tests: New file.
64801         * modules/unictype/property-other-math-tests: New file.
64802         * modules/unictype/property-other-uppercase-tests: New file.
64803         * modules/unictype/property-paired-punctuation-tests: New file.
64804         * modules/unictype/property-paragraph-separator-tests: New file.
64805         * modules/unictype/property-pattern-syntax-tests: New file.
64806         * modules/unictype/property-pattern-white-space-tests: New file.
64807         * modules/unictype/property-private-use-tests: New file.
64808         * modules/unictype/property-punctuation-tests: New file.
64809         * modules/unictype/property-quotation-mark-tests: New file.
64810         * modules/unictype/property-radical-tests: New file.
64811         * modules/unictype/property-sentence-terminal-tests: New file.
64812         * modules/unictype/property-soft-dotted-tests: New file.
64813         * modules/unictype/property-space-tests: New file.
64814         * modules/unictype/property-terminal-punctuation-tests: New file.
64815         * modules/unictype/property-test-tests: New file.
64816         * modules/unictype/property-titlecase-tests: New file.
64817         * modules/unictype/property-unassigned-code-value-tests: New file.
64818         * modules/unictype/property-unified-ideograph-tests: New file.
64819         * modules/unictype/property-uppercase-tests: New file.
64820         * modules/unictype/property-variation-selector-tests: New file.
64821         * modules/unictype/property-white-space-tests: New file.
64822         * modules/unictype/property-xid-continue-tests: New file.
64823         * modules/unictype/property-xid-start-tests: New file.
64824         * modules/unictype/property-zero-width-tests: New file.
64825         * modules/unictype/scripts-tests: New file.
64826         * modules/unictype/syntax-c-ident-tests: New file.
64827         * modules/unictype/syntax-c-whitespace-tests: New file.
64828         * modules/unictype/syntax-java-ident-tests: New file.
64829         * modules/unictype/syntax-java-whitespace-tests: New file.
64830         * tests/unictype/test-bidi_byname.c: New file.
64831         * tests/unictype/test-bidi_name.c: New file.
64832         * tests/unictype/test-bidi_of.c: New file.
64833         * tests/unictype/test-bidi_test.c: New file.
64834         * tests/unictype/test-block_list.c: New file.
64835         * tests/unictype/test-block_of.c: New file.
64836         * tests/unictype/test-block_test.c: New file.
64837         * tests/unictype/test-categ_and.c: New file.
64838         * tests/unictype/test-categ_and_not.c: New file.
64839         * tests/unictype/test-categ_byname.c: New file.
64840         * tests/unictype/test-categ_name.c: New file.
64841         * tests/unictype/test-categ_none.c: New file.
64842         * tests/unictype/test-categ_of.c: New file.
64843         * tests/unictype/test-categ_or.c: New file.
64844         * tests/unictype/test-categ_test_withtable.c: New file.
64845         * tests/unictype/test-combining.c: New file.
64846         * tests/unictype/test-decdigit.c: New file.
64847         * tests/unictype/test-digit.c: New file.
64848         * tests/unictype/test-mirror.c: New file.
64849         * tests/unictype/test-numeric.c: New file.
64850         * tests/unictype/test-pr_byname.c: New file.
64851         * tests/unictype/test-pr_test.c: New file.
64852         * tests/unictype/test-predicate-part1.h: New file.
64853         * tests/unictype/test-predicate-part2.h: New file.
64854         * tests/unictype/test-scripts.c: New file.
64855         * tests/unictype/test-sy_c_ident.c: New file.
64856         * tests/unictype/test-sy_java_ident.c: New file.
64857
64858         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64859         for Unicode 5.0.0.
64860         * tests/unictype/test-categ_Cc.c: Likewise.
64861         * tests/unictype/test-categ_Cf.c: Likewise.
64862         * tests/unictype/test-categ_Cn.c: Likewise.
64863         * tests/unictype/test-categ_Co.c: Likewise.
64864         * tests/unictype/test-categ_Cs.c: Likewise.
64865         * tests/unictype/test-categ_L.c: Likewise.
64866         * tests/unictype/test-categ_Ll.c: Likewise.
64867         * tests/unictype/test-categ_Lm.c: Likewise.
64868         * tests/unictype/test-categ_Lo.c: Likewise.
64869         * tests/unictype/test-categ_Lt.c: Likewise.
64870         * tests/unictype/test-categ_Lu.c: Likewise.
64871         * tests/unictype/test-categ_M.c: Likewise.
64872         * tests/unictype/test-categ_Mc.c: Likewise.
64873         * tests/unictype/test-categ_Me.c: Likewise.
64874         * tests/unictype/test-categ_Mn.c: Likewise.
64875         * tests/unictype/test-categ_N.c: Likewise.
64876         * tests/unictype/test-categ_Nd.c: Likewise.
64877         * tests/unictype/test-categ_Nl.c: Likewise.
64878         * tests/unictype/test-categ_No.c: Likewise.
64879         * tests/unictype/test-categ_P.c: Likewise.
64880         * tests/unictype/test-categ_Pc.c: Likewise.
64881         * tests/unictype/test-categ_Pd.c: Likewise.
64882         * tests/unictype/test-categ_Pe.c: Likewise.
64883         * tests/unictype/test-categ_Pf.c: Likewise.
64884         * tests/unictype/test-categ_Pi.c: Likewise.
64885         * tests/unictype/test-categ_Po.c: Likewise.
64886         * tests/unictype/test-categ_Ps.c: Likewise.
64887         * tests/unictype/test-categ_S.c: Likewise.
64888         * tests/unictype/test-categ_Sc.c: Likewise.
64889         * tests/unictype/test-categ_Sk.c: Likewise.
64890         * tests/unictype/test-categ_Sm.c: Likewise.
64891         * tests/unictype/test-categ_So.c: Likewise.
64892         * tests/unictype/test-categ_Z.c: Likewise.
64893         * tests/unictype/test-categ_Zl.c: Likewise.
64894         * tests/unictype/test-categ_Zp.c: Likewise.
64895         * tests/unictype/test-categ_Zs.c: Likewise.
64896         * tests/unictype/test-ctype_alnum.c: Likewise.
64897         * tests/unictype/test-ctype_alpha.c: Likewise.
64898         * tests/unictype/test-ctype_blank.c: Likewise.
64899         * tests/unictype/test-ctype_cntrl.c: Likewise.
64900         * tests/unictype/test-ctype_digit.c: Likewise.
64901         * tests/unictype/test-ctype_graph.c: Likewise.
64902         * tests/unictype/test-ctype_lower.c: Likewise.
64903         * tests/unictype/test-ctype_print.c: Likewise.
64904         * tests/unictype/test-ctype_punct.c: Likewise.
64905         * tests/unictype/test-ctype_space.c: Likewise.
64906         * tests/unictype/test-ctype_upper.c: Likewise.
64907         * tests/unictype/test-ctype_xdigit.c: Likewise.
64908         * tests/unictype/test-decdigit.h: Likewise.
64909         * tests/unictype/test-digit.h: Likewise.
64910         * tests/unictype/test-numeric.h: Likewise.
64911         * tests/unictype/test-pr_alphabetic.c: Likewise.
64912         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64913         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64914         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64915         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64916         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64917         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64918         * tests/unictype/test-pr_bidi_control.c: Likewise.
64919         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64920         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64921         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64922         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64923         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64924         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64925         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64926         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64927         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64928         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64929         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64930         * tests/unictype/test-pr_combining.c: Likewise.
64931         * tests/unictype/test-pr_composite.c: Likewise.
64932         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64933         * tests/unictype/test-pr_dash.c: Likewise.
64934         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64935         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64936         * tests/unictype/test-pr_deprecated.c: Likewise.
64937         * tests/unictype/test-pr_diacritic.c: Likewise.
64938         * tests/unictype/test-pr_extender.c: Likewise.
64939         * tests/unictype/test-pr_format_control.c: Likewise.
64940         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64941         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64942         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64943         * tests/unictype/test-pr_hex_digit.c: Likewise.
64944         * tests/unictype/test-pr_hyphen.c: Likewise.
64945         * tests/unictype/test-pr_id_continue.c: Likewise.
64946         * tests/unictype/test-pr_id_start.c: Likewise.
64947         * tests/unictype/test-pr_ideographic.c: Likewise.
64948         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64949         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64950         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64951         * tests/unictype/test-pr_iso_control.c: Likewise.
64952         * tests/unictype/test-pr_join_control.c: Likewise.
64953         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64954         * tests/unictype/test-pr_line_separator.c: Likewise.
64955         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64956         * tests/unictype/test-pr_lowercase.c: Likewise.
64957         * tests/unictype/test-pr_math.c: Likewise.
64958         * tests/unictype/test-pr_non_break.c: Likewise.
64959         * tests/unictype/test-pr_not_a_character.c: Likewise.
64960         * tests/unictype/test-pr_numeric.c: Likewise.
64961         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64962         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64963         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64964         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64965         * tests/unictype/test-pr_other_id_start.c: Likewise.
64966         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64967         * tests/unictype/test-pr_other_math.c: Likewise.
64968         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64969         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64970         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64971         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64972         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64973         * tests/unictype/test-pr_private_use.c: Likewise.
64974         * tests/unictype/test-pr_punctuation.c: Likewise.
64975         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64976         * tests/unictype/test-pr_radical.c: Likewise.
64977         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64978         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64979         * tests/unictype/test-pr_space.c: Likewise.
64980         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64981         * tests/unictype/test-pr_titlecase.c: Likewise.
64982         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64983         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64984         * tests/unictype/test-pr_uppercase.c: Likewise.
64985         * tests/unictype/test-pr_variation_selector.c: Likewise.
64986         * tests/unictype/test-pr_white_space.c: Likewise.
64987         * tests/unictype/test-pr_xid_continue.c: Likewise.
64988         * tests/unictype/test-pr_xid_start.c: Likewise.
64989         * tests/unictype/test-pr_zero_width.c: Likewise.
64990         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64991         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64992
64993 2007-11-12  Bruno Haible  <bruno@clisp.org>
64994
64995         Unicode character classification functions.
64996         * lib/unictype.h: New file.
64997         * modules/unictype/base: New file.
64998         * modules/unictype/category-L: New file.
64999         * modules/unictype/category-Lu: New file.
65000         * modules/unictype/category-Ll: New file.
65001         * modules/unictype/category-Lt: New file.
65002         * modules/unictype/category-Lm: New file.
65003         * modules/unictype/category-Lo: New file.
65004         * modules/unictype/category-M: New file.
65005         * modules/unictype/category-Mn: New file.
65006         * modules/unictype/category-Mc: New file.
65007         * modules/unictype/category-Me: New file.
65008         * modules/unictype/category-N: New file.
65009         * modules/unictype/category-Nd: New file.
65010         * modules/unictype/category-Nl: New file.
65011         * modules/unictype/category-No: New file.
65012         * modules/unictype/category-P: New file.
65013         * modules/unictype/category-Pc: New file.
65014         * modules/unictype/category-Pd: New file.
65015         * modules/unictype/category-Ps: New file.
65016         * modules/unictype/category-Pe: New file.
65017         * modules/unictype/category-Pi: New file.
65018         * modules/unictype/category-Pf: New file.
65019         * modules/unictype/category-Po: New file.
65020         * modules/unictype/category-S: New file.
65021         * modules/unictype/category-Sm: New file.
65022         * modules/unictype/category-Sc: New file.
65023         * modules/unictype/category-Sk: New file.
65024         * modules/unictype/category-So: New file.
65025         * modules/unictype/category-Z: New file.
65026         * modules/unictype/category-Zs: New file.
65027         * modules/unictype/category-Zl: New file.
65028         * modules/unictype/category-Zp: New file.
65029         * modules/unictype/category-C: New file.
65030         * modules/unictype/category-Cc: New file.
65031         * modules/unictype/category-Cf: New file.
65032         * modules/unictype/category-Cs: New file.
65033         * modules/unictype/category-Co: New file.
65034         * modules/unictype/category-Cn: New file.
65035         * modules/unictype/category-or: New file.
65036         * modules/unictype/category-of: New file.
65037         * modules/unictype/category-test: New file.
65038         * modules/unictype/category-test-withtable: New file.
65039         * modules/unictype/category-byname: New file.
65040         * modules/unictype/category-none: New file.
65041         * modules/unictype/category-and: New file.
65042         * modules/unictype/category-and-not: New file.
65043         * modules/unictype/category-name: New file.
65044         * modules/unictype/combining-class: New file.
65045         * modules/unictype/category-all: New file.
65046         * modules/unictype/bidicategory-all: New file.
65047         * modules/unictype/bidicategory-byname: New file.
65048         * modules/unictype/bidicategory-name: New file.
65049         * modules/unictype/bidicategory-of: New file.
65050         * modules/unictype/bidicategory-test: New file.
65051         * modules/unictype/decimal-digit: New file.
65052         * modules/unictype/digit: New file.
65053         * modules/unictype/numeric: New file.
65054         * modules/unictype/mirror: New file.
65055         * modules/unictype/property-white-space: New file.
65056         * modules/unictype/property-alphabetic: New file.
65057         * modules/unictype/property-other-alphabetic: New file.
65058         * modules/unictype/property-not-a-character: New file.
65059         * modules/unictype/property-default-ignorable-code-point: New file.
65060         * modules/unictype/property-other-default-ignorable-code-point: New
65061         file.
65062         * modules/unictype/property-deprecated: New file.
65063         * modules/unictype/property-logical-order-exception: New file.
65064         * modules/unictype/property-variation-selector: New file.
65065         * modules/unictype/property-private-use: New file.
65066         * modules/unictype/property-unassigned-code-value: New file.
65067         * modules/unictype/property-uppercase: New file.
65068         * modules/unictype/property-other-uppercase: New file.
65069         * modules/unictype/property-lowercase: New file.
65070         * modules/unictype/property-other-lowercase: New file.
65071         * modules/unictype/property-titlecase: New file.
65072         * modules/unictype/property-soft-dotted: New file.
65073         * modules/unictype/property-id-start: New file.
65074         * modules/unictype/property-other-id-start: New file.
65075         * modules/unictype/property-id-continue: New file.
65076         * modules/unictype/property-other-id-continue: New file.
65077         * modules/unictype/property-xid-start: New file.
65078         * modules/unictype/property-xid-continue: New file.
65079         * modules/unictype/property-pattern-white-space: New file.
65080         * modules/unictype/property-pattern-syntax: New file.
65081         * modules/unictype/property-join-control: New file.
65082         * modules/unictype/property-grapheme-base: New file.
65083         * modules/unictype/property-grapheme-extend: New file.
65084         * modules/unictype/property-other-grapheme-extend: New file.
65085         * modules/unictype/property-grapheme-link: New file.
65086         * modules/unictype/property-bidi-control: New file.
65087         * modules/unictype/property-bidi-left-to-right: New file.
65088         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
65089         * modules/unictype/property-bidi-arabic-right-to-left: New file.
65090         * modules/unictype/property-bidi-european-digit: New file.
65091         * modules/unictype/property-bidi-eur-num-separator: New file.
65092         * modules/unictype/property-bidi-eur-num-terminator: New file.
65093         * modules/unictype/property-bidi-arabic-digit: New file.
65094         * modules/unictype/property-bidi-common-separator: New file.
65095         * modules/unictype/property-bidi-block-separator: New file.
65096         * modules/unictype/property-bidi-segment-separator: New file.
65097         * modules/unictype/property-bidi-whitespace: New file.
65098         * modules/unictype/property-bidi-non-spacing-mark: New file.
65099         * modules/unictype/property-bidi-boundary-neutral: New file.
65100         * modules/unictype/property-bidi-pdf: New file.
65101         * modules/unictype/property-bidi-embedding-or-override: New file.
65102         * modules/unictype/property-bidi-other-neutral: New file.
65103         * modules/unictype/property-hex-digit: New file.
65104         * modules/unictype/property-ascii-hex-digit: New file.
65105         * modules/unictype/property-ideographic: New file.
65106         * modules/unictype/property-unified-ideograph: New file.
65107         * modules/unictype/property-radical: New file.
65108         * modules/unictype/property-ids-binary-operator: New file.
65109         * modules/unictype/property-ids-trinary-operator: New file.
65110         * modules/unictype/property-zero-width: New file.
65111         * modules/unictype/property-space: New file.
65112         * modules/unictype/property-non-break: New file.
65113         * modules/unictype/property-iso-control: New file.
65114         * modules/unictype/property-format-control: New file.
65115         * modules/unictype/property-dash: New file.
65116         * modules/unictype/property-hyphen: New file.
65117         * modules/unictype/property-punctuation: New file.
65118         * modules/unictype/property-line-separator: New file.
65119         * modules/unictype/property-paragraph-separator: New file.
65120         * modules/unictype/property-quotation-mark: New file.
65121         * modules/unictype/property-sentence-terminal: New file.
65122         * modules/unictype/property-terminal-punctuation: New file.
65123         * modules/unictype/property-currency-symbol: New file.
65124         * modules/unictype/property-math: New file.
65125         * modules/unictype/property-other-math: New file.
65126         * modules/unictype/property-paired-punctuation: New file.
65127         * modules/unictype/property-left-of-pair: New file.
65128         * modules/unictype/property-combining: New file.
65129         * modules/unictype/property-composite: New file.
65130         * modules/unictype/property-decimal-digit: New file.
65131         * modules/unictype/property-numeric: New file.
65132         * modules/unictype/property-diacritic: New file.
65133         * modules/unictype/property-extender: New file.
65134         * modules/unictype/property-ignorable-control: New file.
65135         * modules/unictype/property-test: New file.
65136         * modules/unictype/property-byname: New file.
65137         * modules/unictype/property-all: New file.
65138         * modules/unictype/scripts: New file.
65139         * modules/unictype/scripts-all: New file.
65140         * modules/unictype/block-of: New file.
65141         * modules/unictype/block-test: New file.
65142         * modules/unictype/block-list: New file.
65143         * modules/unictype/block-all: New file.
65144         * modules/unictype/syntax-c-whitespace: New file.
65145         * modules/unictype/syntax-java-whitespace: New file.
65146         * modules/unictype/syntax-c-ident: New file.
65147         * modules/unictype/syntax-java-ident: New file.
65148         * modules/unictype/ctype-alnum: New file.
65149         * modules/unictype/ctype-alpha: New file.
65150         * modules/unictype/ctype-cntrl: New file.
65151         * modules/unictype/ctype-digit: New file.
65152         * modules/unictype/ctype-graph: New file.
65153         * modules/unictype/ctype-lower: New file.
65154         * modules/unictype/ctype-print: New file.
65155         * modules/unictype/ctype-punct: New file.
65156         * modules/unictype/ctype-space: New file.
65157         * modules/unictype/ctype-upper: New file.
65158         * modules/unictype/ctype-xdigit: New file.
65159         * modules/unictype/ctype-blank: New file.
65160         * lib/unictype/bidi_byname.c: New file.
65161         * lib/unictype/bidi_name.c: New file.
65162         * lib/unictype/bidi_of.c: New file.
65163         * lib/unictype/bidi_test.c: New file.
65164         * lib/unictype/bitmap.h: New file.
65165         * lib/unictype/block_test.c: New file.
65166         * lib/unictype/blocks.c: New file.
65167         * lib/unictype/categ_C.c: New file.
65168         * lib/unictype/categ_Cc.c: New file.
65169         * lib/unictype/categ_Cf.c: New file.
65170         * lib/unictype/categ_Cn.c: New file.
65171         * lib/unictype/categ_Co.c: New file.
65172         * lib/unictype/categ_Cs.c: New file.
65173         * lib/unictype/categ_L.c: New file.
65174         * lib/unictype/categ_Ll.c: New file.
65175         * lib/unictype/categ_Lm.c: New file.
65176         * lib/unictype/categ_Lo.c: New file.
65177         * lib/unictype/categ_Lt.c: New file.
65178         * lib/unictype/categ_Lu.c: New file.
65179         * lib/unictype/categ_M.c: New file.
65180         * lib/unictype/categ_Mc.c: New file.
65181         * lib/unictype/categ_Me.c: New file.
65182         * lib/unictype/categ_Mn.c: New file.
65183         * lib/unictype/categ_N.c: New file.
65184         * lib/unictype/categ_Nd.c: New file.
65185         * lib/unictype/categ_Nl.c: New file.
65186         * lib/unictype/categ_No.c: New file.
65187         * lib/unictype/categ_P.c: New file.
65188         * lib/unictype/categ_Pc.c: New file.
65189         * lib/unictype/categ_Pd.c: New file.
65190         * lib/unictype/categ_Pe.c: New file.
65191         * lib/unictype/categ_Pf.c: New file.
65192         * lib/unictype/categ_Pi.c: New file.
65193         * lib/unictype/categ_Po.c: New file.
65194         * lib/unictype/categ_Ps.c: New file.
65195         * lib/unictype/categ_S.c: New file.
65196         * lib/unictype/categ_Sc.c: New file.
65197         * lib/unictype/categ_Sk.c: New file.
65198         * lib/unictype/categ_Sm.c: New file.
65199         * lib/unictype/categ_So.c: New file.
65200         * lib/unictype/categ_Z.c: New file.
65201         * lib/unictype/categ_Zl.c: New file.
65202         * lib/unictype/categ_Zp.c: New file.
65203         * lib/unictype/categ_Zs.c: New file.
65204         * lib/unictype/categ_and.c: New file.
65205         * lib/unictype/categ_and_not.c: New file.
65206         * lib/unictype/categ_byname.c: New file.
65207         * lib/unictype/categ_name.c: New file.
65208         * lib/unictype/categ_none.c: New file.
65209         * lib/unictype/categ_of.c: New file.
65210         * lib/unictype/categ_or.c: New file.
65211         * lib/unictype/categ_test.c: New file.
65212         * lib/unictype/combining.c: New file.
65213         * lib/unictype/ctype_alnum.c: New file.
65214         * lib/unictype/ctype_alpha.c: New file.
65215         * lib/unictype/ctype_blank.c: New file.
65216         * lib/unictype/ctype_cntrl.c: New file.
65217         * lib/unictype/ctype_digit.c: New file.
65218         * lib/unictype/ctype_graph.c: New file.
65219         * lib/unictype/ctype_lower.c: New file.
65220         * lib/unictype/ctype_print.c: New file.
65221         * lib/unictype/ctype_punct.c: New file.
65222         * lib/unictype/ctype_space.c: New file.
65223         * lib/unictype/ctype_upper.c: New file.
65224         * lib/unictype/ctype_xdigit.c: New file.
65225         * lib/unictype/decdigit.c: New file.
65226         * lib/unictype/digit.c: New file.
65227         * lib/unictype/identsyntaxmap.h: New file.
65228         * lib/unictype/mirror.c: New file.
65229         * lib/unictype/numeric.c: New file.
65230         * lib/unictype/pr_alphabetic.c: New file.
65231         * lib/unictype/pr_ascii_hex_digit.c: New file.
65232         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65233         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65234         * lib/unictype/pr_bidi_block_separator.c: New file.
65235         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65236         * lib/unictype/pr_bidi_common_separator.c: New file.
65237         * lib/unictype/pr_bidi_control.c: New file.
65238         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65239         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65240         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65241         * lib/unictype/pr_bidi_european_digit.c: New file.
65242         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65243         * lib/unictype/pr_bidi_left_to_right.c: New file.
65244         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65245         * lib/unictype/pr_bidi_other_neutral.c: New file.
65246         * lib/unictype/pr_bidi_pdf.c: New file.
65247         * lib/unictype/pr_bidi_segment_separator.c: New file.
65248         * lib/unictype/pr_bidi_whitespace.c: New file.
65249         * lib/unictype/pr_byname.c: New file.
65250         * lib/unictype/pr_byname.gperf: New file.
65251         * lib/unictype/pr_combining.c: New file.
65252         * lib/unictype/pr_composite.c: New file.
65253         * lib/unictype/pr_currency_symbol.c: New file.
65254         * lib/unictype/pr_dash.c: New file.
65255         * lib/unictype/pr_decimal_digit.c: New file.
65256         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65257         * lib/unictype/pr_deprecated.c: New file.
65258         * lib/unictype/pr_diacritic.c: New file.
65259         * lib/unictype/pr_extender.c: New file.
65260         * lib/unictype/pr_format_control.c: New file.
65261         * lib/unictype/pr_grapheme_base.c: New file.
65262         * lib/unictype/pr_grapheme_extend.c: New file.
65263         * lib/unictype/pr_grapheme_link.c: New file.
65264         * lib/unictype/pr_hex_digit.c: New file.
65265         * lib/unictype/pr_hyphen.c: New file.
65266         * lib/unictype/pr_id_continue.c: New file.
65267         * lib/unictype/pr_id_start.c: New file.
65268         * lib/unictype/pr_ideographic.c: New file.
65269         * lib/unictype/pr_ids_binary_operator.c: New file.
65270         * lib/unictype/pr_ids_trinary_operator.c: New file.
65271         * lib/unictype/pr_ignorable_control.c: New file.
65272         * lib/unictype/pr_iso_control.c: New file.
65273         * lib/unictype/pr_join_control.c: New file.
65274         * lib/unictype/pr_left_of_pair.c: New file.
65275         * lib/unictype/pr_line_separator.c: New file.
65276         * lib/unictype/pr_logical_order_exception.c: New file.
65277         * lib/unictype/pr_lowercase.c: New file.
65278         * lib/unictype/pr_math.c: New file.
65279         * lib/unictype/pr_non_break.c: New file.
65280         * lib/unictype/pr_not_a_character.c: New file.
65281         * lib/unictype/pr_numeric.c: New file.
65282         * lib/unictype/pr_other_alphabetic.c: New file.
65283         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65284         * lib/unictype/pr_other_grapheme_extend.c: New file.
65285         * lib/unictype/pr_other_id_continue.c: New file.
65286         * lib/unictype/pr_other_id_start.c: New file.
65287         * lib/unictype/pr_other_lowercase.c: New file.
65288         * lib/unictype/pr_other_math.c: New file.
65289         * lib/unictype/pr_other_uppercase.c: New file.
65290         * lib/unictype/pr_paired_punctuation.c: New file.
65291         * lib/unictype/pr_paragraph_separator.c: New file.
65292         * lib/unictype/pr_pattern_syntax.c: New file.
65293         * lib/unictype/pr_pattern_white_space.c: New file.
65294         * lib/unictype/pr_private_use.c: New file.
65295         * lib/unictype/pr_punctuation.c: New file.
65296         * lib/unictype/pr_quotation_mark.c: New file.
65297         * lib/unictype/pr_radical.c: New file.
65298         * lib/unictype/pr_sentence_terminal.c: New file.
65299         * lib/unictype/pr_soft_dotted.c: New file.
65300         * lib/unictype/pr_space.c: New file.
65301         * lib/unictype/pr_terminal_punctuation.c: New file.
65302         * lib/unictype/pr_test.c: New file.
65303         * lib/unictype/pr_titlecase.c: New file.
65304         * lib/unictype/pr_unassigned_code_value.c: New file.
65305         * lib/unictype/pr_unified_ideograph.c: New file.
65306         * lib/unictype/pr_uppercase.c: New file.
65307         * lib/unictype/pr_variation_selector.c: New file.
65308         * lib/unictype/pr_white_space.c: New file.
65309         * lib/unictype/pr_xid_continue.c: New file.
65310         * lib/unictype/pr_xid_start.c: New file.
65311         * lib/unictype/pr_zero_width.c: New file.
65312         * lib/unictype/scripts.c: New file.
65313         * lib/unictype/sy_c_ident.c: New file.
65314         * lib/unictype/sy_c_whitespace.c: New file.
65315         * lib/unictype/sy_java_ident.c: New file.
65316         * lib/unictype/sy_java_whitespace.c: New file.
65317
65318         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65319         Unicode 5.0.0.
65320         * lib/unictype/blocks.h: Likewise.
65321         * lib/unictype/categ_C.h: Likewise.
65322         * lib/unictype/categ_Cc.h: Likewise.
65323         * lib/unictype/categ_Cf.h: Likewise.
65324         * lib/unictype/categ_Cn.h: Likewise.
65325         * lib/unictype/categ_Co.h: Likewise.
65326         * lib/unictype/categ_Cs.h: Likewise.
65327         * lib/unictype/categ_L.h: Likewise.
65328         * lib/unictype/categ_Ll.h: Likewise.
65329         * lib/unictype/categ_Lm.h: Likewise.
65330         * lib/unictype/categ_Lo.h: Likewise.
65331         * lib/unictype/categ_Lt.h: Likewise.
65332         * lib/unictype/categ_Lu.h: Likewise.
65333         * lib/unictype/categ_M.h: Likewise.
65334         * lib/unictype/categ_Mc.h: Likewise.
65335         * lib/unictype/categ_Me.h: Likewise.
65336         * lib/unictype/categ_Mn.h: Likewise.
65337         * lib/unictype/categ_N.h: Likewise.
65338         * lib/unictype/categ_Nd.h: Likewise.
65339         * lib/unictype/categ_Nl.h: Likewise.
65340         * lib/unictype/categ_No.h: Likewise.
65341         * lib/unictype/categ_P.h: Likewise.
65342         * lib/unictype/categ_Pc.h: Likewise.
65343         * lib/unictype/categ_Pd.h: Likewise.
65344         * lib/unictype/categ_Pe.h: Likewise.
65345         * lib/unictype/categ_Pf.h: Likewise.
65346         * lib/unictype/categ_Pi.h: Likewise.
65347         * lib/unictype/categ_Po.h: Likewise.
65348         * lib/unictype/categ_Ps.h: Likewise.
65349         * lib/unictype/categ_S.h: Likewise.
65350         * lib/unictype/categ_Sc.h: Likewise.
65351         * lib/unictype/categ_Sk.h: Likewise.
65352         * lib/unictype/categ_Sm.h: Likewise.
65353         * lib/unictype/categ_So.h: Likewise.
65354         * lib/unictype/categ_Z.h: Likewise.
65355         * lib/unictype/categ_Zl.h: Likewise.
65356         * lib/unictype/categ_Zp.h: Likewise.
65357         * lib/unictype/categ_Zs.h: Likewise.
65358         * lib/unictype/categ_of.h: Likewise.
65359         * lib/unictype/combining.h: Likewise.
65360         * lib/unictype/ctype_alnum.h: Likewise.
65361         * lib/unictype/ctype_alpha.h: Likewise.
65362         * lib/unictype/ctype_blank.h: Likewise.
65363         * lib/unictype/ctype_cntrl.h: Likewise.
65364         * lib/unictype/ctype_digit.h: Likewise.
65365         * lib/unictype/ctype_graph.h: Likewise.
65366         * lib/unictype/ctype_lower.h: Likewise.
65367         * lib/unictype/ctype_print.h: Likewise.
65368         * lib/unictype/ctype_punct.h: Likewise.
65369         * lib/unictype/ctype_space.h: Likewise.
65370         * lib/unictype/ctype_upper.h: Likewise.
65371         * lib/unictype/ctype_xdigit.h: Likewise.
65372         * lib/unictype/decdigit.h: Likewise.
65373         * lib/unictype/digit.h: Likewise.
65374         * lib/unictype/mirror.h: Likewise.
65375         * lib/unictype/numeric.h: Likewise.
65376         * lib/unictype/pr_alphabetic.h: Likewise.
65377         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65378         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65379         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65380         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65381         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65382         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65383         * lib/unictype/pr_bidi_control.h: Likewise.
65384         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65385         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65386         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65387         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65388         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65389         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65390         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65391         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65392         * lib/unictype/pr_bidi_pdf.h: Likewise.
65393         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65394         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65395         * lib/unictype/pr_combining.h: Likewise.
65396         * lib/unictype/pr_composite.h: Likewise.
65397         * lib/unictype/pr_currency_symbol.h: Likewise.
65398         * lib/unictype/pr_dash.h: Likewise.
65399         * lib/unictype/pr_decimal_digit.h: Likewise.
65400         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65401         * lib/unictype/pr_deprecated.h: Likewise.
65402         * lib/unictype/pr_diacritic.h: Likewise.
65403         * lib/unictype/pr_extender.h: Likewise.
65404         * lib/unictype/pr_format_control.h: Likewise.
65405         * lib/unictype/pr_grapheme_base.h: Likewise.
65406         * lib/unictype/pr_grapheme_extend.h: Likewise.
65407         * lib/unictype/pr_grapheme_link.h: Likewise.
65408         * lib/unictype/pr_hex_digit.h: Likewise.
65409         * lib/unictype/pr_hyphen.h: Likewise.
65410         * lib/unictype/pr_id_continue.h: Likewise.
65411         * lib/unictype/pr_id_start.h: Likewise.
65412         * lib/unictype/pr_ideographic.h: Likewise.
65413         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65414         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65415         * lib/unictype/pr_ignorable_control.h: Likewise.
65416         * lib/unictype/pr_iso_control.h: Likewise.
65417         * lib/unictype/pr_join_control.h: Likewise.
65418         * lib/unictype/pr_left_of_pair.h: Likewise.
65419         * lib/unictype/pr_line_separator.h: Likewise.
65420         * lib/unictype/pr_logical_order_exception.h: Likewise.
65421         * lib/unictype/pr_lowercase.h: Likewise.
65422         * lib/unictype/pr_math.h: Likewise.
65423         * lib/unictype/pr_non_break.h: Likewise.
65424         * lib/unictype/pr_not_a_character.h: Likewise.
65425         * lib/unictype/pr_numeric.h: Likewise.
65426         * lib/unictype/pr_other_alphabetic.h: Likewise.
65427         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65428         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65429         * lib/unictype/pr_other_id_continue.h: Likewise.
65430         * lib/unictype/pr_other_id_start.h: Likewise.
65431         * lib/unictype/pr_other_lowercase.h: Likewise.
65432         * lib/unictype/pr_other_math.h: Likewise.
65433         * lib/unictype/pr_other_uppercase.h: Likewise.
65434         * lib/unictype/pr_paired_punctuation.h: Likewise.
65435         * lib/unictype/pr_paragraph_separator.h: Likewise.
65436         * lib/unictype/pr_pattern_syntax.h: Likewise.
65437         * lib/unictype/pr_pattern_white_space.h: Likewise.
65438         * lib/unictype/pr_private_use.h: Likewise.
65439         * lib/unictype/pr_punctuation.h: Likewise.
65440         * lib/unictype/pr_quotation_mark.h: Likewise.
65441         * lib/unictype/pr_radical.h: Likewise.
65442         * lib/unictype/pr_sentence_terminal.h: Likewise.
65443         * lib/unictype/pr_soft_dotted.h: Likewise.
65444         * lib/unictype/pr_space.h: Likewise.
65445         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65446         * lib/unictype/pr_titlecase.h: Likewise.
65447         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65448         * lib/unictype/pr_unified_ideograph.h: Likewise.
65449         * lib/unictype/pr_uppercase.h: Likewise.
65450         * lib/unictype/pr_variation_selector.h: Likewise.
65451         * lib/unictype/pr_white_space.h: Likewise.
65452         * lib/unictype/pr_xid_continue.h: Likewise.
65453         * lib/unictype/pr_xid_start.h: Likewise.
65454         * lib/unictype/pr_zero_width.h: Likewise.
65455         * lib/unictype/scripts.h: Likewise.
65456         * lib/unictype/scripts_byname.gperf: Likewise.
65457         * lib/unictype/sy_c_ident.h: Likewise.
65458         * lib/unictype/sy_c_whitespace.h: Likewise.
65459         * lib/unictype/sy_java_ident.h: Likewise.
65460         * lib/unictype/sy_java_whitespace.h: Likewise.
65461
65462         * lib/unictype/Makefile: New file.
65463         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65464         glibc.
65465         * lib/unictype/3level.h: New file, copied from glibc.
65466         * lib/unictype/3levelbit.h: New file.
65467
65468 2007-11-11  Bruno Haible  <bruno@clisp.org>
65469
65470         * modules/gperf: New file.
65471         * modules/iconv_open (Depends-on): Add it.
65472         (Makefile.am): Remove the GPERF definition.
65473
65474 2007-11-11  Bruno Haible  <bruno@clisp.org>
65475
65476         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65477         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65478
65479 2007-11-11  Bruno Haible  <bruno@clisp.org>
65480
65481         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65482         (usage): Remove function.
65483
65484 2007-11-11  Bruno Haible  <bruno@clisp.org>
65485
65486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65487         gl_FUNC_CEILF_LIBS.
65488         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65489         gl_FUNC_CEIL_LIBS.
65490         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65491         gl_FUNC_CEILL_LIBS.
65492         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65493         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65494         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65495
65496 2007-11-11  Bruno Haible  <bruno@clisp.org>
65497
65498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65499         roundf were declared but do not exist on functions.
65500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65501         roundl were declared but do not exist on functions.
65502         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65503         HAVE_FLOORL_AND_CEILL, respectively.
65504         Needed for Sun C on Solaris 10.
65505
65506 2007-11-11  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65509         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65510         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65511         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65512         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65513         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65514         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65515         HAVE_DECL_ROUNDF.
65516         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65517         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65518         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65519         of HAVE_DECL_ROUND*.
65520         * modules/math (Makefile.am): Update.
65521
65522 2007-11-10  Bruno Haible  <bruno@clisp.org>
65523
65524         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65525         ptrdiff_t as m4/intl.m4.
65526
65527 2007-11-10  Jim Meyering  <meyering@redhat.com>
65528
65529         Avoid link failure for the argmatch test.
65530         * tests/test-argmatch.c (usage): Define function to avoid a link
65531         failure: argmatch_die requires a usage function.
65532
65533 2007-11-09  Bruno Haible  <bruno@clisp.org>
65534
65535         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65536         * doc/functions/vsnprintf.texi: Likewise.
65537         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65538         with a size argument < 2.
65539
65540 2007-11-09  Bruno Haible  <bruno@clisp.org>
65541
65542         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65543         buffer. Fixes an inefficiency introduced on 2007-11-03.
65544
65545 2007-11-09  Bruno Haible  <bruno@clisp.org>
65546
65547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65548         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65549
65550 2007-11-08  Jim Meyering  <meyering@redhat.com>
65551
65552         Change cache variable name prefix "jm_" to "gl_" everywhere.
65553         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65554         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65555         * m4/uptime.m4: s/gl_/jm_/
65556
65557 2007-11-07  Bruno Haible  <bruno@clisp.org>
65558
65559         Update to GNU gettext 0.17.
65560         * m4/intl.m4: Update to GNU gettext 0.17.
65561         * m4/po.m4: Likewise.
65562         * modules/gettext (Files): Remove m4/ulonglong.m4.
65563         (configure.ac): Require gettext infrastructure from version 0.17.
65564
65565 2007-11-06  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65568         symbolic values are not defined in a public header.
65569         * lib/freadable.c (freadable) [QNX]: Likewise.
65570         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65571         * lib/freading.c (freading) [QNX]: Likewise.
65572         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65573         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65574         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65575         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65576         Reported by Alain Magloire.
65577
65578         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65579
65580 2007-11-05  Bruno Haible  <bruno@clisp.org>
65581
65582         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65583         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65584         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65585         Reported by Eric Blake.
65586
65587 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65588             Bruno Haible  <bruno@clisp.org>
65589
65590         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65591         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65592         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65593         (malloc): Undefine also before including <stdlib.h>.
65594         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65595         Needed on OSF/1 4.0.
65596
65597 2007-11-05  Jim Meyering  <meyering@redhat.com>
65598
65599         git-version-gen: sync from coreutils.
65600         * build-aux/git-version-gen: Add comments.
65601         Change the first '-' to '.' in the snapshot version string,
65602         e.g., 6.9-377-08144 -> 6.9.377-08144
65603         Remove first parameter.
65604         Don't declare a version "-dirty" merely because a time
65605         stamp has changed.
65606
65607 2007-11-04  Bruno Haible  <bruno@clisp.org>
65608
65609         * lib/lock.h: Protect all macro definitions containing an 'if'
65610         statement through a "do { ... } while (0)".
65611         * lib/tls.h: Likewise.
65612
65613 2007-11-04  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65616
65617 2007-11-04  Bruno Haible  <bruno@clisp.org>
65618
65619         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65620         * modules/fprintf-posix (Depends-on): Add nocrash.
65621         * modules/snprintf-posix (Depends-on): Likewise.
65622         * modules/sprintf-posix (Depends-on): Likewise.
65623         * modules/vasnprintf-posix (Depends-on): Likewise.
65624         * modules/vasprintf-posix (Depends-on): Likewise.
65625         * modules/vfprintf-posix (Depends-on): Likewise.
65626         * modules/vsnprintf-posix (Depends-on): Likewise.
65627         * modules/vsprintf-posix (Depends-on): Likewise.
65628         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65629         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65630         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65631         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65632         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65635
65636 2007-11-04  Bruno Haible  <bruno@clisp.org>
65637
65638         * modules/nocrash: New file.
65639         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65640         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65641
65642 2007-11-04  Bruno Haible  <bruno@clisp.org>
65643
65644         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65645         precision handling.
65646         * tests/test-vasprintf-posix.c (test_function): Likewise.
65647         * tests/test-snprintf-posix.h (test_function): Likewise.
65648         * tests/test-sprintf-posix.h (test_function): Likewise.
65649
65650         Fix *printf behaviour for large precisions on mingw and BeOS.
65651         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65652         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65653         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65654         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65656         gl_PRINTF_PRECISION and test its result. Invoke
65657         gl_PREREQ_VASNPRINTF_PRECISION.
65658         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65659         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65660         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65661         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65662         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65663         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65664         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65665         * doc/functions/fprintf.texi: Update.
65666         * doc/functions/printf.texi: Update.
65667         * doc/functions/snprintf.texi: Update.
65668         * doc/functions/sprintf.texi: Update.
65669         * doc/functions/vfprintf.texi: Update.
65670         * doc/functions/vprintf.texi: Update.
65671         * doc/functions/vsnprintf.texi: Update.
65672         * doc/functions/vsprintf.texi: Update.
65673
65674 2007-11-04  Bruno Haible  <bruno@clisp.org>
65675
65676         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65677
65678 2007-11-04  Bruno Haible  <bruno@clisp.org>
65679
65680         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65681         Reported by Sylvain Beucler <beuc@gnu.org>.
65682
65683 2007-11-03  Bruno Haible  <bruno@clisp.org>
65684
65685         * tests/test-fprintf-posix2.sh: New file.
65686         * tests/test-fprintf-posix2.c: New file.
65687         * modules/fprintf-posix-tests (Files): Add them.
65688         (TESTS): Add test-fprintf-posix2.sh.
65689         (configure.ac): Check for getrlimit and setrlimit.
65690         (check_PROGRAMS): Add test-fprintf-posix2.
65691
65692         * tests/test-printf-posix2.sh: New file.
65693         * tests/test-printf-posix2.c: New file.
65694         * modules/printf-posix-tests (Files): Add them.
65695         (TESTS): Add test-printf-posix2.sh.
65696         (configure.ac): Check for getrlimit and setrlimit.
65697         (check_PROGRAMS): Add test-printf-posix2.
65698
65699         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65700         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65701         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65702         (decode_double): New function, copied from decode_long_double.
65703         (scale10_round_decimal_decoded): New function, extracted from
65704         scale10_round_decimal_long_double.
65705         (scale10_round_decimal_long_double): Use it.
65706         (scale10_round_decimal_double): New function.
65707         (floorlog10): New function.
65708         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65710         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65711         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65712         gl_PRINTF_ENOMEM and test its result. Invoke
65713         gl_PREREQ_VASNPRINTF_ENOMEM.
65714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65718         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65720         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65721         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65722         * modules/snprintf-posix (Depends-on): Likewise.
65723         * modules/sprintf-posix (Depends-on): Likewise.
65724         * modules/vasnprintf-posix (Depends-on): Likewise.
65725         * modules/vasprintf-posix (Depends-on): Likewise.
65726         * modules/vfprintf-posix (Depends-on): Likewise.
65727         * modules/vsnprintf-posix (Depends-on): Likewise.
65728         * modules/vsprintf-posix (Depends-on): Likewise.
65729         * doc/functions/fprintf.texi: Update.
65730         * doc/functions/printf.texi: Update.
65731         * doc/functions/snprintf.texi: Update.
65732         * doc/functions/sprintf.texi: Update.
65733         * doc/functions/vfprintf.texi: Update.
65734         * doc/functions/vprintf.texi: Update.
65735         * doc/functions/vsnprintf.texi: Update.
65736         * doc/functions/vsprintf.texi: Update.
65737
65738 2007-11-03  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/frexp-nolibm-tests: New file.
65741
65742         * modules/frexp-nolibm: New file.
65743         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65744
65745 2007-11-03  Bruno Haible  <bruno@clisp.org>
65746
65747         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65748         value is C99 compliant.
65749         Needed for OSF/1 5.1.
65750
65751 2007-11-03  Bruno Haible  <bruno@clisp.org>
65752
65753         Fix out-of-memory handling of vasnprintf.
65754         * lib/printf-parse.c: Include <errno.h>.
65755         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65756         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65757         is already set.
65758
65759 2007-11-02  Eric Blake  <ebb9@byu.net>
65760
65761         Fix tests on cygwin.
65762         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65763
65764 2007-11-01  Bruno Haible  <bruno@clisp.org>
65765
65766         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65767         warning.
65768         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65769         needed for POSIX compatibility.
65770
65771 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65772
65773         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65774         for compatibility with GNU.
65775
65776 2007-11-01  Bruno Haible  <bruno@clisp.org>
65777
65778         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65779         (putenv): Renamed from rpl_putenv. Change argument type from
65780         'const char *' to 'char *'.
65781         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65782         of defining putenv in config.h, just set REPLACE_PUTENV.
65783         * modules/putenv (Depends-on): Add stdlib.
65784         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65785         (Include): Use <stdlib.h>.
65786         * lib/stdlib.in.h (putenv): New declaration.
65787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65788         REPLACE_PUTENV.
65789         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65790         REPLACE_PUTENV.
65791         Needed for MacOS X 10.5.0.
65792         Reported by Peter O'Gorman <peter@pogma.com>.
65793
65794 2007-11-01  Jim Meyering  <meyering@redhat.com>
65795
65796         Treat an empty date string exactly like "0".
65797         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65798         if the remaining date string (to be parsed) is empty, use "0".
65799         Reported by Mischa Molhoek and discussed in this thread:
65800         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65801
65802 2007-10-31  Bruno Haible  <bruno@clisp.org>
65803
65804         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65805         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65806         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65807         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65808         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65809         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65810
65811 2007-10-31  Bruno Haible  <bruno@clisp.org>
65812
65813         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65814         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65815         (AC_TYPE_LONG_LONG_INT): Use it.
65816         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65817         it as well.
65818         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65819         to m4/longlong.m4.
65820         * modules/stdint (Files): Remove m4/ulonglong.m4.
65821         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65822         m4/ulonglong.m4.
65823         * modules/strtoumax (Files): Likewise.
65824
65825 2007-10-30  Bruno Haible  <bruno@clisp.org>
65826
65827         * modules/xvasprintf-posix: New file.
65828         Suggested by Eric Blake.
65829
65830 2007-10-30  Bruno Haible  <bruno@clisp.org>
65831
65832         * modules/xprintf-posix-tests: New file.
65833         * tests/test-xprintf-posix.sh: New file.
65834         * tests/test-xprintf-posix.c: New file.
65835         * tests/test-xfprintf-posix.c: New file.
65836
65837         * modules/xprintf-posix: New file.
65838
65839 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65840
65841         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65842         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65843         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65844
65845 2007-10-29  Bruno Haible  <bruno@clisp.org>
65846
65847         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65848         contain the special marker '_cv_'.
65849         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65850         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65851         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65852         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65853         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65854         Reported by Ralf Wildenhues.
65855
65856 2007-10-29  Bruno Haible  <bruno@clisp.org>
65857
65858         * gnulib-tool (func_import): When --lgpl is not specified, set
65859         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65860         GPLv3.
65861         Reported by Simon Josefsson.
65862
65863 2007-10-28  Bruno Haible  <bruno@clisp.org>
65864
65865         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65866         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65867         HAVE_DECL_ISFINITE.
65868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65869         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65870         HAVE_DECL_ISFINITE.
65871
65872 2007-10-28  Bruno Haible  <bruno@clisp.org>
65873
65874         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65875         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65876
65877 2007-10-28  Bruno Haible  <bruno@clisp.org>
65878
65879         Fix link errors with Sun C 5.0 on Solaris 10.
65880         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65881         function is declared but not present in the compiler's libm.
65882         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65883         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65884         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65885         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65886         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65887         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65888         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65890         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65891         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65892         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65893         HAVE_DECL_FLOORL.
65894
65895 2007-10-28  Bruno Haible  <bruno@clisp.org>
65896
65897         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65898         gl_FUNC_FLOORL. Cache the result.
65899         (gl_FUNC_FLOORL): Use it.
65900         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65901         gl_FUNC_CEILL. Cache the result.
65902         (gl_FUNC_CEILL): Use it.
65903
65904         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65905         gl_FUNC_FLOOR. Cache the result.
65906         (gl_FUNC_FLOOR): Use it.
65907         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65908         gl_FUNC_CEIL. Cache the result.
65909         (gl_FUNC_CEIL): Use it.
65910
65911         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65912         gl_FUNC_FLOORF. Cache the result.
65913         (gl_FUNC_FLOORF): Use it.
65914         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65915         gl_FUNC_CEILF. Cache the result.
65916         (gl_FUNC_CEILF): Use it.
65917
65918 2007-10-28  Bruno Haible  <bruno@clisp.org>
65919
65920         * gnulib-tool: Allow specifying the LGPL version number through
65921         --lgpl=2 or --lgpl=3.
65922         (func_usage): Document --lgpl with argument.
65923         Handle --lgpl=... arguments.
65924         (func_import): Recognize also gl_LGPL calls with an argument. When
65925         --lgpl=2 is used and the module's license is just LGPL, report an
65926         error. Set sed_transform_lib_file according to the lgpl variable. In
65927         the generated files, use --lgpl or gl_LGPL invocations with argument,
65928         if necessary.
65929         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65930         an LGPv2+ license.
65931         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65932         gl_LGPL macro.
65933
65934 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65935             Bruno Haible  <bruno@clisp.org>
65936
65937         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65938         (u16_uctomb_aux): Likewise.
65939         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65940         !HAVE_INLINE.
65941         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65942
65943 2007-10-28  Bruno Haible  <bruno@clisp.org>
65944
65945         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65946         Invoke AM_GETTEXT_OPTION if it exists.
65947         * modules/vasprintf: Likewise.
65948         * modules/verror: Likewise.
65949         * modules/xprintf: Likewise.
65950         * modules/xvasprintf: Likewise.
65951
65952 2007-10-27  Ben Pfaff  <blp@gnu.org>
65953
65954         * lib/math.in.h: Define isfinite macro and prototypes for
65955         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65956         implementations.
65957         * m4/math_h.m4: New substitutions for isfinite module.
65958         * lib/isfinite.c: New file.
65959         * m4/isfinite.m4: New file.
65960         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65961         * modules/isfinite: New file.
65962         * modules/isfinite-tests: New file.
65963         * tests/tests-isfinite.c: New file.
65964         * doc/functions/isfinite.texi: Mention isfinite module.
65965         * MODULES.html.sh: Mention new module.
65966
65967 2007-10-27  Ben Pfaff  <blp@gnu.org>
65968
65969         Ralf Wildenhues reported that Tru64 4.0D declares the round
65970         functions but does not have definitions.
65971         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65972         cannot be found in any library, set the output variable to
65973         "missing" instead of "".
65974         * m4/round.m4: Also use our substitute if we cannot find round in
65975         any library, even if it is declared.
65976         * m4/roundf.m4: Likewise for roundf.
65977         * m4/roundl.m4: Likewise for roundl.
65978         * lib/math.in.h: Undefine roundf, round, roundl before defining
65979         their replacements, to allow for hypothetical systems where these
65980         may be defined as macros but not available in libraries.
65981
65982 2007-10-27  Bruno Haible  <bruno@clisp.org>
65983
65984         * doc/gnulib.texi: Invoke @firstparagraphindent.
65985         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65986         changes in gnulib.
65987         (Source changes): New section.
65988
65989 2007-10-26  Bruno Haible  <bruno@clisp.org>
65990
65991         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65992         borrowed from autoconf.
65993
65994 2007-10-26  Bruno Haible  <bruno@clisp.org>
65995
65996         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65997         strerror returned the empty string. Needed on HP-UX 11.00.
65998
65999 2007-10-24  Micah Cowan  <micah@cowan.name>
66000
66001         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
66002         * build-aux/bootstrap: Remove support for now-unnecessary option,
66003         --cvs-user, and envvars CVS_USER, CVS_RSH.
66004
66005 2007-10-24  Jim Meyering  <meyering@redhat.com>
66006
66007         Avoid diagnostics from sha1sum when there is no cached checksum.
66008         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
66009         if the po.s1 file hasn't been created yet.
66010
66011         * build-aux/bootstrap: Sync from coreutils:
66012         2007-10-24  Jim Meyering  <meyering@redhat.com>
66013         Get gnulib from the git repository, not from an obsolete cvs one.
66014         * build-aux/bootstrap: Suggestion from Micah Cowan.
66015         2007-10-04  Jim Meyering  <jim@meyering.net>
66016         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
66017         (update_po_files): Work also when there are no .po files in po/.
66018
66019 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66020
66021         * README: Append ".git" to git and cg examples.
66022         Problem reported by Benoit Sigoure.
66023
66024 2007-10-23  Micah Cowan  <micah@cowan.name>
66025
66026         * users.txt: Add wget.
66027
66028 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66029
66030         Fix linking of some unistdio tests on FreeBSD.
66031         * modules/unistdio/u16-vsnprintf-tests
66032         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
66033         * modules/unistdio/u16-vsprintf-tests
66034         (test_u16_vsnprintf1_LDADD): Likewise.
66035         * modules/unistdio/u32-vsnprintf-tests
66036         (test_u32_vsnprintf1_LDADD): Likewise.
66037         * modules/unistdio/u32-vsprintf-tests
66038         (test_u32_vsprintf1_LDADD): Likewise.
66039         * modules/unistdio/u8-vsnprintf-tests
66040         (test_u8_vsnprintf1_LDADD): Likewise.
66041         * modules/unistdio/u8-vsprintf-tests
66042         (test_u8_vsprintf1_LDADD): Likewise.
66043         * modules/unistdio/ulc-vsnprintf-tests
66044         (test_ulc_vsnprintf1_LDADD): Likewise.
66045         * modules/unistdio/ulc-vsprintf-tests
66046         (test_ulc_vsprintf1_LDADD): Likewise.
66047
66048         Fix linking of some uniconv tests on FreeBSD.
66049         * modules/uniconv/u16-conv-from-enc-tests
66050         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
66051         * modules/uniconv/u16-conv-to-enc-tests
66052         (test_u16_conv_to_enc_LDADD): Likewise.
66053         * modules/uniconv/u16-strconv-from-enc-tests
66054         (test_u16_strconv_from_enc_LDADD): Likewise.
66055         * modules/uniconv/u16-strconv-to-enc-tests
66056         (test_u16_strconv_to_enc_LDADD): Likewise.
66057         * modules/uniconv/u32-conv-from-enc-tests
66058         (test_u32_conv_from_enc_LDADD): Likewise.
66059         * modules/uniconv/u32-conv-to-enc-tests
66060         (test_u32_conv_to_enc_LDADD): Likewise.
66061         * modules/uniconv/u32-strconv-from-enc-tests
66062         (test_u32_strconv_from_enc_LDADD): Likewise.
66063         * modules/uniconv/u32-strconv-to-enc-tests
66064         (test_u32_strconv_to_enc_LDADD): Likewise.
66065         * modules/uniconv/u8-conv-from-enc-tests
66066         (test_u8_conv_from_enc_LDADD): Likewise.
66067         * modules/uniconv/u8-conv-to-enc-tests
66068         (test_u8_conv_to_enc_LDADD): Likewise.
66069         * modules/uniconv/u8-strconv-from-enc-tests
66070         (test_u8_strconv_from_enc_LDADD): Likewise.
66071         * modules/uniconv/u8-strconv-to-enc-tests
66072         (test_u8_strconv_to_enc_LDADD): Likewise.
66073
66074 2007-10-22  Bruno Haible  <bruno@clisp.org>
66075
66076         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
66077         size.
66078
66079 2007-10-22  Eric Blake  <ebb9@byu.net>
66080
66081         Tweak x*printf documentation.
66082         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
66083         variable name and comments.
66084         Suggested by Bruno Haible.
66085
66086 2007-10-22  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/acl.c (copy_acl): Fix file name in comment.
66089
66090 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66091
66092         Fix Tru64 problem with stdbool.h.
66093         * lib/stdbool.in.h (false, true):
66094         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
66095         Don't declare as an enum in this situation; it runs afoul of Tru64.
66096         Problem reported by Steven M. Schweda in
66097         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
66098
66099 2007-10-22  Eric Blake  <ebb9@byu.net>
66100
66101         Also wrap vf?printf.
66102         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
66103         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
66104         (xvprintf, xvfprintf): New functions.
66105
66106 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66107
66108         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
66109         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
66110
66111         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
66112         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
66113
66114 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66115
66116         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
66117         by Bruno Haible.
66118
66119 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66120
66121         * lib/getloadavg.c
66122         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
66123         Undef `sys' after including sys/table.h, for Tru64 4.0D.
66124
66125         * tests/test-i-ring.c: Work for C89.
66126
66127 2007-10-22  Bruno Haible  <bruno@clisp.org>
66128
66129         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
66130         -1u, in preprocessor expression, so that we don't test for the bug
66131         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
66132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
66133
66134 2007-10-22  Eric Blake  <ebb9@byu.net>
66135
66136         * tests/test-yesno.sh: Silence stderr during test.
66137
66138 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66139
66140         * modules/crypto/gc-camellia: New file.
66141
66142         * m4/gc-camellia.m4: New file.
66143
66144         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66145
66146         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66147
66148 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66149
66150         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66151         --help to stdout.  Reported by sms@antinode.org (Steven
66152         M. Schweda).
66153
66154 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66155
66156         * users.txt: Fix link to libksba.
66157
66158 2007-10-21  Ben Pfaff  <blp@gnu.org>
66159
66160         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66161         round.c roundf implementation that depends on floorf and ceilf to
66162         be tested unconditionally.
66163
66164 2007-10-21  Ben Pfaff  <blp@gnu.org>
66165
66166         * m4/check-libm-func.m4: Removed.
66167         * m4/check-math-lib.m4: New file.
66168         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66169         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66170         definition and lack of AC_LIBOBJ([roundf]).
66171         * m4/roundl.m4: Ditto, and similarly for roundl.
66172         * modules/round: Reference new m4 file.
66173         * modules/roundf: Ditto.
66174         * modules/roundl: Ditto.
66175         * tests/test-round2.c (main): Use ROUND instead of round.
66176         Bug report from Bruno Haible.
66177
66178 2007-10-21  Bruno Haible  <bruno@clisp.org>
66179
66180         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66181         context.
66182
66183 2007-10-21  Bruno Haible  <bruno@clisp.org>
66184
66185         * tests/test-wcwidth.c (main): Allow negative result for some control
66186         characters.
66187
66188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66189         Needed on OSF/1 5.1.
66190
66191 2007-10-21  Bruno Haible  <bruno@clisp.org>
66192
66193         * tests/test-floorf1.c: Include isnanf.h.
66194         (main): Use isnanf() instead of isnan().
66195         * tests/test-ceilf1.c: Include isnanf.h.
66196         (main): Use isnanf() instead of isnan().
66197         * tests/test-truncf1.c: Include isnanf.h.
66198         (main): Use isnanf() instead of isnan().
66199         * tests/test-roundf1.c: Include isnanf.h.
66200         (main): Use isnanf() instead of isnan().
66201
66202 2007-10-21  Eric Blake  <ebb9@byu.net>
66203
66204         * users.txt: Update URL for m4.
66205
66206 2007-10-21  Bruno Haible  <bruno@clisp.org>
66207
66208         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66209
66210 2007-10-21  Bruno Haible  <bruno@clisp.org>
66211
66212         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66213         Git's management files if the CVS files are not present.
66214
66215 2007-10-20  Bruno Haible  <bruno@clisp.org>
66216
66217         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66218         gcc-3.4.x.
66219
66220 2007-10-20  Ben Pfaff  <blp@gnu.org>
66221
66222         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66223         implementations.
66224         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66225         * lib/round.c: New file.
66226         * lib/roundf.c: New file.
66227         * lib/roundl.c: New file.
66228         * m4/round.m4: New file.
66229         * m4/roundf.m4: New file.
66230         * m4/roundl.m4: New file.
66231         * m4/check-libm-func-m4: New file.
66232         * modules/math: Replace round, roundf, roundl related @VARS@ in
66233         math.in.h.
66234         * modules/round: New file.
66235         * modules/round-tests: New file.
66236         * modules/roundf: New file.
66237         * modules/roundf-tests: New file.
66238         * modules/roundl: New file.
66239         * modules/roundl-tests: New file.
66240         * tests/test-round1.c: New file.
66241         * tests/test-round2.c: New file.
66242         * tests/test-roundf1.c: New file.
66243         * tests/test-roundf2.c: New file.
66244         * tests/test-roundl.c: New file.
66245         * doc/functions/round.texi: Mention round module.
66246         * doc/functions/roundf.texi: Mention roundf module.
66247         * doc/functions/roundl.texi: Mention roundl module.
66248         * MODULES.html.sh: Mention new modules.
66249         Thanks to Bruno Haible for suggestions.
66250
66251 2007-10-20  Jim Meyering  <meyering@redhat.com>
66252
66253         * lib/xprintf.c: Include <config.h> unconditionally.
66254
66255         Change xprintf's license to GPL.
66256         * modules/xprintf (License): s/LGPL/GPL/, since this module
66257         depends on modules (exit and exitfail) which are GPL.
66258         Suggestion from Bruno Haible.
66259
66260         xprintf fixes.
66261         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66262         Use a clearer diagnostic.
66263         Patch from Bruno Haible.
66264
66265 2007-10-20  Bruno Haible  <bruno@clisp.org>
66266
66267         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66268         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66269         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66270
66271 2007-10-20  Bruno Haible  <bruno@clisp.org>
66272
66273         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66274         precision in the comparison result > x - 1 or similar.
66275         * tests/test-ceilf2.c (correct_result_p): Likewise.
66276         * tests/test-truncf2.c (correct_result_p): Likewise.
66277         * tests/test-trunc2.c (correct_result_p): Likewise.
66278         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66279
66280 2007-10-20  Bruno Haible  <bruno@clisp.org>
66281
66282         * modules/ceil: New file.
66283         * m4/ceil.m4: New file.
66284         * doc/functions/ceil.texi: Mention the 'ceil' module.
66285
66286 2007-10-20  Bruno Haible  <bruno@clisp.org>
66287
66288         * modules/floor: New file.
66289         * m4/floor.m4: New file.
66290         * doc/functions/floor.texi: Mention the 'floor' module.
66291
66292 2007-10-20  Bruno Haible  <bruno@clisp.org>
66293
66294         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66295         of %a.
66296         * modules/floorf-tests (Depends-on): Likewise.
66297         * modules/truncf-tests (Depends-on): Likewise.
66298         * modules/trunc-tests (Depends-on): Likewise.
66299         Reported by Ben Pfaff.
66300
66301 2007-10-19  Jim Meyering  <meyering@redhat.com>
66302
66303         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66304         Don't bother testing specific errno values.  Just test ferror.
66305
66306         New module: xprintf
66307         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66308
66309 2007-10-19  Bruno Haible  <bruno@clisp.org>
66310
66311         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66312         syntax.
66313         * modules/javaexec (Makefile.am): Likewise.
66314         * modules/relocatable-prog (Makefile.am): Likewise.
66315         Suggested by Jim Meyering.
66316
66317 2007-10-18  Bruno Haible  <bruno@clisp.org>
66318
66319         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66320         Reported by Jim Meyering.
66321
66322 2007-10-18  Eric Blake  <ebb9@byu.net>
66323
66324         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66325
66326 2007-10-18  Bruno Haible  <bruno@clisp.org>
66327
66328         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66329         the format string into writable memory. Needed in Fortify conditions.
66330
66331 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66332             Bruno Haible  <bruno@clisp.org>
66333
66334         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66335         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66336         * modules/trim (Depends-on): Add mbchar.
66337         (configure.ac): Add gl_FUNC_MBRTOWC.
66338         (Makefile.am): Augment lib_SOURCES.
66339
66340 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66341
66342         Modify glob.c to use fstatat and dirfd, to simplify it.
66343         Suggested by Eric Blake.
66344         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66345         Don't include <stdbool.h>; not used.
66346         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66347         (link_exists_p): Simplify implementation, since we can now assume
66348         dirfd and fstatat.
66349         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66350
66351 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66352
66353         * gnulib-tool (func_get_dependencies): Fix sed script to
66354         match only tests.
66355
66356 2007-10-17  Bruno Haible  <bruno@clisp.org>
66357
66358         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66359         allow locale names without encoding suffix.
66360         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66361         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66362
66363 2007-10-16  Bruno Haible  <bruno@clisp.org>
66364
66365         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66366         * lib/getgroups.c (getgroups): Likewise.
66367         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66368
66369 2007-10-16  Bruno Haible  <bruno@clisp.org>
66370
66371         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66372         * modules/malloc-posix (License): Likewise.
66373         * modules/realloc-posix (License): Likewise.
66374         * modules/calloc-posix (License): Likewise.
66375         * modules/intprops (License): Change from GPL to LGPL, with
66376         Paul Eggert's approval.
66377
66378 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         Merge glibc changes into lib/glob.c.
66381
66382         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66383         2007-10-15 04:59:03 UTC.  Here are the changes:
66384
66385         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66386
66387         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66388
66389         * lib/glob.c: Add some branch prediction throughout.
66390
66391         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66392
66393         [BZ #5103]
66394         * lib/glob.c (glob): Recognize patterns starting \/.
66395
66396         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66397
66398         [BZ #3996]
66399         * lib/glob.c (attribute_hidden): Define if not defined.
66400         (glob): Unescape dirname, filename or username when needed and not
66401         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66402         is NULL.  Handle unescaped [ in pattern without closing ].
66403         Don't pass GLOB_CHECK down to recursive glob for directories.
66404         (__glob_pattern_type): New function.
66405         (__glob_pattern_p): Implement using __glob_pattern_type.
66406         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66407         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66408         Remove unreachable code.
66409
66410         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66411
66412         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66413         explain why there are no leaks.
66414
66415         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66416
66417         [BZ #3253]
66418         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66419         time, rather allocate increasingly bigger arrays of pointers, if
66420         possible with alloca, if too large with malloc.
66421
66422 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66423
66424         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66425         Problem reported by H.Merijn Brand in
66426         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66427         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66428         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66429
66430 2007-10-15  Bruno Haible  <bruno@clisp.org>
66431
66432         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66433         with explicit rpl_ prefix.
66434         * lib/fopen.c (fopen): Likewise.
66435         * lib/freopen.c (freopen): Likewise.
66436         * lib/iconv.c (iconv): Likewise.
66437         * lib/iconv_close.c (iconv_close): Likewise.
66438
66439 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66440
66441         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66442
66443 2007-10-15  Bruno Haible  <bruno@clisp.org>
66444
66445         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66446         <stddef.h> instead of <stdlib.h> since we only need NULL.
66447         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66448
66449 2007-10-15  Bruno Haible  <bruno@clisp.org>
66450
66451         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66452         Replace paragraph talking about LIBOBJS.
66453         Reported by Colin Watson <cjwatson@debian.org>.
66454
66455 2007-10-15  Bruno Haible  <bruno@clisp.org>
66456
66457         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66458         <stdlib.h> before using NULL.
66459
66460 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66461
66462         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66463         Reported by Albert Chin <china@thewrittenword.com>.
66464
66465 2007-10-14  Bruno Haible  <bruno@clisp.org>
66466
66467         * modules/iconv_open-utf-tests: New file.
66468         * tests/test-iconv-utf.c: New file.
66469
66470         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66471         * modules/iconv_open-utf: New file.
66472         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66473         (iconv, iconv_close): New declarations.
66474         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66475         be defined.
66476         (iconv_open): Add special handling of conversion between UTF-8 and
66477         UTF-{16,32}{BE,LE}.
66478         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66479         * lib/iconv_close.c: New file.
66480         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66481         gl_FUNC_ICONV_OPEN.
66482         (gl_FUNC_ICONV_OPEN): Use it.
66483         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66484         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66485         and REPLACE_ICONV_UTF.
66486         * modules/iconv_open (Depends-on): Add c-strcase.
66487         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66488         ICONV_CONST.
66489         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66490
66491 2007-10-13  Albert Chin  <china@thewrittenword.com>
66492             Bruno Haible  <bruno@clisp.org>
66493
66494         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66495         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66496
66497 2007-10-13  Bruno Haible  <bruno@clisp.org>
66498
66499         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66500         defined, use the ISO C99 inline semantics.
66501         * lib/argp.h (ARGP_EI): Likewise.
66502
66503 2007-10-13  Bruno Haible  <bruno@clisp.org>
66504
66505         Handle 'inline' change in gcc 4.3.0.
66506         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66507         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66508         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66509         argp_fmtstream_point): Disable 'extern' declaration if the function
66510         definition is going to be provided inline.
66511         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66512         semantics, not the ISO C99 inline semantics.
66513         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66514         'extern' declaration if the function definition is going to be provided
66515         inline.
66516         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66517         the GNU C inline semantics, not the ISO C99 inline semantics. With
66518         GCC 4.2, avoid a warning.
66519
66520 2007-10-13  Bruno Haible  <bruno@clisp.org>
66521
66522         * lib/freading.h (freading): Enable the use of __freading for
66523         glibc >= 2.7.
66524         * lib/freading.c (freading): Likewise.
66525
66526 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66527
66528         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66529         "warning: C99 inline functions are not supported; using GNU89".
66530
66531 2007-10-12  Bruno Haible  <bruno@clisp.org>
66532
66533         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66534         of 2.
66535         * tests/test-ceilf2.c: New file.
66536         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66537
66538         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66539         * modules/ceilf-tests: Update.
66540
66541 2007-10-12  Bruno Haible  <bruno@clisp.org>
66542
66543         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66544         of 2.
66545         * tests/test-floorf2.c: New file.
66546         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66547
66548         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66549         * modules/floorf-tests: Update.
66550
66551 2007-10-12  Bruno Haible  <bruno@clisp.org>
66552
66553         * tests/test-trunc2.c: New file.
66554         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66555
66556         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66557         * modules/trunc-tests: Update.
66558
66559 2007-10-12  Bruno Haible  <bruno@clisp.org>
66560
66561         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66562         of 2.
66563         * tests/test-truncf2.c: New file.
66564         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66565
66566         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66567         * modules/truncf-tests: Update.
66568
66569 2007-10-11  Eric Blake  <ebb9@byu.net>
66570
66571         Don't claim strerror is broken on Interix.
66572         * doc/functions/strerror.texi (strerror): Known broken systems are
66573         now Solaris 8, and not Interix.
66574         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66575         Interix on cross-compile.
66576         Reported by Martin Koeppe in
66577         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66578
66579 2007-10-11  Bruno Haible  <bruno@clisp.org>
66580
66581         * modules/i-ring-tests: New file.
66582         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66583         instead of assert.
66584
66585 2007-10-11  Bruno Haible  <bruno@clisp.org>
66586
66587         * modules/filenamecat-tests: New file.
66588         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66589         * lib/filenamecat.c: Remove test code.
66590
66591 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66592
66593         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66594
66595         * lib/strerror.c: Include <string.h> always, to test interface,
66596         and to remove the need for the dummy.
66597         Include intprops.h to compute width instead of doing it ourselves
66598         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66599         (strerror): Define it to return NULL if there's no system strerror.
66600         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66601         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66602         ancient pre-strerror Unix systems well any more.  Saying "unknown
66603         system error" is enough.
66604         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66605         simpler strerror.c implementation.
66606         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66607         Simplify the tests to reflect the simpler strerror implementation.
66608         * modules/strerror (Depends-on): Add intprops.
66609
66610 2007-10-09  Eric Blake  <ebb9@byu.net>
66611
66612         Silence test-fpending.
66613         * modules/fpending-tests (Files): Add wrapper script.
66614         * tests/test-fpending.sh: New file.
66615
66616 2007-10-09  Bruno Haible  <bruno@clisp.org>
66617
66618         * MODULES.html.sh (func_module): Don't create a hyperlink for
66619         function names like 'printf_frexp'.
66620         (Misc): Add crc, memxor.
66621         (Characteristics of floating types): New section.
66622         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66623         isnanf-nolibm, signbit, trunc, truncf, truncl.
66624         (Enhancements for ISO C 99 functions): New subsection Input/output.
66625         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66626         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66627         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66628         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66629         (Enhancements for POSIX:2001 functions): Add chdir-long.
66630         (File system functions): Add areadlink, chdir-safer, read-file.
66631         Remove cycle-check.
66632         (File system as inode set): New section.
66633         (Date and time): Add gethrxtime.
66634         (Multithreading): Add openmp.
66635         (Internationalization functions): Add localename.
66636         (Unicode string functions): Add unistr/u*-mbsnlen.
66637         (Support for maintaining and releasing projects): Add git-version-gen.
66638         (Lone files): Remove directories.
66639
66640 2007-10-08  Ben Pfaff  <blp@gnu.org>
66641
66642         * lib/xmalloca.h: Fix typo in comment.
66643
66644 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66645
66646         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66647         when avoiding problems with integer overflow.  Use a portable test
66648         instead.
66649
66650 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66651
66652         * modules/dummy (License): Change to LGPLv2+.
66653         * modules/float (License): Likewise
66654         * modules/realloc (License): Likewise
66655         * modules/stdlib (License): Likewise
66656
66657 2007-10-07  Bruno Haible  <bruno@clisp.org>
66658
66659         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66660         * floor.c (TWO_MANT_DIG): Likewise.
66661         * ceil.c (TWO_MANT_DIG): Likewise.
66662         Reported by Ben Pfaff.
66663
66664 2007-10-07  Bruno Haible  <bruno@clisp.org>
66665
66666         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66667         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66668         * lib/frexp.c (FUNC): Likewise.
66669         * lib/printf-frexp.h (printf_frexp): Likewise.
66670         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66671         * lib/printf-frexp.c (FUNC): Likewise.
66672         Suggested by Jim Meyering.
66673
66674 2007-10-07  Jim Meyering  <meyering@redhat.com>
66675
66676         Make xnanosleep's integer overflow test more robust.
66677         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66678         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66679
66680 2007-10-07  Bruno Haible  <bruno@clisp.org>
66681
66682         * NEWS: Mention the license change.
66683
66684         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66685         abbreviations in the modules files.
66686
66687         Change copyright notice from GPLv2+ to GPLv3+.
66688         * README: Change copyright notice.
66689         * MODULES.html.sh: Likewise.
66690         * build-aux/bootstrap.conf: Likewise.
66691         * build-aux/config.libpath: Likewise.
66692         * build-aux/csharpcomp.sh.in: Likewise.
66693         * build-aux/csharpexec.sh.in: Likewise.
66694         * build-aux/install-reloc: Likewise.
66695         * build-aux/javacomp.sh.in: Likewise.
66696         * build-aux/javaexec.sh.in: Likewise.
66697         * build-aux/ldd.sh.in: Likewise.
66698         * build-aux/reloc-ldflags: Likewise.
66699         * build-aux/relocatable.sh.in: Likewise.
66700         * build-aux/x-to-1.in: Likewise.
66701         * check-module: Likewise.
66702         * config/srclistvars.sh: Likewise.
66703         * gnulib-tool: Likewise.
66704         * lib/acl-internal.h: Likewise.
66705         * lib/acl.c: Likewise.
66706         * lib/acl.h: Likewise.
66707         * lib/acl_entries.c: Likewise.
66708         * lib/areadlink-with-size.c: Likewise.
66709         * lib/areadlink.c: Likewise.
66710         * lib/areadlink.h: Likewise.
66711         * lib/argmatch.c: Likewise.
66712         * lib/argmatch.h: Likewise.
66713         * lib/argp-ba.c: Likewise.
66714         * lib/argp-eexst.c: Likewise.
66715         * lib/argp-fmtstream.c: Likewise.
66716         * lib/argp-fmtstream.h: Likewise.
66717         * lib/argp-fs-xinl.c: Likewise.
66718         * lib/argp-help.c: Likewise.
66719         * lib/argp-namefrob.h: Likewise.
66720         * lib/argp-parse.c: Likewise.
66721         * lib/argp-pin.c: Likewise.
66722         * lib/argp-pv.c: Likewise.
66723         * lib/argp-pvh.c: Likewise.
66724         * lib/argp-xinl.c: Likewise.
66725         * lib/argp.h: Likewise.
66726         * lib/at-func.c: Likewise.
66727         * lib/atanl.c: Likewise.
66728         * lib/backupfile.c: Likewise.
66729         * lib/backupfile.h: Likewise.
66730         * lib/basename.c: Likewise.
66731         * lib/binary-io.h: Likewise.
66732         * lib/byteswap.in.h: Likewise.
66733         * lib/c-stack.c: Likewise.
66734         * lib/c-stack.h: Likewise.
66735         * lib/c-strcasestr.c: Likewise.
66736         * lib/c-strcasestr.h: Likewise.
66737         * lib/c-strstr.c: Likewise.
66738         * lib/c-strstr.h: Likewise.
66739         * lib/c-strtod.c: Likewise.
66740         * lib/calloc.c: Likewise.
66741         * lib/canon-host.c: Likewise.
66742         * lib/canon-host.h: Likewise.
66743         * lib/canonicalize-lgpl.c: Likewise.
66744         * lib/canonicalize.c: Likewise.
66745         * lib/canonicalize.h: Likewise.
66746         * lib/ceil.c: Likewise.
66747         * lib/ceilf.c: Likewise.
66748         * lib/ceill.c: Likewise.
66749         * lib/chdir-long.c: Likewise.
66750         * lib/chdir-long.h: Likewise.
66751         * lib/chdir-safer.c: Likewise.
66752         * lib/chdir-safer.h: Likewise.
66753         * lib/chown.c: Likewise.
66754         * lib/classpath.c: Likewise.
66755         * lib/classpath.h: Likewise.
66756         * lib/clean-temp.c: Likewise.
66757         * lib/clean-temp.h: Likewise.
66758         * lib/cloexec.c: Likewise.
66759         * lib/close-stream.c: Likewise.
66760         * lib/closein.c: Likewise.
66761         * lib/closein.h: Likewise.
66762         * lib/closeout.c: Likewise.
66763         * lib/closeout.h: Likewise.
66764         * lib/concat-filename.c: Likewise.
66765         * lib/copy-file.c: Likewise.
66766         * lib/copy-file.h: Likewise.
66767         * lib/count-one-bits.h: Likewise.
66768         * lib/crc.c: Likewise.
66769         * lib/crc.h: Likewise.
66770         * lib/creat-safer.c: Likewise.
66771         * lib/csharpcomp.c: Likewise.
66772         * lib/csharpcomp.h: Likewise.
66773         * lib/csharpexec.c: Likewise.
66774         * lib/csharpexec.h: Likewise.
66775         * lib/cycle-check.c: Likewise.
66776         * lib/cycle-check.h: Likewise.
66777         * lib/diacrit.c: Likewise.
66778         * lib/diacrit.h: Likewise.
66779         * lib/diffseq.h: Likewise.
66780         * lib/dirchownmod.c: Likewise.
66781         * lib/dirent.in.h: Likewise.
66782         * lib/dirfd.c: Likewise.
66783         * lib/dirfd.h: Likewise.
66784         * lib/dirname.c: Likewise.
66785         * lib/dirname.h: Likewise.
66786         * lib/dummy.c: Likewise.
66787         * lib/dup-safer.c: Likewise.
66788         * lib/dup2.c: Likewise.
66789         * lib/eealloc.h: Likewise.
66790         * lib/error.c: Likewise.
66791         * lib/error.h: Likewise.
66792         * lib/euidaccess.c: Likewise.
66793         * lib/exclude.c: Likewise.
66794         * lib/exclude.h: Likewise.
66795         * lib/execute.c: Likewise.
66796         * lib/execute.h: Likewise.
66797         * lib/exitfail.c: Likewise.
66798         * lib/exitfail.h: Likewise.
66799         * lib/expl.c: Likewise.
66800         * lib/fatal-signal.c: Likewise.
66801         * lib/fatal-signal.h: Likewise.
66802         * lib/fbufmode.c: Likewise.
66803         * lib/fbufmode.h: Likewise.
66804         * lib/fchdir.c: Likewise.
66805         * lib/fchmodat.c: Likewise.
66806         * lib/fchownat.c: Likewise.
66807         * lib/fcntl--.h: Likewise.
66808         * lib/fcntl-safer.h: Likewise.
66809         * lib/fcntl.in.h: Likewise.
66810         * lib/fd-safer.c: Likewise.
66811         * lib/fflush.c: Likewise.
66812         * lib/file-has-acl.c: Likewise.
66813         * lib/file-set.c: Likewise.
66814         * lib/file-type.c: Likewise.
66815         * lib/file-type.h: Likewise.
66816         * lib/fileblocks.c: Likewise.
66817         * lib/filemode.c: Likewise.
66818         * lib/filemode.h: Likewise.
66819         * lib/filename.h: Likewise.
66820         * lib/filenamecat.c: Likewise.
66821         * lib/filenamecat.h: Likewise.
66822         * lib/findprog.c: Likewise.
66823         * lib/findprog.h: Likewise.
66824         * lib/float.in.h: Likewise.
66825         * lib/floor.c: Likewise.
66826         * lib/floorf.c: Likewise.
66827         * lib/floorl.c: Likewise.
66828         * lib/fopen-safer.c: Likewise.
66829         * lib/fopen.c: Likewise.
66830         * lib/fpending.c: Likewise.
66831         * lib/fpending.h: Likewise.
66832         * lib/fprintf.c: Likewise.
66833         * lib/fprintftime.h: Likewise.
66834         * lib/fpucw.h: Likewise.
66835         * lib/fpurge.c: Likewise.
66836         * lib/fpurge.h: Likewise.
66837         * lib/freadable.c: Likewise.
66838         * lib/freadable.h: Likewise.
66839         * lib/freadahead.c: Likewise.
66840         * lib/freadahead.h: Likewise.
66841         * lib/freading.c: Likewise.
66842         * lib/freading.h: Likewise.
66843         * lib/free.c: Likewise.
66844         * lib/freopen.c: Likewise.
66845         * lib/frexp.c: Likewise.
66846         * lib/frexpl.c: Likewise.
66847         * lib/fseek.c: Likewise.
66848         * lib/fseterr.c: Likewise.
66849         * lib/fseterr.h: Likewise.
66850         * lib/fstatat.c: Likewise.
66851         * lib/fstrcmp.c: Likewise.
66852         * lib/fstrcmp.h: Likewise.
66853         * lib/fsusage.c: Likewise.
66854         * lib/fsusage.h: Likewise.
66855         * lib/ftell.c: Likewise.
66856         * lib/ftello.c: Likewise.
66857         * lib/fts-cycle.c: Likewise.
66858         * lib/fts.c: Likewise.
66859         * lib/fts_.h: Likewise.
66860         * lib/full-read.c: Likewise.
66861         * lib/full-read.h: Likewise.
66862         * lib/full-write.c: Likewise.
66863         * lib/full-write.h: Likewise.
66864         * lib/fwritable.c: Likewise.
66865         * lib/fwritable.h: Likewise.
66866         * lib/fwriteerror.c: Likewise.
66867         * lib/fwriteerror.h: Likewise.
66868         * lib/fwriting.c: Likewise.
66869         * lib/fwriting.h: Likewise.
66870         * lib/gcd.c: Likewise.
66871         * lib/gcd.h: Likewise.
66872         * lib/getcwd.c: Likewise.
66873         * lib/getdate.h: Likewise.
66874         * lib/getdate.y: Likewise.
66875         * lib/getdomainname.c: Likewise.
66876         * lib/getdomainname.h: Likewise.
66877         * lib/getgroups.c: Likewise.
66878         * lib/gethostname.c: Likewise.
66879         * lib/gethrxtime.c: Likewise.
66880         * lib/gethrxtime.h: Likewise.
66881         * lib/getloadavg.c: Likewise.
66882         * lib/getndelim2.c: Likewise.
66883         * lib/getndelim2.h: Likewise.
66884         * lib/getnline.c: Likewise.
66885         * lib/getnline.h: Likewise.
66886         * lib/getopt.c: Likewise.
66887         * lib/getopt.in.h: Likewise.
66888         * lib/getopt1.c: Likewise.
66889         * lib/getopt_int.h: Likewise.
66890         * lib/getpagesize.h: Likewise.
66891         * lib/getsubopt.c: Likewise.
66892         * lib/gettime.c: Likewise.
66893         * lib/getugroups.c: Likewise.
66894         * lib/getugroups.h: Likewise.
66895         * lib/getusershell.c: Likewise.
66896         * lib/gl_anyavltree_list1.h: Likewise.
66897         * lib/gl_anyavltree_list2.h: Likewise.
66898         * lib/gl_anyhash_list1.h: Likewise.
66899         * lib/gl_anyhash_list2.h: Likewise.
66900         * lib/gl_anylinked_list1.h: Likewise.
66901         * lib/gl_anylinked_list2.h: Likewise.
66902         * lib/gl_anyrbtree_list1.h: Likewise.
66903         * lib/gl_anyrbtree_list2.h: Likewise.
66904         * lib/gl_anytree_list1.h: Likewise.
66905         * lib/gl_anytree_list2.h: Likewise.
66906         * lib/gl_anytree_oset.h: Likewise.
66907         * lib/gl_anytreehash_list1.h: Likewise.
66908         * lib/gl_anytreehash_list2.h: Likewise.
66909         * lib/gl_array_list.c: Likewise.
66910         * lib/gl_array_list.h: Likewise.
66911         * lib/gl_array_oset.c: Likewise.
66912         * lib/gl_array_oset.h: Likewise.
66913         * lib/gl_avltree_list.c: Likewise.
66914         * lib/gl_avltree_list.h: Likewise.
66915         * lib/gl_avltree_oset.c: Likewise.
66916         * lib/gl_avltree_oset.h: Likewise.
66917         * lib/gl_avltreehash_list.c: Likewise.
66918         * lib/gl_avltreehash_list.h: Likewise.
66919         * lib/gl_carray_list.c: Likewise.
66920         * lib/gl_carray_list.h: Likewise.
66921         * lib/gl_linked_list.c: Likewise.
66922         * lib/gl_linked_list.h: Likewise.
66923         * lib/gl_linkedhash_list.c: Likewise.
66924         * lib/gl_linkedhash_list.h: Likewise.
66925         * lib/gl_list.c: Likewise.
66926         * lib/gl_list.h: Likewise.
66927         * lib/gl_oset.c: Likewise.
66928         * lib/gl_oset.h: Likewise.
66929         * lib/gl_rbtree_list.c: Likewise.
66930         * lib/gl_rbtree_list.h: Likewise.
66931         * lib/gl_rbtree_oset.c: Likewise.
66932         * lib/gl_rbtree_oset.h: Likewise.
66933         * lib/gl_rbtreehash_list.c: Likewise.
66934         * lib/gl_rbtreehash_list.h: Likewise.
66935         * lib/gl_sublist.c: Likewise.
66936         * lib/gl_sublist.h: Likewise.
66937         * lib/group-member.c: Likewise.
66938         * lib/group-member.h: Likewise.
66939         * lib/hard-locale.c: Likewise.
66940         * lib/hard-locale.h: Likewise.
66941         * lib/hash-pjw.c: Likewise.
66942         * lib/hash-pjw.h: Likewise.
66943         * lib/hash-triple.c: Likewise.
66944         * lib/hash.c: Likewise.
66945         * lib/hash.h: Likewise.
66946         * lib/human.c: Likewise.
66947         * lib/human.h: Likewise.
66948         * lib/i-ring.c: Likewise.
66949         * lib/i-ring.h: Likewise.
66950         * lib/idcache.c: Likewise.
66951         * lib/imaxabs.c: Likewise.
66952         * lib/imaxdiv.c: Likewise.
66953         * lib/inet_pton.c: Likewise.
66954         * lib/inet_pton.h: Likewise.
66955         * lib/intprops.h: Likewise.
66956         * lib/inttostr.c: Likewise.
66957         * lib/inttostr.h: Likewise.
66958         * lib/inttypes.in.h: Likewise.
66959         * lib/isapipe.c: Likewise.
66960         * lib/isdir.c: Likewise.
66961         * lib/isnan.c: Likewise.
66962         * lib/isnan.h: Likewise.
66963         * lib/isnanf.c: Likewise.
66964         * lib/isnanf.h: Likewise.
66965         * lib/isnanl-nolibm.h: Likewise.
66966         * lib/isnanl.c: Likewise.
66967         * lib/isnanl.h: Likewise.
66968         * lib/javacomp.c: Likewise.
66969         * lib/javacomp.h: Likewise.
66970         * lib/javaexec.c: Likewise.
66971         * lib/javaexec.h: Likewise.
66972         * lib/javaversion.c: Likewise.
66973         * lib/javaversion.h: Likewise.
66974         * lib/javaversion.java: Likewise.
66975         * lib/lbrkprop.h: Likewise.
66976         * lib/lchmod.h: Likewise.
66977         * lib/lchown.c: Likewise.
66978         * lib/ldexpl.c: Likewise.
66979         * lib/linebreak.c: Likewise.
66980         * lib/linebreak.h: Likewise.
66981         * lib/linebuffer.c: Likewise.
66982         * lib/linebuffer.h: Likewise.
66983         * lib/locale.in.h: Likewise.
66984         * lib/logl.c: Likewise.
66985         * lib/long-options.c: Likewise.
66986         * lib/long-options.h: Likewise.
66987         * lib/lstat.c: Likewise.
66988         * lib/lstat.h: Likewise.
66989         * lib/math.in.h: Likewise.
66990         * lib/mbchar.c: Likewise.
66991         * lib/mbchar.h: Likewise.
66992         * lib/mbfile.h: Likewise.
66993         * lib/mbiter.h: Likewise.
66994         * lib/mbscasecmp.c: Likewise.
66995         * lib/mbscasestr.c: Likewise.
66996         * lib/mbschr.c: Likewise.
66997         * lib/mbscspn.c: Likewise.
66998         * lib/mbslen.c: Likewise.
66999         * lib/mbsncasecmp.c: Likewise.
67000         * lib/mbsnlen.c: Likewise.
67001         * lib/mbspbrk.c: Likewise.
67002         * lib/mbspcasecmp.c: Likewise.
67003         * lib/mbsrchr.c: Likewise.
67004         * lib/mbssep.c: Likewise.
67005         * lib/mbsspn.c: Likewise.
67006         * lib/mbsstr.c: Likewise.
67007         * lib/mbstok_r.c: Likewise.
67008         * lib/mbswidth.c: Likewise.
67009         * lib/mbswidth.h: Likewise.
67010         * lib/mbuiter.h: Likewise.
67011         * lib/memcasecmp.c: Likewise.
67012         * lib/memcasecmp.h: Likewise.
67013         * lib/memchr.c: Likewise.
67014         * lib/memcmp.c: Likewise.
67015         * lib/memcoll.c: Likewise.
67016         * lib/memcoll.h: Likewise.
67017         * lib/memcpy.c: Likewise.
67018         * lib/memrchr.c: Likewise.
67019         * lib/mkancesdirs.c: Likewise.
67020         * lib/mkdir-p.c: Likewise.
67021         * lib/mkdir-p.h: Likewise.
67022         * lib/mkdir.c: Likewise.
67023         * lib/mkdirat.c: Likewise.
67024         * lib/mkdtemp.c: Likewise.
67025         * lib/mkstemp-safer.c: Likewise.
67026         * lib/mkstemp.c: Likewise.
67027         * lib/modechange.c: Likewise.
67028         * lib/modechange.h: Likewise.
67029         * lib/mountlist.c: Likewise.
67030         * lib/mountlist.h: Likewise.
67031         * lib/mpsort.c: Likewise.
67032         * lib/nanosleep.c: Likewise.
67033         * lib/obstack.c: Likewise.
67034         * lib/obstack.h: Likewise.
67035         * lib/open-safer.c: Likewise.
67036         * lib/open.c: Likewise.
67037         * lib/openat-die.c: Likewise.
67038         * lib/openat-priv.h: Likewise.
67039         * lib/openat-proc.c: Likewise.
67040         * lib/openat.c: Likewise.
67041         * lib/openat.h: Likewise.
67042         * lib/pagealign_alloc.c: Likewise.
67043         * lib/pagealign_alloc.h: Likewise.
67044         * lib/physmem.c: Likewise.
67045         * lib/physmem.h: Likewise.
67046         * lib/pipe-safer.c: Likewise.
67047         * lib/pipe.c: Likewise.
67048         * lib/pipe.h: Likewise.
67049         * lib/posixtm.c: Likewise.
67050         * lib/posixtm.h: Likewise.
67051         * lib/posixver.c: Likewise.
67052         * lib/printf-frexp.c: Likewise.
67053         * lib/printf-frexp.h: Likewise.
67054         * lib/printf-frexpl.c: Likewise.
67055         * lib/printf-frexpl.h: Likewise.
67056         * lib/printf.c: Likewise.
67057         * lib/progname.c: Likewise.
67058         * lib/progname.h: Likewise.
67059         * lib/progreloc.c: Likewise.
67060         * lib/putenv.c: Likewise.
67061         * lib/quote.c: Likewise.
67062         * lib/quote.h: Likewise.
67063         * lib/quotearg.c: Likewise.
67064         * lib/quotearg.h: Likewise.
67065         * lib/raise.c: Likewise.
67066         * lib/readline.c: Likewise.
67067         * lib/readline.h: Likewise.
67068         * lib/readlink.c: Likewise.
67069         * lib/readtokens.c: Likewise.
67070         * lib/readtokens.h: Likewise.
67071         * lib/readtokens0.c: Likewise.
67072         * lib/readtokens0.h: Likewise.
67073         * lib/readutmp.c: Likewise.
67074         * lib/readutmp.h: Likewise.
67075         * lib/realloc.c: Likewise.
67076         * lib/relocwrapper.c: Likewise.
67077         * lib/rename-dest-slash.c: Likewise.
67078         * lib/rename.c: Likewise.
67079         * lib/rmdir.c: Likewise.
67080         * lib/rpmatch.c: Likewise.
67081         * lib/safe-read.c: Likewise.
67082         * lib/safe-read.h: Likewise.
67083         * lib/safe-write.c: Likewise.
67084         * lib/safe-write.h: Likewise.
67085         * lib/same-inode.h: Likewise.
67086         * lib/same.c: Likewise.
67087         * lib/same.h: Likewise.
67088         * lib/save-cwd.c: Likewise.
67089         * lib/save-cwd.h: Likewise.
67090         * lib/savedir.c: Likewise.
67091         * lib/savedir.h: Likewise.
67092         * lib/savewd.c: Likewise.
67093         * lib/savewd.h: Likewise.
67094         * lib/search.in.h: Likewise.
67095         * lib/setenv.c: Likewise.
67096         * lib/setenv.h: Likewise.
67097         * lib/settime.c: Likewise.
67098         * lib/sh-quote.c: Likewise.
67099         * lib/sh-quote.h: Likewise.
67100         * lib/sig2str.c: Likewise.
67101         * lib/sig2str.h: Likewise.
67102         * lib/signal.in.h: Likewise.
67103         * lib/signbitd.c: Likewise.
67104         * lib/signbitf.c: Likewise.
67105         * lib/signbitl.c: Likewise.
67106         * lib/sigprocmask.c: Likewise.
67107         * lib/sincosl.c: Likewise.
67108         * lib/sleep.c: Likewise.
67109         * lib/sprintf.c: Likewise.
67110         * lib/sqrtl.c: Likewise.
67111         * lib/stat-time.h: Likewise.
67112         * lib/stdio--.h: Likewise.
67113         * lib/stdio-safer.h: Likewise.
67114         * lib/stdlib--.h: Likewise.
67115         * lib/stdlib-safer.h: Likewise.
67116         * lib/stdlib.in.h: Likewise.
67117         * lib/stpcpy.c: Likewise.
67118         * lib/stpncpy.c: Likewise.
67119         * lib/strchrnul.c: Likewise.
67120         * lib/strcspn.c: Likewise.
67121         * lib/strerror.c: Likewise.
67122         * lib/strftime.c: Likewise.
67123         * lib/strftime.h: Likewise.
67124         * lib/striconveh.c: Likewise.
67125         * lib/striconveh.h: Likewise.
67126         * lib/striconveha.c: Likewise.
67127         * lib/striconveha.h: Likewise.
67128         * lib/stripslash.c: Likewise.
67129         * lib/strnlen1.c: Likewise.
67130         * lib/strnlen1.h: Likewise.
67131         * lib/strtod.c: Likewise.
67132         * lib/strtoimax.c: Likewise.
67133         * lib/strtok_r.c: Likewise.
67134         * lib/strtol.c: Likewise.
67135         * lib/strtoll.c: Likewise.
67136         * lib/strtoul.c: Likewise.
67137         * lib/strtoull.c: Likewise.
67138         * lib/sysexits.in.h: Likewise.
67139         * lib/tempname.c: Likewise.
67140         * lib/tempname.h: Likewise.
67141         * lib/timespec.h: Likewise.
67142         * lib/tls.c: Likewise.
67143         * lib/tls.h: Likewise.
67144         * lib/tmpdir.c: Likewise.
67145         * lib/tmpdir.h: Likewise.
67146         * lib/tmpfile-safer.c: Likewise.
67147         * lib/tmpfile.c: Likewise.
67148         * lib/trigl.c: Likewise.
67149         * lib/trigl.h: Likewise.
67150         * lib/trim.c: Likewise.
67151         * lib/trim.h: Likewise.
67152         * lib/trunc.c: Likewise.
67153         * lib/truncf.c: Likewise.
67154         * lib/truncl.c: Likewise.
67155         * lib/tsearch.c: Likewise.
67156         * lib/unicodeio.c: Likewise.
67157         * lib/unicodeio.h: Likewise.
67158         * lib/unistd--.h: Likewise.
67159         * lib/unistd-safer.h: Likewise.
67160         * lib/unistdio/ulc-fprintf.c: Likewise.
67161         * lib/unistdio/ulc-vfprintf.c: Likewise.
67162         * lib/unlinkdir.c: Likewise.
67163         * lib/unlinkdir.h: Likewise.
67164         * lib/unlocked-io.h: Likewise.
67165         * lib/unsetenv.c: Likewise.
67166         * lib/userspec.c: Likewise.
67167         * lib/utime.c: Likewise.
67168         * lib/utimecmp.c: Likewise.
67169         * lib/utimecmp.h: Likewise.
67170         * lib/utimens.c: Likewise.
67171         * lib/verify.h: Likewise.
67172         * lib/verror.c: Likewise.
67173         * lib/verror.h: Likewise.
67174         * lib/version-etc-fsf.c: Likewise.
67175         * lib/version-etc.c: Likewise.
67176         * lib/version-etc.h: Likewise.
67177         * lib/vfprintf.c: Likewise.
67178         * lib/vprintf.c: Likewise.
67179         * lib/vsprintf.c: Likewise.
67180         * lib/w32spawn.h: Likewise.
67181         * lib/wait-process.c: Likewise.
67182         * lib/wait-process.h: Likewise.
67183         * lib/wcwidth.c: Likewise.
67184         * lib/write-any-file.c: Likewise.
67185         * lib/xalloc-die.c: Likewise.
67186         * lib/xalloc.h: Likewise.
67187         * lib/xasprintf.c: Likewise.
67188         * lib/xgetcwd.c: Likewise.
67189         * lib/xgetcwd.h: Likewise.
67190         * lib/xgetdomainname.c: Likewise.
67191         * lib/xgetdomainname.h: Likewise.
67192         * lib/xgethostname.c: Likewise.
67193         * lib/xmalloc.c: Likewise.
67194         * lib/xmalloca.c: Likewise.
67195         * lib/xmalloca.h: Likewise.
67196         * lib/xmemcoll.c: Likewise.
67197         * lib/xnanosleep.c: Likewise.
67198         * lib/xreadlink.c: Likewise.
67199         * lib/xreadlink.h: Likewise.
67200         * lib/xsetenv.c: Likewise.
67201         * lib/xsetenv.h: Likewise.
67202         * lib/xstriconv.c: Likewise.
67203         * lib/xstriconv.h: Likewise.
67204         * lib/xstrndup.c: Likewise.
67205         * lib/xstrndup.h: Likewise.
67206         * lib/xstrtod.c: Likewise.
67207         * lib/xstrtod.h: Likewise.
67208         * lib/xstrtol-error.c: Likewise.
67209         * lib/xstrtol.c: Likewise.
67210         * lib/xstrtol.h: Likewise.
67211         * lib/xtime.h: Likewise.
67212         * lib/xvasprintf.c: Likewise.
67213         * lib/xvasprintf.h: Likewise.
67214         * lib/yesno.c: Likewise.
67215         * lib/yesno.h: Likewise.
67216         * posix-modules: Likewise.
67217         * tests/test-alloca-opt.c: Likewise.
67218         * tests/test-arcfour.c: Likewise.
67219         * tests/test-arctwo.c: Likewise.
67220         * tests/test-argmatch.c: Likewise.
67221         * tests/test-argp-2.sh: Likewise.
67222         * tests/test-argp.c: Likewise.
67223         * tests/test-arpa_inet.c: Likewise.
67224         * tests/test-array_list.c: Likewise.
67225         * tests/test-array_oset.c: Likewise.
67226         * tests/test-atexit.c: Likewise.
67227         * tests/test-avltree_list.c: Likewise.
67228         * tests/test-avltree_oset.c: Likewise.
67229         * tests/test-avltreehash_list.c: Likewise.
67230         * tests/test-base64.c: Likewise.
67231         * tests/test-binary-io.c: Likewise.
67232         * tests/test-byteswap.c: Likewise.
67233         * tests/test-c-ctype.c: Likewise.
67234         * tests/test-c-strcasecmp.c: Likewise.
67235         * tests/test-c-strcasestr.c: Likewise.
67236         * tests/test-c-strncasecmp.c: Likewise.
67237         * tests/test-c-strstr.c: Likewise.
67238         * tests/test-canonicalize-lgpl.c: Likewise.
67239         * tests/test-canonicalize.c: Likewise.
67240         * tests/test-carray_list.c: Likewise.
67241         * tests/test-ceilf.c: Likewise.
67242         * tests/test-ceill.c: Likewise.
67243         * tests/test-count-one-bits.c: Likewise.
67244         * tests/test-crc.c: Likewise.
67245         * tests/test-dirname.c: Likewise.
67246         * tests/test-fbufmode.c: Likewise.
67247         * tests/test-fcntl.c: Likewise.
67248         * tests/test-fflush.c: Likewise.
67249         * tests/test-floorf.c: Likewise.
67250         * tests/test-floorl.c: Likewise.
67251         * tests/test-fopen.c: Likewise.
67252         * tests/test-fprintf-posix.c: Likewise.
67253         * tests/test-fprintf-posix.h: Likewise.
67254         * tests/test-fpurge.c: Likewise.
67255         * tests/test-freadable.c: Likewise.
67256         * tests/test-freadahead.c: Likewise.
67257         * tests/test-freading.c: Likewise.
67258         * tests/test-freopen.c: Likewise.
67259         * tests/test-frexp.c: Likewise.
67260         * tests/test-frexpl.c: Likewise.
67261         * tests/test-fseek.c: Likewise.
67262         * tests/test-fseeko.c: Likewise.
67263         * tests/test-fseterr.c: Likewise.
67264         * tests/test-fstrcmp.c: Likewise.
67265         * tests/test-ftell.c: Likewise.
67266         * tests/test-ftello.c: Likewise.
67267         * tests/test-fwritable.c: Likewise.
67268         * tests/test-fwriting.c: Likewise.
67269         * tests/test-getaddrinfo.c: Likewise.
67270         * tests/test-getpass.c: Likewise.
67271         * tests/test-gettimeofday.c: Likewise.
67272         * tests/test-hmac-md5.c: Likewise.
67273         * tests/test-hmac-sha1.c: Likewise.
67274         * tests/test-iconv.c: Likewise.
67275         * tests/test-iconvme.c: Likewise.
67276         * tests/test-inttypes.c: Likewise.
67277         * tests/test-isnan.c: Likewise.
67278         * tests/test-isnanf.c: Likewise.
67279         * tests/test-isnanl-nolibm.c: Likewise.
67280         * tests/test-isnanl.c: Likewise.
67281         * tests/test-isnanl.h: Likewise.
67282         * tests/test-ldexpl.c: Likewise.
67283         * tests/test-linked_list.c: Likewise.
67284         * tests/test-linkedhash_list.c: Likewise.
67285         * tests/test-locale.c: Likewise.
67286         * tests/test-localename.c: Likewise.
67287         * tests/test-lock.c: Likewise.
67288         * tests/test-lseek.c: Likewise.
67289         * tests/test-malloca.c: Likewise.
67290         * tests/test-math.c: Likewise.
67291         * tests/test-mbscasecmp.c: Likewise.
67292         * tests/test-mbscasestr1.c: Likewise.
67293         * tests/test-mbscasestr2.c: Likewise.
67294         * tests/test-mbscasestr3.c: Likewise.
67295         * tests/test-mbscasestr4.c: Likewise.
67296         * tests/test-mbschr.c: Likewise.
67297         * tests/test-mbscspn.c: Likewise.
67298         * tests/test-mbsncasecmp.c: Likewise.
67299         * tests/test-mbspbrk.c: Likewise.
67300         * tests/test-mbspcasecmp.c: Likewise.
67301         * tests/test-mbsrchr.c: Likewise.
67302         * tests/test-mbsspn.c: Likewise.
67303         * tests/test-mbsstr1.c: Likewise.
67304         * tests/test-mbsstr2.c: Likewise.
67305         * tests/test-mbsstr3.c: Likewise.
67306         * tests/test-md5.c: Likewise.
67307         * tests/test-memmem.c: Likewise.
67308         * tests/test-netinet_in.c: Likewise.
67309         * tests/test-open.c: Likewise.
67310         * tests/test-printf-frexp.c: Likewise.
67311         * tests/test-printf-frexpl.c: Likewise.
67312         * tests/test-printf-posix.c: Likewise.
67313         * tests/test-printf-posix.h: Likewise.
67314         * tests/test-rbtree_list.c: Likewise.
67315         * tests/test-rbtree_oset.c: Likewise.
67316         * tests/test-rbtreehash_list.c: Likewise.
67317         * tests/test-read-file.c: Likewise.
67318         * tests/test-rijndael.c: Likewise.
67319         * tests/test-search.c: Likewise.
67320         * tests/test-signbit.c: Likewise.
67321         * tests/test-sleep.c: Likewise.
67322         * tests/test-snprintf-posix.c: Likewise.
67323         * tests/test-snprintf-posix.h: Likewise.
67324         * tests/test-snprintf.c: Likewise.
67325         * tests/test-sprintf-posix.c: Likewise.
67326         * tests/test-sprintf-posix.h: Likewise.
67327         * tests/test-stat-time.c: Likewise.
67328         * tests/test-stdbool.c: Likewise.
67329         * tests/test-stdint.c: Likewise.
67330         * tests/test-stdio.c: Likewise.
67331         * tests/test-stdlib.c: Likewise.
67332         * tests/test-stpncpy.c: Likewise.
67333         * tests/test-strcasestr.c: Likewise.
67334         * tests/test-striconv.c: Likewise.
67335         * tests/test-striconveh.c: Likewise.
67336         * tests/test-striconveha.c: Likewise.
67337         * tests/test-string.c: Likewise.
67338         * tests/test-sys_select.c: Likewise.
67339         * tests/test-sys_socket.c: Likewise.
67340         * tests/test-sys_stat.c: Likewise.
67341         * tests/test-sys_time.c: Likewise.
67342         * tests/test-sysexits.c: Likewise.
67343         * tests/test-time.c: Likewise.
67344         * tests/test-tls.c: Likewise.
67345         * tests/test-trunc.c: Likewise.
67346         * tests/test-truncf.c: Likewise.
67347         * tests/test-truncl.c: Likewise.
67348         * tests/test-unistd.c: Likewise.
67349         * tests/test-vasnprintf-posix.c: Likewise.
67350         * tests/test-vasnprintf-posix2.c: Likewise.
67351         * tests/test-vasnprintf.c: Likewise.
67352         * tests/test-vasprintf-posix.c: Likewise.
67353         * tests/test-vasprintf.c: Likewise.
67354         * tests/test-verify.c: Likewise.
67355         * tests/test-vfprintf-posix.c: Likewise.
67356         * tests/test-vprintf-posix.c: Likewise.
67357         * tests/test-vsnprintf-posix.c: Likewise.
67358         * tests/test-vsnprintf.c: Likewise.
67359         * tests/test-vsprintf-posix.c: Likewise.
67360         * tests/test-wchar.c: Likewise.
67361         * tests/test-wctype.c: Likewise.
67362         * tests/test-wcwidth.c: Likewise.
67363         * tests/test-xstrtol.c: Likewise.
67364         * tests/test-xvasprintf.c: Likewise.
67365         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67366         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67367         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67368         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67369         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67370         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67371         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67372         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67373         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67374         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67375         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67376         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67377         * tests/uniname/test-uninames.c: Likewise.
67378         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67379         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67380         * tests/unistdio/test-u16-printf1.h: Likewise.
67381         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67382         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67383         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67384         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67385         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67386         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67387         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67388         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67389         * tests/unistdio/test-u32-printf1.h: Likewise.
67390         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67391         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67392         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67393         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67394         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67395         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67396         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67397         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67398         * tests/unistdio/test-u8-printf1.h: Likewise.
67399         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67400         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67401         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67402         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67403         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67404         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67405         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67406         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67407         * tests/unistdio/test-ulc-printf1.h: Likewise.
67408         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67409         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67410         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67411         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67412         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67413         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67414         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67415         * tests/uniwidth/test-u16-width.c: Likewise.
67416         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67417         * tests/uniwidth/test-u32-width.c: Likewise.
67418         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67419         * tests/uniwidth/test-u8-width.c: Likewise.
67420         * tests/uniwidth/test-uc_width.c: Likewise.
67421         * config/srclist-update: Likewise.
67422         (fixlicense): Update to GPLv3+.
67423
67424         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67425         * tests/test-tsearch.c: Change copyright notice.
67426
67427         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67428         * lib/c-strcaseeq.h: Change copyright notice.
67429         * lib/streq.h: Likewise.
67430         * lib/uniconv.h: Likewise.
67431         * lib/uniconv/u-conv-from-enc.h: Likewise.
67432         * lib/uniconv/u-conv-to-enc.h: Likewise.
67433         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67434         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67435         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67436         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67437         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67438         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67439         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67440         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67441         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67442         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67443         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67444         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67445         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67446         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67447         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67448         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67449         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67450         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67451         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67452         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67453         * lib/uniname.h: Likewise.
67454         * lib/uniname/uniname.c: Likewise.
67455         * lib/unistdio.h: Likewise.
67456         * lib/unistdio/u-asnprintf.h: Likewise.
67457         * lib/unistdio/u-asprintf.h: Likewise.
67458         * lib/unistdio/u-printf-args.c: Likewise.
67459         * lib/unistdio/u-printf-args.h: Likewise.
67460         * lib/unistdio/u-printf-parse.h: Likewise.
67461         * lib/unistdio/u-snprintf.h: Likewise.
67462         * lib/unistdio/u-sprintf.h: Likewise.
67463         * lib/unistdio/u-vasprintf.h: Likewise.
67464         * lib/unistdio/u-vsnprintf.h: Likewise.
67465         * lib/unistdio/u-vsprintf.h: Likewise.
67466         * lib/unistdio/u16-asnprintf.c: Likewise.
67467         * lib/unistdio/u16-asprintf.c: Likewise.
67468         * lib/unistdio/u16-printf-parse.c: Likewise.
67469         * lib/unistdio/u16-snprintf.c: Likewise.
67470         * lib/unistdio/u16-sprintf.c: Likewise.
67471         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67472         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67473         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67474         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67475         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67476         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67477         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67478         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67479         * lib/unistdio/u16-vasnprintf.c: Likewise.
67480         * lib/unistdio/u16-vasprintf.c: Likewise.
67481         * lib/unistdio/u16-vsnprintf.c: Likewise.
67482         * lib/unistdio/u16-vsprintf.c: Likewise.
67483         * lib/unistdio/u32-asnprintf.c: Likewise.
67484         * lib/unistdio/u32-asprintf.c: Likewise.
67485         * lib/unistdio/u32-printf-parse.c: Likewise.
67486         * lib/unistdio/u32-snprintf.c: Likewise.
67487         * lib/unistdio/u32-sprintf.c: Likewise.
67488         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67489         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67490         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67491         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67492         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67493         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67494         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67495         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67496         * lib/unistdio/u32-vasnprintf.c: Likewise.
67497         * lib/unistdio/u32-vasprintf.c: Likewise.
67498         * lib/unistdio/u32-vsnprintf.c: Likewise.
67499         * lib/unistdio/u32-vsprintf.c: Likewise.
67500         * lib/unistdio/u8-asnprintf.c: Likewise.
67501         * lib/unistdio/u8-asprintf.c: Likewise.
67502         * lib/unistdio/u8-printf-parse.c: Likewise.
67503         * lib/unistdio/u8-snprintf.c: Likewise.
67504         * lib/unistdio/u8-sprintf.c: Likewise.
67505         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67506         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67507         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67508         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67509         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67510         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67511         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67512         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67513         * lib/unistdio/u8-vasnprintf.c: Likewise.
67514         * lib/unistdio/u8-vasprintf.c: Likewise.
67515         * lib/unistdio/u8-vsnprintf.c: Likewise.
67516         * lib/unistdio/u8-vsprintf.c: Likewise.
67517         * lib/unistdio/ulc-asnprintf.c: Likewise.
67518         * lib/unistdio/ulc-asprintf.c: Likewise.
67519         * lib/unistdio/ulc-printf-parse.c: Likewise.
67520         * lib/unistdio/ulc-snprintf.c: Likewise.
67521         * lib/unistdio/ulc-sprintf.c: Likewise.
67522         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67523         * lib/unistdio/ulc-vasprintf.c: Likewise.
67524         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67525         * lib/unistdio/ulc-vsprintf.c: Likewise.
67526         * lib/unistr.h: Likewise.
67527         * lib/unistr/u-cpy-alloc.h: Likewise.
67528         * lib/unistr/u-cpy.h: Likewise.
67529         * lib/unistr/u-endswith.h: Likewise.
67530         * lib/unistr/u-move.h: Likewise.
67531         * lib/unistr/u-set.h: Likewise.
67532         * lib/unistr/u-startswith.h: Likewise.
67533         * lib/unistr/u-stpcpy.h: Likewise.
67534         * lib/unistr/u-stpncpy.h: Likewise.
67535         * lib/unistr/u-strcat.h: Likewise.
67536         * lib/unistr/u-strcpy.h: Likewise.
67537         * lib/unistr/u-strcspn.h: Likewise.
67538         * lib/unistr/u-strdup.h: Likewise.
67539         * lib/unistr/u-strlen.h: Likewise.
67540         * lib/unistr/u-strncat.h: Likewise.
67541         * lib/unistr/u-strncpy.h: Likewise.
67542         * lib/unistr/u-strnlen.h: Likewise.
67543         * lib/unistr/u-strpbrk.h: Likewise.
67544         * lib/unistr/u-strspn.h: Likewise.
67545         * lib/unistr/u-strstr.h: Likewise.
67546         * lib/unistr/u-strtok.h: Likewise.
67547         * lib/unistr/u16-check.c: Likewise.
67548         * lib/unistr/u16-chr.c: Likewise.
67549         * lib/unistr/u16-cmp.c: Likewise.
67550         * lib/unistr/u16-cpy-alloc.c: Likewise.
67551         * lib/unistr/u16-cpy.c: Likewise.
67552         * lib/unistr/u16-endswith.c: Likewise.
67553         * lib/unistr/u16-mblen.c: Likewise.
67554         * lib/unistr/u16-mbsnlen.c: Likewise.
67555         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67556         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67557         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67558         * lib/unistr/u16-mbtouc.c: Likewise.
67559         * lib/unistr/u16-mbtoucr.c: Likewise.
67560         * lib/unistr/u16-move.c: Likewise.
67561         * lib/unistr/u16-next.c: Likewise.
67562         * lib/unistr/u16-prev.c: Likewise.
67563         * lib/unistr/u16-set.c: Likewise.
67564         * lib/unistr/u16-startswith.c: Likewise.
67565         * lib/unistr/u16-stpcpy.c: Likewise.
67566         * lib/unistr/u16-stpncpy.c: Likewise.
67567         * lib/unistr/u16-strcat.c: Likewise.
67568         * lib/unistr/u16-strchr.c: Likewise.
67569         * lib/unistr/u16-strcmp.c: Likewise.
67570         * lib/unistr/u16-strcpy.c: Likewise.
67571         * lib/unistr/u16-strcspn.c: Likewise.
67572         * lib/unistr/u16-strdup.c: Likewise.
67573         * lib/unistr/u16-strlen.c: Likewise.
67574         * lib/unistr/u16-strmblen.c: Likewise.
67575         * lib/unistr/u16-strmbtouc.c: Likewise.
67576         * lib/unistr/u16-strncat.c: Likewise.
67577         * lib/unistr/u16-strncmp.c: Likewise.
67578         * lib/unistr/u16-strncpy.c: Likewise.
67579         * lib/unistr/u16-strnlen.c: Likewise.
67580         * lib/unistr/u16-strpbrk.c: Likewise.
67581         * lib/unistr/u16-strrchr.c: Likewise.
67582         * lib/unistr/u16-strspn.c: Likewise.
67583         * lib/unistr/u16-strstr.c: Likewise.
67584         * lib/unistr/u16-strtok.c: Likewise.
67585         * lib/unistr/u16-to-u32.c: Likewise.
67586         * lib/unistr/u16-to-u8.c: Likewise.
67587         * lib/unistr/u16-uctomb-aux.c: Likewise.
67588         * lib/unistr/u16-uctomb.c: Likewise.
67589         * lib/unistr/u32-check.c: Likewise.
67590         * lib/unistr/u32-chr.c: Likewise.
67591         * lib/unistr/u32-cmp.c: Likewise.
67592         * lib/unistr/u32-cpy-alloc.c: Likewise.
67593         * lib/unistr/u32-cpy.c: Likewise.
67594         * lib/unistr/u32-endswith.c: Likewise.
67595         * lib/unistr/u32-mblen.c: Likewise.
67596         * lib/unistr/u32-mbsnlen.c: Likewise.
67597         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67598         * lib/unistr/u32-mbtouc.c: Likewise.
67599         * lib/unistr/u32-mbtoucr.c: Likewise.
67600         * lib/unistr/u32-move.c: Likewise.
67601         * lib/unistr/u32-next.c: Likewise.
67602         * lib/unistr/u32-prev.c: Likewise.
67603         * lib/unistr/u32-set.c: Likewise.
67604         * lib/unistr/u32-startswith.c: Likewise.
67605         * lib/unistr/u32-stpcpy.c: Likewise.
67606         * lib/unistr/u32-stpncpy.c: Likewise.
67607         * lib/unistr/u32-strcat.c: Likewise.
67608         * lib/unistr/u32-strchr.c: Likewise.
67609         * lib/unistr/u32-strcmp.c: Likewise.
67610         * lib/unistr/u32-strcpy.c: Likewise.
67611         * lib/unistr/u32-strcspn.c: Likewise.
67612         * lib/unistr/u32-strdup.c: Likewise.
67613         * lib/unistr/u32-strlen.c: Likewise.
67614         * lib/unistr/u32-strmblen.c: Likewise.
67615         * lib/unistr/u32-strmbtouc.c: Likewise.
67616         * lib/unistr/u32-strncat.c: Likewise.
67617         * lib/unistr/u32-strncmp.c: Likewise.
67618         * lib/unistr/u32-strncpy.c: Likewise.
67619         * lib/unistr/u32-strnlen.c: Likewise.
67620         * lib/unistr/u32-strpbrk.c: Likewise.
67621         * lib/unistr/u32-strrchr.c: Likewise.
67622         * lib/unistr/u32-strspn.c: Likewise.
67623         * lib/unistr/u32-strstr.c: Likewise.
67624         * lib/unistr/u32-strtok.c: Likewise.
67625         * lib/unistr/u32-to-u16.c: Likewise.
67626         * lib/unistr/u32-to-u8.c: Likewise.
67627         * lib/unistr/u32-uctomb.c: Likewise.
67628         * lib/unistr/u8-check.c: Likewise.
67629         * lib/unistr/u8-chr.c: Likewise.
67630         * lib/unistr/u8-cmp.c: Likewise.
67631         * lib/unistr/u8-cpy-alloc.c: Likewise.
67632         * lib/unistr/u8-cpy.c: Likewise.
67633         * lib/unistr/u8-endswith.c: Likewise.
67634         * lib/unistr/u8-mblen.c: Likewise.
67635         * lib/unistr/u8-mbsnlen.c: Likewise.
67636         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67637         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67638         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67639         * lib/unistr/u8-mbtouc.c: Likewise.
67640         * lib/unistr/u8-mbtoucr.c: Likewise.
67641         * lib/unistr/u8-move.c: Likewise.
67642         * lib/unistr/u8-next.c: Likewise.
67643         * lib/unistr/u8-prev.c: Likewise.
67644         * lib/unistr/u8-set.c: Likewise.
67645         * lib/unistr/u8-startswith.c: Likewise.
67646         * lib/unistr/u8-stpcpy.c: Likewise.
67647         * lib/unistr/u8-stpncpy.c: Likewise.
67648         * lib/unistr/u8-strcat.c: Likewise.
67649         * lib/unistr/u8-strchr.c: Likewise.
67650         * lib/unistr/u8-strcmp.c: Likewise.
67651         * lib/unistr/u8-strcpy.c: Likewise.
67652         * lib/unistr/u8-strcspn.c: Likewise.
67653         * lib/unistr/u8-strdup.c: Likewise.
67654         * lib/unistr/u8-strlen.c: Likewise.
67655         * lib/unistr/u8-strmblen.c: Likewise.
67656         * lib/unistr/u8-strmbtouc.c: Likewise.
67657         * lib/unistr/u8-strncat.c: Likewise.
67658         * lib/unistr/u8-strncmp.c: Likewise.
67659         * lib/unistr/u8-strncpy.c: Likewise.
67660         * lib/unistr/u8-strnlen.c: Likewise.
67661         * lib/unistr/u8-strpbrk.c: Likewise.
67662         * lib/unistr/u8-strrchr.c: Likewise.
67663         * lib/unistr/u8-strspn.c: Likewise.
67664         * lib/unistr/u8-strstr.c: Likewise.
67665         * lib/unistr/u8-strtok.c: Likewise.
67666         * lib/unistr/u8-to-u16.c: Likewise.
67667         * lib/unistr/u8-to-u32.c: Likewise.
67668         * lib/unistr/u8-uctomb-aux.c: Likewise.
67669         * lib/unistr/u8-uctomb.c: Likewise.
67670         * lib/unitypes.h: Likewise.
67671         * lib/uniwidth.h: Likewise.
67672         * lib/uniwidth/cjk.h: Likewise.
67673         * lib/uniwidth/u16-strwidth.c: Likewise.
67674         * lib/uniwidth/u16-width.c: Likewise.
67675         * lib/uniwidth/u32-strwidth.c: Likewise.
67676         * lib/uniwidth/u32-width.c: Likewise.
67677         * lib/uniwidth/u8-strwidth.c: Likewise.
67678         * lib/uniwidth/u8-width.c: Likewise.
67679         * lib/uniwidth/width.c: Likewise.
67680
67681 2007-10-07  Bruno Haible  <bruno@clisp.org>
67682
67683         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67684         The file is still under LGPL (see modules/inttypes).
67685
67686 2007-10-06  Bruno Haible  <bruno@clisp.org>
67687
67688         * modules/trunc (Dependencies): Add 'extensions'.
67689         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67690         Reported by Ben Pfaff <blp@gnu.org>.
67691
67692 2007-10-06  Bruno Haible  <bruno@clisp.org>
67693
67694         * modules/freopen-tests: New file.
67695         * tests/test-freopen.c: New file.
67696
67697         * modules/fopen-tests: New file.
67698         * tests/test-fopen.c: New file.
67699
67700         * modules/fopen: New file.
67701         * lib/fopen.c: New file.
67702         * m4/fopen.m4: New file.
67703         * modules/freopen: New file.
67704         * lib/freopen.c: New file.
67705         * m4/freopen.m4: New file.
67706         * lib/stdio.in.h (fopen, freopen): New declarations.
67707         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67708         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67709         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67710         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67711         * doc/functions/fopen.texi: Mention the 'fopen' module.
67712         * doc/functions/freopen.texi: Mention the 'freopen' module.
67713
67714 2007-10-06  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/open-tests: New file.
67717         * tests/test-open.c: New file.
67718
67719         * modules/open: New file.
67720         * lib/open.c: New file.
67721         * m4/open.m4: New file.
67722         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67723         lib/open.c does.
67724         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67725         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67726         macros.
67727         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67728         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67729         REPLACE_OPEN.
67730         * doc/functions/open.texi: Mention the 'open' module.
67731
67732 2007-10-04  Bruno Haible  <bruno@clisp.org>
67733
67734         * modules/ceill-tests: New file.
67735         * tests/test-ceill.c: New file.
67736
67737         * modules/ceill: New file.
67738         * lib/ceill.c: Replace entire file.
67739         * m4/ceill.m4: New file.
67740         * lib/math.in.h (ceill): Replace declaration.
67741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67742         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67743         * doc/functions/ceill.texi: Mention the 'ceill' module.
67744         * modules/mathl (Files): Remove lib/ceill.c.
67745         (Depends-on): Add ceill.
67746
67747 2007-10-04  Bruno Haible  <bruno@clisp.org>
67748
67749         * modules/ceilf-tests: New file.
67750         * tests/test-ceilf.c: New file.
67751
67752         * modules/ceilf: New file.
67753         * lib/ceil.c: New file.
67754         * lib/ceilf.c: New file.
67755         * m4/ceilf.m4: New file.
67756         * lib/math.in.h (ceilf): New declaration.
67757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67758         HAVE_DECL_CEILF.
67759         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67760         HAVE_DECL_CEILF.
67761         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67762
67763 2007-10-04  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/floorl-tests: New file.
67766         * tests/test-floorl.c: New file.
67767
67768         * modules/floorl: New file.
67769         * lib/floorl.c: Replace entire file.
67770         * m4/floorl.m4: New file.
67771         * lib/math.in.h (floorl): Replace declaration.
67772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67773         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67774         * doc/functions/floorl.texi: Mention the 'floorl' module.
67775         * modules/mathl (Files): Remove lib/floorl.c.
67776         (Depends-on): Add floorl.
67777
67778 2007-10-04  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/floorf-tests: New file.
67781         * tests/test-floorf.c: New file.
67782
67783         * modules/floorf: New file.
67784         * lib/floor.c: New file.
67785         * lib/floorf.c: New file.
67786         * m4/floorf.m4: New file.
67787         * lib/math.in.h (floorf): New declaration.
67788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67789         HAVE_DECL_FLOORF.
67790         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67791         HAVE_DECL_FLOORF.
67792         * doc/functions/floorf.texi: Mention the 'floorf' module.
67793
67794 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67795             Bruno Haible  <bruno@clisp.org>
67796
67797         Advertise for the Git server instead of the CVS server.
67798         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67799         repository instead of the CVS one.
67800         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67801         about all VCS systems generically.
67802         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67803
67804 2007-10-04  Bruno Haible  <bruno@clisp.org>
67805
67806         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67807         means.
67808         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67809
67810 2007-10-04  Bruno Haible  <bruno@clisp.org>
67811
67812         * modules/truncl-tests: New file.
67813         * tests/test-truncl.c: New file.
67814
67815         * modules/truncl: New file.
67816         * lib/truncl.c: New file.
67817         * m4/truncl.m4: New file.
67818         * lib/math.in.h (truncl): New declaration.
67819         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67820         HAVE_DECL_TRUNCL.
67821         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67822         HAVE_DECL_TRUNCL.
67823         * doc/functions/truncl.texi: Mention the 'truncl' module.
67824
67825 2007-10-04  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/truncf-tests: New file.
67828         * tests/test-truncf.c: New file.
67829
67830         * modules/truncf: New file.
67831         * lib/trunc.c: Make paramerizable through USE_* macros.
67832         * lib/truncf.c: New file.
67833         * m4/truncf.m4: New file.
67834         * lib/math.in.h (truncf): New declaration.
67835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67836         HAVE_DECL_TRUNCF.
67837         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67838         HAVE_DECL_TRUNCF.
67839         * doc/functions/truncf.texi: Mention the 'truncf' module.
67840
67841 2007-10-03  Bruno Haible  <bruno@clisp.org>
67842
67843         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67844         augmentation also for tests modules.
67845         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67846         * modules/atexit-tests (Makefile.am): Likewise.
67847         * modules/binary-io-tests (Makefile.am): Likewise.
67848         * modules/c-strcase-tests (Makefile.am): Likewise.
67849         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67850         * modules/canonicalize-tests (Makefile.am): Likewise.
67851         * modules/closein-tests (Makefile.am): Likewise.
67852         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67853         * modules/freadahead-tests (Makefile.am): Likewise.
67854         * modules/fseek-tests (Makefile.am): Likewise.
67855         * modules/fseeko-tests (Makefile.am): Likewise.
67856         * modules/ftell-tests (Makefile.am): Likewise.
67857         * modules/ftello-tests (Makefile.am): Likewise.
67858         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67859         * modules/isnanl-tests (Makefile.am): Likewise.
67860         * modules/lseek-tests (Makefile.am): Likewise.
67861         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67862         * modules/mbscasestr-tests (Makefile.am): Likewise.
67863         * modules/mbschr-tests (Makefile.am): Likewise.
67864         * modules/mbscspn-tests (Makefile.am): Likewise.
67865         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67866         * modules/mbspbrk-tests (Makefile.am): Likewise.
67867         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67868         * modules/mbsrchr-tests (Makefile.am): Likewise.
67869         * modules/mbsspn-tests (Makefile.am): Likewise.
67870         * modules/mbsstr-tests (Makefile.am): Likewise.
67871         * modules/printf-posix-tests (Makefile.am): Likewise.
67872         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67873         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67874         * modules/tsearch-tests (Makefile.am): Likewise.
67875         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67876         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67877         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67878         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67879         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67880         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67881         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67882         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67883         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67884         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67885         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67886         * modules/xstrtol-tests (Makefile.am): Likewise.
67887         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67888         * modules/yesno-tests (Makefile.am): Likewise.
67889
67890 2007-10-03  Bruno Haible  <bruno@clisp.org>
67891
67892         * modules/trunc-tests: New file.
67893         * tests/test-trunc.c: New file.
67894
67895         * modules/trunc: New file.
67896         * lib/trunc.c: New file.
67897         * m4/trunc.m4: New file.
67898         * lib/math.in.h (trunc): New declaration.
67899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67900         HAVE_DECL_TRUNC.
67901         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67902         HAVE_DECL_TRUNC.
67903         * doc/functions/trunc.texi: Mention the 'trunc' module.
67904
67905 2007-10-03  Bruno Haible  <bruno@clisp.org>
67906
67907         * tests/test-fpending.c: New file, mostly copied
67908         from coreutils/lib/t-fpending.c.
67909         * modules/fpending-tests: New file.
67910
67911 2007-10-03  Bruno Haible  <bruno@clisp.org>
67912
67913         Port the stdio extensions to QNX (untested).
67914         * lib/fseterr.c (fseterr): Add support for QNX.
67915         * lib/fbufmode.c (fbufmode): Likewise.
67916         * lib/freadable.c (freadable): Likewise.
67917         * lib/fwritable.c (fwritable): Likewise.
67918         * lib/freading.c (freading): Likewise.
67919         * lib/fwriting.c (fwriting): Likewise.
67920         * lib/freadahead.c (freadahed): Likewise.
67921         * lib/fpurge.c (fpurge): Likewise.
67922         * lib/fseeko.c (rpl_fseeko): Likewise.
67923
67924 2007-10-03  Bruno Haible  <bruno@clisp.org>
67925             Jim Meyering  <jim@meyering.net>
67926             Eric Blake  <ebb9@byu.net>
67927
67928         * doc/relocatable.texi: Use @command instead of @program.
67929
67930 2007-10-02  Jim Meyering  <jim@meyering.net>
67931
67932         Perform one more "_.h" -> ".in.h" substitution.
67933         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67934         instead of unistd_.h here, too.
67935
67936 2007-10-01  Bruno Haible  <bruno@clisp.org>
67937
67938         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67939         Needed for the alloca-opt module.
67940
67941 2007-09-30  Bruno Haible  <bruno@clisp.org>
67942
67943         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67944         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67945         alloca_.h.
67946         * lib/argz.in.h: Renamed from lib/argz_.h.
67947         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67948         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67949         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67950         byteswap_.h.
67951         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67952         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67953         dirent_.h.
67954         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67955         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67956         fcntl_.h.
67957         * lib/float.in.h: Renamed from lib/float_.h.
67958         * modules/float (Files, Makefile.am): Use float.in.h instead of
67959         float_.h.
67960         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67961         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67962         fnmatch_.h.
67963         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67964         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67965         getopt_.h.
67966         * lib/glob.in.h: Renamed from lib/glob_.h.
67967         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67968         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67969         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67970         iconv_.h.
67971         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67972         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67973         inttypes_.h.
67974         * lib/locale.in.h: Renamed from lib/locale_.h.
67975         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67976         locale_.h.
67977         * lib/math.in.h: Renamed from lib/math_.h.
67978         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67979         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67980         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67981         of netinet_in_.h. Add dependency.
67982         * lib/poll.in.h: Renamed from lib/poll_.h.
67983         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67984         * lib/search.in.h: Renamed from lib/search_.h.
67985         * modules/search (Files, Makefile.am): Use search.in.h instead of
67986         search_.h.
67987         * lib/signal.in.h: Renamed from lib/signal_.h.
67988         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67989         _signal.h.
67990         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67991         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67992         stdbool_.h.
67993         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67994         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67995         stdint_.h.
67996         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67997         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67998         stdio_.h.
67999         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
68000         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
68001         stdlib_.h.
68002         * lib/string.in.h: Renamed from lib/string_.h.
68003         * modules/string (Files, Makefile.am): Use string.in.h instead of
68004         string_.h.
68005         * doc/gnulib-tool.texi (Initial import): Update.
68006         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
68007         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
68008         of sys_select_.h. Add dependency.
68009         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
68010         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
68011         of sys_socket_.h.
68012         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
68013         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
68014         sys_stat_.h.
68015         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
68016         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
68017         sys_time_.h.
68018         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
68019         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
68020         sysexits_.h.
68021         * lib/time.in.h: Renamed from lib/time_.h.
68022         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
68023         * lib/unistd.in.h: Renamed from lib/unistd_.h.
68024         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
68025         unistd_.h.
68026         * lib/wchar.in.h: Renamed from lib/wchar_.h.
68027         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
68028         wchar_.h.
68029         * lib/wctype.in.h: Renamed from lib/wctype_.h.
68030         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
68031         wctype_.h.
68032         * build-aux/bootstrap (slurp): Update.
68033         * lib/.cppi-disable: Update.
68034
68035 2007-09-30  Bruno Haible  <bruno@clisp.org>
68036
68037         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
68038         Needed on BeOS.
68039
68040 2007-09-30  Bruno Haible  <bruno@clisp.org>
68041
68042         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
68043
68044 2007-09-29  Bruno Haible  <bruno@clisp.org>
68045
68046         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
68047
68048 2007-09-29  Bruno Haible  <bruno@clisp.org>
68049
68050         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
68051         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
68052         * build-aux/install-reloc: Compile also areadlink.c.
68053         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
68054
68055 2007-09-29  Bruno Haible  <bruno@clisp.org>
68056
68057         * gnulib-tool (func_emit_initmacro_done): Indentation.
68058
68059 2007-09-29  Bruno Haible  <bruno@clisp.org>
68060
68061         * README: Add CVS checkout update instructions.
68062         Info from Bob Proulx <bob@proulx.com>.
68063
68064 2007-09-28  Eric Blake  <ebb9@byu.net>
68065
68066         Provide move-if-change.
68067         * build-aux/move-if-change: New file, based on best practice
68068         rather than any canonical upstream location.
68069
68070 2007-09-28  Jim Meyering  <jim@meyering.net>
68071
68072         Fix canonicalize loop-detection corner case.
68073         Do not attempt to stat the symlink values stored via seen_triple.
68074         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
68075         on linux-2.6.18, (but not 2.6.22).
68076         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
68077         triple_compare.  The former compares dev,ino,filename, while the latter
68078         would actually stat dirname(filename) when dev and ino were equal.
68079         * lib/hash-triple.c: Install <string.h>.
68080         (STREQ): Define.
68081         (triple_compare_ino_str): New function.
68082         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
68083
68084 2007-09-28  Eric Blake  <ebb9@byu.net>
68085
68086         Enforce that AC_REPLACE_FUNCS files exist.
68087         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
68088         override check for typos.
68089
68090         Fix test-closein on Solaris 10.
68091         * tests/test-closein.c (main): Don't assume stdin can be inherited
68092         closed on all systems.
68093         * tests/test-closein.sh: Likewise.
68094         Reported by Piotr Tarnowski.
68095
68096 2007-09-28  Jim Meyering  <jim@meyering.net>
68097
68098         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
68099
68100 2007-09-27  Jim Meyering  <jim@meyering.net>
68101
68102         canonicalize: Avoid a false-positive cycle failure.
68103         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
68104         Sort.  Remove cycle-check.
68105         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
68106         not cycle-check.h.
68107         (seen_triple): New function.
68108         (canonicalize_filename_mode): Use it instead of cycle-check.
68109         * tests/test-canonicalize.c: Add a test for this bug.
68110         * tests/test-canonicalize.sh: Set up and run the test.
68111
68112         New module, file-set, from coreutils.
68113         * modules/file-set: Define it.
68114         * lib/file-set.c, lib/file-set.h: Implement.
68115
68116         New module, hash-triple, from coreutils.
68117         * modules/hash-triple: Define it.
68118         * lib/hash-triple.c, lib/hash-triple.h: Implement.
68119
68120 2007-09-25  Eric Blake  <ebb9@byu.net>
68121
68122         Fix strerror on Interix.
68123         * lib/string_.h (strerror): Declare replacement.
68124         * doc/functions/strerror.texi (strerror): Document the Interix
68125         shortcoming.
68126         * modules/string (Makefile.am): Support new hooks.
68127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
68128         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
68129         gl_FUNC_STRERROR_SEPARATE.
68130         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
68131         * lib/strerror.c (rpl_strerror): Provide replacement.
68132         * modules/strerror (Depends-on): Add string.
68133         (configure.ac): Detect use of module.
68134         * tests/test-strerror.c: New file.
68135         * modules/strerror-tests: New test module.
68136         * modules/argp (Depends-on): Add strerror.
68137         * modules/error (Depends-on): Likewise.
68138         Reported by Martin Koeppe.
68139
68140 2007-09-24  Bruno Haible  <bruno@clisp.org>
68141
68142         * README: Update git instructions.
68143
68144 2007-09-24  Eric Blake  <ebb9@byu.net>
68145
68146         Revert fpending breakage from 2007-09-08.
68147         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68148         __fpending.c.
68149
68150 2007-09-24  Jim Meyering  <jim@meyering.net>
68151
68152         filenamecat.c: Add a test.
68153         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68154         showing how the function works when DIR is the empty string.
68155
68156 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68157
68158         * tests/test-canonicalize.sh: Turn on executable bit.
68159
68160 2007-09-19  Eric Blake  <ebb9@byu.net>
68161
68162         * README: Update CVS instructions.
68163
68164 2007-09-18  Bruno Haible  <bruno@clisp.org>
68165
68166         * modules/areadlink: New file.
68167         * lib/areadlink.h (areadlink): New declaration.
68168         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68169
68170 2007-09-17  Jim Meyering  <jim@meyering.net>
68171
68172         * lib/savewd.c (ESTALE) [!defined]: Define.
68173         Reported to be required on Interix by Martin Koeppe.
68174
68175 2007-09-17  Bruno Haible  <bruno@clisp.org>
68176
68177         * gnulib-tool (func_version): Use $version.
68178
68179 2007-09-16  Bruno Haible  <bruno@clisp.org>
68180
68181         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68182         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68183         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68184         Reported by Greg Schafer <gschafer@zip.com.au>.
68185
68186 2007-09-15  Bruno Haible  <bruno@clisp.org>
68187
68188         * gnulib-tool (sed): Try a little harder to make bash understand the
68189         alias.
68190         Reported by Bruce Korb <bruce.korb@gmail.com>.
68191
68192 2007-09-13  Eric Blake  <ebb9@byu.net>
68193
68194         * ChangeLog: Remove conflict markers.
68195
68196 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68197
68198         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68199         Reported by Bruno Haible <bruno@clisp.org>.
68200
68201 2007-09-12  Bruno Haible  <bruno@clisp.org>
68202
68203         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68204         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68205         is not defined.
68206
68207 2007-09-12  Eric Blake  <ebb9@byu.net>
68208
68209         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68210         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68211         Autoconf definition.
68212         * modules/euidaccess (Depends-on): Add extensions, for
68213         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68214         * modules/fnmatch (Depends-on): Likewise.
68215         * modules/getaddrinfo (Depends-on): Likewise.
68216         * modules/getdelim (Depends-on): Likewise.
68217         * modules/getline (Depends-on): Likewise.
68218         * modules/getsubopt (Depends-on): Likewise.
68219         * modules/gettext (Depends-on): Likewise.
68220         * modules/group-member (Depends-on): Likewise.
68221         * modules/mbchar (Depends-on): Likewise.
68222         * modules/memmem (Depends-on): Likewise.
68223         * modules/mempcpy (Depends-on): Likewise.
68224         * modules/memrchr (Depends-on): Likewise.
68225         * modules/pagealign_alloc (Depends-on): Likewise.
68226         * modules/readutmp (Depends-on): Likewise.
68227         * modules/stpcpy (Depends-on): Likewise.
68228         * modules/stpncpy (Depends-on): Likewise.
68229         * modules/strchrnul (Depends-on): Likewise.
68230         * modules/strndup (Depends-on): Likewise.
68231         * modules/strsep (Depends-on): Likewise.
68232         * modules/strverscmp (Depends-on): Likewise.
68233         * modules/vasprintf (Depends-on): Likewise.
68234         * modules/wcwidth (Depends-on): Likewise.
68235         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68236         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68237         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68238         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68239         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68240         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68241         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68242         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68243         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68244         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68245         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68246         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68247         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68248         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68249         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68250         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68251         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68252         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68253         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68254         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68255         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68256         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68257         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68258         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68259         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68261         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68262         so that lock.m4 can be used in gettext without extensions module.
68263
68264 2007-09-11  Bruno Haible  <bruno@clisp.org>
68265
68266         * m4/isc-posix.m4: Remove file.
68267         Suggested by Eric Blake.
68268
68269 2007-09-11  Eric Blake  <ebb9@byu.net>
68270
68271         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68272
68273 2007-09-10  Bruno Haible  <bruno@clisp.org>
68274
68275         * posix-modules: Fix typo in error message.
68276         Reported by Matt <mkraai@beckman.com>.
68277
68278 2007-09-09  Bruno Haible  <bruno@clisp.org>
68279
68280         * doc/functions/getdelim.texi: Update list of platforms lacking the
68281         function.
68282         * doc/functions/getline.texi: Likewise.
68283
68284 2007-09-09  Jim Meyering  <jim@meyering.net>
68285
68286         * lib/hash.c (hash_initialize): Detect calloc failure.
68287         Reported by Bruno Haible.
68288
68289 2007-09-09  Bruno Haible  <bruno@clisp.org>
68290
68291         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68292         malloc or realloc fails.
68293
68294 2007-09-09  Bruno Haible  <bruno@clisp.org>
68295
68296         * modules/getcwd (Depends-on): Add malloc-posix.
68297         * modules/glob (Depends-on): Likewise.
68298         * modules/putenv (Depends-on): Likewise.
68299         * modules/strdup (Depends-on): Likewise.
68300         * modules/getdelim (Depends-on): Add realloc-posix.
68301         * modules/read-file (Depends-on): Likewise.
68302
68303 2007-09-09  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68306         (gl_FUNC_MALLOC_POSIX): Require it.
68307         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68308         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68309         * modules/realloc (Files): Add m4/malloc.m4.
68310         * modules/calloc (Files): Likewise.
68311
68312 2007-09-09  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/malloc-posix: New file.
68315         * modules/malloc (Depends-on): Add malloc-posix.
68316         * lib/malloc.c: Include errno.h.
68317         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68318         and a POSIX-compatible malloc into a single function. Set ENOMEM
68319         when returning NULL.
68320         * m4/malloc.m4: New file.
68321         * doc/functions/malloc.texi: Mention the malloc-posix module.
68322         * lib/stdlib_.h (malloc): New declaration.
68323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68324         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68325         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68326         and HAVE_MALLOC_POSIX.
68327
68328 2007-09-09  Bruno Haible  <bruno@clisp.org>
68329
68330         * modules/realloc-posix: New file.
68331         * modules/realloc (Depends-on): Add realloc-posix.
68332         * lib/realloc.c: Include errno.h.
68333         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68334         and a POSIX-compatible realloc into a single function. Set ENOMEM
68335         when returning NULL.
68336         * m4/realloc.m4: New file.
68337         * doc/functions/realloc.texi: Mention the realloc-posix module.
68338         * lib/stdlib_.h (realloc): New declaration.
68339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68340         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68341         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68342         and HAVE_REALLOC_POSIX.
68343
68344 2007-09-09  Bruno Haible  <bruno@clisp.org>
68345
68346         * modules/calloc-posix: New file.
68347         * modules/calloc (Depends-on): Add calloc-posix.
68348         * lib/calloc.c: Include errno.h.
68349         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68350         and a POSIX-compatible calloc into a single function. Set ENOMEM
68351         when returning NULL.
68352         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68353         * doc/functions/calloc.texi: Mention the calloc-posix module.
68354         * lib/stdlib_.h (calloc): New declaration.
68355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68356         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68357         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68358         and HAVE_CALLOC_POSIX.
68359
68360 2007-09-09  Bruno Haible  <bruno@clisp.org>
68361
68362         Allow for modules to show an arbitrary notice.
68363         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68364         * gnulib-tool: New option --extract-notice.
68365         (func_usage): Document it.
68366         (sed_extract_prog): Update.
68367         (func_get_notice): New function.
68368         (func_modules_notice): New function.
68369         (func_import, func_create_testdir): Invoke it.
68370         Suggested by Jim Meyering.
68371
68372 2007-09-09  Bruno Haible  <bruno@clisp.org>
68373
68374         * gnulib-tool: New options --verbose, --quiet.
68375         (func_usage): Document them.
68376         (verbose): New variable.
68377         (func_execute_command): New function.
68378         (func_import): Don't show the module list and the file list if
68379         $verbose < 0.
68380         (func_create_testdir): Likewise. Use func_execute_command.
68381         (func_create_megatestdir): Use func_execute_command.
68382
68383 2007-09-08  Bruno Haible  <bruno@clisp.org>
68384
68385         * gnulib-tool (func_import): Prefer rsync over wget when available,
68386         for fetching the PO files.
68387
68388 2007-09-08  Bruno Haible  <bruno@clisp.org>
68389
68390         * posix-modules: New file. Portions copied from gnulib-tool.
68391         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68392
68393 2007-09-08  Jim Meyering  <jim@meyering.net>
68394
68395         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68396         * lib/fpending.h: Rename from __fpending.h.
68397         * lib/fpending.c: Rename from __fpending.c.
68398         Include "fpending.h", not "__fpending.h".
68399         * lib/__fpending.h, lib/__fpending.c: Remove files.
68400         * modules/fpending (Files): Reflect new file names.
68401         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68402
68403 2007-09-08  Bruno Haible  <bruno@clisp.org>
68404
68405         * m4/inttypes-h.m4: Remove stub file.
68406
68407 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68408
68409         * doc/headers/stdint.texi: Discuss #include_next issue.
68410
68411 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68412
68413         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68414
68415 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68416
68417         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68418         in variable name.
68419
68420 2007-09-03  Jim Meyering  <jim@meyering.net>
68421
68422         New module: git-version-gen.
68423         * modules/git-version-gen: New file.
68424
68425         Import changes from coreutils for bootstrap script.
68426
68427         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68428
68429         bootstrap: uses rsync to download the .po files
68430         * build-aux/bootstrap (po_download_command_format): New global.
68431         (download_po_files): Use rsync.
68432         (update_po_files): Don't remove .po files after download,
68433         so future rsync runs can take advantage of the copies.
68434
68435         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68436
68437         Solve the unnecessary-.po-file-regeneration problem once and for all.
68438         * build-aux/bootstrap (download_po_files): New function, renamed from
68439         get_translations.  Now, downloads, but doesn't update LINGUAS.
68440         (update_po_files): New function.
68441
68442         bootstrap: Ignore more.
68443         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68444         uniwidth to e.g., lib/.gitignore.
68445         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68446
68447         * build-aux/bootstrap: New setting: vc_ignore.
68448         (insert_sorted_if_absent): Create $file if absent.
68449         Adapt to new, possibly empty, list: $vc_ignore.
68450
68451         bootstrap: generate more ignorable names
68452         * build-aux/bootstrap (slurp): When generating ignorable names,
68453         also map .sin to .sed, .gperf to .c, and .y to .c.
68454
68455 2007-09-03  Jim Meyering  <jim@meyering.net>
68456
68457         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68458         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68459
68460 2007-09-02  Bruno Haible  <bruno@clisp.org>
68461
68462         Fix mis-recognition of 'mcs' on QNX 6.
68463         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68464         output contains the string "Mono".
68465         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68466         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68467
68468 2007-09-01  Bruno Haible  <bruno@clisp.org>
68469
68470         Fix collision between uniwidth/* and linebreak modules.
68471         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68472         u32_width): Remove declarations.
68473         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68474         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68475         streq3, streq2, streq1, streq0): Remove functions.
68476         (STREQ): Remove macro.
68477         (is_cjk_encoding): Remove function.
68478         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68479         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68480         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68481         * NEWS: Document the change.
68482
68483 2007-09-01  Bruno Haible  <bruno@clisp.org>
68484
68485         * lib/streq.h: Add double-inclusion guard.
68486
68487 2007-09-01  Karl Berry  <karl@gnu.org>
68488
68489         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68490
68491 2007-08-28  Jim Meyering  <jim@meyering.net>
68492
68493         Rename mreadlink_with_size to areadlink_with_size.
68494         * NEWS: Document the change.
68495         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68496         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68497         * lib/mreadlink.h: Rename this to...
68498         * lib/areadlink.h: ...this.
68499         * modules/mreadlink-with-size: Rename this to...
68500         * modules/areadlink-with-size: ...this.
68501         * lib/canonicalize.c: Reflect the renaming.
68502         * modules/canonicalize: Likewise.
68503
68504 2007-08-26  Bruno Haible  <bruno@clisp.org>
68505
68506         * gnulib-tool (func_import): When deciding which files to remove,
68507         consider also dangling symbolic links.
68508         Reported by Eric Blake.
68509
68510 2007-08-26  Bruno Haible  <bruno@clisp.org>
68511
68512         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68513
68514 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68515
68516         * lib/readline.c: Don't include getline.h, the prototype is now
68517         found in stdio.h.
68518
68519 2007-08-23  Jim Meyering  <jim@meyering.net>
68520
68521         Getdelim touchup.
68522         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68523         around the funlockfile call, since funlockfile never sets errno.
68524         Don't set errno upon failed realloc.
68525
68526 2007-08-22  Eric Blake  <ebb9@byu.net>
68527
68528         Getline touchups.
68529         * lib/getdelim.c (getdelim): Revert regression that required *n to
68530         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68531         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68532         getdelim, rather than whether implementation is missing.
68533         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68534         * lib/stdio_.h (getline): Also declare if replacement is
68535         required.
68536         * doc/functions/getdelim.texi: New file.
68537         * doc/functions/getline.texi: Likewise.
68538         * doc/gnulib.texi (Function Substitutes): Add new files.
68539         Reported by Bruno Haible.
68540
68541 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68542
68543         * users.txt: Add Guile.
68544
68545 2007-08-22  Eric Blake  <ebb9@byu.net>
68546
68547         * tests/test-getdelim.c (main): Use remove, not unlink.
68548         * tests/test-getline.c (main): Likewise.
68549
68550         Move getline and getdelim into stdio.h, per POSIX 200x.
68551         * modules/getline (Files): Remove getline.h.
68552         (Depends-on): Add stdio.
68553         (configure.ac): Add module indicator.
68554         * modules/getdelim (Files): Remove getdelim.h.
68555         (Depends-on): Add stdio.
68556         (configure.ac): Add module indicator.
68557         * modules/stdio (Makefile.am): Work with new indicators.
68558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68559         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68560         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68561         * lib/getdelim.h: Delete.
68562         * lib/getline.h: Delete.
68563         * lib/stdio_.h (getdelim, getline): Declare.
68564         * modules/getdelim-tests: New module.
68565         * modules/getline-tests: Likewise.
68566         * tests/test-getdelim.c: New file.
68567         * tests/test-getline.c: Likewise.
68568         * NEWS: Document the change.
68569         * lib/getline.c: Update choice of header.
68570         * lib/csharpcomp.c: Likewise.
68571         * lib/getpass.c: Likewise.
68572         * lib/javacomp.c: Likewise.
68573         * lib/javaversion.c: Likewise.
68574         * lib/yesno.c: Likewise.
68575         * lib/getdelim.c: Likewise.
68576         (getdelim): Set errno on failure, and avoid memory leak.
68577
68578 2007-08-19  Bruno Haible  <bruno@clisp.org>
68579
68580         * modules/closein (Depends-on): Add freadahead.
68581         * lib/closein.c: Include freadahead.h.
68582         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68583         is zero.
68584
68585 2007-08-19  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/freadahead-tests: New file.
68588         * tests/test-freadahead.sh: New file.
68589         * tests/test-freadahead.c: New file.
68590
68591         * modules/freadahead: New file.
68592         * lib/freadahead.h: New file.
68593         * lib/freadahead.c: New file.
68594         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68595         fbufmode, fpurge, freadable, fwritable.
68596
68597 2007-08-19  Eric Blake  <ebb9@byu.net>
68598
68599         Test yesno in combination with closein.
68600         * lib/yesno.c (yesno): Document use of stdin.
68601         * modules/yesno-tests (Files): New module.
68602         * tests/test-yesno.c (main): New file.
68603         * tests/test-yesno.sh: Likewise.
68604
68605 2007-08-19  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68608         * lib/fseeko.c (rpl_fseeko): Likewise.
68609         * lib/fseterr.c (fseterr): Likewise.
68610
68611 2007-08-19  Bruno Haible  <bruno@clisp.org>
68612
68613         * tests/test-lseek.c (main): Disable a test for BeOS.
68614         * doc/functions/lseek.texi: Document the BeOS bug.
68615
68616 2007-08-19  Bruno Haible  <bruno@clisp.org>
68617             Eric Blake  <ebb9@byu.net>
68618
68619         * lib/lseek.c: Include <sys/stat.h>.
68620         (rpl_lseek): Add workaround code also for Unix platforms.
68621         Needed for BeOS.
68622         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68623         * doc/functions/lseek.texi: Document BeOS definiency.
68624
68625 2007-08-18  Bruno Haible  <bruno@clisp.org>
68626
68627         * modules/fstrcmp-tests: New file.
68628         * tests/test-fstrcmp.c: New file.
68629
68630 2007-08-18  Bruno Haible  <bruno@clisp.org>
68631
68632         * modules/fstrcmp: New file, from GNU gettext with modifications.
68633         * lib/fstrcmp.h: New file, from GNU gettext.
68634         * lib/fstrcmp.c: New file, from GNU gettext.
68635         * MODULES.html.sh (String handling): Add fstrcmp.
68636
68637 2007-08-18  Bruno Haible  <bruno@clisp.org>
68638
68639         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68640         'bool'.
68641         (diag, compareseq): Remove const from the ctxt argument.
68642         (USE_HEURISTIC): Undefine at the end.
68643
68644 2007-08-18  Jim Meyering  <jim@meyering.net>
68645
68646         New file: lib/idcache.h
68647         * NEWS: Mention the addition.
68648         * modules/idcache (Files): Add lib/idcache.h
68649         * lib/idcache.c: Include "idcache.h".
68650         Don't include <sys/types.h>.
68651         Add a FIXME comment.
68652         Move file-scoped "static" declarations to the top.
68653         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68654
68655 2007-08-17  Bruno Haible  <bruno@clisp.org>
68656         and Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * MODULES.html.sh: Add diffseq.
68659         * modules/diffseq: New file.
68660         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68661         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68662
68663 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         Import changes from coreutils for bootstrap script.
68666
68667         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68668
68669         * build-aux/bootstrap (slurp): Work even in environments where
68670         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68671         current code does not slurp files whose names start with ".", and
68672         this looks like it might be a troublesome area.
68673
68674         2007-07-11  Jim Meyering  <jim@meyering.net>
68675
68676         If there's a GPL vN copyright comment, require that N == 3.
68677
68678         2007-07-08  Jim Meyering  <jim@meyering.net>
68679
68680         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68681         * build-aux/bootstrap (mam_template): Move definition out of loop.
68682
68683         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68684
68685         * build-aux/bootstrap (symlink_to_dir): Rename function from
68686         symlink_to_gnulib.  Add a directory parameter.  Update all
68687         callers.
68688         (cp_mark_as_generated): Also check for -- and link to -- files in
68689         gl/.
68690
68691         2007-07-08  Jim Meyering  <jim@meyering.net>
68692
68693         Adapt to deeper hierarchy in gnulib.
68694         * build-aux/bootstrap (symlink_to_dir): If the destination
68695         directory doesn't exist, create it. This is required at least for
68696         "lib/uniwidth/cjk.h".
68697
68698         2007-05-15  Jim Meyering  <jim@meyering.net>
68699
68700         * build-aux/bootstrap: Now that generated Makefile.am files
68701         are no longer under version control, they must be created at
68702         bootstrap time.
68703
68704 2007-08-14  Ben Pfaff  <blp@gnu.org>
68705
68706         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68707
68708 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68711         given the changes below.
68712         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68713         even on hosts that have padding bits beyond the supported 64.
68714
68715 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68716
68717         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68718         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68719         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68720         depends on it.
68721         (xstrtol_error): Remove.
68722         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68723         but with a different signature.
68724         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68725         * lib/xstrtol-error.c: Include exitfail.h.
68726         (xstrtol_fatal): New function, with a different signature from the
68727         old xstrtol_error, so that the caller need not worry about passing
68728         in an exit status, or about storage management of the option argument.
68729         (xstrtol_error): Now a static function.  Redo signature to
68730         implement xstrtol_fatal.  Output the correct number of hyphens in
68731         front of the option so that the caller need not worry about
68732         storage management.
68733         (N_): New macro.
68734         (_): Remove; not used now.
68735         * modules/xstrtol: Depend on getopt.
68736         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68737         of old STRTOL_FATAL_ERROR macro.
68738         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68739         of test program.
68740         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68741         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68742
68743 2007-08-08  Eric Blake  <ebb9@byu.net>
68744
68745         * lib/xstrtol-error.c: Add missing include.
68746
68747         Move xstrtol messages into gnulib domain, when --pobase is used.
68748         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68749         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68750         * modules/xstrtol (Files): Distribute new file.
68751         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68752         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68753         * tests/test-xstrtol.c: ...into new file.
68754         * tests/test-xstrtoul.c: Also test xstrtoul.
68755         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68756         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68757         * tests/test-xstrtol.sh: Drive the tests.
68758         * tests/test-xstrtoimax.sh: Likewise.
68759         * tests/test-xstrtoumax.sh: Likewise.
68760         * modules/xstrtol-tests: New module.
68761         * modules/xstrtoimax-tests: Likewise.
68762         * modules/xstrtoumax-tests: Likewise.
68763
68764 2007-08-08  Jim Meyering  <jim@meyering.net>
68765
68766         New function: mfile_name_concat.
68767         * lib/filenamecat.c (mfile_name_concat): New function, just like
68768         file_name_concat, but return NULL upon failure rather than exiting
68769         with a diagnostic.
68770         * lib/filenamecat.h: Declare it.
68771
68772 2007-08-07  Bruno Haible  <bruno@clisp.org>
68773
68774         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68775         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68776         warning from gcc.
68777         Reported by Eric Blake.
68778
68779 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68780
68781         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68782         * modules/crypto/arcfour (License): Likewise.
68783         * modules/crypto/des-tests (License): Likewise.
68784         * modules/crypto/gc-arctwo-tests (License): Likewise.
68785         * modules/crypto/gc-des-tests (License): Likewise.
68786         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68787         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68788         * modules/crypto/gc-md2-tests (License): Likewise.
68789         * modules/crypto/gc-md4-tests (License): Likewise.
68790         * modules/crypto/gc-md5-tests (License): Likewise.
68791         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68792         * modules/crypto/gc-rijndael-tests (License): Likewise.
68793         * modules/crypto/gc-sha1-tests (License): Likewise.
68794         * modules/crypto/gc-tests (License): Likewise.
68795         * modules/crypto/hmac-md5 (License): Likewise.
68796         * modules/crypto/hmac-sha1 (License): Likewise.
68797         * modules/crypto/md2-tests (License): Likewise.
68798         * modules/crypto/md4-tests (License): Likewise.
68799         * modules/crypto/md5 (License): Likewise.
68800         * modules/crypto/rijndael (License): Likewise.
68801         * modules/crypto/sha1 (License): Likewise.
68802         * modules/memxor (License): Likewise.
68803
68804 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68805         and Bruno Haible  <bruno@clisp.org>
68806
68807         * NEWS: Describe interface changes to human, xstrtol.
68808         * lib/human.h: Include <xstrtol.h>.
68809         (human_options): Return enum strtol_error, not int.  Remove
68810         bool arg; take int * instead.
68811         * lib/human.c: Don't include "gettext.h".
68812         (_): Remove; no longer used.
68813         Don't include <xstrtol.h>, since human.h does it.
68814         (human_options): Adjust to abovementioned interface changes.
68815         Do not report error to stderr; that's now the caller's
68816         responsibility.
68817         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68818         interface change.
68819         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68820         Str, Argument_type_string.  All uses changed.  Put " argument"
68821         in diagnostics to make them clearer.  Change wording of suffix
68822         message for clarity.
68823         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68824         Argument_type_string.
68825         (STRTOL_FATAL_WARN): Remove; no longer used.
68826         * modules/human (Depends-on): Remove gettext-h.
68827
68828 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68829
68830         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68831
68832 2007-07-31  Bruno Haible  <bruno@clisp.org>
68833
68834         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68835         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68836         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68837
68838 2007-07-31  Bruno Haible  <bruno@clisp.org>
68839
68840         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68841         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68842
68843 2007-07-30  Bruno Haible  <bruno@clisp.org>
68844
68845         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68846         * modules/c-ctype (License): Likewise.
68847         * modules/c-strcase (License): Likewise.
68848         * modules/check-version (License): Likewise.
68849         * modules/iconv (License): Likewise.
68850         * modules/iconv_open (License): Likewise.
68851         * modules/read-file (License): Likewise.
68852         * modules/striconv (License): Likewise.
68853         * modules/strverscmp (License): Likewise.
68854         * modules/vasprintf (License): Likewise.
68855         * modules/crypto/des (License): Likewise.
68856         * modules/crypto/gc (License): Likewise.
68857         * modules/crypto/gc-arcfour (License): Likewise.
68858         * modules/crypto/gc-arctwo (License): Likewise.
68859         * modules/crypto/gc-des (License): Likewise.
68860         * modules/crypto/gc-hmac-md5 (License): Likewise.
68861         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68862         * modules/crypto/gc-md2 (License): Likewise.
68863         * modules/crypto/gc-md4 (License): Likewise.
68864         * modules/crypto/gc-md5 (License): Likewise.
68865         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68866         * modules/crypto/gc-random (License): Likewise.
68867         * modules/crypto/gc-rijndael (License): Likewise.
68868         * modules/crypto/gc-sha1 (License): Likewise.
68869         * modules/crypto/md2 (License): Likewise.
68870         * modules/crypto/md4 (License): Likewise.
68871
68872 2007-07-30  Jim Meyering  <jim@meyering.net>
68873
68874         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68875         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68876         it has valid stat data.  This bug would cause du not to count the
68877         sizes of inaccessible directories.
68878         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68879         in <http://bugzilla.redhat.com/250077>.
68880
68881 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68882             Bruno Haible  <bruno@clisp.org>
68883
68884         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68885         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68886         #include_next, gives a diagnostic about it, but reports no error in
68887         the exit code.
68888         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68889
68890 2007-07-24  Ben Pfaff  <blp@gnu.org>
68891
68892         Improve name: "count-one-bits" is better than "popcount".
68893         * MODULES.html.sh: Update name.
68894         * lib/popcount.h: Renamed lib/count-one-bits.h.
68895         (popcount): Renamed count_one_bits.
68896         (popcountl): Renamed count_one_bits_l.
68897         (popcountll): Renamed count_one_bits_ll.
68898         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68899         * modules/popcount: Renamed module/count-one-bits.
68900         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68901         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68902
68903 2007-07-23  Ben Pfaff  <blp@gnu.org>
68904
68905         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68906         better code generation, and add U to large constants to avoid
68907         warnings, in non-GCC case.
68908         Suggested by Bruno Haible.
68909
68910 2007-07-23  Ben Pfaff  <blp@gnu.org>
68911
68912         * lib/popcount.h: Use verify_true instead of if...abort.
68913         * modules/popcount: Depend on verify module.
68914         Suggested by Jim Meyering.
68915
68916 2007-07-23  Bruno Haible  <bruno@clisp.org>
68917
68918         * gnulib-tool (func_import): Create a .cvsignore file also when the
68919         directory is not yet in CVS but the toplevel directory is. When
68920         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68921         Reported by Karl Berry.
68922
68923 2007-07-22  Ben Pfaff  <blp@gnu.org>
68924
68925         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68926         case.
68927         Suggested by Eric Blake.
68928
68929 2007-07-22  Ben Pfaff  <blp@gnu.org>
68930
68931         New module: popcount.
68932         * MODULES.html.sh: Add popcount.
68933         * modules/popcount: New file.
68934         * modules/popcount-tests: New file.
68935         * tests/test-popcount.c: New file.
68936         * lib/popcount.h: New file.
68937         * m4/popcount.m4: New file.
68938
68939 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * build-aux/announce-gen: Update to GPLv3.
68942
68943         * build-aux/config.guess: Update from config.
68944
68945 2007-07-21  Bruno Haible  <bruno@clisp.org>
68946
68947         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68948         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68949
68950 2007-07-20  Jim Meyering  <jim@meyering.net>
68951
68952         * check-module: Diagnose a self-dependency.
68953
68954 2007-07-19  Bruno Haible  <bruno@clisp.org>
68955
68956         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68957         empty.
68958         Reported by Eric Blake.
68959
68960 2007-07-18  Bruno Haible  <bruno@clisp.org>
68961
68962         * gnulib-tool: New options --po-base, --po-domain.
68963         (func_usage): Document them.
68964         (pobase, po_domain): New variables.
68965         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68966         DEFAULT_TEXT_DOMAIN.
68967         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68968         (func_import): Consider pobase and po_domain. Create a po/ directory.
68969         (func_create_testdir): Set pobase and po_domain to empty.
68970         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68971         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68972
68973 2007-07-18  Bruno Haible  <bruno@clisp.org>
68974
68975         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68976         EXTRA_DIST augmentation for files in build-aux/.
68977
68978 2007-07-16  Bruno Haible  <bruno@clisp.org>
68979
68980         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68981         * modules/getdelim (License): Likewise.
68982
68983 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68984
68985         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68986         * modules/d-type (License): Likewise.
68987         * modules/extensions (License): Likewise.
68988         * modules/fnmatch (License): Likewise.
68989         * modules/fseeko (License): Likewise.
68990         * modules/getaddrinfo (License): Likewise.
68991         * modules/getline (License): Likewise.
68992         * modules/getlogin_r (License): Likewise.
68993         * modules/getpass (License): Likewise.
68994         * modules/gettimeofday (License): Likewise.
68995         * modules/glob (License): Likewise.
68996         * modules/inet_ntop (License): Likewise.
68997         * modules/malloc (License): Likewise.
68998         * modules/malloca (License): Likewise.
68999         * modules/memmem (License): Likewise.
69000         * modules/mempcpy (License): Likewise.
69001         * modules/memset (License): Likewise.
69002         * modules/minmax (License): Likewise.
69003         * modules/mktime (License): Likewise.
69004         * modules/netinet_in (License): Likewise.
69005         * modules/pathmax (License): Likewise.
69006         * modules/poll (License): Likewise.
69007         * modules/regex (License): Likewise.
69008         * modules/snprintf (License): Likewise.
69009         * modules/stdbool (License): Likewise.
69010         * modules/stdint (License): Likewise.
69011         * modules/stdio (License): Likewise.
69012         * modules/strcase (License): Likewise.
69013         * modules/strcasestr (License): Likewise.
69014         * modules/strdup (License): Likewise.
69015         * modules/string (License): Likewise.
69016         * modules/strndup (License): Likewise.
69017         * modules/strnlen (License): Likewise.
69018         * modules/strpbrk (License): Likewise.
69019         * modules/strptime (License): Likewise.
69020         * modules/strsep (License): Likewise.
69021         * modules/sys_select (License): Likewise.
69022         * modules/sys_socket (License): Likewise.
69023         * modules/sys_stat (License): Likewise.
69024         * modules/sys_time (License): Likewise.
69025         * modules/time (License): Likewise.
69026         * modules/time_r (License): Likewise.
69027         * modules/timegm (License): Likewise.
69028         * modules/unistd (License): Likewise.
69029         * modules/vsnprintf (License): Likewise.
69030         * modules/wctype (License): Likewise.
69031
69032 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69033
69034         * modules/argz (License): LGPLv2+.
69035
69036 2007-07-15  Karl Berry  <karl@gnu.org>
69037
69038         * doc/gnulib.texi: revise node structure per new fdl.texi.
69039
69040 2007-07-14  Bruno Haible  <bruno@clisp.org>
69041
69042         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
69043         the output file.
69044         * lib/uniname/uninames.h: Regenerated.
69045
69046 2007-07-14  Karl Berry  <karl@gnu.org>
69047
69048         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
69049         omitting sectioning and index commands.
69050
69051 2007-07-13  Bruno Haible  <bruno@clisp.org>
69052
69053         New gnulib-tool option --more-symlinks.
69054         * gnulib-tool (func_usage): Document --more-symlinks.
69055         (do_copyrights): New variable.
69056         Recognize option --more-symlinks.
69057         (func_import): Don't add a copyright notice transform to
69058         sed_transform_lib_file if do_copyrights is empty.
69059
69060 2007-07-13  Bruno Haible  <bruno@clisp.org>
69061
69062         * lib/vasnprintf.c (decimal_point_char): Define also if
69063         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
69064         && !NEED_PRINTF_DIRECTIVE_A.
69065         Reported by Clemens Koller <clemens.koller@anagramm.de> via
69066         Gary V. Vaughan <gary@gnu.org>.
69067
69068 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
69069
69070         * lib/inttypes_.h: Undo previous change, since it was fixed
69071         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
69072
69073 2007-07-13  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
69076         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
69077
69078 2007-07-13  Jim Meyering  <jim@meyering.net>
69079
69080         df: Don't fail for Tru64's "file-on-file mount".
69081         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
69082         so we fall through and use statfs instead.  Details here:
69083         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
69084         Reported by Albert Chin.
69085
69086 2007-07-13  Bruno Haible  <bruno@clisp.org>
69087
69088         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
69089         * modules/configmake (License): Likewise.
69090         * modules/gettext (License): Likewise.
69091         * modules/gettext-h (License): Likewise.
69092         * modules/include_next (License): Likewise.
69093         * modules/link-warning (License): Likewise.
69094         * modules/localcharset (License): Likewise.
69095         * modules/localename (License): Likewise.
69096         * modules/lock (License): Likewise.
69097         * modules/relocatable-lib-lgpl (License): Likewise.
69098         * modules/size_max (License): Likewise.
69099         * modules/vasnprintf (License): Likewise.
69100         * modules/wchar (License): Likewise.
69101         * modules/xsize (License): Likewise.
69102
69103 2007-07-13  Bruno Haible  <bruno@clisp.org>
69104
69105         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
69106         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
69107
69108 2007-07-12  Bruno Haible  <bruno@clisp.org>
69109
69110         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
69111         in the modules files.
69112
69113 2007-07-11  Karl Berry  <karl@gnu.org>
69114
69115         * MODULES.html.sh (func_module): use
69116          sed -e '\|^'"${includefile}"'$|d'
69117          instead of /.../d, to avoid errors on $includefile's containing /.
69118
69119 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69120
69121         * gnulib-tool (func_import): Avoid duplication of --avoid
69122         statements
69123         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
69124         names to `_' in variable names.
69125
69126 2007-07-10  Eric Blake  <ebb9@byu.net>
69127
69128         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
69129         * NEWS: Document this change.
69130
69131 2007-07-08  Bruno Haible  <bruno@clisp.org>
69132
69133         Update to Unicode 5.0.
69134         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
69135         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
69136         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
69137         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
69138         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
69139         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
69140         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
69141         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
69142         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
69143         U+10A3F, U+1D242..U+1D244.
69144         (nonspacing_table_ind): Update.
69145         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69146         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69147
69148 2007-07-08  Bruno Haible  <bruno@clisp.org>
69149
69150         Update to Unicode 5.0.
69151         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69152         code transform. Extend the name index field of unicode_name_to_code and
69153         unicode_code_to_name from 16 to 24 bits.
69154         * lib/uniname/uniname.c (unicode_character_name,
69155         unicode_name_character): Add the range 0x12xxx to the code transform.
69156         * lib/uniname/uninames.h: Regenerated.
69157         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69158
69159 2007-07-07  Bruno Haible  <bruno@clisp.org>
69160
69161         * modules/wcwidth-tests: New file.
69162         * tests/test-wcwidth.c: New file.
69163
69164         Work around MacOS X wcwidth() bug.
69165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69166         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69167         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69168         original wcwidth in non-UTF-8 locales.
69169         * modules/wcwidth (Depends-on): Add localcharset, streq,
69170         uniwidth/width.
69171         * doc/functions/wcwidth.texi: Update.
69172
69173 2007-07-07  Bruno Haible  <bruno@clisp.org>
69174
69175         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69176         (wcwidth): New declaration.
69177         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69178         macros.
69179         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69180         here. Prepare for creating <wchar.h> unconditionally.
69181         * modules/wchar (Depends-on): Add link-warning.
69182         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69183         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69184         * lib/wcwidth.h: Remove file.
69185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69186         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69187         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69188         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69189         (Include): Replace wcwidth.h with <wchar.h>.
69190         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69191         * lib/mbchar.h: Don't include wcwidth.h.
69192         * lib/mbswidth.c: Likewise.
69193         * NEWS: Mention the change.
69194
69195 2007-07-07  Bruno Haible  <bruno@clisp.org>
69196
69197         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69198         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69199         definition with an external declaration.
69200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69201         defined as a function. Remove AC_C_INLINE requirement.
69202         * modules/wcwidth (Files): Add lib/wcwidth.c.
69203         (Makefile.am): Remove redundant statement.
69204
69205 2007-07-07  Bruno Haible  <bruno@clisp.org>
69206
69207         * MODULES.html.sh (Unicode string functions): Add the new modules.
69208
69209         * tests/uniwidth/test-u32-strwidth.c: New file.
69210         * modules/uniwidth/u32-strwidth-tests: New file.
69211
69212         * lib/uniwidth/u32-strwidth.c: New file.
69213         * modules/uniwidth/u32-strwidth: New file.
69214
69215         * tests/uniwidth/test-u16-strwidth.c: New file.
69216         * modules/uniwidth/u16-strwidth-tests: New file.
69217
69218         * lib/uniwidth/u16-strwidth.c: New file.
69219         * modules/uniwidth/u16-strwidth: New file.
69220
69221         * tests/uniwidth/test-u8-strwidth.c: New file.
69222         * modules/uniwidth/u8-strwidth-tests: New file.
69223
69224         * lib/uniwidth/u8-strwidth.c: New file.
69225         * modules/uniwidth/u8-strwidth: New file.
69226
69227         * tests/uniwidth/test-u32-width.c: New file.
69228         * modules/uniwidth/u32-width-tests: New file.
69229
69230         * lib/uniwidth/u32-width.c: New file.
69231         * modules/uniwidth/u32-width: New file.
69232
69233         * tests/uniwidth/test-u16-width.c: New file.
69234         * modules/uniwidth/u16-width-tests: New file.
69235
69236         * lib/uniwidth/u16-width.c: New file.
69237         * modules/uniwidth/u16-width: New file.
69238
69239         * tests/uniwidth/test-u8-width.c: New file.
69240         * modules/uniwidth/u8-width-tests: New file.
69241
69242         * lib/uniwidth/u8-width.c: New file.
69243         * modules/uniwidth/u8-width: New file.
69244
69245         * tests/uniwidth/test-uc_width.c: New file.
69246         * modules/uniwidth/width-tests: New file.
69247
69248         * lib/uniwidth/width.c: New file, from GNU libiconv.
69249         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69250         * modules/uniwidth/width: New file.
69251
69252         * lib/uniwidth.h: New file, from GNU libiconv.
69253         * modules/uniwidth/base: New file.
69254
69255 2007-07-07  Bruno Haible  <bruno@clisp.org>
69256
69257         * lib/uniname.h: New file, from GNU gettext.
69258         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69259         * lib/uniname/uninames.h: New file, from GNU gettext.
69260         * lib/uniname/uniname.c: New file, from GNU gettext.
69261         * tests/uniname/test-uninames.sh: New file.
69262         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69263         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69264         * modules/uniname/base: New file.
69265         * modules/uniname/uniname: New file.
69266         * modules/uniname/uniname-tests: New file.
69267         * MODULES.html.sh (Unicode string functions): Add the new modules.
69268
69269 2007-07-06  Bruno Haible  <bruno@clisp.org>
69270
69271         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69272
69273 2007-07-06  Bruno Haible  <bruno@clisp.org>
69274
69275         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69276         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69277         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69278         include <sys/time.h>.
69279         Reported by Eric Blake.
69280
69281 2007-07-06  Eric Blake  <ebb9@byu.net>
69282
69283         Fix testing canonicalize on cygwin.
69284         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69285         Revert patch from 2007-06-19.
69286         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69287         canonicalize module is also in use.
69288         * tests/test-canonicalize.c: New file.
69289         * tests/test-canonicalize.sh: Likewise.
69290         * modules/canonicalize-tests: Likewise.
69291
69292 2007-07-06  Jim Meyering  <jim@meyering.net>
69293
69294         * lib/getugroups.c (getugroups): Detect getgrent failure.
69295         Adjust comment to reflect reality: this function may return -1.
69296
69297 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69298
69299         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69300         the new TP address.
69301         (usage): Fix typo
69302         (gnulib_mk): New variable.
69303
69304 2007-07-05  Jim Meyering  <jim@meyering.net>
69305
69306         Don't let endgrent clobber errno, no matter how improbable.
69307         * lib/getugroups.c (getugroups): Save and restore errno around
69308         endgrent call.
69309
69310         Close the group DB even when failing with 2^31 or more members.
69311         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69312
69313 2007-07-04  Jim Meyering  <jim@meyering.net>
69314
69315         * lib/getugroups.h: New file.
69316         * lib/getugroups.c: Include "getugroups.h".
69317         Remove uses of "register" keyword.
69318         Move local variable, "cp", down into scope where used.
69319         Give "username" parameter the "const" attribute.
69320         * modules/getugroups (Files): Add lib/getugroups.h
69321
69322 2007-07-04  Karl Berry  <karl@gnu.org>
69323
69324         * MODULES.html.sh (func_all_modules): Complete rename of
69325         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69326
69327 2007-07-02  Bruno Haible  <bruno@clisp.org>
69328
69329         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69330         mode, when inttypes.h comes from gnulib.
69331         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69332
69333 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69334
69335         * NEWS: Mention lgpl module name change.
69336
69337         * modules/lgpl-2.1: Renamed from lgpl.
69338
69339         * NEWS: Mention gpl module name change.
69340
69341         * modules/gpl-3.0: New file, based on gpl-2.0.
69342
69343         * modules/gpl-2.0: Renamed from gpl.
69344
69345         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69346         doc/gpl-2.0.texi.
69347
69348 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69349
69350         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69351         #define __STDC_LIMIT_MACROS temporarily while including
69352         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69353         Problem reported by Joel E. Denny in
69354         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69355
69356 2007-07-01  Bruno Haible  <bruno@clisp.org>
69357
69358         * lib/unistdio.h: New file.
69359         * lib/unistdio/u-asnprintf.h: New file.
69360         * lib/unistdio/u-asprintf.h: New file.
69361         * lib/unistdio/u-printf-args.c: New file.
69362         * lib/unistdio/u-printf-args.h: New file.
69363         * lib/unistdio/u-printf-parse.h: New file.
69364         * lib/unistdio/u-snprintf.h: New file.
69365         * lib/unistdio/u-sprintf.h: New file.
69366         * lib/unistdio/u-vasprintf.h: New file.
69367         * lib/unistdio/u-vsnprintf.h: New file.
69368         * lib/unistdio/u-vsprintf.h: New file.
69369         * lib/unistdio/ulc-asnprintf.c: New file.
69370         * lib/unistdio/ulc-asprintf.c: New file.
69371         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69372         * lib/unistdio/ulc-printf-parse.c: New file.
69373         * lib/unistdio/ulc-snprintf.c: New file.
69374         * lib/unistdio/ulc-sprintf.c: New file.
69375         * lib/unistdio/ulc-vasnprintf.c: New file.
69376         * lib/unistdio/ulc-vasprintf.c: New file.
69377         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69378         * lib/unistdio/ulc-vsnprintf.c: New file.
69379         * lib/unistdio/ulc-vsprintf.c: New file.
69380         * lib/unistdio/u8-asnprintf.c: New file.
69381         * lib/unistdio/u8-asprintf.c: New file.
69382         * lib/unistdio/u8-printf-parse.c: New file.
69383         * lib/unistdio/u8-snprintf.c: New file.
69384         * lib/unistdio/u8-sprintf.c: New file.
69385         * lib/unistdio/u8-vasnprintf.c: New file.
69386         * lib/unistdio/u8-vasprintf.c: New file.
69387         * lib/unistdio/u8-vsnprintf.c: New file.
69388         * lib/unistdio/u8-vsprintf.c: New file.
69389         * lib/unistdio/u8-u8-asnprintf.c: New file.
69390         * lib/unistdio/u8-u8-asprintf.c: New file.
69391         * lib/unistdio/u8-u8-snprintf.c: New file.
69392         * lib/unistdio/u8-u8-sprintf.c: New file.
69393         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69394         * lib/unistdio/u8-u8-vasprintf.c: New file.
69395         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69396         * lib/unistdio/u8-u8-vsprintf.c: New file.
69397         * lib/unistdio/u16-asnprintf.c: New file.
69398         * lib/unistdio/u16-asprintf.c: New file.
69399         * lib/unistdio/u16-printf-parse.c: New file.
69400         * lib/unistdio/u16-snprintf.c: New file.
69401         * lib/unistdio/u16-sprintf.c: New file.
69402         * lib/unistdio/u16-vasnprintf.c: New file.
69403         * lib/unistdio/u16-vasprintf.c: New file.
69404         * lib/unistdio/u16-vsnprintf.c: New file.
69405         * lib/unistdio/u16-vsprintf.c: New file.
69406         * lib/unistdio/u16-u16-asnprintf.c: New file.
69407         * lib/unistdio/u16-u16-asprintf.c: New file.
69408         * lib/unistdio/u16-u16-snprintf.c: New file.
69409         * lib/unistdio/u16-u16-sprintf.c: New file.
69410         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69411         * lib/unistdio/u16-u16-vasprintf.c: New file.
69412         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69413         * lib/unistdio/u16-u16-vsprintf.c: New file.
69414         * lib/unistdio/u32-asnprintf.c: New file.
69415         * lib/unistdio/u32-asprintf.c: New file.
69416         * lib/unistdio/u32-printf-parse.c: New file.
69417         * lib/unistdio/u32-snprintf.c: New file.
69418         * lib/unistdio/u32-sprintf.c: New file.
69419         * lib/unistdio/u32-vasnprintf.c: New file.
69420         * lib/unistdio/u32-vasprintf.c: New file.
69421         * lib/unistdio/u32-vsnprintf.c: New file.
69422         * lib/unistdio/u32-vsprintf.c: New file.
69423         * lib/unistdio/u32-u32-asnprintf.c: New file.
69424         * lib/unistdio/u32-u32-asprintf.c: New file.
69425         * lib/unistdio/u32-u32-snprintf.c: New file.
69426         * lib/unistdio/u32-u32-sprintf.c: New file.
69427         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69428         * lib/unistdio/u32-u32-vasprintf.c: New file.
69429         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69430         * lib/unistdio/u32-u32-vsprintf.c: New file.
69431         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69432         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69433         * tests/unistdio/test-ulc-printf1.h: New file.
69434         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69435         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69436         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69437         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69438         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69439         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69440         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69441         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69442         * tests/unistdio/test-u8-asnprintf1.c: New file.
69443         * tests/unistdio/test-u8-asnprintf1.h: New file.
69444         * tests/unistdio/test-u8-printf1.h: New file.
69445         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69446         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69447         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69448         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69449         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69450         * tests/unistdio/test-u8-vasprintf1.c: New file.
69451         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69452         * tests/unistdio/test-u8-vsprintf1.c: New file.
69453         * tests/unistdio/test-u16-asnprintf1.c: New file.
69454         * tests/unistdio/test-u16-asnprintf1.h: New file.
69455         * tests/unistdio/test-u16-printf1.h: New file.
69456         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69457         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69458         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69459         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69460         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69461         * tests/unistdio/test-u16-vasprintf1.c: New file.
69462         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69463         * tests/unistdio/test-u16-vsprintf1.c: New file.
69464         * tests/unistdio/test-u32-asnprintf1.c: New file.
69465         * tests/unistdio/test-u32-asnprintf1.h: New file.
69466         * tests/unistdio/test-u32-printf1.h: New file.
69467         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69468         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69469         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69470         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69471         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69472         * tests/unistdio/test-u32-vasprintf1.c: New file.
69473         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69474         * tests/unistdio/test-u32-vsprintf1.c: New file.
69475         * modules/unistdio/base: New file.
69476         * modules/unistdio/u-printf-args: New file.
69477         * modules/unistdio/ulc-asnprintf: New file.
69478         * modules/unistdio/ulc-asprintf: New file.
69479         * modules/unistdio/ulc-fprintf: New file.
69480         * modules/unistdio/ulc-printf-parse: New file.
69481         * modules/unistdio/ulc-snprintf: New file.
69482         * modules/unistdio/ulc-sprintf: New file.
69483         * modules/unistdio/ulc-vasnprintf: New file.
69484         * modules/unistdio/ulc-vasprintf: New file.
69485         * modules/unistdio/ulc-vfprintf: New file.
69486         * modules/unistdio/ulc-vsnprintf: New file.
69487         * modules/unistdio/ulc-vsprintf: New file.
69488         * modules/unistdio/u8-asnprintf: New file.
69489         * modules/unistdio/u8-asprintf: New file.
69490         * modules/unistdio/u8-printf-parse: New file.
69491         * modules/unistdio/u8-snprintf: New file.
69492         * modules/unistdio/u8-sprintf: New file.
69493         * modules/unistdio/u8-vasnprintf: New file.
69494         * modules/unistdio/u8-vasprintf: New file.
69495         * modules/unistdio/u8-vsnprintf: New file.
69496         * modules/unistdio/u8-vsprintf: New file.
69497         * modules/unistdio/u8-u8-asnprintf: New file.
69498         * modules/unistdio/u8-u8-asprintf: New file.
69499         * modules/unistdio/u8-u8-snprintf: New file.
69500         * modules/unistdio/u8-u8-sprintf: New file.
69501         * modules/unistdio/u8-u8-vasnprintf: New file.
69502         * modules/unistdio/u8-u8-vasprintf: New file.
69503         * modules/unistdio/u8-u8-vsnprintf: New file.
69504         * modules/unistdio/u8-u8-vsprintf: New file.
69505         * modules/unistdio/u16-asnprintf: New file.
69506         * modules/unistdio/u16-asprintf: New file.
69507         * modules/unistdio/u16-printf-parse: New file.
69508         * modules/unistdio/u16-snprintf: New file.
69509         * modules/unistdio/u16-sprintf: New file.
69510         * modules/unistdio/u16-vasnprintf: New file.
69511         * modules/unistdio/u16-vasprintf: New file.
69512         * modules/unistdio/u16-vsnprintf: New file.
69513         * modules/unistdio/u16-vsprintf: New file.
69514         * modules/unistdio/u16-u16-asnprintf: New file.
69515         * modules/unistdio/u16-u16-asprintf: New file.
69516         * modules/unistdio/u16-u16-snprintf: New file.
69517         * modules/unistdio/u16-u16-sprintf: New file.
69518         * modules/unistdio/u16-u16-vasnprintf: New file.
69519         * modules/unistdio/u16-u16-vasprintf: New file.
69520         * modules/unistdio/u16-u16-vsnprintf: New file.
69521         * modules/unistdio/u16-u16-vsprintf: New file.
69522         * modules/unistdio/u32-asnprintf: New file.
69523         * modules/unistdio/u32-asprintf: New file.
69524         * modules/unistdio/u32-printf-parse: New file.
69525         * modules/unistdio/u32-snprintf: New file.
69526         * modules/unistdio/u32-sprintf: New file.
69527         * modules/unistdio/u32-vasnprintf: New file.
69528         * modules/unistdio/u32-vasprintf: New file.
69529         * modules/unistdio/u32-vsnprintf: New file.
69530         * modules/unistdio/u32-vsprintf: New file.
69531         * modules/unistdio/u32-u32-asnprintf: New file.
69532         * modules/unistdio/u32-u32-asprintf: New file.
69533         * modules/unistdio/u32-u32-snprintf: New file.
69534         * modules/unistdio/u32-u32-sprintf: New file.
69535         * modules/unistdio/u32-u32-vasnprintf: New file.
69536         * modules/unistdio/u32-u32-vasprintf: New file.
69537         * modules/unistdio/u32-u32-vsnprintf: New file.
69538         * modules/unistdio/u32-u32-vsprintf: New file.
69539         * modules/unistdio/ulc-asnprintf-tests: New file.
69540         * modules/unistdio/ulc-vasnprintf-tests: New file.
69541         * modules/unistdio/ulc-vasprintf-tests: New file.
69542         * modules/unistdio/ulc-vsnprintf-tests: New file.
69543         * modules/unistdio/ulc-vsprintf-tests: New file.
69544         * modules/unistdio/u8-asnprintf-tests: New file.
69545         * modules/unistdio/u8-vasnprintf-tests: New file.
69546         * modules/unistdio/u8-vasprintf-tests: New file.
69547         * modules/unistdio/u8-vsnprintf-tests: New file.
69548         * modules/unistdio/u8-vsprintf-tests: New file.
69549         * modules/unistdio/u16-asnprintf-tests: New file.
69550         * modules/unistdio/u16-vasnprintf-tests: New file.
69551         * modules/unistdio/u16-vasprintf-tests: New file.
69552         * modules/unistdio/u16-vsnprintf-tests: New file.
69553         * modules/unistdio/u16-vsprintf-tests: New file.
69554         * modules/unistdio/u32-asnprintf-tests: New file.
69555         * modules/unistdio/u32-vasnprintf-tests: New file.
69556         * modules/unistdio/u32-vasprintf-tests: New file.
69557         * modules/unistdio/u32-vsnprintf-tests: New file.
69558         * modules/unistdio/u32-vsprintf-tests: New file.
69559         * MODULES.html.sh (Unicode string functions): Add the new modules.
69560
69561 2007-07-01  Bruno Haible  <bruno@clisp.org>
69562
69563         * lib/sprintf.c (sprintf): Limit the available length estimation,
69564         to avoid address wraparound.
69565         * lib/vsprintf.c (vsprintf): Likewise.
69566         * modules/sprintf-posix (Dependencies): Add stdint.
69567         * modules/vsprintf-posix (Dependencies): Likewise.
69568
69569 2007-07-01  Bruno Haible  <bruno@clisp.org>
69570
69571         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69572         Windows PATH as well. Conservative double-quoting. Comments.
69573
69574 2007-07-01  Bruno Haible  <bruno@clisp.org>
69575             Eric Blake  <ebb9@byu.net>
69576             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69577
69578         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69579         empty components in $PATH, denoting '.'.
69580
69581 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69582
69583         * gnulib-tool: Fix indentation.
69584         (func_create_megatestdir): Likewise.
69585         Report by Bruno Haible.
69586
69587 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69588
69589         Sync from Automake.
69590         * build-aux/gnupload: Fix shell portability issues with for loops.
69591         Report by Karl Berry.
69592
69593 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69594
69595         * build-aux/maint.mk (POURL): Use translationproject.org.
69596
69597 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69598             Bruno Haible  <bruno@clisp.org>
69599
69600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69601         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69602         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69603         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69604         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69605
69606 2007-06-27  Bruno Haible  <bruno@clisp.org>
69607
69608         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69609         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69610
69611 2007-06-26  Karl Berry  <karl@gnu.org>
69612
69613         * MODULES.html.sh: remove xreadlink-with-size.
69614
69615 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69616
69617         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69618         method that I hope also handles the double-include problem noted
69619         by Bruno Haible in
69620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69621
69622 2007-06-23  Bruno Haible  <bruno@clisp.org>
69623
69624         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69625         Don't let the 'mostlyclean' target fail if the last subdirectory could
69626         not be removed.
69627         Reported by Karl Berry.
69628
69629 2007-06-23  Bruno Haible  <bruno@clisp.org>
69630
69631         * gnulib-tool (echo): Add a speedier workaround for ksh.
69632         * tests/test-echo.sh: Likewise.
69633
69634 2007-06-23  Bruno Haible  <bruno@clisp.org>
69635
69636         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69637         * tests/test-echo.sh: Likewise.
69638
69639 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69640
69641         * gnulib-tool (IFS): Initialize early, so we don't set it to
69642         empty later.
69643         (self_abspathname): Rewrite algorithm to set it, reindent.
69644         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69645         (func_create_megatestdir): Merge some sed scripts.
69646
69647 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69648
69649         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69650         exposed by Sun Studio 11 cc on Solaris 8.
69651
69652 2007-06-22  Bruno Haible  <bruno@clisp.org>
69653
69654         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69655         backslashes.
69656         * tests/test-echo.sh: New file.
69657
69658 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69659
69660         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69661         simplify `sed_replace_build_aux' scripts, they are portable but
69662         echoing them with `echo' is not.
69663         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69664
69665 2007-06-21  Karl Berry  <karl@gnu.org>
69666
69667         * config/srclist.txt: guess we can't handle the licenses via
69668         srclist at the moment.
69669
69670 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * MODULES.html.sh: Add include_next.
69673         * modules/include_next: New file.
69674
69675 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69676
69677         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69678         INCLUDE_NEXT.
69679         (gl_CHECK_NEXT_HEADERS): New macro.
69680         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69681         the obsolescent gl_ABSOLUTE_HEADER.
69682         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69683         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69684         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69685         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69686         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69687         * m4/math_h.m4 (gl_MATH_H): Likewise.
69688         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69689         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69690         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69691         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69692         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69693         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69694         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69695         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69697         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69698         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69699         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69700         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69701         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69702         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69703         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69704         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69705         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69706         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69707         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69708         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69709         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69710         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69711         * lib/float_.h: Likewise.
69712         * lib/inttypes_.h: Likewise.
69713         * lib/math_.h: Likewise.
69714         * lib/search_.h: Likewise.
69715         * lib/signal_.h: Likewise.
69716         * lib/stdint_.h: Likewise.
69717         * lib/stdio_.h: Likewise.
69718         * lib/stdlib_.h: Likewise.
69719         * lib/string_.h: Likewise.
69720         * lib/sys_stat_.h: Likewise.
69721         * lib/sys_time_.h: Likewise.
69722         * lib/time_.h: Likewise.
69723         * lib/unistd_.h: Likewise.
69724         * lib/wchar_.h: Likewise.
69725         * lib/wctype_.h: Likewise.
69726         * lib/dirent_.h: Likewise.
69727         * lib/iconv_.h: Likewise.
69728         * lib/locale_.h: Likewise.
69729         * lib/netinet_in_.h: Likewise.
69730         * lib/sys_select_.h: Likewise.
69731         * lib/sys_socket_.h: Likewise.
69732         * lib/sysexits_.h: Likewise.
69733         * modules/fcntl (Depends-on): Depend on include_next, not
69734         absolute_header.
69735         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69736         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69737         * modules/fchdir: Likewise.
69738         * modules/float: Likewise.
69739         * modules/iconv_open: Likewise.
69740         * modules/inttypes: Likewise.
69741         * modules/locale: Likewise.
69742         * modules/math: Likewise.
69743         * modules/netinet_in: Likewise.
69744         * modules/search: Likewise.
69745         * modules/signal: Likewise.
69746         * modules/stdint: Likewise.
69747         * modules/stdio: Likewise.
69748         * modules/stdlib: Likewise.
69749         * modules/string: Likewise.
69750         * modules/sys_select: Likewise.
69751         * modules/sys_socket: Likewise.
69752         * modules/sys_stat: Likewise.
69753         * modules/sys_time: Likewise.
69754         * modules/sysexits: Likewise.
69755         * modules/time: Likewise.
69756         * modules/unistd: Likewise.
69757         * modules/wchar: Likewise.
69758         * modules/wctype: Likewise.
69759         * modules/sys_stat: Change maintainer to "all".
69760         * modules/unistd: Likewise.
69761
69762 2007-06-20  Karl Berry  <karl@gnu.org>
69763
69764         * config/srclist.txt: track www changes in license files.
69765
69766 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69767
69768         * build-aux/bootstrap: Remove stray dot.
69769         Make sure build_aux settings are honored when linking
69770         gnulib_extra_files.
69771
69772 2007-06-19  Eric Blake  <ebb9@byu.net>
69773
69774         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69775         Allow compilation on cygwin.
69776
69777 2007-06-19  Jim Meyering  <jim@meyering.net>
69778
69779         xreadlink-with-size: Remove module.  No longer used.
69780         Ex-callers now use xreadlink or mreadlink-with-size.
69781         * modules/xreadlink-with-size: Remove module.
69782         * lib/xreadlink-with-size.c: Remove file.
69783         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69784         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69785         just before the function definition *is* accurate.
69786
69787         Eliminate one way canonicalize_filename_mode could exit.
69788         * lib/canonicalize.c (canonicalize_filename_mode):
69789         Use mreadlink_with_size, not xreadlink_with_size.
69790
69791 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69792
69793         Detect porting problems to FreeBSD/arm, which has time_t wider than
69794         long int.  Original problem reported for GNU diff by Xin Li in
69795         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69796         * modules/getdate (Depends-on): Add intprops, verify.
69797         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69798         is an integer type no wider than long int.
69799
69800 2007-06-18  Jim Meyering  <jim@meyering.net>
69801
69802         New module: mreadlink-with-size.
69803         * MODULES.html.sh: Add mreadlink-with-size.
69804         * modules/mreadlink-with-size: New module
69805         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69806         not xreadlink-with-size.
69807         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69808
69809 2007-06-16  Bruno Haible  <bruno@clisp.org>
69810
69811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69812         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69813         Reported by Gary V. Vaughan <gary@gnu.org>.
69814
69815 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69816
69817         Revamp lchown so that it lives in unistd.h where it belongs.
69818         * lib/lchown.h: Remove.
69819         * lib/dirchownmod.c: Don't include lib/lchown.h.
69820         * lib/fchownat.c: Likewise.
69821         * lib/openat.c: Likewise.
69822         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69823         does not follow symlinks.
69824         (EOPNOTSUPP): Define if not defined.
69825         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69826         is defined to 0.
69827         (lchown): New decl.
69828         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69829         Do not check for lchown decl.
69830         Set REPLACE_LCHOWN.
69831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69832         REPLACE_LCHOWN.
69833         * modules/chown: Make it clear it follows symlinks.
69834         * modules/lchown: Make it clear it doesn't follow symlinks.
69835         (Files): Remove lib/lchown.h
69836         (Depends-on): Add unistd.
69837         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69838         (Include): Include <unistd.h>, not "lchown.h".
69839         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69840         REPLACE_LCHOWN.
69841
69842 2007-06-15  Jim Meyering  <jim@meyering.net>
69843
69844         Change license (GPL to LGPL) of fsusage and dependents.
69845         * modules/fsusage (License): Change to LGPL.
69846         * modules/full-read (License): Likewise.
69847         * modules/full-write (License): Likewise.
69848         * modules/safe-read (License): Likewise.
69849         * modules/safe-write (License): Likewise.
69850
69851 2007-06-14  Ben Pfaff  <blp@gnu.org>
69852
69853         Missing part of allocsa -> malloca transition.
69854         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69855         gl_MALLOCA.
69856
69857 2007-06-12  Bruno Haible  <bruno@clisp.org>
69858
69859         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69860         to ia64, x86_64, i386.
69861         Reported by Eric Blake.
69862
69863 2007-06-12  Bruno Haible  <bruno@clisp.org>
69864
69865         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69866         cross-compiling to x86_64.
69867
69868 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69869
69870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69871         glitch reported by Ralf Wildenhues in
69872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69873
69874         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69875         Vin Shelton.
69876
69877 2007-06-11  Bruno Haible  <bruno@clisp.org>
69878
69879         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69880         replacement string.
69881         Reported by Eric Blake.
69882
69883 2007-06-10  Bruno Haible  <bruno@clisp.org>
69884
69885         Prepare vasnprintf code for use with Unicode strings.
69886         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69887         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69888         TYPE_U32_STRING.
69889         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69890         a_u32_string variants.
69891         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69892         * lib/printf-args.c: Don't include config.h and the specification
69893         header if PRINTF_FETCHARGS is already defined.
69894         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69895         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69896         TYPE_U16_STRING, TYPE_U32_STRING.
69897         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69898         u16_directive, u16_directives, u32_directive, u32_directives): New
69899         types.
69900         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69901         New declarations.
69902         * lib/printf-parse.c: Don't include config.h and the specification
69903         header if PRINTF_PARSE is already defined. Eliminate the set of
69904         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69905         them now. Include c-ctype.h.
69906         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69907         directive and CHAR_T_ONLY_ASCII.
69908         * lib/vasnprintf.c: Don't include config.h and the specification header
69909         if VASNPRINTF is already defined.
69910         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69911         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69912         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69913         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69914         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69915         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69916         code accordingly.
69917         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69918         pad_ourselves also in this case, with the 'c' and 's' directives, and
69919         with a different notion of "width".
69920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69921
69922 2007-06-10  Bruno Haible  <bruno@clisp.org>
69923
69924         * modules/unistr/u32-mbsnlen: New file.
69925         * lib/unistr/u32-mbsnlen.c: New file.
69926
69927         * modules/unistr/u16-mbsnlen: New file.
69928         * lib/unistr/u16-mbsnlen.c: New file.
69929
69930         * modules/unistr/u8-mbsnlen: New file.
69931         * lib/unistr/u8-mbsnlen.c: New file.
69932
69933         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69934         declarations.
69935
69936 2007-06-10  Bruno Haible  <bruno@clisp.org>
69937
69938         * lib/string_.h (mbsnlen): New declaration.
69939         * lib/mbsnlen.c: New file.
69940         * m4/mbsnlen.m4: New file.
69941         * modules/mbsnlen: New file.
69942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69943         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69944         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69945
69946 2007-06-10  Bruno Haible  <bruno@clisp.org>
69947
69948         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69949
69950 2007-06-10  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69953         * lib/mbuiter.h: Likewise.
69954
69955 2007-06-10  Bruno Haible  <bruno@clisp.org>
69956
69957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69958         declaration.
69959
69960 2007-06-10  Karl Berry  <karl@gnu.org>
69961
69962         * config/srclist.txt: remove gettext entries, Bruno prefers
69963         to update individually.
69964
69965 2007-06-10  Bruno Haible  <bruno@clisp.org>
69966
69967         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69968         'maxlen'. Ensure only length + width bytes are allocated, not
69969         length + 1 + width.
69970
69971 2007-06-09  Bruno Haible  <bruno@clisp.org>
69972
69973         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69974         (CHAR_T): Remove macro.
69975         (VASNPRINTF): Update.
69976
69977 2007-06-09  Bruno Haible  <bruno@clisp.org>
69978
69979         * MODULES.html.sh (Unicode string functions): Add the new modules.
69980
69981         * modules/uniconv/u32-conv-to-enc: New file.
69982         * lib/uniconv/u32-conv-to-enc.c: New file.
69983         * modules/uniconv/u32-conv-to-enc-tests: New file.
69984         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69985
69986         * modules/uniconv/u16-conv-to-enc: New file.
69987         * lib/uniconv/u16-conv-to-enc.c: New file.
69988         * lib/uniconv/u-conv-to-enc.h: New file.
69989         * modules/uniconv/u16-conv-to-enc-tests: New file.
69990         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69991
69992         * modules/uniconv/u8-conv-to-enc: New file.
69993         * lib/uniconv/u8-conv-to-enc.c: New file.
69994         * modules/uniconv/u8-conv-to-enc-tests: New file.
69995         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69996
69997         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69998         u32_conv_to_encoding): New declarations.
69999
70000 2007-06-09  Bruno Haible  <bruno@clisp.org>
70001
70002         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
70003
70004 2007-06-09  Bruno Haible  <bruno@clisp.org>
70005
70006         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
70007         * modules/malloca: Renamed from modules/allocsa, updated.
70008         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
70009         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
70010         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
70011         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
70012         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
70013         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
70014         * modules/xmalloca: Renamed from modules/xallocsa, updated.
70015         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
70016         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
70017         * modules/c-strcasestr (Depends-on): Update.
70018         * lib/c-strcasestr.c: Update.
70019         * modules/c-strstr (Depends-on): Update.
70020         * lib/c-strstr.c: Update.
70021         * modules/canonicalize-lgpl (Depends-on): Update.
70022         * lib/canonicalize-lgpl.c: Update.
70023         * modules/clean-temp (Depends-on): Update.
70024         * lib/clean-temp.c: Update.
70025         * modules/csharpcomp (Depends-on): Update.
70026         * lib/csharpcomp.c: Update.
70027         * modules/csharpexec (Depends-on): Update.
70028         * lib/csharpexec.c: Update.
70029         * modules/javacomp (Depends-on): Update.
70030         * lib/javacomp.c: Update.
70031         * modules/javaexec (Depends-on): Update.
70032         * lib/javaexec.c: Update.
70033         * modules/mbscasestr (Depends-on): Update.
70034         * lib/mbscasestr.c: Update.
70035         * modules/mbsstr (Depends-on): Update.
70036         * lib/mbsstr.c: Update.
70037         * modules/setenv (Depends-on): Update.
70038         * lib/setenv.c: Update.
70039         * modules/strcasestr (Depends-on): Update.
70040         * lib/strcasestr.c: Update.
70041         * modules/striconveha (Depends-on): Update.
70042         * lib/striconveha.c: Update.
70043         * modules/relocatable-prog-wrapper (Files): Update.
70044         * lib/relocwrapper.c: Update.
70045         * build-aux/install-reloc: Update.
70046         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
70047
70048 2007-06-08  Bruno Haible  <bruno@clisp.org>
70049
70050         Port to uClibc.
70051         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
70052         * lib/fpurge.c (fpurge): Likewise.
70053         * lib/freading.c (freading): Likewise.
70054         * lib/fseeko.c (rpl_fseeko): Likewise.
70055         * lib/fseterr.c (fseterr): Likewise.
70056         * lib/fwriting.c (fwriting): Likewise.
70057         * tests/test-fflush.c (main): Avoid a failure on uClibc.
70058
70059 2007-06-08  Bruno Haible  <bruno@clisp.org>
70060
70061         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
70062         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
70063         * modules/gettext (Files): Add m4/intlmacosx.m4.
70064
70065 2007-06-07  Bruno Haible  <bruno@clisp.org>
70066
70067         * modules/localename-tests: New file.
70068         * tests/test-localename.c: New file.
70069
70070         New module 'localename'.
70071         * lib/localename.h: New file.
70072         * lib/localename.c: New file, from GNU gettext.
70073         * m4/localename.m4: New file.
70074         * modules/localename: New file.
70075
70076 2007-06-07  Bruno Haible  <bruno@clisp.org>
70077
70078         Work around the lack of <wchar.h> on some builds of uClibc.
70079         * doc/headers/wchar.texi: Update.
70080         * lib/wchar_.h: Include <wchar.h> only if it exists.
70081         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
70082         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
70083         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
70084         doesn't exist.
70085         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
70086         * modules/mbfile (Depends-on): Add wchar.
70087         * modules/mbiter (Depends-on): Likewise.
70088         * modules/mbuiter (Depends-on): Likewise.
70089         Reported by Simon Josefsson.
70090
70091 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         Work around problem reported by Steven M. Schweda in
70094         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
70095         Tru64 5.1B with the Compaq compiler environment installed declares
70096         an 'isblank' function but does not define it in the C library.
70097         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
70098         * lib/regex_internal.h (isblank): Likewise.
70099         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
70100         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70101
70102 2007-06-05  Bruno Haible  <bruno@clisp.org>
70103
70104         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
70105         ia64.
70106         * modules/printf-safe: New file.
70107         * modules/fprintf-posix (Depends-on): Add printf-safe.
70108         * modules/printf-posix (Depends-on): Likewise.
70109         * modules/snprintf-posix (Depends-on): Likewise.
70110         * modules/sprintf-posix (Depends-on): Likewise.
70111         * modules/vasnprintf-posix (Depends-on): Likewise.
70112         * modules/vasprintf-posix (Depends-on): Likewise.
70113         * modules/vfprintf-posix (Depends-on): Likewise.
70114         * modules/vprintf-posix (Depends-on): Likewise.
70115         * modules/vsnprintf-posix (Depends-on): Likewise.
70116         * modules/vsprintf-posix (Depends-on): Likewise.
70117         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
70118         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
70119         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
70120         "no" on i386, x86_64, ia64.
70121         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
70122         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70123         on i386, x86_64, ia64.
70124         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
70125         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70126         on i386, x86_64, ia64.
70127         * tests/test-vasnprintf-posix.c: Include float.h.
70128         (LDBL80_WORDS): New macro.
70129         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70130         on i386, x86_64, ia64.
70131         * tests/test-vasprintf-posix.c: Include float.h.
70132         (LDBL80_WORDS): New macro.
70133         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70134         on i386, x86_64, ia64.
70135         * tests/test-snprintf-posix.c: Include float.h.
70136         * tests/test-sprintf-posix.c: Likewise.
70137         * tests/test-vsnprintf-posix.c: Likewise.
70138         * tests/test-vsprintf-posix.c: Likewise.
70139
70140 2007-06-05  Bruno Haible  <bruno@clisp.org>
70141
70142         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
70143         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
70144         non-IEEE numbers on i386, x86_64, ia64.
70145         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70146         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70147         * tests/test-isnanl.h: Include float.h.
70148         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70149
70150 2007-06-05  Bruno Haible  <bruno@clisp.org>
70151
70152         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70153         also the %a / %A. Handle the %a / %A code before this extra handling.
70154
70155 2007-06-05  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70158         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70159
70160 2007-06-05  Bruno Haible  <bruno@clisp.org>
70161
70162         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70163         typo in variable name.
70164
70165 2007-06-05  Eric Blake  <ebb9@byu.net>
70166
70167         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70168         Reported by Simon Josefsson.
70169
70170 2007-06-04  Bruno Haible  <bruno@clisp.org>
70171
70172         Avoid test failures on some PowerPC platforms.
70173         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70174         Define differently for PowerPC.
70175         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70176         Reported by Gary V. Vaughan <gary@gnu.org>.
70177
70178 2007-06-02  Bruno Haible  <bruno@clisp.org>
70179
70180         Fix test-stdint failure on FreeBSD/ia64.
70181         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70182         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70183         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70184         * doc/headers/stdint.texi: Update.
70185
70186 2007-06-01  Bruno Haible  <bruno@clisp.org>
70187
70188         * tests/test-binary-io.c (main): Pass a third argument to open().
70189         Reported by Gary V. Vaughan <gary@gnu.org>.
70190
70191 2007-06-01  Bruno Haible  <bruno@clisp.org>
70192
70193         * doc/functions/frexpl.texi: Update for mingw.
70194
70195 2007-06-01  Bruno Haible  <bruno@clisp.org>
70196
70197         * tests/test-lseek.c (main): Disable test of errno for invalid third
70198         argument.
70199         * doc/functions/lseek.texi: Update.
70200         Reported by Gary V. Vaughan <gary@gnu.org>.
70201
70202 2007-05-28  Bruno Haible  <bruno@clisp.org>
70203
70204         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70205
70206 2007-05-31  Eric Blake  <ebb9@byu.net>
70207
70208         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70209         cross compiling.
70210
70211 2007-05-30  Eric Blake  <ebb9@byu.net>
70212         and Bruno Haible  <bruno@clisp.org>
70213
70214         Work around mingw test failures exposed by m4-1.4.9b.
70215         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70216         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70217         moment.
70218
70219 2007-05-30  Bruno Haible  <bruno@clisp.org>
70220
70221         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70222         assuming that they are closed. Needed on HP-UX 11.
70223
70224 2007-05-29  Bruno Haible  <bruno@clisp.org>
70225
70226         Fix a problem with #include_next.
70227         * lib/dirent_.h: Split the double-inclusion guard.
70228         * lib/fcntl_.h: Likewise.
70229         * lib/float_.h: Likewise.
70230         * lib/iconv_.h: Likewise.
70231         * lib/inttypes_.h: Likewise.
70232         * lib/locale_.h: Likewise.
70233         * lib/math_.h: Likewise.
70234         * lib/netinet_in_.h: Likewise.
70235         * lib/search_.h: Likewise.
70236         * lib/signal_.h: Likewise.
70237         * lib/stdint_.h: Likewise.
70238         * lib/stdio_.h: Likewise.
70239         * lib/stdlib_.h: Likewise.
70240         * lib/string_.h: Likewise.
70241         * lib/sys_select_.h: Likewise.
70242         * lib/sys_socket_.h: Likewise.
70243         * lib/sys_stat_.h: Likewise.
70244         * lib/sys_time_.h: Likewise.
70245         * lib/sysexits_.h: Likewise.
70246         * lib/time_.h: Likewise.
70247         * lib/unistd_.h: Likewise.
70248         * lib/wchar_.h: Likewise.
70249         * lib/wctype_.h: Likewise.
70250
70251 2007-05-29  Bruno Haible  <bruno@clisp.org>
70252
70253         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70254         for the moment.
70255
70256 2007-05-29  Bruno Haible  <bruno@clisp.org>
70257
70258         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70259         invocation.
70260         Reported by Eric Blake.
70261
70262 2007-05-29  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70265         compiling case.
70266
70267 2007-05-29  Eric Blake  <ebb9@byu.net>
70268             Bruno Haible  <bruno@clisp.org>
70269
70270         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70271         cross compiles.
70272
70273 2007-05-28  Eric Blake  <ebb9@byu.net>
70274
70275         * modules/closein-tests (test_closein_LDADD): Support test on
70276         cygwin with libtool.
70277
70278 2007-05-28  Bruno Haible  <bruno@clisp.org>
70279
70280         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70281         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70282         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70283         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70284         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70285         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70286         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70289
70290 2007-05-28  Eric Blake  <ebb9@byu.net>
70291
70292         Unconditionally include <config.h> in unit tests.
70293         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70294         * tests/test-allocsa.c, tests/test-arcfour.c,
70295         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70296         tests/test-array_list.c, tests/test-array_oset.c,
70297         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70298         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70299         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70300         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70301         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70302         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70303         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70304         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70305         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70306         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70307         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70308         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70309         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70310         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70311         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70312         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70313         test-md5.c, test-memmem.c, test-printf-posix.c,
70314         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70315         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70316         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70317         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70318         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70319         test-vasnprintf-posix2.c, test-vasnprintf.c,
70320         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70321         test-vfprintf-posix.c, test-vprintf-posix.c,
70322         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70323         test-xvasprintf.c: Likewise.
70324
70325 2007-05-28  Bruno Haible  <bruno@clisp.org>
70326
70327         * gnulib-tool (func_import): Remember the --with-tests command-line
70328         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70329         Reported by Eric Blake.
70330
70331 2007-05-28  Bruno Haible  <bruno@clisp.org>
70332
70333         * modules/ftell-tests: New file.
70334         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70335         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70336
70337         * lib/ftell.c: New file.
70338         * modules/ftell: New file.
70339         * m4/ftell.m4: New file.
70340         * doc/functions/ftell.texi: Update.
70341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70342         REPLACE_FTELL.
70343         * lib/stdio_.h (rpl_ftell): New declaration.
70344         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70345         REPLACE_FTELL.
70346
70347 2007-05-28  Eric Blake  <ebb9@byu.net>
70348
70349         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70350
70351 2007-05-28  Bruno Haible  <bruno@clisp.org>
70352
70353         * modules/fseek-tests: New file.
70354         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70355         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70356
70357         * lib/fseek.c: New file.
70358         * modules/fseek: New file.
70359         * m4/fseek.m4: New file.
70360         * doc/functions/fseek.texi: Update.
70361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70362         REPLACE_FSEEK.
70363         * lib/stdio_.h (rpl_fseek): New declaration.
70364         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70365         REPLACE_FSEEK.
70366
70367 2007-05-28  Bruno Haible  <bruno@clisp.org>
70368
70369         * lib/stdio_.h (fflush): More comments.
70370
70371 2007-05-28  Bruno Haible  <bruno@clisp.org>
70372
70373         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70374         runtime test.
70375
70376 2007-05-28  Eric Blake  <ebb9@byu.net>
70377
70378         Improve lseek module.
70379         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70380         * lib/unistd_.h (lseek): Scale back link warning message.
70381         * tests/test-lseek.c: Beef up test.
70382         * tests/test-lseek.sh: Exercise more facets of lseek.
70383         Reported by Bruno Haible.
70384
70385 2007-05-28  Bruno Haible  <bruno@clisp.org>
70386
70387         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70388         to define.
70389
70390 2007-05-27  Bruno Haible  <bruno@clisp.org>
70391
70392         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70393
70394 2007-05-27  Bruno Haible  <bruno@clisp.org>
70395
70396         * modules/openmp: New file.
70397         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70398         Noah Misch.
70399
70400 2007-05-26  Bruno Haible  <bruno@clisp.org>
70401
70402         * modules/chdir-long (Depends-on): Add fchdir.
70403         * modules/chdir-safer (Depends-on): Likewise.
70404         * modules/fts (Depends-on): Likewise.
70405         * modules/fts-lgpl (Depends-on): Likewise.
70406         * modules/openat (Depends-on): Likewise.
70407         * modules/savewd (Depends-on): Likewise.
70408
70409 2007-05-24  Eric Blake  <ebb9@byu.net>
70410
70411         Fix lseek on mingw.
70412         * modules/lseek: New module.
70413         * m4/lseek.m4: New file.
70414         * lib/lseek.c: New file.
70415         * modules/lseek-tests: New file.
70416         * tests/test-lseek.c: New file.
70417         * tests/test-lseek.sh: New file.
70418         * MODULES.html.sh: Document lseek module.
70419         * modules/fflush (Depends-on): Add lseek, fseeko.
70420         * modules/fseeko (Depends-on): Likewise.
70421         * modules/ftello (Depends-on): Likewise.
70422         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70423         broken.
70424         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70425         broken.
70426         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70427         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70428         * lib/ftello.c (rpl_ftello): Likewise.
70429         * tests/test-fseeko.c (main): Test this.
70430         * tests/test-fseeko.sh: Likewise.
70431         * tests/test-ftello.c (main): Likewise.
70432         * tests/test-ftello.sh: Likewise.
70433         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70434         implies replacing fseek.
70435         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70436         HAVE_FTELLO.
70437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70438         * modules/unistd (Makefile.am): Likewise.
70439         * lib/unistd_.h (lseek): Declare a replacement.
70440         * doc/functions/lseek.texi (lseek): Document this fix.
70441         * doc/functions/fseek.texi (fseek): Likewise.
70442         * doc/functions/ftell.texi (ftell): Likewise.
70443
70444 2007-05-24  Bruno Haible  <bruno@clisp.org>
70445
70446         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70447         in the printed representation of a NaN.
70448         * tests/test-vasprintf-posix.c (test_function): Likewise.
70449         * tests/test-snprintf-posix.h (test_function): Likewise.
70450         * tests/test-sprintf-posix.h (test_function): Likewise.
70451         Reported by Eric Blake.
70452
70453 2007-05-23  Eric Blake  <ebb9@byu.net>
70454
70455         Fix fseeko/ftello on cygwin 1.5.24.
70456         * doc/functions/fseeko.texi (fseeko): Document the fix.
70457         * doc/functions/ftello.texi (ftello): Document the fix.
70458         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70459         * doc/functions/stdout.text (stdout): New file.
70460         * doc/functions/stderr.text (stderr): New file.
70461         * doc/gnulib.texi (Function Substitutes): Use new files.
70462         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70463         prior to 1.7.0.
70464         * tests/test-ftello.c (main): Likewise for ftello.
70465         * tests/test-fseeko.sh: New file.
70466         * tests/test-ftello.sh: New file.
70467         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70468         with seekable stdin.
70469         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70471         (gl_REPLACE_FSEEKO): New macro.
70472         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70473         * modules/fseeko (Files): Distribute fseeko.c.
70474         * modules/ftello (Files): Distribute ftello.c.
70475         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70476         mode.
70477         * lib/ftello.c (rpl_ftello): New file.
70478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70479         fseeko, ftello.
70480         (gl_STDIN_LARGE_OFFSET): New macro.
70481         * modules/stdio (Makefile.am): Perform the replacement.
70482         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70483
70484 2007-05-23  Bruno Haible  <bruno@clisp.org>
70485
70486         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70487         GNULIB_POSIXCHECK is defined.
70488
70489 2007-05-21  Bruno Haible  <bruno@clisp.org>
70490
70491         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70492         Check also the output for NaN arguments. When cross-compiling, guess
70493         no on IRIX.
70494         * lib/vasnprintf.c: Update comments.
70495         * tests/test-vasnprintf-posix.c (strisnan): New function.
70496         (test_function): Use it.
70497         * tests/test-vasprintf-posix.c (strisnan): New function.
70498         (test_function): Use it.
70499         * tests/test-snprintf-posix.h (strisnan): New function.
70500         (test_function): Use it.
70501         * tests/test-sprintf-posix.h (strisnan): New function.
70502         (test_function): Use it.
70503         Reported by Eric Blake.
70504
70505 2007-05-20  Bruno Haible  <bruno@clisp.org>
70506
70507         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70508         numbers that fails on BeOS.
70509         * doc/functions/frexpl.texi: Update.
70510
70511 2007-05-20  Jim Meyering  <jim@meyering.net>
70512
70513         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70514         forced upon us by glibc-2.6.
70515
70516 2007-05-20  Bruno Haible  <bruno@clisp.org>
70517
70518         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70519         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70520         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70521         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70522         NEED_PRINTF_INFINITE.
70523         (is_infinitel): New function.
70524         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70525         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70526         gl_PREREQ_VASNPRINTF_INFINITE.
70527         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70528         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70529         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70530         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70531         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70532         gl_PREREQ_VASNPRINTF_INFINITE.
70533         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70534         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70535         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70536         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70537         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70538         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70539         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70540         * doc/functions/fprintf.texi: Update.
70541         * doc/functions/printf.texi: Update.
70542         * doc/functions/snprintf.texi: Update.
70543         * doc/functions/sprintf.texi: Update.
70544         * doc/functions/vfprintf.texi: Update.
70545         * doc/functions/vprintf.texi: Update.
70546         * doc/functions/vsnprintf.texi: Update.
70547         * doc/functions/vsprintf.texi: Update.
70548
70549 2007-05-20  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70552         was not found in libc.
70553         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70554
70555 2007-05-20  Bruno Haible  <bruno@clisp.org>
70556
70557         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70558         printed as "-nan" instead of "nan".
70559         * tests/test-vasprintf-posix.c (test_function): Likewise.
70560         * tests/test-snprintf-posix.h (test_function): Likewise.
70561         * tests/test-sprintf-posix.h (test_function): Likewise.
70562         Needed for HP-UX 11.
70563
70564 2007-05-20  Jim Meyering  <jim@meyering.net>
70565
70566         Fix buggy test for the fchownat-deref bug.
70567         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70568         symlink required for the run-test.  Without it, this test would
70569         always declare that fchownat doesn't work, and client code would
70570         unnecessarily use the replacement function with fixed libc.
70571         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70572         Reported by Greg Schafer.
70573
70574 2007-05-19  Bruno Haible  <bruno@clisp.org>
70575
70576         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70577         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70578         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70579         Needed for IRIX 6.5 and Solaris 2.5.1.
70580
70581 2007-05-19  Bruno Haible  <bruno@clisp.org>
70582
70583         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70584         (test_function): Skip tests involving -0.0 on platforms where
70585         -0.0 = 0.0.
70586         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70587         (test_function): Skip tests involving -0.0 on platforms where
70588         -0.0 = 0.0.
70589         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70590         (test_function): Skip tests involving -0.0 on platforms where
70591         -0.0 = 0.0.
70592         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70593         (test_function): Skip tests involving -0.0 on platforms where
70594         -0.0 = 0.0.
70595         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70596         tests.
70597         * tests/test-printf-posix.h (test_function): Likewise.
70598         * tests/test-printf-posix.output: Remove all -0.0 related results.
70599         Needed for IRIX 6.5.
70600
70601 2007-05-19  Bruno Haible  <bruno@clisp.org>
70602
70603         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70604         printed as "nan0x7fffffff" instead of "nan".
70605         * tests/test-vasprintf-posix.c (test_function): Likewise.
70606         * tests/test-snprintf-posix.h (test_function): Likewise.
70607         * tests/test-sprintf-posix.h (test_function): Likewise.
70608         * tests/test-fprintf-posix.h (NaN): Remove macro.
70609         (test_function): Remove all NaN related tests.
70610         * tests/test-printf-posix.h (NaN): Remove macro.
70611         (test_function): Remove all NaN related tests.
70612         * tests/test-printf-posix.output: Remove all NaN related results.
70613         Needed for IRIX 6.5.
70614
70615 2007-05-19  Bruno Haible  <bruno@clisp.org>
70616
70617         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70618         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70619
70620 2007-05-19  Bruno Haible  <bruno@clisp.org>
70621
70622         * lib/float_.h: New file.
70623         * m4/float_h.m4: New file.
70624         * modules/float: New file.
70625         * modules/isnanl (Dependencies): Add float.
70626         * modules/isnanl-nolibm (Dependencies): Likewise.
70627         * modules/mathl (Dependencies): Likewise.
70628         * modules/printf-frexpl (Dependencies): Likewise.
70629         * modules/signbit (Dependencies): Likewise.
70630         * modules/vasnprintf (Dependencies): Likewise.
70631         * doc/headers/float.texi: Update.
70632
70633 2007-05-19  Jim Meyering  <jim@meyering.net>
70634
70635         * lib/utimens.c (gl_futimens): Rename from futimens,
70636         now that glibc-2.6 declares futimens.
70637         * lib/utimens.h: Likewise.
70638
70639 2007-05-19  Bruno Haible  <bruno@clisp.org>
70640
70641         Avoid test failures on mingw.
70642         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70643         * tests/test-printf-posix.sh: Likewise.
70644         * tests/test-vfprintf-posix.sh: Likewise.
70645         * tests/test-vprintf-posix.sh: Likewise.
70646
70647 2007-05-19  Bruno Haible  <bruno@clisp.org>
70648
70649         Fix *printf result for NaN, Inf, -0.0 on mingw.
70650         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70651         * lib/vasnprintf.c: Include math.h and isnan.h.
70652         (is_infinite_or_zero): New function.
70653         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70654         values in the %f, %F, %e, %E, %g, %G directives.
70655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70656         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70657         gl_PRINTF_INFINITE and test its result. Invoke
70658         gl_PREREQ_VASNPRINTF_INFINITE.
70659         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70660         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70661         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70662         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70663         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70664         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70665         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70666         * doc/functions/fprintf.texi: Update.
70667         * doc/functions/printf.texi: Update.
70668         * doc/functions/snprintf.texi: Update.
70669         * doc/functions/sprintf.texi: Update.
70670         * doc/functions/vfprintf.texi: Update.
70671         * doc/functions/vprintf.texi: Update.
70672         * doc/functions/vsnprintf.texi: Update.
70673         * doc/functions/vsprintf.texi: Update.
70674
70675 2007-05-19  Bruno Haible  <bruno@clisp.org>
70676
70677         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70678         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70679         Instead of multiplying with 10^k, set extra_zeroes to k.
70680         (scale10_round_long_double): Remove function.
70681
70682 2007-05-18  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70685         introduced on 2007-05-06.
70686
70687 2007-05-18  Bruno Haible  <bruno@clisp.org>
70688
70689         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70690         %g directives.
70691         * tests/test-vasprintf-posix.c (test_function): Likewise.
70692         * tests/test-snprintf-posix.h (test_function): Likewise.
70693         * tests/test-sprintf-posix.h (test_function): Likewise.
70694
70695 2007-05-18  Bruno Haible  <bruno@clisp.org>
70696
70697         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70698         (strmatch): New function.
70699         (test_function): Test the %f directive on numbers of various exponents.
70700         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70701         (strmatch): New function.
70702         (test_function): Test the %f directive on numbers of various exponents.
70703         * tests/test-snprintf-posix.h (strmatch): New function.
70704         (test_function): Test the %f directive on numbers of various exponents.
70705         * tests/test-sprintf-posix.h (strmatch): New function.
70706         (test_function): Test the %f directive on numbers of various exponents.
70707         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70708         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70709         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70710         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70711
70712 2007-05-18  Bruno Haible  <bruno@clisp.org>
70713
70714         Add support for 'long double' number output.
70715         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70716         * lib/vasnprintf.c: Include math.h and float+.h.
70717         (mp_limb_t): New type.
70718         (GMP_LIMB_BITS): New macro.
70719         (mp_twolimb_t): New type.
70720         (GMP_TWOLIMB_BITS): New macro.
70721         (mpn_t): New type.
70722         (multiply, divide, convert_to_decimal, decode_long_double,
70723         scale10_round_long_double, scale10_round_decimal_long_double,
70724         floorlog10l): New functions.
70725         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70726         for the %f, %F, %e, %E, %g, %G directives.
70727         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70728         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70729         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70730         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70731         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70732         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70733         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70734         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70735         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70736         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70737         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70738         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70739         * modules/snprintf-posix (Depends-on): Likewise.
70740         * modules/sprintf-posix (Depends-on): Likewise.
70741         * modules/vasnprintf-posix (Depends-on): Likewise.
70742         * modules/vasprintf-posix (Depends-on): Likewise.
70743         * modules/vfprintf-posix (Depends-on): Likewise.
70744         * modules/vsnprintf-posix (Depends-on): Likewise.
70745         * modules/vsprintf-posix (Depends-on): Likewise.
70746         * modules/vasnprintf (Files): Add lib/float+.h.
70747         * doc/functions/fprintf.texi: Update.
70748         * doc/functions/printf.texi: Update.
70749         * doc/functions/snprintf.texi: Update.
70750         * doc/functions/sprintf.texi: Update.
70751         * doc/functions/vfprintf.texi: Update.
70752         * doc/functions/vprintf.texi: Update.
70753         * doc/functions/vsnprintf.texi: Update.
70754         * doc/functions/vsprintf.texi: Update.
70755
70756 2007-05-18  Bruno Haible  <bruno@clisp.org>
70757
70758         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70759
70760 2007-05-18  Bruno Haible  <bruno@clisp.org>
70761
70762         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70763         for printing 64-bit integers. Needed for mingw.
70764
70765 2007-05-18  Bruno Haible  <bruno@clisp.org>
70766
70767         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70768         gl_FUNC_FREXPL_WORKS.
70769         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70770
70771 2007-05-18  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/frexpl-nolibm-tests: New file.
70774
70775         * modules/frexpl-nolibm: New file.
70776         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70777
70778 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70781         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70782         GCC 4.2, which otherwise issues a lot of warnings.
70783         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70784         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70785         Likewise.
70786         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70787         * modules/iconv_open (iconv.h): Likewise.
70788         * modules/locale (locale.h): Likewise.
70789         * modules/netinet_in (netinet/in.h): Likewise.
70790         * modules/sys_select (sys_select.h): Likewise.
70791         * modules/sys_socket (sys/socket.h): Likewise.
70792         * modules/sys_stat (sys/stat.h): Likewise.
70793         * modules/sysexits (sysexits.h): Likewise.
70794         * modules/unistd (unistd.h): Likewise.
70795
70796 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70797
70798         * modules/closein-tests (Makefile.am): Distribute
70799         `test-closein.sh'.
70800
70801 2007-05-17  Bruno Haible  <bruno@clisp.org>
70802
70803         * tests/test-printf-posix.output: Renamed from
70804         tests/test-fprintf-posix.out.
70805         * modules/fprintf-posix-tests: Update.
70806         * modules/printf-posix-tests: Update.
70807         * modules/vfprintf-posix-tests: Update.
70808         * modules/vprintf-posix-tests: Update.
70809         * tests/test-fprintf-posix.sh: Update.
70810         * tests/test-printf-posix.sh: Update.
70811         * tests/test-vfprintf-posix.sh: Update.
70812         * tests/test-vprintf-posix.sh: Update.
70813         Reported by Ralf Wildenhues.
70814
70815 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70816
70817         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70818         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70819         GCC 4.2, which otherwise issues a lot of warnings.
70820         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70821         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70822         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70823         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70824         it should no longer be needed.
70825         * lib/string_.h: Likewise.
70826         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70827         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70828         * modules/inttypes (inttypes.h): Likewise.
70829         * modules/math (math.h): Likewise.
70830         * modules/search (search.h): Likewise.
70831         * modules/signal (signal.h): Likewise.
70832         * modules/stdint (stdint.h): Likewise.
70833         * modules/stdio (stdio.h): Likewise.
70834         * modules/stdlib (stdlib.h): Likewise.
70835         * modules/string (string.h): Likewise.
70836         * modules/sys_time (sys/time.h): Likewise.
70837         * modules/time (time.h): Likewise.
70838         * modules/wchar (wchar.h): Likewise.
70839         * modules/wctype (wtype.h): Likewise.
70840
70841 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70842
70843         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70844
70845 2007-05-13  Bruno Haible  <bruno@clisp.org>
70846
70847         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70848         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70849         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70850         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70851         (gl_PREREQ_STRTOK_R): Don't require it here.
70852
70853 2007-05-13  Bruno Haible  <bruno@clisp.org>
70854
70855         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70856         when used in C++ mode.
70857
70858 2007-05-12  Bruno Haible  <bruno@clisp.org>
70859
70860         * lib/linebuffer.h: Tweak doc.
70861         * lib/linebuffer.c: Likewise.
70862
70863 2007-05-12  James Youngman  <jay@gnu.org>
70864
70865         * lib/linebuffer.c (readlinebuffer_delim): New function,
70866         like readlinebuffer, but use a caller-specified delimiter.
70867         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70868         as the delimiter.
70869         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70870
70871 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70872
70873         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70874         * modules/openat (Files): Remove openat-die.c.
70875         (Depends-on): Add openat-die.
70876         * modules/openat-die: New module.
70877
70878 2007-05-06  Bruno Haible  <bruno@clisp.org>
70879
70880         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70881         Update with info about Cygwin.
70882         * doc/functions/fprintf.texi: Update.
70883         * doc/functions/printf.texi: Update.
70884         * doc/functions/snprintf.texi: Update.
70885         * doc/functions/sprintf.texi: Update.
70886         * doc/functions/vfprintf.texi: Update.
70887         * doc/functions/vprintf.texi: Update.
70888         * doc/functions/vsnprintf.texi: Update.
70889         * doc/functions/vsprintf.texi: Update.
70890         Reported by Eric Blake.
70891
70892 2007-05-06  Bruno Haible  <bruno@clisp.org>
70893
70894         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70895         padding ourselves for the floating-point directives.
70896         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70897         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70898         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70899         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70900         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70902         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70903         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70904         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70908         * tests/test-snprintf-posix.h (test_function): Also check the width
70909         and some flags in the %f directive.
70910         * tests/test-sprintf-posix.h (test_function): Likewise.
70911         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70912         * tests/test-vasprintf-posix.c (test_function): Likewise.
70913         * doc/functions/fprintf.texi: Update.
70914         * doc/functions/printf.texi: Update.
70915         * doc/functions/snprintf.texi: Update.
70916         * doc/functions/sprintf.texi: Update.
70917         * doc/functions/vfprintf.texi: Update.
70918         * doc/functions/vprintf.texi: Update.
70919         * doc/functions/vsnprintf.texi: Update.
70920         * doc/functions/vsprintf.texi: Update.
70921
70922 2007-05-06  Bruno Haible  <bruno@clisp.org>
70923
70924         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70925         pass the ' flag character to sprintf or snprintf.
70926         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70927         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70929         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70930         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70932         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70933         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70934         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70935         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70936         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70937         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70938         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70939         flag.
70940         * tests/test-sprintf-posix.h (test_function): Likewise.
70941         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70942         * tests/test-vasprintf-posix.c (test_function): Likewise.
70943         * doc/functions/fprintf.texi: Update.
70944         * doc/functions/printf.texi: Update.
70945         * doc/functions/snprintf.texi: Update.
70946         * doc/functions/sprintf.texi: Update.
70947         * doc/functions/vfprintf.texi: Update.
70948         * doc/functions/vprintf.texi: Update.
70949         * doc/functions/vsnprintf.texi: Update.
70950         * doc/functions/vsprintf.texi: Update.
70951
70952 2007-05-01  Bruno Haible  <bruno@clisp.org>
70953
70954         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70955
70956 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70959         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70960
70961 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70962
70963         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70964         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70966
70967 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70968
70969         * lib/argp-help.c (struct hol_entry): New member `ord'.
70970         (HOL_ENTRY_PTRCMP): Use ord for comparison
70971         (hol_sort): Initialize ord.
70972
70973 2007-05-01  Bruno Haible  <bruno@clisp.org>
70974
70975         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70976         Reported by Eric Blake.
70977         * doc/gnulib.texi (Function Substitutes): Update.
70978
70979 2007-05-01  Bruno Haible  <bruno@clisp.org>
70980
70981         * doc/functions.texi: Remove file, now redundant through
70982         doc/functions/*.texi.
70983
70984 2007-05-01  Bruno Haible  <bruno@clisp.org>
70985
70986         * modules/argp (Depends-on): Add sleep.
70987
70988 2007-05-01  Bruno Haible  <bruno@clisp.org>
70989
70990         * modules/sleep-tests: New file.
70991         * tests/test-sleep.c: New file.
70992
70993         * modules/sleep: New file.
70994         * lib/sleep.c: New file.
70995         * m4/sleep.m4: New file.
70996         * lib/unistd_.h (sleep): New declaration.
70997         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70998         HAVE_SLEEP.
70999         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
71000         * doc/functions/sleep.texi: Document the sleep module.
71001
71002 2007-05-01  Bruno Haible  <bruno@clisp.org>
71003
71004         * lib/sigprocmask.h: Remove file.
71005         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
71006         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
71007         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
71008         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
71009         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
71010         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
71011         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
71012         HAVE_SIGSET_T as a shell variable.
71013         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
71014         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
71015         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
71016         (Depends-on): Add signal. Remove verify.
71017         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
71018         (Include): Mention <signal.h> instead of sigprocmask.h.
71019         * NEWS: Mention the change.
71020         * lib/fatal-signal.c: Don't include sigprocmask.h.
71021
71022 2007-05-01  Bruno Haible  <bruno@clisp.org>
71023
71024         * modules/signal: New file.
71025         * lib/signal_.h: New file.
71026         * m4/signal_h.m4: New file.
71027
71028 2007-05-01  Bruno Haible  <bruno@clisp.org>
71029
71030         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
71031         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
71032         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
71033         HAVE_WCTYPE_CTMP_BUG into wctype.h.
71034
71035 2007-05-01  Bruno Haible  <bruno@clisp.org>
71036
71037         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
71038         configure time.
71039         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
71040         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
71041         * modules/sys_stat (Makefile.am): Substitute their values into
71042         sys/stat.h.
71043
71044 2007-05-01  Bruno Haible  <bruno@clisp.org>
71045
71046         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
71047         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
71048         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
71049
71050 2007-05-01  Bruno Haible  <bruno@clisp.org>
71051
71052         * doc/header/assert.texi: Undo last change: don't mention the gnulib
71053         'assert' module here.
71054
71055 2007-05-01  Bruno Haible  <bruno@clisp.org>
71056
71057         * doc/functions/*.texi: New files.
71058         * doc/functions/google-ranking.txt: New file.
71059         * doc/gnulib.texi (Function Substitutes): New chapter.
71060         (ctime, inet_ntoa): Remove sections.
71061         * doc/ctime.texi: Remove file.
71062         * doc/inet_ntoa.texi: Remove file.
71063         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
71064         dependencies.
71065         (%.info): New rule, specifying a --reference-limit.
71066
71067 2007-05-01  Bruno Haible  <bruno@clisp.org>
71068
71069         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
71070
71071 2007-05-01  Bruno Haible  <bruno@clisp.org>
71072
71073         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
71074         the portability of 'mkdir' to mingw systems.
71075
71076 2007-05-01  Bruno Haible  <bruno@clisp.org>
71077
71078         * doc/headers/google-ranking.txt: New file.
71079
71080 2007-04-30  Eric Blake  <ebb9@byu.net>
71081
71082         Prefer fseeko to fseek.
71083         * modules/getpass (Depends-on): Add fseeko.
71084         * lib/getpass.c (getpass): Use fseeko, not fseek.
71085
71086 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
71087
71088         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
71089         assumes the sorting is stable, while most qsort implementations
71090         are not.  Use argument addresses to ensure they never compare as
71091         equal.
71092
71093         * tests/test-argp-2.sh (usage-indent test): Fix output
71094         (func_compare): Restore diff options
71095         * tests/test-argp.c: Restore #include "progname.h"
71096
71097 2007-04-29  Bruno Haible  <bruno@clisp.org>
71098
71099         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
71100         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71101         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
71102         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71103         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
71104         (configure.ac): Define CHECK_SNPRINTF_POSIX.
71105         (TESTS, check_PROGRAMS): Add test-snprintf.
71106         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
71107         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
71108         (TESTS, check_PROGRAMS): Add test-vsnprintf.
71109         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
71110         assertions that fail on HP-UX, OSF/1, or IRIX.
71111         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
71112
71113 2007-04-29  Bruno Haible  <bruno@clisp.org>
71114
71115         * MODULES.html.sh (posix_functions): Remove 'contents'.
71116
71117 2007-04-29  Karl Berry  <karl@gnu.org>
71118
71119         * config/srclist.txt (gendocs_template_min): new entry.
71120
71121 2007-04-29  Bruno Haible  <bruno@clisp.org>
71122
71123         Work around fpurge bug on BSD systems.
71124         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
71125         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
71126         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
71127         fpurge to rpl_fpurge if the system already has this function.
71128         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
71129         the case where the system already has this function. Correct invariants
71130         on BSD systems.
71131         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
71132         BSD systems.
71133
71134 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71135
71136         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
71137         proposed by Sven Verdoolaege.
71138
71139         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
71140         options.
71141         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
71142         (usage and help tests): Update
71143
71144 2007-04-29  Bruno Haible  <bruno@clisp.org>
71145
71146         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71147         Print more information in case of failure. Disable a test on BeOS.
71148
71149 2007-04-29  Bruno Haible  <bruno@clisp.org>
71150
71151         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71152         This helps debugging on systems on which no gdb is available.
71153
71154 2007-04-29  Bruno Haible  <bruno@clisp.org>
71155
71156         * lib/freading.h: Improve comments.
71157         * lib/fwriting.h: Likewise.
71158         * tests/test-freading.c (main): Don't check freading immediately after
71159         repositioning. Needed for glibc.
71160
71161 2007-04-29  Bruno Haible  <bruno@clisp.org>
71162
71163         * lib/freading.c (freading): Trivial simplification.
71164
71165 2007-04-28  Bruno Haible  <bruno@clisp.org>
71166
71167         * tests/test-fwriting.c (main): Also test the interaction between
71168         fflush and fwriting.
71169         * modules/fwriting-tests (Depends-on): Add fflush.
71170
71171         * tests/test-freading.c (main): Also test the interaction between
71172         fflush and freading.
71173         * modules/freading-tests (Depends-on): Add fflush.
71174
71175 2007-04-28  Bruno Haible  <bruno@clisp.org>
71176
71177         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71178         fseeko and ftello.
71179         Suggested by Eric Blake.
71180
71181 2007-04-28  Jim Meyering  <jim@meyering.net>
71182
71183         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71184         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71185         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71186
71187 2007-04-27  Eric Blake  <ebb9@byu.net>
71188
71189         * doc/headers/assert.texi (assert.h): Document assert module use.
71190
71191 2007-04-27  Bruno Haible  <bruno@clisp.org>
71192
71193         * doc/headers/*.texi: New files.
71194         * doc/gnulib.texi (Header File Substitutes): New chapter.
71195         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71196         dependencies.
71197         (standards.info ,standards.html, standards.dvi): Update dependencies.
71198         (mostlyclean, clean): New targets.
71199
71200 2007-04-27  Bruno Haible  <bruno@clisp.org>
71201
71202         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71203         * modules/sysexits (Files, Makefile.am): Update.
71204
71205         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71206         * modules/sys_socket (Files, Makefile.am): Update.
71207
71208         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71209         * modules/sys_stat (Files, Makefile.am): Update.
71210
71211 2007-04-27  Eric Blake  <ebb9@byu.net>
71212
71213         * lib/freading.h: Improve comments.
71214         * lib/fwriting.h: Likewise.
71215         * lib/fflush.c: Likewise.
71216
71217         Fix closein for mingw.
71218         * modules/closein-tests: Add tests for closein.
71219         * tests/test-closein.c: New file.
71220         * tests/test-closein.sh: Likewise.
71221         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71222         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71223
71224 2007-04-27  Bruno Haible  <bruno@clisp.org>
71225
71226         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71227         version is < 6.
71228         * lib/math_.h [__DECC]: Likewise.
71229         * lib/stdio_.h [__DECC]: Likewise.
71230         * lib/stdlib_.h [__DECC]: Likewise.
71231         * lib/string_.h [__DECC]: Likewise.
71232         * lib/time_.h [__DECC]: Likewise.
71233         * lib/wchar_.h [__DECC]: Likewise.
71234         * lib/wctype_.h [__DECC]: Likewise.
71235
71236 2007-04-27  Bruno Haible  <bruno@clisp.org>
71237
71238         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71239
71240 2007-04-27  Bruno Haible  <bruno@clisp.org>
71241
71242         * lib/fflush.c: Add comments.
71243         * modules/fpurge-tests (Depends-on): Add fflush.
71244         * modules/freadable-tests (Depends-on): Likewise.
71245         * modules/fwritable-tests (Depends-on): Likewise.
71246
71247 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71248
71249         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71250         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71251         Report by Bruno Haible <bruno@clisp.org>.
71252
71253 2007-04-26  Eric Blake  <ebb9@byu.net>
71254
71255         Fix fflush on mingw.
71256         * modules/fflush (Depends-on): Add freading.
71257         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71258         but unread data.
71259
71260 2007-04-26  Eric Blake  <ebb9@byu.net>
71261         and Bruno Haible  <bruno@clisp.org>
71262
71263         Implement freading and fwriting.
71264         * lib/freading.c: New file.
71265         * lib/freading.h: Likewise.
71266         * m4/freading.m4: Likewise.
71267         * modules/freading: Likewise.
71268         * modules/freading-tests: Likewise.
71269         * tests/test-freading.c: Likewise.
71270         * lib/fwriting.c: New file.
71271         * lib/fwriting.h: Likewise.
71272         * m4/fwriting.m4: Likewise.
71273         * modules/fwriting: Likewise.
71274         * modules/fwriting-tests: Likewise.
71275         * tests/test-fwriting.c: Likewise.
71276         * MODULES.html.sh (File stream based Input/Output): Mention them.
71277
71278 2007-04-26  Bruno Haible  <bruno@clisp.org>
71279
71280         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71281         'long' when we assume it.
71282         Suggested by Eric Blake.
71283
71284 2007-04-26  Bruno Haible  <bruno@clisp.org>
71285
71286         Ensure fseeko, ftello are declared on glibc systems.
71287         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71288         * modules/fseeko (configure.ac-early): Likewise.
71289         * modules/ftello (configure.ac-early): Likewise.
71290         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71291         AC_FUNC_FSEEKO for this.
71292         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71293         (gl_CHECK_FSEEKO): Remove macro.
71294
71295 2007-04-26  Bruno Haible  <bruno@clisp.org>
71296
71297         * tests/test-fflush.c (main): Also check the ftell result after
71298         fflush and fseek/fseeko.
71299         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71300         file descriptor position cache in the stream.
71301         * lib/fseeko.c (rpl_fseeko): Likewise.
71302
71303 2007-04-26  Bruno Haible  <bruno@clisp.org>
71304
71305         * modules/fflush-tests (Depends-on): Add fseeko.
71306
71307 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71308             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71309
71310         * lib/argz_.h: ensure error_t definition is obtained in same
71311         mechanism system argz.h would have.
71312         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71313         argz facilities are known bad.  Err on the side of caution if
71314         cross-compiling.
71315
71316 2007-04-25  Eric Blake  <ebb9@byu.net>
71317
71318         * lib/fpurge.c (includes): Use stdlib.h for free.
71319         * tests/test-fflush.c (main): Also test fflush-fseeko.
71320
71321 2007-04-25  Bruno Haible  <bruno@clisp.org>
71322
71323         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71324         * lib/fseeko.c: New file.
71325         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71326         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71327         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71328         gl_FUNC_FSEEKO.
71329         (gl_FUNC_FSEEKO): Invoke it.
71330         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71331         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71332         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71333
71334 2007-04-25  Bruno Haible  <bruno@clisp.org>
71335
71336         * modules/fflush (Depends-on): Add ftello.
71337
71338 2007-04-25  Bruno Haible  <bruno@clisp.org>
71339
71340         * modules/ftello-tests: New file.
71341         * tests/test-ftello.c: New file.
71342
71343         * modules/ftello: New file.
71344         * m4/ftello.m4: New file.
71345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71346         HAVE_FTELLO.
71347         * lib/stdio_.h (ftello): New declaration.
71348         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71349         HAVE_FTELLO.
71350
71351 2007-04-25  Bruno Haible  <bruno@clisp.org>
71352
71353         * modules/fseeko-tests: New file.
71354         * tests/test-fseeko.c: New file.
71355
71356         * modules/fseeko: New file.
71357         * m4/fseeko.m4: New file.
71358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71359         HAVE_FSEEKO.
71360         * lib/stdio_.h (fseeko): New declaration.
71361         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71362         HAVE_FSEEKO.
71363
71364 2007-04-25  Bruno Haible  <bruno@clisp.org>
71365
71366         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71367
71368 2007-04-25  Bruno Haible  <bruno@clisp.org>
71369
71370         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71371         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71372         * tests/test-unistd.c: Likewise.
71373         * tests/test-fcntl.c: Likewise.
71374
71375 2007-04-23  Eric Blake  <ebb9@byu.net>
71376
71377         * lib/fflush.c: Fix missing include.
71378         Reported by Bruno Haible.
71379
71380 2007-04-23  Bruno Haible  <bruno@clisp.org>
71381
71382         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71383         Reported by Eric Blake.
71384
71385 2007-04-23  Bruno Haible  <bruno@clisp.org>
71386
71387         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71388
71389 2007-04-23  Bruno Haible  <bruno@clisp.org>
71390
71391         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71392
71393 2007-04-23  Bruno Haible  <bruno@clisp.org>
71394
71395         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71396         Needed on HP-UX 11.
71397
71398 2007-04-16  Eric Blake  <ebb9@byu.net>
71399
71400         Make fflush rely on fpurge.
71401         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71402         open coding all variants.
71403         * modules/fflush (Depends-on): Add fpurge and unistd.
71404         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71405         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71406
71407         Fix --with-tests compilation on cygwin.
71408         * modules/argmatch-tests (Makefile.am): List gnulib library first
71409         in LDADD.
71410         * modules/argp-tests (Makefile.am): Likewise.
71411         * modules/array-list-tests (Makefile.am): Likewise.
71412         * modules/array-oset-tests (Makefile.am): Likewise.
71413         * modules/avltree-list-tests (Makefile.am): Likewise.
71414         * modules/avltree-oset-tests (Makefile.am): Likewise.
71415         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71416         * modules/carray-list-tests (Makefile.am): Likewise.
71417         * modules/dirname-tests (Makefile.am): Likewise.
71418         * modules/frexp-tests (Makefile.am): Likewise.
71419         * modules/isnanl-tests (Makefile.am): Likewise.
71420         * modules/linked-list-tests (Makefile.am): Likewise.
71421         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71422         * modules/lock-tests (Makefile.am): Likewise.
71423         * modules/rbtree-list-tests (Makefile.am): Likewise.
71424         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71425         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71426         * modules/tls-tests (Makefile.am): Likewise.
71427         * modules/tsearch-tests (Makefile.am): Likewise.
71428         * modules/xvasprintf-tests (Makefile.am): Likewise.
71429
71430         Fix fpurge for cygwin.
71431         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71432         value.
71433         * modules/fpurge-tests (Depends-on): Clean up trash.
71434
71435 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71436
71437         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71438
71439         * m4/autobuild.m4: Re-indent.
71440
71441 2007-04-13  Bruno Haible  <bruno@clisp.org>
71442
71443         * modules/fpurge-tests: New file.
71444         * tests/test-fpurge.c: New file.
71445
71446         * modules/fpurge: New file.
71447         * lib/fpurge.h: New file.
71448         * lib/fpurge.c: New file.
71449         * m4/fpurge.m4: New file.
71450
71451 2007-04-13  Bruno Haible  <bruno@clisp.org>
71452
71453         * modules/fbufmode-tests: New file.
71454         * tests/test-fbufmode.c: New file.
71455
71456         * modules/fbufmode: New file.
71457         * lib/fbufmode.h: New file.
71458         * lib/fbufmode.c: New file.
71459         * m4/fbufmode.m4: New file.
71460
71461 2007-04-13  Bruno Haible  <bruno@clisp.org>
71462
71463         * modules/fwritable-tests: New file.
71464         * tests/test-fwritable.c: New file.
71465
71466         * modules/fwritable: New file.
71467         * lib/fwritable.h: New file.
71468         * lib/fwritable.c: New file.
71469         * m4/fwritable.m4: New file.
71470
71471 2007-04-13  Bruno Haible  <bruno@clisp.org>
71472
71473         * modules/freadable-tests: New file.
71474         * tests/test-freadable.c: New file.
71475
71476         * modules/freadable: New file.
71477         * lib/freadable.h: New file.
71478         * lib/freadable.c: New file.
71479         * m4/freadable.m4: New file.
71480
71481 2007-04-13  Bruno Haible  <bruno@clisp.org>
71482
71483         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71484         MOSTLYCLEANFILES.
71485
71486 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71487
71488         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71489         gzip bootstrap.conf to avoid dragging in i18n machinery.
71490         (gnulib_tool_option): Use it.
71491
71492 2007-04-13  Bruno Haible  <bruno@clisp.org>
71493
71494         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71495         %F directives.
71496         * tests/test-vasprintf-posix.c (test_function): Likewise.
71497         * tests/test-snprintf-posix.h (test_function): Likewise.
71498         * tests/test-sprintf-posix.h (test_function): Likewise.
71499         * tests/test-fprintf-posix.h (test_function): Likewise.
71500         * tests/test-printf-posix.h (test_function): Likewise.
71501         * tests/test-fprintf-posix.out: Likewise.
71502
71503 2007-04-13  Bruno Haible  <bruno@clisp.org>
71504
71505         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71506         * modules/tls-tests (configure.ac): Likewise.
71507         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71508
71509 2007-04-13  Bruno Haible  <bruno@clisp.org>
71510
71511         * lib/tls.c (glthread_tls_get): Fix return type.
71512         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71513
71514 2007-04-12  Eric Blake  <ebb9@byu.net>
71515
71516         * modules/gettime (Depends-on): Remove gettime.
71517         Reported by Dmitry V. Levin.
71518
71519 2007-04-12  Bruno Haible  <bruno@clisp.org>
71520
71521         * modules/fflush (Include): Mention <stdio.h>.
71522         * modules/strtoimax (Include): Mention <inttypes.h>.
71523         * modules/strtoumax (Include): Likewise.
71524
71525 2007-04-12  Eric Blake  <ebb9@byu.net>
71526
71527         * .cvsignore: New file.
71528         * .gitignore: Likewise.
71529
71530 2007-04-12  Bruno Haible  <bruno@clisp.org>
71531
71532         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71533         not before, since $(LDADD) often contains libgnu.a.
71534         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71535         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71536         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71537         Needed on Cygwin.
71538
71539 2007-04-12  Eric Blake  <ebb9@byu.net>
71540
71541         Work around glibc's failure to flush stdin on fclose.
71542         * lib/closein.c (close_stdin): Flush stdin before closing.
71543
71544         Work around glibc's failure to reset seekable stdin on exit.
71545         * modules/closein: New module.
71546         * lib/closein.c: New file.
71547         * lib/closein.h: Likewise.
71548         * m4/closein.m4: Likewise.
71549         * MODULES.html.sh (File stream based Input/Output): Document it.
71550
71551 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71552
71553         * gnulib-tool: Rename generated 'autobuild' script to
71554         'do-autobuild' in --create-megatestdir output.
71555
71556         * doc/gnulib.texi (Build robot for gnulib): Fix.
71557
71558 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71559
71560         * modules/sysexits (Depends-on): Add absolute-header.
71561
71562 2007-04-12  Eric Blake  <ebb9@byu.net>
71563
71564         No need to preserve errno on success.
71565         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71566         Reported by Bruno Haible.
71567
71568 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71569
71570         * MODULES.html.sh (Support for maintaining and releasing
71571         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71572
71573 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71574
71575         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71576
71577 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71578
71579         * modules/autobuild: New module.
71580
71581         * m4/autobuild.m4: New file.
71582
71583 2007-04-11  Bruno Haible  <bruno@clisp.org>
71584
71585         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71586         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71587         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71589         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71592         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71595         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71598         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71599         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71600         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71601         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71602         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71603         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71604         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71605         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71606         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71607         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71608         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71609         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71611         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71612         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71613         Reported by Eric Blake.
71614
71615 2007-04-11  Bruno Haible  <bruno@clisp.org>
71616
71617         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71618
71619 2007-04-10  Bruno Haible  <bruno@clisp.org>
71620
71621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71622         for NaN and Infinity. Needed on FreeBSD 6.1.
71623         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71624         regarding results for "%010a" of Infinity and NaN.
71625         * tests/test-vasprintf-posix.c (test_function): Likewise.
71626         * tests/test-snprintf-posix.h (test_function): Likewise.
71627         * tests/test-sprintf-posix.h (test_function): Likewise.
71628         * tests/test-fprintf-posix.h (test_function): Likewise.
71629         * tests/test-printf-posix.h (test_function): Likewise.
71630         * tests/test-fprintf-posix.out: Likewise.
71631
71632 2007-04-10  Bruno Haible  <bruno@clisp.org>
71633
71634         * modules/locale-tests: New file.
71635         * tests/test-locale.c: New file.
71636
71637         * modules/locale: New file.
71638         * lib/locale_.h: New file.
71639         * m4/locale_h.m4: New file.
71640
71641 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71642             Bruno Haible  <bruno@clisp.org>
71643
71644         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71645         be determined, test for availability of the copysignf, copysign,
71646         copysignl functions.
71647         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71648         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71649         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71650
71651 2007-04-09  Eric Blake  <ebb9@byu.net>
71652
71653         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71654         * modules/stdio (Makefile.am): Support fflush.
71655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71656         * modules/fflush: New file.
71657         * lib/fflush.c: Likewise.
71658         * m4/fflush.m4: Likewise.
71659         * modules/fflush-tests: New test.
71660         * tests/test-fflush.c: Likewise.
71661         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71662
71663 2007-04-06  Bruno Haible  <bruno@clisp.org>
71664
71665         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71666         (VASNPRINTF): Use signbit for faster determination whether to print a
71667         minus sign.
71668         * modules/vasnprintf (Files): Remove lib/float+.h.
71669         * modules/fprintf-posix (Depends-on): Add signbit.
71670         * modules/snprintf-posix (Depends-on): Likewise.
71671         * modules/sprintf-posix (Depends-on): Likewise.
71672         * modules/vasnprintf-posix (Depends-on): Likewise.
71673         * modules/vasprintf-posix (Depends-on): Likewise.
71674         * modules/vfprintf-posix (Depends-on): Likewise.
71675         * modules/vsnprintf-posix (Depends-on): Likewise.
71676         * modules/vsprintf-posix (Depends-on): Likewise.
71677
71678 2007-04-06  Bruno Haible  <bruno@clisp.org>
71679
71680         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71681         * tests/test-frexpl.c (main): Likewise.
71682         * tests/test-ldexpl.c (main): Likewise.
71683         * modules/frexp-tests (Depends-on): Add signbit.
71684         * modules/frexpl-tests (Depdends-on): Likewise.
71685         * modules/ldexpl-tests (Depdends-on): Likewise.
71686
71687 2007-04-06  Bruno Haible  <bruno@clisp.org>
71688
71689         * modules/signbit-tests: New file.
71690         * tests/test-signbit.c: New file.
71691
71692         * modules/signbit: New file.
71693         * lib/signbitf.c: New file.
71694         * lib/signbitd.c: New file.
71695         * lib/signbitl.c: New file.
71696         * m4/signbit.m4: New file.
71697         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71698         (signbit): New macro.
71699         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71700         REPLACE_SIGNBIT.
71701         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71702         REPLACE_FREXPL into math.h.
71703
71704 2007-04-06  Bruno Haible  <bruno@clisp.org>
71705
71706         * modules/isnanf-nolibm-tests: New file.
71707         * tests/test-isnanf.c: New file.
71708
71709         * modules/isnanf-nolibm: New file.
71710         * lib/isnanf.h: New file.
71711         * lib/isnanf.c: New file.
71712         * lib/isnan.c: Consider the USE_FLOAT macro.
71713         * m4/isnanf.m4: New file.
71714
71715 2007-04-06  Bruno Haible  <bruno@clisp.org>
71716
71717         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71718         (Link): New section.
71719
71720         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71721
71722 2007-04-06  Bruno Haible  <bruno@clisp.org>
71723
71724         Assume the 'long double' type.
71725         * m4/longdouble.m4: Remove file.
71726         * config/srclist.txt: Don't mention longdouble.m4.
71727         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71728         * lib/float+.h: Likewise.
71729         * lib/frexp.c: Likewise.
71730         * lib/printf-args.h: Likewise.
71731         * lib/printf-args.c: Likewise.
71732         * lib/printf-frexp.c: Likewise.
71733         * lib/printf-parse.c: Likewise.
71734         * lib/vasnprintf.c: Likewise.
71735         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71736         * m4/intl.m4: Likewise.
71737         * m4/isnanl.m4: Likewise.
71738         * m4/printf.m4: Likewise.
71739         * m4/printf-frexpl.m4: Likewise.
71740         * m4/vasnprintf.m4: Likewise.
71741         * modules/allocsa (Files): Remove m4/longdouble.m4.
71742         * modules/gettext (Files): Likewise.
71743         * modules/relocatable-prog-wrapper (Files): Likewise.
71744         * modules/vasnprintf (Files): Likewise.
71745         * modules/isnanl (Files): Likewise.
71746         (Include): Simplify.
71747         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71748         (Include): Simplify.
71749         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71750         (Include): Simplify.
71751         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71752         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71753         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71754         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71755         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71756         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71757         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71758         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71759         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71760         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71761         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71762         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71763         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71764         * tests/test-isnanl.c: Likewise.
71765         * tests/test-snprintf-posix.h: Likewise.
71766         * tests/test-sprintf-posix.h: Likewise.
71767         * tests/test-vasnprintf-posix.c: Likewise.
71768         * tests/test-vasnprintf-posix2.c: Likewise.
71769         * tests/test-vasprintf-posix.c: Likewise.
71770
71771 2007-04-06  Bruno Haible  <bruno@clisp.org>
71772
71773         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71774         * lib/math_.h [__DECC]: Include the overridden include file through
71775         #include_next, outside the double-inclusion guard.
71776         * lib/stdio_.h [__DECC]: Likewise.
71777         * lib/stdlib_.h [__DECC]: Likewise.
71778         * lib/string_.h [__DECC]: Likewise.
71779         * lib/time_.h [__DECC]: Likewise.
71780         * lib/wchar_.h [__DECC]: Likewise.
71781         * lib/wctype_.h [__DECC]: Likewise.
71782         * lib/inttypes_.h [__DECC]: Likewise.
71783         Reported by Albert Chin <china@thewrittenword.com> in
71784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71785
71786 2007-04-04  Eric Blake  <ebb9@byu.net>
71787
71788         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71789         1.5.x.
71790
71791 2007-04-04  Bruno Haible  <bruno@clisp.org>
71792
71793         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71794         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71795
71796 2007-04-04  Bruno Haible  <bruno@clisp.org>
71797
71798         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71799         results for "%010a" of Infinity and NaN.
71800         * tests/test-vasprintf-posix.c (test_function): Likewise.
71801         * tests/test-snprintf-posix.h (test_function): Likewise.
71802         * tests/test-sprintf-posix.h (test_function): Likewise.
71803         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71804         * tests/test-printf-posix.h (test_function): Likewise.
71805         * tests/test-fprintf-posix.out: Update.
71806         Needed for FreeBSD 6.1.
71807
71808 2007-04-04  Bruno Haible  <bruno@clisp.org>
71809
71810         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71811         directly used by the gnulib modules nor by gnulib-tool.
71812
71813 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71814
71815         * DEPENDENCIES: Give overall description of version dependency
71816         desirability.  Use more-typical names for apps.
71817         Add shell, coreutils, diffutils, grep, tar, gzip.
71818
71819 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71820
71821         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71822
71823 2007-04-04  Karl Berry  <karl@gnu.org>
71824
71825         * MODULES.html.sh (func_module): missing '.
71826
71827 2007-04-03  Bruno Haible  <bruno@clisp.org>
71828
71829         * modules/argmatch-tests (Makefile.am): New variable
71830         test_argmatch_LDADD.
71831         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71832         * modules/array-list-tests (Makefile.am): New variable
71833         test_array_list_LDADD.
71834         * modules/array-oset-tests (Makefile.am): New variable
71835         test_array_oset_LDADD.
71836         * modules/avltree-list-tests (Makefile.am): New variable
71837         test_avltree_list_LDADD.
71838         * modules/avltree-oset-tests (Makefile.am): New variable
71839         test_avltree_oset_LDADD.
71840         * modules/avltreehash-list-tests (Makefile.am): New variable
71841         test_avltreehash_list_LDADD.
71842         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71843         test_canonicalize_lgpl_LDADD.
71844         * modules/carray-list-tests (Makefile.am): New variable
71845         test_carray_list_LDADD.
71846         * modules/dirname-tests (Makefile.am): New variable
71847         test_dirname_LDADD.
71848         * modules/linked-list-tests (Makefile.am): New variable
71849         test_linked_list_LDADD.
71850         * modules/linkedhash-list-tests (Makefile.am): New variable
71851         test_linkedhash_list_LDADD.
71852         * modules/rbtree-list-tests (Makefile.am): New variable
71853         test_rbtree_list_LDADD.
71854         * modules/rbtree-oset-tests (Makefile.am): New variable
71855         test_rbtree_oset_LDADD.
71856         * modules/rbtreehash-list-tests (Makefile.am): New variable
71857         test_rbtreehash_list_LDADD.
71858         * modules/xvasprintf-tests (Makefile.am): New variable
71859         test_xvasprintf_LDADD.
71860         Reported by Eric Blake.
71861
71862 2007-04-03  Eric Blake  <ebb9@byu.net>
71863
71864         * DEPENDENCIES: Weaken m4 requirements.
71865
71866 2007-04-03  Bruno Haible  <bruno@clisp.org>
71867
71868         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71869         * modules/isnanl-tests (configure.ac): Likewise.
71870
71871 2007-04-03  Ben Pfaff  <blp@gnu.org>
71872
71873         * modules/iconv_open: Add $(srcdir)/ to source directory
71874         references in Makefile fragments that call gperf, to fix VPATH
71875         builds.
71876
71877 2007-04-03  Bruno Haible  <bruno@clisp.org>
71878
71879         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71880         * lib/ldexpl.c: Undo last change.
71881
71882 2007-04-03  Bruno Haible  <bruno@clisp.org>
71883
71884         * modules/printf-frexpl (Depends-on): Undo last change.
71885         (Files): Add m4/ldexpl.m4.
71886
71887 2007-04-03  Bruno Haible  <bruno@clisp.org>
71888
71889         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71890         * modules/isnanl (Link): New section.
71891
71892         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71893         * modules/frexp (Link): New section.
71894
71895         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71896         * modules/frexpl (Link): New section.
71897
71898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71899         * modules/ldexpl (Link): New section.
71900
71901 2007-04-03  Bruno Haible  <bruno@clisp.org>
71902
71903         * modules/TEMPLATE-EXTENDED: New file.
71904         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71905
71906 2007-04-03  Bruno Haible  <bruno@clisp.org>
71907
71908         * DEPENDENCIES: New file.
71909         Suggested by Simon Josefsson.
71910
71911 2007-04-03  Bruno Haible  <bruno@clisp.org>
71912
71913         * doc/gnulib.texi: Escape @.
71914
71915 2007-04-03  James Youngman  <jay@gnu.org>
71916         and Paul Eggert  <eggert@cs.ucla.edu>
71917
71918         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71919         birthtime on all systems that have birthtime, not just those which
71920         use st_birthtimensec rather than st_birthtim.  Putting zero in
71921         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71922         that the birth time is not available for files on an NFS mount.
71923
71924 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71925
71926         * modules/memxor: Move back from crypto/, suggested by Bruno.
71927         * modules/crypto/hmac-sha1: Fix memxor dependency.
71928
71929         * modules/crypto/gc: Moved from ../.
71930
71931 2007-04-02  Eric Blake  <ebb9@byu.net>
71932
71933         * lib/ldexpl.c (includes): Avoid libm.
71934
71935         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71936
71937 2007-04-02  Bruno Haible  <bruno@clisp.org>
71938
71939         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71940         on IRIX.
71941
71942 2007-04-02  Bruno Haible  <bruno@clisp.org>
71943
71944         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71945         x86 or x86_64 platforms running MacOS X.
71946         Reported by Ryan Schmidt <@ryandesign.com>.
71947
71948 2007-04-02  Bruno Haible  <bruno@clisp.org>
71949
71950         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71951         i386.
71952
71953 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71954
71955         * modules/crypto/arcfour: Moved from ../.
71956         * modules/crypto/arcfour-tests: Moved from ../.
71957         * modules/crypto/arctwo: Moved from ../.
71958         * modules/crypto/arctwo-tests: Moved from ../.
71959         * modules/crypto/des: Moved from ../.
71960         * modules/crypto/des-tests: Moved from ../.
71961         * modules/crypto/gc-arcfour: Moved from ../.
71962         * modules/crypto/gc-arcfour-tests: Moved from ../.
71963         * modules/crypto/gc-arctwo: Moved from ../.
71964         * modules/crypto/gc-arctwo-tests: Moved from ../.
71965         * modules/crypto/gc-des: Moved from ../.
71966         * modules/crypto/gc-des-tests: Moved from ../.
71967         * modules/crypto/gc-hmac-md5: Moved from ../.
71968         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71969         * modules/crypto/gc-hmac-sha1: Moved from ../.
71970         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71971         * modules/crypto/gc-md2: Moved from ../.
71972         * modules/crypto/gc-md2-tests: Moved from ../.
71973         * modules/crypto/gc-md4: Moved from ../.
71974         * modules/crypto/gc-md4-tests: Moved from ../.
71975         * modules/crypto/gc-md5: Moved from ../.
71976         * modules/crypto/gc-md5-tests: Moved from ../.
71977         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71978         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71979         * modules/crypto/gc-random: Moved from ../.
71980         * modules/crypto/gc-rijndael: Moved from ../.
71981         * modules/crypto/gc-rijndael-tests: Moved from ../.
71982         * modules/crypto/gc-sha1: Moved from ../.
71983         * modules/crypto/gc-sha1-tests: Moved from ../.
71984         * modules/crypto/gc-tests: Moved from ../.
71985         * modules/crypto/hmac-md5: Moved from ../.
71986         * modules/crypto/hmac-md5-tests: Moved from ../.
71987         * modules/crypto/hmac-sha1: Moved from ../.
71988         * modules/crypto/hmac-sha1-tests: Moved from ../.
71989         * modules/crypto/md2: Moved from ../.
71990         * modules/crypto/md2-tests: Moved from ../.
71991         * modules/crypto/md4: Moved from ../.
71992         * modules/crypto/md4-tests: Moved from ../.
71993         * modules/crypto/md5: Moved from ../.
71994         * modules/crypto/md5-tests: Moved from ../.
71995         * modules/crypto/memxor: Moved from ../.
71996         * modules/crypto/rijndael: Moved from ../.
71997         * modules/crypto/rijndael-tests: Moved from ../.
71998         * modules/crypto/sha1: Moved from ../.
71999
72000 2007-03-30  James Youngman  <jay@gnu.org>
72001
72002         * tests/test-stat-time.c (prepare_test): use chmod() rather than
72003         rename() to change the ctime of a file (because ctime is unaffected
72004         by rename on jfs2 on AIX 5.1).
72005         (main): Start by doing cleanup, in case a previous run failed leaving
72006         test files behind.
72007
72008 2007-03-31  Bruno Haible  <bruno@clisp.org>
72009
72010         Support old proprietary implementations of iconv.
72011         * modules/iconv_open: New file.
72012         * lib/iconv_.h: New file.
72013         * m4/iconv_h.m4: New file.
72014         * lib/iconv_open.c: New file.
72015         * lib/iconv_open-aix.gperf: New file.
72016         * lib/iconv_open-hpux.gperf: New file.
72017         * lib/iconv_open-irix.gperf: New file.
72018         * lib/iconv_open-osf.gperf: New file.
72019         * m4/iconv_open.m4: New file.
72020         * modules/linebreak (Depends-on): Add iconv_open.
72021         * modules/striconv (Depends-on): Likewise.
72022         * modules/striconveh (Depends-on): Likewise.
72023         * modules/unicodeio (Depends-on): Likewise.
72024         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
72025         (iconv_t)(-1).
72026         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
72027         conversion if cd is (iconv_t)(-1).
72028         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
72029         is not possible.
72030
72031 2007-03-31  Bruno Haible  <bruno@clisp.org>
72032
72033         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72034         work on Solaris either. Protect also second use of "autodetect_jp".
72035
72036 2007-03-31  Bruno Haible  <bruno@clisp.org>
72037
72038         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
72039         the function is not present.
72040
72041 2007-03-31  Bruno Haible  <bruno@clisp.org>
72042
72043         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
72044         the function is not present.
72045
72046 2007-03-31  Bruno Haible  <bruno@clisp.org>
72047
72048         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
72049         a bug in HP-UX iconv_open().
72050
72051 2007-03-31  Bruno Haible  <bruno@clisp.org>
72052
72053         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
72054         (Mathematics <math.h>): New section, add fpieee.
72055         (Input/output <stdio.h>): Add fseterr.
72056         (Mathematics <math.h>): New section, add printf-frexp.
72057         (Container data structures): Add sublist.
72058         (Core language properties): Add fpucw, inline.
72059         (Functions for greatest-width integer types <inttypes.h>): Add
72060         imaxabs, imaxdiv, inttypes.
72061         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
72062         isnanl-nolibm, ldexp.
72063         (Mathematics <math.h>): New section, add printf-frexpl.
72064         (Support for systems lacking POSIX:2001): Add fprintf-posix,
72065         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
72066         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
72067         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
72068         (Unicode string functions): Add unistr/u*-mbtoucr.
72069         (Java): Add javacomp-script, javaexec-script.
72070         (C#): Add csharpcomp-script, csharpexec-script.
72071         (Support for building libraries and executables): Add havelib,
72072         relocatable-*.
72073         (Support for maintaining and releasing projects): Renamed from
72074         'Support for maintaining and release projects'. Add announce-gen.
72075
72076 2007-03-31  Bruno Haible  <bruno@clisp.org>
72077
72078         * README: Talk primarily about git.
72079         (git and CVS): Renamed from CVS.
72080         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
72081         gnulib is available through git.
72082         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
72083
72084 2007-03-30  Bruno Haible  <bruno@clisp.org>
72085
72086         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
72087         * lib/poll_.h: Likewise.
72088         * lib/stat_.h: Likewise.
72089         * lib/sys_time_.h: Likewise.
72090         * lib/sysexit_.h: Likewise.
72091         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
72092         * lib/stdbool_.h: Likewise.
72093         * lib/byteswap_.h: Add double-inclusion guard.
72094
72095 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
72096
72097         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
72098
72099 2007-03-30  Karl Berry  <karl@gnu.org>
72100
72101         * config/srclist-update: double space after USA in the license
72102         substitution, since that's how it's usually (?) written.
72103
72104 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
72105
72106         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
72107         reported by Bruno Haible.
72108
72109 2007-03-29  Bruno Haible  <bruno@clisp.org>
72110
72111         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
72112         a bug in AIX iconv().
72113
72114 2007-03-29  Bruno Haible  <bruno@clisp.org>
72115
72116         * modules/ldexpl-tests: New file.
72117         * tests/test-ldexpl.c: New file.
72118
72119 2007-03-29  Bruno Haible  <bruno@clisp.org>
72120
72121         * lib/ldexpl.c: Include fpucw.h.
72122         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
72123         multiplication.
72124         * modules/ldexpl (Depends-on): Add fpucw.
72125
72126 2007-03-29  Bruno Haible  <bruno@clisp.org>
72127
72128         * modules/ldexpl: New file.
72129         * m4/ldexpl.m4: New file.
72130         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
72131         set.
72132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
72133         REPLACE_LDEXPL.
72134         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
72135         REPLACE_LDEXPL.
72136         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
72137         gl_FUNC_LDEXPL_WORKS.
72138         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
72139         * modules/mathl (Files): Remove lib/ldexpl.c.
72140         (Depends-on): Add ldexpl.
72141
72142 2007-03-29  Bruno Haible  <bruno@clisp.org>
72143
72144         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72145
72146 2007-03-29  Bruno Haible  <bruno@clisp.org>
72147
72148         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72149         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72150         and possibly also HP-UX.
72151         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72152         work on AIX, IRIX, HP-UX, OSF/1.
72153         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72154         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72155         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72156         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72157         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72158         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72159
72160 2007-03-29  Bruno Haible  <bruno@clisp.org>
72161
72162         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72163
72164 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72165
72166         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72167         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72168
72169 2007-03-29  Eric Blake  <ebb9@byu.net>
72170
72171         * lib/acl-internal.h: Remove redundant include.
72172         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72173         Cygwin when a file is locked.
72174
72175 2007-03-29  Bruno Haible  <bruno@clisp.org>
72176
72177         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72178         file.
72179         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72180
72181 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72184         try to remove a parent directory if the child couldn't be removed
72185         (except for the first rmdir, which could fail because the child
72186         doesn't exist).  Problem reported by Jeff Blaine in
72187         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72188
72189 2007-03-28  Bruno Haible  <bruno@clisp.org>
72190
72191         * lib/striconveh.c (utf8conv_carefully): New function.
72192         (mem_cd_iconveh_internal): Invoke it.
72193
72194 2007-03-28  Bruno Haible  <bruno@clisp.org>
72195
72196         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72197         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72198         input.
72199         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72200         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72201         unistr/u8-uctomb.
72202
72203 2007-03-28  Bruno Haible  <bruno@clisp.org>
72204
72205         * modules/unistr/u8-mbtoucr: New file.
72206         * lib/unistr/u8-mbtoucr.c: New file.
72207         * modules/unistr/u16-mbtoucr: New file.
72208         * lib/unistr/u16-mbtoucr.c: New file.
72209         * modules/unistr/u16-mbtoucr: New file.
72210         * lib/unistr/u16-mbtoucr.c: New file.
72211         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72212
72213 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72214             Bruno Haible  <bruno@clisp.org>
72215
72216         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72217         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72218         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72219
72220         * m4/stdio_h.m4: Add stubs for vasprintf too.
72221
72222         * modules/stdio: Support vasprintf in sed command.
72223
72224         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72225         vasprintf.h.  Add stdio module indicator.
72226
72227         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72228         vasprintf.h.
72229
72230         * lib/vasprintf.h: File removed.
72231
72232         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72233         * lib/vasprintf.c: Ditto.
72234         * lib/xvasprintf.c: Ditto.
72235         * tests/test-vasprintf-posix.c: Ditto.
72236         * tests/test-vasprintf.c: Ditto.
72237
72238 2007-03-27  Bruno Haible  <bruno@clisp.org>
72239
72240         Make vasnprintf multithread-safe.
72241         * lib/vasnprintf.c (decimal_point_char): New function.
72242         (VASNPRINTF): Use it.
72243         Suggested by Simon Josefsson.
72244
72245 2007-03-27  Eric Blake  <ebb9@byu.net>
72246
72247         Support sub-second birthtime on cygwin.
72248         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72249         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72250         (get_stat_birthtime): Also work with st_birthtim.
72251
72252 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72255         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72256         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72257         (get_stat_birthtime_ns): Simplify compile-time tests.
72258         (get_stat_birthtime): Change the API to look like
72259         get_stat_mtime etc., except return a negative tv_nsec on error.
72260         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72261         Don't check for "spare" fields.
72262         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72263         or for struct stat.st_birthtime, as these tests aren't used.
72264         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72265
72266 2007-03-27  Bruno Haible  <bruno@clisp.org>
72267
72268         * lib/stat-time.h: Include <sys/stat.h>.
72269
72270 2007-03-27  James Youngman  <jay@gnu.org>
72271
72272         * lib/stat-time.h (get_stat_birthtime): New function for
72273           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72274         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72275           and its variants.
72276         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72277         * modules/stat-time-test: New file.
72278         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72279
72280 2007-03-26  Bruno Haible  <bruno@clisp.org>
72281
72282         Better support of signalling NaNs.
72283         * lib/atanl.c: Include isnanl.h.
72284         (atanl): Perform test for NaN at the beginning of the function and
72285         through a call to isnanl.
72286         * lib/cosl.c: Include isnanl.h.
72287         (cosl): Perform test for NaN at the beginning of the function and
72288         through a call to isnanl.
72289         * lib/ldexpl.c: Include isnanl.h.
72290         (ldexpl): Perform test for NaN through a call to isnanl.
72291         * lib/logl.c: Include isnanl.h.
72292         (logl): Perform test for NaN at the beginning of the function and
72293         through a call to isnanl.
72294         * lib/sinl.c: Include isnanl.h.
72295         (sinl): Perform test for NaN at the beginning of the function and
72296         through a call to isnanl.
72297         * lib/sqrtl.c: Include isnanl.h.
72298         (sqrtl): Perform test for NaN at the beginning of the function and
72299         through a call to isnanl.
72300         * lib/tanl.c: Include isnanl.h.
72301         (tanl): Perform test for NaN at the beginning of the function and
72302         through a call to isnanl.
72303         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72304         * modules/mathl (Depends-on): Add isnanl.
72305
72306 2007-03-26  Eric Blake  <ebb9@byu.net>
72307
72308         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72309         regression in logic sense of previous patch.
72310
72311 2007-03-26  Bruno Haible  <bruno@clisp.org>
72312
72313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72314         unportable shell command "if ! ...".
72315         Reported by Ralf Wildenhues.
72316
72317 2007-03-25  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72320         <sysexits.h> file, and only add EX_CONFIG.
72321         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72322         absolute file name and whether it is sufficient. Substitute also
72323         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72324         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72325         ABSOLUTE_SYSEXITS_H into sysexits.h.
72326
72327 2007-03-25  Bruno Haible  <bruno@clisp.org>
72328
72329         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72330         hints is NULL.
72331
72332 2007-03-25  Bruno Haible  <bruno@clisp.org>
72333
72334         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72335         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72336
72337 2007-03-25  Bruno Haible  <bruno@clisp.org>
72338
72339         * lib/vasnprintf.c: Include langinfo.h.
72340         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72341         multithread-safe.
72342         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72343         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72344         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72345         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72346         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72347         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72348         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72350         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72351         Reported by Simon Josefsson.
72352
72353 2007-03-25  Bruno Haible  <bruno@clisp.org>
72354
72355         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72356         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72357         * modules/vasnprintf (Depends-on): Add stdint.
72358
72359 2007-03-25  Bruno Haible  <bruno@clisp.org>
72360
72361         * modules/fpieee: New file.
72362         * m4/fpieee.m4: New file.
72363         * modules/isnan-nolibm (Depends-on): Add fpieee.
72364         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72365         * modules/isnanl (Depends-on): Add fpieee.
72366
72367 2007-03-25  Bruno Haible  <bruno@clisp.org>
72368
72369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72370
72371 2007-03-25  Bruno Haible  <bruno@clisp.org>
72372
72373         Avoid test failures on IRIX 6.5.
72374         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72375         (main): Use it.
72376         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72377         macros.
72378         (main): Use them.
72379
72380 2007-03-25  Bruno Haible  <bruno@clisp.org>
72381
72382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72383         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72384         exists but doesn't work.
72385         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72386         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72388         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72389         math.h.
72390
72391 2007-03-25  Bruno Haible  <bruno@clisp.org>
72392
72393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72394         returns inf. Needed on IRIX 6.5.
72395
72396 2007-03-25  Bruno Haible  <bruno@clisp.org>
72397
72398         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72399         (main): Use isnanl instead of x != x idiom.
72400         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72401
72402         * tests/test-frexp.c: Include isnan.h.
72403         (main): Use isnan instead of x != x idiom.
72404         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72405
72406 2007-03-25  Bruno Haible  <bruno@clisp.org>
72407
72408         * tests/test-frexp.c (NaN): New function/macro.
72409         (main): Use it instead of 0.0 / 0.0.
72410         * tests/test-isnan.c (NaN): New function/macro.
72411         (main): Use it instead of 0.0 / 0.0.
72412         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72413         (test_function): Use it instead of 0.0 / 0.0.
72414         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72415         (test_function): Use it instead of 0.0 / 0.0.
72416         * tests/test-snprintf-posix.h (NaN): New function/macro.
72417         (test_function): Use it instead of 0.0 / 0.0.
72418         * tests/test-sprintf-posix.h (NaN): New function/macro.
72419         (test_function): Use it instead of 0.0 / 0.0.
72420         * tests/test-fprintf-posix.h (NaN): New function/macro.
72421         (test_function): Use it instead of 0.0 / 0.0.
72422         * tests/test-printf-posix.h (NaN): New function/macro.
72423         (test_function): Use it instead of 0.0 / 0.0.
72424
72425         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72426
72427 2007-03-25  Bruno Haible  <bruno@clisp.org>
72428
72429         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72430
72431 2007-03-25  Bruno Haible  <bruno@clisp.org>
72432
72433         * lib/regexec.c (merge_state_with_log): Make static.
72434
72435 2007-03-25  Bruno Haible  <bruno@clisp.org>
72436
72437         * lib/trigl.c (kernel_rem_pio2): Make static.
72438
72439 2007-03-25  Bruno Haible  <bruno@clisp.org>
72440
72441         * lib/sincosl.c (sincosl_table): Make static.
72442
72443 2007-03-25  Bruno Haible  <bruno@clisp.org>
72444
72445         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72446         if the compiler does not support C99.
72447
72448 2007-03-25  Bruno Haible  <bruno@clisp.org>
72449
72450         * modules/time (Makefile.am): Ensure all rule action lines start with a
72451         tab.
72452
72453 2007-03-24  Bruno Haible  <bruno@clisp.org>
72454
72455         * modules/tsearch-tests: New file.
72456         * tests/test-tsearch.sh: New file.
72457         * tests/test-tsearch.c: New file, mostly copied from glibc.
72458
72459         * modules/search-tests: New file.
72460         * tests/test-search.c: New file.
72461
72462         * modules/search: New file.
72463         * lib/search_.h: New file, incorporating lib/tsearch.h.
72464         * m4/search_h.m4: New file.
72465         * lib/tsearch.h: Remove file.
72466         * lib/tsearch.c: Include search.h instead of tsearch.h.
72467         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72468         HAVE_TSEARCH.
72469         * modules/tsearch (Files): Remove lib/tsearch.h.
72470         (Depends-on): Add search.
72471         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72472         (Include): Change tsearch.h into search.h.
72473
72474 2007-03-24  Bruno Haible  <bruno@clisp.org>
72475
72476         * modules/fpucw: New file.
72477         * lib/fpucw.h: New file.
72478         * lib/frexp.c: Include fpucw.h.
72479         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72480         (FUNC): Use them.
72481         * lib/printf-frexp.c: Include fpucw.h.
72482         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72483         (FUNC): Use them.
72484         * lib/vasnprintf.c: Include fpucw.h.
72485         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72486         'long double' calculations.
72487         * tests/test-frexpl.c: Include fpucw.h.
72488         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72489         * tests/test-printf-frexpl.c: Include fpucw.h.
72490         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72491         * modules/frexpl (Depends-on): Add fpucw.
72492         * modules/printf-frexpl (Depends-on): Likewise.
72493         * modules/fprintf-posix (Depends-on): Likewise.
72494         * modules/snprintf-posix (Depends-on): Likewise.
72495         * modules/sprintf-posix (Depends-on): Likewise.
72496         * modules/vasnprintf-posix (Depends-on): Likewise.
72497         * modules/vasprintf-posix (Depends-on): Likewise.
72498         * modules/vfprintf-posix (Depends-on): Likewise.
72499         * modules/vsnprintf-posix (Depends-on): Likewise.
72500         * modules/vsprintf-posix (Depends-on): Likewise.
72501         * modules/frexpl-tests (Depends-on): Likewise.
72502         * modules/printf-frexpl-tests (Depends-on): Likewise.
72503
72504 2007-03-24  Bruno Haible  <bruno@clisp.org>
72505
72506         * lib/float+.h: New file.
72507         * lib/isnan.c: Include float+.h.
72508         (SIZE): New macro.
72509         (FUNC): Compare only SIZE bytes of the value.
72510         * lib/vasnprintf.c: Include float+.h.
72511         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72512         SIZEOF_LDBL or SIZEOF_DBL bytes.
72513         * modules/isnan-nolibm (Files): Add lib/float+.h.
72514         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72515         * modules/isnanl (Files): Add lib/float+.h.
72516         * modules/vasnprintf (Files): Add lib/float+.h.
72517
72518 2007-03-24  Bruno Haible  <bruno@clisp.org>
72519
72520         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72521         include isnanl-nolibm.h.
72522
72523 2007-03-24  Bruno Haible  <bruno@clisp.org>
72524
72525         * tests/test-read-file.c (main): Don't produce spurious output for
72526         expected situations. Make the test fail if it encountered unexpected
72527         results.
72528
72529 2007-03-24  Bruno Haible  <bruno@clisp.org>
72530
72531         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72532         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72533
72534 2007-03-24  Bruno Haible  <bruno@clisp.org>
72535
72536         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72537
72538 2007-03-24  Bruno Haible  <bruno@clisp.org>
72539
72540         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72541         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72542
72543         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72544         * modules/utf8-ucs4: Turn into a symbolic link to module
72545         unistr/u8-mbtouc.
72546
72547         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72548         utf8-ucs4-unsafe.
72549         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72550         unistr/u8-mbtouc-unsafe.
72551
72552         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72553         * modules/utf16-ucs4: Turn into a symbolic link to module
72554         unistr/u16-mbtouc.
72555
72556         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72557         utf16-ucs4-unsafe.
72558         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72559         unistr/u16-mbtouc-unsafe.
72560
72561         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72562         * modules/ucs4-utf8: Turn into a symbolic link to module
72563         unistr/u8-ubtomb.
72564
72565         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72566         * modules/ucs4-utf16: Turn into a symbolic link to module
72567         unistr/u16-ubtomb.
72568
72569 2007-03-24  Bruno Haible  <bruno@clisp.org>
72570
72571         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72572         Enable the function only if HAVE_INLINE.
72573         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72574         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72575         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72576         Enable the function only if HAVE_INLINE.
72577         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72578         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72579         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72580         Enable the function only if HAVE_INLINE.
72581         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72582         Enable the function only if HAVE_INLINE.
72583         * modules/utf8-ucs4: Update.
72584         * modules/utf8-ucs4-unsafe: Update.
72585         * modules/utf16-ucs4: Update.
72586         * modules/utf16-ucs4-unsafe: Update.
72587         * modules/ucs4-utf8: Update.
72588         * modules/ucs4-utf16: Update.
72589
72590 2007-03-24  Bruno Haible  <bruno@clisp.org>
72591
72592         * lib/utf8-ucs4.h: Remove file.
72593         * lib/utf8-ucs4-unsafe.h: Remove file.
72594         * lib/utf16-ucs4.h: Remove file.
72595         * lib/utf16-ucs4-unsafe.h: Remove file.
72596         * lib/ucs4-utf8.h: Remove file.
72597         * lib/ucs4-utf16.h: Remove file.
72598         * lib/unistr.h: Include their previous contents.
72599         * m4/utf-ucs4.m4: Remove file.
72600         * m4/ucs4-utf.m4: Remove file.
72601         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72602         (Depends-on): Add unistr/base.
72603         (configure.ac): Remove gl_UTF_UCS4.
72604         (Makefile.am): Update.
72605         (Include): Change to unistr.h.
72606         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72607         (Depends-on): Add unistr/base.
72608         (configure.ac): Remove gl_UTF_UCS4.
72609         (Makefile.am): Update.
72610         (Include): Change to unistr.h.
72611         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72612         (Depends-on): Add unistr/base.
72613         (configure.ac): Remove gl_UTF_UCS4.
72614         (Makefile.am): Update.
72615         (Include): Change to unistr.h.
72616         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72617         (Depends-on): Add unistr/base.
72618         (configure.ac): Remove gl_UTF_UCS4.
72619         (Makefile.am): Update.
72620         (Include): Change to unistr.h.
72621         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72622         (Depends-on): Add unistr/base.
72623         (configure.ac): Remove gl_UCS4_UTF.
72624         (Makefile.am): Update.
72625         (Include): Change to unistr.h.
72626         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72627         (Depends-on): Add unistr/base.
72628         (configure.ac): Remove gl_UCS4_UTF.
72629         (Makefile.am): Update.
72630         (Include): Change to unistr.h.
72631         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72632         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72633         utf8-ucs4-unsafe.h.
72634         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72635         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72636         utf16-ucs4-unsafe.h.
72637         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72638         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72639         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72640         * lib/unistr/u8-strchr.c: Likewise.
72641         * lib/unistr/u8-strrchr.c: Likewise.
72642         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72643         * lib/unistr/u16-strchr.c: Likewise.
72644         * lib/unistr/u16-strrchr.c: Likewise.
72645         * lib/striconveh.c: Update.
72646         * lib/linebreak.c: Update.
72647
72648 2007-03-24  Bruno Haible  <bruno@clisp.org>
72649
72650         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72651         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72652
72653 2007-03-22  Bruno Haible  <bruno@clisp.org>
72654
72655         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72656
72657 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72658
72659         * MODULES.html.sh (File system functions): New module write-any-file.
72660         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72661         * m4/write-any-file.m4: New files.
72662
72663 2007-03-23  Eric Blake  <ebb9@byu.net>
72664
72665         * gnulib-tool: Rearrange space-tab sequences, since some editors
72666         like to eat them.
72667
72668 2007-03-23  Eric Blake  <ebb9@byu.net>
72669
72670         * lib/version-etc.c (version_etc_va): Update license wording to
72671         be more concise.  Recommended by Richard Stallman.
72672
72673 2007-03-22  Bruno Haible  <bruno@clisp.org>
72674
72675         * lib/poll.c (MSG_PEEK): New fallback definition.
72676
72677 2007-03-22  Bruno Haible  <bruno@clisp.org>
72678
72679         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72680         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72681         (main): Update.
72682         Fixes a compilation error on BeOS.
72683
72684 2007-03-22  Bruno Haible  <bruno@clisp.org>
72685
72686         * modules/frexpl-tests: New file.
72687         * tests/test-frexpl.c: New file.
72688
72689         * modules/frexpl: New file.
72690         * m4/frexpl.m4: New file.
72691         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72692         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72694         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72695         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72696         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72697
72698 2007-03-22  Bruno Haible  <bruno@clisp.org>
72699
72700         * lib/frexpl.c: Share code with lib/frexp.c.
72701         * modules/mathl (Files): Add lib/frexp.c.
72702         (Depends-on): Add isnanl-nolibm.
72703
72704 2007-03-22  Bruno Haible  <bruno@clisp.org>
72705
72706         * modules/printf-frexp (Files): Add m4/frexp.m4.
72707         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72708         only if the found frexp function actually works.
72709
72710 2007-03-22  Bruno Haible  <bruno@clisp.org>
72711
72712         * lib/frexp.c: Remove older implementation that uses divisions.
72713
72714 2007-03-21  Bruno Haible  <bruno@clisp.org>
72715
72716         * modules/frexp-tests: New file.
72717         * tests/test-frexp.c: New file.
72718
72719         * modules/frexp: New file.
72720         * lib/frexp.c: New file.
72721         * m4/frexp.m4: New file.
72722         * lib/math_.h (frexp): New declaration.
72723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72724         REPLACE_FREXP.
72725         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72726
72727 2007-03-21  Bruno Haible  <bruno@clisp.org>
72728
72729         * modules/isnanl-tests: New file.
72730         * tests/test-isnanl.c: New file.
72731
72732         * modules/isnanl: New file.
72733         * lib/isnanl.h: New file.
72734         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72735         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72736         gl_FUNC_ISNANL_WORKS.
72737         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72738         New macros.
72739
72740 2007-03-21  Bruno Haible  <bruno@clisp.org>
72741
72742         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72743         lib/isnanl.h.
72744         (Include): Update.
72745         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72746         * lib/vasnprintf.c: Update.
72747         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72748         tests/test-isnanl.h, remove tests/test-isnanl.c.
72749         (Makefile.am): Update.
72750         * tests/test-isnanl-nolibm.c: New file.
72751         * tests/test-isnanl.h: New file.
72752         * tests/test-isnanl.c: Remove file.
72753
72754 2007-03-21  Jim Meyering  <jim@meyering.net>
72755
72756         When trying to open ".", treat ESTALE like EACCES.
72757         * lib/savewd.c (savewd_save): Resort to forking not just upon
72758         failure with EACCES, but also when errno is ESTALE.
72759
72760 2007-03-20  Bruno Haible  <bruno@clisp.org>
72761
72762         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72763         Needed on AIX 5.1. Reported by Matthew Woehlke.
72764
72765 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72766
72767         Suggestions by Bruno Haible:
72768         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72769         our own.
72770         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72771         * modules/acl (Depends-on): Add gettext.
72772
72773 2007-03-19  Bruno Haible  <bruno@clisp.org>
72774
72775         * modules/iconvme: Remove file.
72776         * lib/iconvme.h: Remove file.
72777         * lib/iconvme.c: Remove file.
72778         * m4/iconvme.m4: Remove file.
72779
72780 2007-03-19  Bruno Haible  <bruno@clisp.org>
72781
72782         * doc/relocatable-maint.texi: Break long shell script line.
72783         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72784
72785 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72788         handle file_has_acl.
72789         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72790         * lib/acl.c: Move header inclusions and related macro defns into
72791         lib/acl-internal.h.
72792         (S_ISLNK): Remove defn, since that's now done for us.
72793         (file_has_acl): Move to lib/file-has-acl.c.
72794         Call acl_trivial if available.  This is the crucial part of the fix.
72795         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72796         shared within the library.  Rewrite a bit, partly to make it compatible
72797         with the GNU coding style.
72798         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72799         Remove unnecessary double-quotes.
72800         Don't test for acl_to_text; the build will catch that.
72801         Replace acl_entries if it doesn't exist and it is needed.
72802         Check for -lsec and acl_trivial (as used on Solaris 10).
72803         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72804         lib/file-has-acl.c.
72805         (Depends-on): Add sys_stat, for S_ISLNK.
72806
72807 2007-03-19  Ben Pfaff  <blp@gnu.org>
72808
72809         * doc/gnulib.texi: Fix typos.
72810         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72811
72812 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72815         If size is zero here, buf must be zero.
72816
72817 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72818
72819         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72820         <bruno@clisp.org>.
72821
72822 2007-03-18  Bruno Haible  <bruno@clisp.org>
72823
72824         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72825         Suggested by Eric Blake.
72826
72827 2007-03-18  Ben Pfaff  <blp@gnu.org>
72828
72829         * doc/relocatable.texi: Recommend using as prefix a directory
72830         that does not exist and will never be created.  Based on
72831         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72832         and others.
72833
72834 2007-03-17  Bruno Haible  <bruno@clisp.org>
72835
72836         * lib/fchownat.c: Include lchown.h.
72837
72838 2007-03-17  Bruno Haible  <bruno@clisp.org>
72839
72840         Fix endless loop when the given allocated size was > INT_MAX.
72841         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72842         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72843         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72844         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72845         * lib/sprintf.c (sprintf): Likewise.
72846
72847 2007-03-17  Bruno Haible  <bruno@clisp.org>
72848
72849         * tests/test-argp-2.sh (func_compare): Output a context diff.
72850
72851 2007-03-17  Bruno Haible  <bruno@clisp.org>
72852
72853         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72854         locale's decimal-point character.
72855
72856 2007-03-17  Bruno Haible  <bruno@clisp.org>
72857
72858         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72859         before comparing it. Needed because on some platforms (e.g. x86) a
72860         'long double' occupies less bytes than sizeof (long double).
72861
72862 2007-03-17  Bruno Haible  <bruno@clisp.org>
72863
72864         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72865         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72866         * tests/test-getaddrinfo.c (simple): Likewise.
72867         * tests/test-read-file.c (main): Likewise.
72868
72869 2007-03-17  Bruno Haible  <bruno@clisp.org>
72870
72871         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72872
72873 2007-03-17  Bruno Haible  <bruno@clisp.org>
72874
72875         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72876         unused variable.
72877
72878 2007-03-17  Bruno Haible  <bruno@clisp.org>
72879
72880         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72881         * tests/test-c-strncasecmp.c: Likewise.
72882
72883 2007-03-17  Bruno Haible  <bruno@clisp.org>
72884
72885         * modules/stdlib (Depends-on): Add unistd.
72886         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72887         Needed for MacOS X 10.3.
72888
72889 2007-03-17  Bruno Haible  <bruno@clisp.org>
72890
72891         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72892
72893 2007-03-17  Bruno Haible  <bruno@clisp.org>
72894
72895         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72896
72897 2007-03-17  Bruno Haible  <bruno@clisp.org>
72898
72899         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72900         to reflect files copied from gnulib (with or without modifications).
72901         Suggested by Jim Meyering.
72902
72903 2007-03-17  Eric Blake  <ebb9@byu.net>
72904
72905         * NEWS: Document stdlib change from 2007-02-18.
72906
72907 2007-03-17  Jim Meyering  <jim@meyering.net>
72908
72909         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72910         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72911         someone uses a name containing shell meta-characters.
72912         Reported by Alfred M. Szmidt.
72913
72914         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72915
72916 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72917
72918         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72919         and copy gettext configuration files only if configure.ac contains
72920         a use of AM_GNU_GETTEXT_VERSION.
72921
72922 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72923
72924         * build-aux/bootstrap (gnulib_name): New variable.
72925         (gnulib_tool_options): Use it.
72926
72927 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72928
72929         * tests/test-des.c: Use new namespace.
72930
72931 2007-03-15  Bruno Haible  <bruno@clisp.org>
72932
72933         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72934         Reported by James Youngman <jay@gnu.org>.
72935
72936 2007-03-15  Bruno Haible  <bruno@clisp.org>
72937
72938         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72939         declared prototype. Needed with cc on OSF/1 5.1.
72940
72941 2007-03-15  Bruno Haible  <bruno@clisp.org>
72942
72943         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72944         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72945         (struct gl_list_implementation): Add dispose_fn argument to the
72946         'create_empty', 'create' methods.
72947         (struct gl_list_impl_base): Add field 'dispose_fn'.
72948         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72949         argument.
72950         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72951         dispose_fn argument.
72952         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72953         dispose_fn on the dropped values.
72954         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72955         dispose_fn argument.
72956         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72957         dropped values.
72958         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72959         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72960         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72961         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72962         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72963         argument.
72964         (gl_tree_list_free): Call dispose_fn on the dropped values.
72965         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72966         the dropped values.
72967         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72968         Add dispose_fn argument.
72969         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72970         Call dispose_fn on the dropped values.
72971         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72972         Add dispose_fn argument.
72973         (gl_sublist_create): Initialize the 'dispose_fn' field.
72974         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72975         * tests/test-array_list.c (main): Update.
72976         * tests/test-carray_list.c (main): Update.
72977         * tests/test-avltree_list.c (main): Update.
72978         * tests/test-rbtree_list.c (main): Update.
72979         * tests/test-avltreehash_list.c (main): Update.
72980         * tests/test-rbtreehash_list.c (main): Update.
72981         * tests/test-linked_list.c (main): Update.
72982         * tests/test-linkedhash_list.c (main): Update.
72983         * tests/test-array_oset.c (main): Update.
72984
72985 2007-03-15  Bruno Haible  <bruno@clisp.org>
72986
72987         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72988         (gl_oset_create_empty): Add dispose_fn argument.
72989         (struct gl_oset_implementation): Add dispose_fn argument to
72990         'create_empty' method.
72991         (struct gl_oset_impl_base): Add dispose_fn field.
72992         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72993         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72994         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72995         values.
72996         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72997         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72998         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72999         dropped value.
73000         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
73001         dropped value.
73002         * tests/test-array_oset.c (main): Update.
73003         * tests/test-avltree_oset.c (main): Update.
73004         * tests/test-rbtree_oset.c (main): Update.
73005         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
73006
73007 2007-03-13  Bruno Haible  <bruno@clisp.org>
73008
73009         * tests/test-stdbool.c (i): Update after last patch.
73010
73011 2007-03-12  Bruno Haible  <bruno@clisp.org>
73012
73013         * lib/quotearg.c: Include <wctype.h> early, before the definition of
73014         the iswprint macro. Needed on Solaris 2.5.1.
73015
73016 2007-03-12  Bruno Haible  <bruno@clisp.org>
73017
73018         * tests/test-printf-frexp.c (main): Declare x as volatile.
73019
73020 2007-03-12  Simon Josefsson  <simon@josefsson.org>
73021
73022         * doc/gnulib.texi (Build robot for gnulib): New section.
73023
73024 2007-03-12  Jim Meyering  <jim@meyering.net>
73025
73026         * build-aux/bootstrap: New file.
73027         * build-aux/bootstrap.conf: New file, from coreutils.
73028
73029 2007-03-11  Bruno Haible  <bruno@clisp.org>
73030
73031         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
73032
73033 2007-03-12  Simon Josefsson  <simon@josefsson.org>
73034
73035         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
73036         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
73037         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
73038
73039 2007-03-11  Bruno Haible  <bruno@clisp.org>
73040
73041         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
73042         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
73043
73044 2007-03-11  Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
73047         formula. Needed for SunPRO C 5.0.
73048
73049 2007-03-11  Bruno Haible  <bruno@clisp.org>
73050
73051         * modules/long-options (Depends-on): Add getopt.
73052
73053 2007-03-11  Bruno Haible  <bruno@clisp.org>
73054
73055         * modules/modechange (Depends-on): Add stdbool.
73056
73057 2007-03-11  Bruno Haible  <bruno@clisp.org>
73058
73059         * modules/i-ring (Depends-on): Add stdbool.
73060
73061 2007-03-11  Bruno Haible  <bruno@clisp.org>
73062
73063         * modules/gc-des (Depends-on): Add stdbool.
73064
73065 2007-03-11  Bruno Haible  <bruno@clisp.org>
73066
73067         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
73068
73069 2007-03-11  Bruno Haible  <bruno@clisp.org>
73070
73071         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
73072
73073 2007-03-11  Bruno Haible  <bruno@clisp.org>
73074
73075         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
73076
73077 2007-03-11  Bruno Haible  <bruno@clisp.org>
73078
73079         * lib/vasnprintf.c (sprintf): Undefine.
73080
73081 2007-03-11  Bruno Haible  <bruno@clisp.org>
73082
73083         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
73084         initializers in SunPRO C and Compaq C compilers.
73085
73086 2007-03-11  Bruno Haible  <bruno@clisp.org>
73087
73088         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
73089         decrementing code ANSI C compliant.
73090
73091 2007-03-11  Bruno Haible  <bruno@clisp.org>
73092
73093         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
73094         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
73095
73096 2007-03-11  Bruno Haible  <bruno@clisp.org>
73097
73098         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
73099         <stdbool.h> substitute doesn't pass.
73100
73101 2007-03-11  Bruno Haible  <bruno@clisp.org>
73102
73103         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
73104
73105 2007-03-11  Bruno Haible  <bruno@clisp.org>
73106
73107         * gnulib-tool (func_create_megatestdir): Create also an autobuild
73108         script, for submission to autobuild.josefsson.org.
73109
73110 2007-03-10  Bruno Haible  <bruno@clisp.org>
73111
73112         * modules/canonicalize-lgpl-tests: New file.
73113         * tests/test-canonicalize-lgpl.sh: New file.
73114         * tests/test-canonicalize-lgpl.c: New file.
73115
73116         * modules/c-strcase-tests: New file.
73117         * tests/test-c-strcase.sh: New file.
73118         * tests/test-c-strcasecmp.c: New file.
73119         * tests/test-c-strncasecmp.c: New file.
73120
73121         * modules/atexit-tests: New file.
73122         * tests/test-atexit.sh: New file.
73123         * tests/test-atexit.c: New file.
73124
73125 2007-03-10  Bruno Haible  <bruno@clisp.org>
73126
73127         * tests/test-binary-io.sh: Use temporary filenames that are not so
73128         likely to clash with those of other tests (in a parallel make).
73129         * tests/test-binary-io.c: Likewise.
73130
73131 2007-03-10  Bruno Haible  <bruno@clisp.org>
73132
73133         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
73134         fallback; use #error instead.
73135         Suggested by Simon Josefsson.
73136
73137 2007-03-10  Bruno Haible  <bruno@clisp.org>
73138
73139         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
73140         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
73141         first and the last.
73142
73143 2007-03-10  Bruno Haible  <bruno@clisp.org>
73144
73145         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73146
73147 2007-03-10  Bruno Haible  <bruno@clisp.org>
73148
73149         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73150         "make distcheck".
73151         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73152         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73153         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73154
73155 2007-03-10  Bruno Haible  <bruno@clisp.org>
73156
73157         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73158         variable.
73159         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73160         variable.
73161
73162 2007-03-09  Eric Blake  <ebb9@byu.net>
73163         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73164
73165         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73166         types are not being provided by gnulib.
73167         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73168         types are supported.
73169
73170 2007-03-10  Bruno Haible  <bruno@clisp.org>
73171
73172         * lib/stdio_.h (__attribute__): New macro.
73173         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73174         vsprintf): Specify __attribute__ __format__ for GCC.
73175         Suggested by Eric Blake.
73176
73177 2007-03-09  Bruno Haible  <bruno@clisp.org>
73178
73179         * modules/printf-posix-tests: New file.
73180         * tests/test-printf-posix.sh: New file.
73181         * tests/test-printf-posix.c: New file.
73182
73183         * modules/printf-posix: New file.
73184         * lib/printf.c: New file.
73185         * m4/printf-posix-rpl.m4: New file.
73186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73187         REPLACE_PRINTF.
73188         * lib/stdio_.h (printf): New declaration.
73189         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73190         ____strfmon____): New macros.
73191         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73192         REPLACE_PRINTF.
73193
73194 2007-03-09  Bruno Haible  <bruno@clisp.org>
73195
73196         * tests/test-vasnprintf-posix2.sh: New file.
73197         * tests/test-vasnprintf-posix2.c: New file.
73198         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73199         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73200         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73201
73202         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73203         a locale dependent decimal point, rather than always '.'.
73204
73205 2007-03-09  Eric Blake  <ebb9@byu.net>
73206
73207         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73208         spite of platforms like Tandem/NSK that define it to -1.
73209
73210 2007-03-08  Bruno Haible  <bruno@clisp.org>
73211
73212         * modules/vprintf-posix-tests: New file.
73213         * tests/test-vprintf-posix.sh: New file.
73214         * tests/test-vprintf-posix.c: New file.
73215         * tests/test-printf-posix.h: New file.
73216
73217         * modules/vprintf-posix: New file.
73218         * lib/vprintf.c: New file.
73219         * m4/vprintf-posix.m4: New file.
73220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73221         REPLACE_VPRINTF.
73222         * lib/stdio_.h (vprintf): New declaration.
73223         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73224         REPLACE_VPRINTF.
73225
73226 2007-03-08  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/fprintf-posix-tests: New file.
73229         * tests/test-fprintf-posix.sh: New file.
73230         * tests/test-fprintf-posix.c: New file.
73231
73232         * modules/fprintf-posix: New file.
73233         * lib/fprintf.c: New file.
73234         * m4/fprintf-posix.m4: New file.
73235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73236         REPLACE_FPRINTF.
73237         * lib/stdio_.h (fprintf): New declaration.
73238         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73239         REPLACE_FPRINTF.
73240
73241 2007-03-08  Bruno Haible  <bruno@clisp.org>
73242
73243         * modules/vfprintf-posix-tests: New file.
73244         * tests/test-vfprintf-posix.sh: New file.
73245         * tests/test-vfprintf-posix.c: New file.
73246         * tests/test-fprintf-posix.h: New file.
73247         * tests/test-fprintf-posix.out: New file.
73248
73249         * modules/vfprintf-posix: New file.
73250         * lib/vfprintf.c: New file.
73251         * m4/vfprintf-posix.m4: New file.
73252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73253         REPLACE_VFPRINTF.
73254         * lib/stdio_.h (vfprintf): New declaration.
73255         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73256         REPLACE_VFPRINTF.
73257
73258 2007-03-08  Bruno Haible  <bruno@clisp.org>
73259
73260         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73261
73262 2007-03-08  Bruno Haible  <bruno@clisp.org>
73263
73264         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73265         instead of 'expr' invocations.
73266         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73267         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73268         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73269         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73270         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73271         Suggested by Paul Eggert.
73272
73273 2007-03-08  Bruno Haible  <bruno@clisp.org>
73274
73275         * modules/fseterr-tests: New file.
73276         * tests/test-fseterr.c: New file.
73277
73278         * modules/fseterr: New file.
73279         * lib/fseterr.h: New file.
73280         * lib/fseterr.c: New file.
73281
73282 2007-03-08  Bruno Haible  <bruno@clisp.org>
73283
73284         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73285         * lib/getopt_.h: Likewise.
73286         * lib/mbswidth.h: Likewise.
73287         * lib/setenv.h: Likewise.
73288         * lib/vasnprintf.h: Likewise.
73289         * lib/vasprintf.h: Likewise.
73290         * lib/verror.h: Likewise.
73291         * lib/xsetenv.h: Likewise.
73292         * lib/xvasprintf.h: Likewise.
73293
73294 2007-03-08  Jim Meyering  <jim@meyering.net>
73295
73296         * users.txt: Add parted.
73297
73298         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73299
73300 2007-03-07  Bruno Haible  <bruno@clisp.org>
73301
73302         * m4/printf.m4: Make the shell script snippets copy&pastable.
73303
73304 2007-03-02  Bruno Haible  <bruno@clisp.org>
73305
73306         * lib/netinet_in_.h: New file.
73307         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73308         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73309         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73310         (Depends-on): Add absolute-header.
73311         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73312         into netinet/in.h.
73313
73314 2007-03-03  Bruno Haible  <bruno@clisp.org>
73315
73316         * lib/sys_select_.h: New file.
73317         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73318         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73319         * modules/sys_select (Files): Add lib/sys_select_.h.
73320         (Depends-on): Add absolute-header.
73321         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73322         into sys/select.h.
73323
73324 2007-03-02  Bruno Haible  <bruno@clisp.org>
73325
73326         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73327         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73328         values.
73329         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73330         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73331         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73332         * modules/sys_socket (Depends-on): Add absolute-header.
73333         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73334         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73335         (Include): Remove requirement of inclusion of <sys/types.h>.
73336
73337 2007-03-02  Bruno Haible  <bruno@clisp.org>
73338
73339         * lib/byteswap_.h (bswap_32): Fix formula.
73340
73341 2007-03-06  Bruno Haible  <bruno@clisp.org>
73342
73343         * modules/sprintf-posix-tests: New file.
73344         * tests/test-sprintf-posix.c: New file.
73345
73346         * modules/sprintf-posix: New file.
73347         * lib/sprintf.c: New file.
73348         * m4/sprintf-posix.m4: New file.
73349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73350         REPLACE_SPRINTF.
73351         * lib/stdio_.h (sprintf): New declaration.
73352         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73353         REPLACE_SPRINTF.
73354
73355 2007-03-06  Bruno Haible  <bruno@clisp.org>
73356
73357         * modules/vsprintf-posix-tests: New file.
73358         * tests/test-vsprintf-posix.c: New file.
73359         * tests/test-sprintf-posix.h: New file.
73360
73361         * modules/vsprintf-posix: New file.
73362         * lib/vsprintf.c: New file.
73363         * m4/vsprintf-posix.m4: New file.
73364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73365         REPLACE_VSPRINTF.
73366         * lib/stdio_.h (vsprintf): New declaration.
73367         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73368         REPLACE_VSPRINTF.
73369
73370 2007-03-06  Bruno Haible  <bruno@clisp.org>
73371
73372         * modules/vsnprintf (Depend-on): Remove minmax.
73373
73374 2007-03-06  Bruno Haible  <bruno@clisp.org>
73375
73376         * modules/snprintf-posix-tests: New file.
73377         * tests/test-snprintf-posix.c: New file.
73378
73379         * modules/snprintf-posix: New file.
73380         * m4/snprintf-posix.m4: New file.
73381         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73382         gl_FUNC_SNPRINTF.
73383         (gl_FUNC_SNPRINTF): Invoke it.
73384         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73385         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73386         is set.
73387         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73388
73389 2007-03-06  Bruno Haible  <bruno@clisp.org>
73390
73391         * modules/vsnprintf-posix-tests: New file.
73392         * tests/test-vsnprintf-posix.c: New file.
73393         * tests/test-snprintf-posix.h: New file.
73394
73395         * modules/vsnprintf-posix: New file.
73396         * m4/vsnprintf-posix.m4: New file.
73397         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73398         gl_FUNC_VSNPRINTF.
73399         (gl_FUNC_VSNPRINTF): Invoke it.
73400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73401         * lib/stdio_.h (vsnprintf): Define as a replacement if
73402         REPLACE_VSNPRINTF is set.
73403         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73404
73405 2007-03-06  Bruno Haible  <bruno@clisp.org>
73406
73407         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73408         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73409
73410 2007-03-06  Bruno Haible  <bruno@clisp.org>
73411
73412         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73413         (asinl): Declare also if HAVE_DECL_ASINL is set.
73414         (atanl): Declare also if HAVE_DECL_ATANL is set.
73415         (ceill): Declare also if HAVE_DECL_CEILL is set.
73416         (cosl): Declare also if HAVE_DECL_COSL is set.
73417         (expl): Declare also if HAVE_DECL_EXPL is set.
73418         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73419         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73420         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73421         (logl): Declare also if HAVE_DECL_LOGL is set.
73422         (sinl): Declare also if HAVE_DECL_SINL is set.
73423         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73424         (tanl): Declare also if HAVE_DECL_TANL is set.
73425         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73427         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73428         declaration of frexpl, ldexpl.
73429         * modules/printf-frexpl (Depends-on): Add math.
73430         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73431
73432 2007-03-05  Bruno Haible  <bruno@clisp.org>
73433
73434         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73435         frexpl and ldexpl are declared.
73436         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73437
73438 2007-03-05  Bruno Haible  <bruno@clisp.org>
73439
73440         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73441         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73442
73443 2007-03-05  Bruno Haible  <bruno@clisp.org>
73444
73445         * lib/stdio_.h: Include <stddef.h>.
73446
73447 2007-03-05  Bruno Haible  <bruno@clisp.org>
73448
73449         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73450
73451 2007-03-05  Bruno Haible  <bruno@clisp.org>
73452
73453         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73454         NetBSD 4, from Ralf Wildenhues.
73455
73456 2007-03-04  Bruno Haible  <bruno@clisp.org>
73457
73458         * lib/vasprintf.h: Update #if logic for the case when the functions
73459         exist but are overridden.
73460
73461 2007-03-04  Bruno Haible  <bruno@clisp.org>
73462
73463         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73464         implementations: glibc-2.4 and MacOS X 10.3.
73465         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73466         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73467         * tests/test-vasprintf-posix.c (test_function): Likewise.
73468
73469 2007-03-04  Bruno Haible  <bruno@clisp.org>
73470
73471         * modules/vasprintf-posix-tests: New file.
73472         * tests/test-vasprintf-posix.c: New file.
73473
73474         * modules/vasprintf-posix: New file.
73475         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73476         defined.
73477         * m4/vasprintf-posix.m4: New file.
73478         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73479         gl_FUNC_VASPRINTF.
73480         (gl_FUNC_VASPRINTF): Invoke it.
73481         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73482         here.
73483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73484
73485 2007-03-04  Bruno Haible  <bruno@clisp.org>
73486
73487         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73488         REPLACE_GETTIMEOFDAY.
73489         * modules/sys_time (Makefile.am): Likewise.
73490         * m4/sys_time_h.m4: Likewise.
73491         * m4/gettimeofday.m4: Likewise.
73492
73493 2007-03-04  Bruno Haible  <bruno@clisp.org>
73494
73495         * modules/vasnprintf-posix-tests: New file.
73496         * tests/test-vasnprintf-posix.c: New file.
73497
73498         * modules/vasnprintf-posix: New file.
73499         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73500         printf-frexpl.h.
73501         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73502         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73503         REPLACE_VASNPRINTF is defined.
73504         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73505         gl_FUNC_VASNPRINTF.
73506         (gl_FUNC_VASNPRINTF): Invoke it.
73507         * m4/vasnprintf-posix.m4: New file.
73508         * m4/printf.m4: New file.
73509
73510 2007-03-04  Bruno Haible  <bruno@clisp.org>
73511
73512         Compile progreloc.c only if --enable-relocatable is specified.
73513         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73514         if --enable-relocatable was specified.
73515         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73516         lib_SOURCES.
73517
73518 2007-03-04  Jim Meyering  <jim@meyering.net>
73519
73520         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73521         Use it consistently, rather than enumerating errno constants.
73522
73523 2007-03-04  Bruno Haible  <bruno@clisp.org>
73524
73525         * modules/xvasprintf-tests: New file.
73526         * tests/test-xvasprintf.c: New file.
73527
73528         * modules/vasprintf-tests: New file.
73529         * tests/test-vasprintf.c: New file.
73530
73531         * modules/vasnprintf-tests: New file.
73532         * tests/test-vasnprintf.c: New file.
73533
73534         * modules/vsnprintf-tests: New file.
73535         * tests/test-vsnprintf.c: New file.
73536
73537         * modules/snprintf-tests: New file.
73538         * tests/test-snprintf.c: New file.
73539
73540 2007-03-04  Bruno Haible  <bruno@clisp.org>
73541
73542         Compile relocatable.c only if --enable-relocatable is specified.
73543         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73544         gl_RELOCATABLE_LIBRARY.
73545         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73546         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73547         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73548         gl_RELOCATABLE_LIBRARY.
73549         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73550         (Makefile.am): Remove lib_SOURCES.
73551         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73552         gl_RELOCATABLE_LIBRARY.
73553         (Makefile.am): Remove lib_SOURCES.
73554         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73555         always.
73556         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73557         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73558
73559 2007-03-04  Bruno Haible  <bruno@clisp.org>
73560
73561         * modules/argmatch-tests: New file.
73562         * tests/test-argmatch.c: New file.
73563
73564         * tests/test-allocsa.c (main): Halve the number of loop runs.
73565
73566         * modules/alloca-opt-tests: New file.
73567         * tests/test-alloca-opt.c: New file.
73568
73569 2007-03-04  Jim Meyering  <jim@meyering.net>
73570
73571         Work around difference between Linux ACLs and Solaris 10 ZFS.
73572         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73573         for EINVAL.
73574
73575 2007-03-03  Bruno Haible  <bruno@clisp.org>
73576
73577         * modules/relocatable-prog (Depends-on): Add back progreloc's
73578         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73579
73580 2007-03-03  Bruno Haible  <bruno@clisp.org>
73581
73582         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73583         * modules/relocatable-lib: New file.
73584
73585 2007-03-03  Bruno Haible  <bruno@clisp.org>
73586
73587         * modules/relocatable-prog: Renamed from modules/relocatable.
73588         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73589
73590 2007-03-03  Bruno Haible  <bruno@clisp.org>
73591
73592         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73593         m4/relocatable-lib.m4.
73594         (Depends-on): Remove 'relocatable'.
73595         (configure.ac): Add gl_RELOCATABLE_NOP.
73596
73597 2007-03-03  Bruno Haible  <bruno@clisp.org>
73598
73599         * modules/relocatable-prog-wrapper: New file.
73600         * modules/relocatable (Depends-on): Add it. Remove all other
73601         dependencies except progname.
73602         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73603
73604         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73605         (gl_FUNC_STRERROR): Nop.
73606         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73607
73608         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73609         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73610
73611         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73612         (gl_FUNC_READLINK): Update.
73613
73614         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73615
73616 2007-03-03  Bruno Haible  <bruno@clisp.org>
73617
73618         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73619         * modules/xreadlink (Depends-on): Add unistd.
73620         * modules/xreadlink-with-size (Depends-on): Likewise.
73621
73622 2007-03-03  Bruno Haible  <bruno@clisp.org>
73623
73624         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73625         extracted from gt_FUNC_SETENV.
73626         (gt_FUNC_SETENV): Remove macro.
73627         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73628         remove gt_FUNC_SETENV.
73629
73630 2007-03-03  Bruno Haible  <bruno@clisp.org>
73631
73632         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73633         ENABLE_RELOCATABLE here.
73634         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73635
73636 2007-03-03  Bruno Haible  <bruno@clisp.org>
73637
73638         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73639         * tests/test-rbtreehash_list.c: Include progname.h.
73640         (main): Call set_program_name.
73641
73642         * modules/rbtree-oset-tests (Depends-on): Add progname.
73643         * tests/test-rbtree_oset.c: Include progname.h.
73644         (main): Call set_program_name.
73645
73646         * modules/rbtree-list-tests (Depends-on): Add progname.
73647         * tests/test-rbtree_list.c: Include progname.h.
73648         (main): Call set_program_name.
73649
73650         * modules/linked-list-tests (Depends-on): Add progname.
73651         * tests/test-linked_list.c: Include progname.h.
73652         (main): Call set_program_name.
73653
73654 2007-03-03  Bruno Haible  <bruno@clisp.org>
73655
73656         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73657         All uses of __restrict changed to _Restrict_.
73658         * lib/glob_.h (__restrict): Remove macro.
73659
73660 2007-03-02  Bruno Haible  <bruno@clisp.org>
73661
73662         * modules/gettext (configure.ac): Require gettext infrastructure
73663         from version 0.16.1.
73664
73665 2007-03-02  Bruno Haible  <bruno@clisp.org>
73666
73667         * modules/linkedhash-list-tests (Depends-on): Add progname.
73668         * tests/test-linkedhash_list.c: Include progname.h.
73669         (main): Call set_program_name.
73670
73671         * modules/carray-list-tests (Depends-on): Add progname.
73672         * tests/test-carray_list.c: Include progname.h.
73673         (main): Call set_program_name.
73674
73675         * modules/avltreehash-list-tests (Depends-on): Add progname.
73676         * tests/test-avltreehash_list.c: Include progname.h.
73677         (main): Call set_program_name.
73678
73679         * modules/avltree-oset-tests (Depends-on): Add progname.
73680         * tests/test-avltree_oset.c: Include progname.h.
73681         (main): Call set_program_name.
73682
73683         * modules/avltree-list-tests (Depends-on): Add progname.
73684         * tests/test-avltree_list.c: Include progname.h.
73685         (main): Call set_program_name.
73686
73687         * modules/array-oset-tests (Depends-on): Add progname.
73688         * tests/test-array_oset.c: Include progname.h.
73689         (main): Call set_program_name.
73690
73691         * modules/array-list-tests (Depends-on): Add progname.
73692         * tests/test-array_list.c: Include progname.h.
73693         (main): Call set_program_name.
73694
73695         * modules/argp-tests (Depends-on): Add progname.
73696         * tests/test-argp.c: Include argp.h first. Include progname.h.
73697         (main): Call set_program_name.
73698
73699 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73700
73701         * doc/gnulib-tool.texi (Initial import): Reword description of
73702         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73703         limited effect even if defined after the first system include.
73704
73705 2007-03-01  Bruno Haible  <bruno@clisp.org>
73706
73707         * build-aux/config.libpath: Update to libtool-1.5.22.
73708         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73709
73710 2007-03-01  Bruno Haible  <bruno@clisp.org>
73711
73712         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73713         foo_CFLAGS.
73714         Reported by Ralf Wildenhues.
73715
73716 2007-03-01  Bruno Haible  <bruno@clisp.org>
73717
73718         * build-aux/install-reloc: Remove object files left over by some
73719         compilers.
73720         Reported by Ralf Wildenhues.
73721
73722 2007-03-01  Bruno Haible  <bruno@clisp.org>
73723
73724         * build-aux/install-reloc: Break long lines.
73725
73726 2007-03-01  Bruno Haible  <bruno@clisp.org>
73727
73728         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73729         Reported by Ralf Wildenhues.
73730
73731 2007-03-01  Bruno Haible  <bruno@clisp.org>
73732
73733         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73734         include ordering constraints.
73735
73736 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73737
73738         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73739         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73740         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73741         as another example.
73742         * lib/time_.h: Fix misspelling.
73743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73744         Require gl_HEADER_TIME_H_DEFAULTS.
73745         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73746         * m4/time_r.m4 (gl_TIME_R): Likewise.
73747         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73748
73749 2007-03-01  Bruno Haible  <bruno@clisp.org>
73750
73751         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73752         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73753
73754 2007-03-01  Jim Meyering  <jim@meyering.net>
73755
73756         * modules/xreadlink (Maintainer): Add my name.
73757         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73758
73759 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73760             Bruno Haible  <bruno@clisp.org>
73761
73762         * build-aux/install-reloc: Compile also c-ctype.c.
73763         * build-aux/relocatable.sh.in: New file.
73764         * doc/relocatable.texi: New file.
73765         * doc/relocatable-maint.texi: New file.
73766         * doc/gnulib.texi: Include relocatable-maint.texi.
73767         * lib/progreloc.c: Include unistd.h unconditionally.
73768         * lib/relocwrapper.c: Include unistd.h unconditionally.
73769         Include c-ctype.h.
73770         (add_dotbin): Use c_tolower.
73771         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73772         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73773         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73774         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73775         to m4/relocatable-lib.m4.
73776         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73777         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73778         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73779         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73780         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73781         * modules/relocatable: New file.
73782         * modules/relocatable-lib: New file.
73783         * modules/relocatable-script: New file.
73784
73785 2007-02-28  Bruno Haible  <bruno@clisp.org>
73786
73787         Import --enable-relocatable infrastructure.
73788         * build-aux/config.libpath: New file, from GNU gettext.
73789         * build-aux/install-reloc: New file, from GNU gettext.
73790         * build-aux/reloc-ldflags: New file, from GNU gettext.
73791         * lib/relocatable.h: New file, from GNU gettext.
73792         * lib/relocatable.c: New file, from GNU gettext.
73793         * lib/relocwrapper.c: New file, from GNU gettext.
73794         * m4/relocatable.m4: New file, from GNU gettext.
73795
73796 2007-02-28  Bruno Haible  <bruno@clisp.org>
73797
73798         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73799
73800         * modules/xreadlink: New file, from GNU gettext with modifications.
73801         * lib/xreadlink.c: New file, from GNU gettext.
73802         * lib/xreadlink.h: Add comments.
73803         (xreadlink): New declaration.
73804
73805         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73806         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73807         lib/xreadlink-with-size.c.
73808         (configure.ac): Remove gl_XREADLINK invocation.
73809         (Makefile.am): Augment lib_SOURCES.
73810         * m4/xreadlink.m4: Remove file.
73811         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73812         (xreadlink_with_size): Renamed from xreadink.
73813         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73814         * modules/canonicalize (Depends-on): Replace xreadlink with
73815         xreadlink-with-size.
73816         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73817
73818 2007-02-25  Jim Meyering  <jim@meyering.net>
73819
73820         * build-aux/announce-gen: When complaining about excess arguments,
73821         list them.
73822
73823 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         * README: Document signed integer overflow situation more
73826         accurately.
73827
73828 2007-02-25  Bruno Haible  <bruno@clisp.org>
73829
73830         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73831         'a' or 'A' conversion.
73832
73833 2007-02-25  Bruno Haible  <bruno@clisp.org>
73834
73835         * modules/filename: Renamed from modules/pathname.
73836         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73837         lib/concatpath.c with lib/concat-filename.c.
73838         (Makefile.am): Update.
73839         (Include): Replace pathname.h with filename.h.
73840         * lib/filename.h: Renamed from lib/pathname.h.
73841         (concatenated_filename): Renamed from concatenated_pathname.
73842         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73843         (concatenated_filename): Renamed from concatenated_pathname.
73844         * lib/findprog.c: Include filename.h instead of pathname.h.
73845         (find_in_path): Update.
73846         * lib/javacomp.c: Include filename.h instead of pathname.h.
73847         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73848         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73849         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73850         is_oldgcj_14_13_usable, is_javac_usable): Update.
73851         * lib/javaexec.c: Include filename.h instead of pathname.h.
73852         (execute_java_class): Update.
73853         * modules/findprog: Update.
73854         * modules/javacomp: Update.
73855         * modules/javaexec: Update.
73856         * MODULES.html.sh (File system functions): Add 'filename', remove
73857         'pathname'.
73858
73859 2007-02-25  Bruno Haible  <bruno@clisp.org>
73860
73861         * modules/printf-frexpl-tests: New file.
73862         * tests/test-printf-frexpl.c: New file.
73863
73864         * modules/printf-frexpl: New file.
73865         * lib/printf-frexpl.h: New file.
73866         * lib/printf-frexpl.c: New file.
73867         * m4/printf-frexpl.m4: New file.
73868
73869 2007-02-25  Bruno Haible  <bruno@clisp.org>
73870
73871         * modules/printf-frexp-tests: New file.
73872         * tests/test-printf-frexp.c: New file.
73873
73874         * modules/printf-frexp: New file.
73875         * lib/printf-frexp.h: New file.
73876         * lib/printf-frexp.c: New file.
73877         * m4/printf-frexp.m4: New file.
73878
73879 2007-02-25  Bruno Haible  <bruno@clisp.org>
73880
73881         Assume automake >= 1.10 for the tests.
73882         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73883         * modules/arctwo-tests: Likewise.
73884         * modules/argp-tests: Likewise.
73885         * modules/avltree-list-tests: Likewise.
73886         * modules/avltree-oset-tests: Likewise.
73887         * modules/avltreehash-list-tests: Likewise.
73888         * modules/carray-list-tests: Likewise.
73889         * modules/crc-tests: Likewise.
73890         * modules/des-tests: Likewise.
73891         * modules/gc-arcfour-tests: Likewise.
73892         * modules/gc-arctwo-tests: Likewise.
73893         * modules/gc-des-tests: Likewise.
73894         * modules/gc-hmac-md5-tests: Likewise.
73895         * modules/gc-hmac-sha1-tests: Likewise.
73896         * modules/gc-md2-tests: Likewise.
73897         * modules/gc-md4-tests: Likewise.
73898         * modules/gc-md5-tests: Likewise.
73899         * modules/gc-pbkdf2-sha1-tests: Likewise.
73900         * modules/gc-rijndael-tests: Likewise.
73901         * modules/gc-sha1-tests: Likewise.
73902         * modules/gc-tests: Likewise.
73903         * modules/getaddrinfo-tests: Likewise.
73904         * modules/hmac-md5-tests: Likewise.
73905         * modules/hmac-sha1-tests: Likewise.
73906         * modules/linked-list-tests: Likewise.
73907         * modules/linkedhash-list-tests: Likewise.
73908         * modules/lock-tests: Likewise.
73909         * modules/md2-tests: Likewise.
73910         * modules/md4-tests: Likewise.
73911         * modules/md5-tests: Likewise.
73912         * modules/rbtree-list-tests: Likewise.
73913         * modules/rbtree-oset-tests: Likewise.
73914         * modules/rbtreehash-list-tests: Likewise.
73915         * modules/read-file-tests: Likewise.
73916         * modules/rijndael-tests: Likewise.
73917         * modules/stdint-tests: Likewise.
73918         * modules/tls-tests: Likewise.
73919
73920 2007-02-24  Bruno Haible  <bruno@clisp.org>
73921
73922         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73923         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73924         function; instead check whether isnan with a double argument links.
73925         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73926         function; instead check whether isnan with a 'long double' argument
73927         links.
73928         Reported by Eric Blake <ebb9@byu.net>.
73929
73930 2007-02-24  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73933         defined.
73934         * lib/isnanl.c: Remove all code. Just include isnan.c.
73935         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73936
73937 2007-02-25  Jim Meyering  <jim@meyering.net>
73938
73939         Avoid conflicting types for 'unsetenv' on FreeBSD.
73940         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73941         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73942         in stdlib.h.
73943
73944 2007-02-24  Bruno Haible  <bruno@clisp.org>
73945
73946         * modules/isnanl-nolibm-tests: New file.
73947         * tests/test-isnanl.c: New file.
73948
73949         * modules/isnanl-nolibm: New file.
73950         * lib/isnanl.h: New file.
73951         * lib/isnanl.c: New file.
73952         * m4/isnanl.m4: New file.
73953
73954 2007-02-24  Bruno Haible  <bruno@clisp.org>
73955
73956         * modules/isnan-nolibm-tests: New file.
73957         * tests/test-isnan.c: New file.
73958
73959         * modules/isnan-nolibm: New file.
73960         * lib/isnan.h: New file.
73961         * lib/isnan.c: New file.
73962         * m4/isnan.m4: New file.
73963
73964 2007-02-24  Bruno Haible  <bruno@clisp.org>
73965
73966         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73967         assume that an exponent fits in 20 bits.
73968
73969 2007-02-24  Jim Meyering  <jim@meyering.net>
73970
73971         * m4/regex.m4: Update the description of the configure-time option,
73972         --without-included-regex, to state accurately what the defaults are,
73973         and perhaps to give people an idea why using this option is risky.
73974
73975 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73978         loops on small arguments.  This attempts to avoid the problem
73979         Bruno Haible reported for AIX 4.3.2 in
73980         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73981
73982 2007-02-23  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73985         Needed for help2man.
73986
73987 2007-02-23  Karl Berry  <karl@gnu.org>
73988
73989         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73990         exists, foo.h should be cvs-ignored, not committed.
73991
73992 2007-02-23  Eric Blake  <ebb9@byu.net>
73993
73994         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73995         * lib/stat-time.h (includes): Likewise.
73996         * lib/utimecmp.c (includes): Likewise.
73997         * lib/utimens.h (includes): Likewise.
73998         * lib/getdate.y (includes): Also include "timespec.h" for use
73999         internal to the module.
74000         * modules/utimens (Depends-on): Revert yesterday's patch.
74001         * modules/nanosleep (Depends-on): Add missing dependency.
74002
74003 2007-02-22  Bruno Haible  <bruno@clisp.org>
74004
74005         * lib/glob.c: Don't include getlogin_r.h.
74006
74007 2007-02-22  Jim Meyering  <jim@meyering.net>
74008
74009         * modules/utimens (Depends-on): Add timespec, required for
74010         utimens.h's inclusion of timespec.h.
74011
74012 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
74015         long unreadable paths in GNU/Linux.  Problem reported by Andreas
74016         Schwab in
74017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
74018         I'll try to think of a better way to fix the Solaris problem.
74019
74020         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
74021         like glibc; on Solaris 10, it fails with errno == EINVAL.
74022         POSIX says the behavior is unspecified if the first argument is NULL,
74023         so play it safe and never pass NULL to the system getcwd.
74024
74025 2007-02-21  Jim Meyering  <jim@meyering.net>
74026
74027         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
74028         of gettimeofday.  It would conflict with the one now always
74029         provided via sys_time_.h.  Reported by Matthew Woehlke, as
74030         an IRIX 6.5 build failure.
74031
74032 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         Minor fixups to port to Solaris 10 with Sun C 5.8.
74035         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
74036         * modules/getcwd (Depends-on): Add dirfd.
74037         * lib/putenv.c (putenv): #undef it.
74038         (rpl_putenv): New decl.
74039         (malloc, free): Include <stdlib.h> rather than prototyping separately.
74040
74041 2007-02-20  Bruno Haible  <bruno@clisp.org>
74042
74043         * modules/stdio-tests: New file.
74044         * tests/test-stdio.c: New file.
74045
74046         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
74047         (Depends-on): Add stdio.
74048         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
74049         (Include): Use <stdio.h> instead of vsnprintf.h.
74050         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
74051         HAVE_DECL_VSNPRINTF.
74052         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
74053
74054         * modules/snprintf (Files): Remove lib/snprintf.h.
74055         (Depends-on): Add stdio.
74056         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
74057         (Include): Use <stdio.h> instead of snprintf.h.
74058         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
74059         HAVE_DECL_SNPRINTF.
74060         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
74061         * lib/getaddrinfo.c: Likewise.
74062
74063         * modules/stdio: New file.
74064         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
74065         * lib/snprintf.h: Remove file.
74066         * lib/vsnprintf.h: Remove file.
74067         * lib/.cppi-disable: Remove snprintf.h.
74068         * m4/stdio_h.m4: New file.
74069         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
74070
74071 2007-02-20  Jim Meyering  <jim@meyering.net>
74072
74073         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
74074         used by e.g., mingw.  From Bruno Haible.
74075
74076 2007-02-19  Bruno Haible  <bruno@clisp.org>
74077
74078         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
74079         warnings.
74080         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74081
74082 2007-02-19  Bruno Haible  <bruno@clisp.org>
74083
74084         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
74085         from mingw users.
74086
74087 2007-02-19  Bruno Haible  <bruno@clisp.org>
74088
74089         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
74090         warnings.
74091         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
74092
74093 2007-02-19  Jim Meyering  <jim@meyering.net>
74094
74095         Don't use FD after a successful "fdopendir (fd)".
74096         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
74097         Reset it by calling dirfd on the just-obtained DIR*.
74098
74099         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
74100         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
74101
74102 2007-02-18  Bruno Haible  <bruno@clisp.org>
74103
74104         * lib/readlink.c: Include <unistd.h>.
74105         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
74106         HAVE_READLINK.
74107         * modules/readlink (Depends-on): Add unistd.
74108         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74109         (Include): Add <unistd.h>.
74110
74111         * lib/getlogin_r.h: Remove file.
74112         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
74113         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
74114         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
74115         HAVE_DECL_GETLOGIN_R.
74116         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
74117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74118         (Include): Use <unistd.h> instead of getlogin_r.h.
74119
74120         * lib/getcwd.h: Remove file.
74121         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
74122         * lib/xgetcwd.c: Likewise.
74123         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
74124         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
74125         * modules/getcwd (Files): Remove lib/getcwd.h.
74126         (Depends-on): Add unistd.
74127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74128         (Include): Use <unistd.h> instad of getcwd.h.
74129
74130         * lib/ftruncate.c: Include <unistd.h> first.
74131         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
74132         Set HAVE_FTRUNCATE.
74133         * modules/ftruncate (Depends-on): Add unistd.
74134         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74135
74136         * lib/fchdir.c: Include <unistd.h> first.
74137         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
74138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
74139         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
74140         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74141         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
74142
74143         * lib/dup2.c: Include <unistd.h> first.
74144         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74145         HAVE_DUP2.
74146         * modules/dup2 (Depends-on): Add unistd.
74147         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74148
74149         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74150         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74151         REPLACE_CHOWN. Don't define chown as a macro here.
74152         * modules/chown (Depends-on): Add unistd.
74153         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74154
74155         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74156         Add definition for GL_LINK_WARNING.
74157         (chown, dup2): New declarations.
74158         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74159         link warning.
74160         (ftruncate): New declaration.
74161         (getcwd): New declaration, taken from old getcwd.h.
74162         (getlogin_r): New declaration, taken from old getlogin_r.h.
74163         (readlink): New declaration.
74164         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74165         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74166         (gl_PREREQ_UNISTD): Remove macro.
74167         (gl_UNISTD_MODULE_INDICATOR): New macro.
74168         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74169         many new variables. Don't set UNISTD_H.
74170         * modules/unistd (Description): Change.
74171         (Depends-on): Add link-warning.
74172         (configure.ac): Update.
74173         (Makefile.am): Create unistd.h always. Substitute many new variables
74174         into it.
74175
74176 2007-02-18  Bruno Haible  <bruno@clisp.org>
74177
74178         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74179         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74180         HAVE_GETSUBOPT.
74181         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74182         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74183         * lib/getsubopt.h: Remove file.
74184         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74185         (Depends-on): Add stdlib.
74186         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74187         (Includes): Use <stdlib.h> instead of getsubopt.h.
74188         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74189         Set HAVE_GETSUBOPT.
74190         * lib/getsubopt.c: Don't include getsubopt.h.
74191
74192 2007-02-18  Bruno Haible  <bruno@clisp.org>
74193
74194         * modules/fchdir (Depends-on): Add dup2.
74195
74196 2007-02-18  Bruno Haible  <bruno@clisp.org>
74197
74198         * lib/stdlib_.h: Handle glibc's special invocation convention
74199         specially.
74200
74201 2007-02-18  Bruno Haible  <bruno@clisp.org>
74202
74203         * modules/stdlib-tests: New file.
74204         * tests/test-stdlib.c: New file.
74205
74206         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74207         (Depends-on): Add stdlib.
74208         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74209         (Includes): Use <stdlib.h> instead of mkstemp.h.
74210         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74211         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74212         * lib/mkstemp.c: Don't include mkstemp.h.
74213         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74214         * lib/stdlib--.h: Don't include mkstemp.h.
74215
74216         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74217         (Depends-on): Add stdlib.
74218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74219         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74220         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74221         HAVE_MKDTEMP.
74222         * lib/mkdtemp.c: Don't include mkdtemp.h.
74223         * lib/clean-temp.c: Don't include mkdtemp.h.
74224
74225         * modules/exit (Files): Remove lib/exit.h.
74226         (Depends-on): Add stdlib.
74227         (Makefile.am): Remove lib_SOURCES.
74228         (Include): Use <stdlib.h> instead of exit.h.
74229         * lib/argmatch.c: Don't include exit.h.
74230         * lib/execute.c: Likewise.
74231         * lib/pagealign_alloc.c: Likewise.
74232         * lib/pipe.c: Likewise.
74233         * lib/wait-process.c: Likewise.
74234         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74235         * lib/exitfail.c: Likewise.
74236         * lib/savewd.c: Likewise.
74237         * lib/xsetenv.c: Likewise.
74238
74239         * modules/stdlib: New file.
74240         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74241         and extra comments about mkstemp().
74242         * lib/exit.h: Remove file.
74243         * lib/mkdtemp.h: Remove file.
74244         * lib/mkstemp.h: Remove file.
74245         * m4/stdlib_h.m4: New file.
74246         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74247
74248 2007-02-18  Bruno Haible  <bruno@clisp.org>
74249
74250         * modules/math-tests: New file.
74251         * tests/test-math.c: New file.
74252
74253         * modules/math: New file.
74254         * modules/mathl (Files): Remove lib/mathl.h.
74255         (Depends-on): Add math.
74256         (Makefile.am): Don't mention mathl.h.
74257         (Include): Use <math.h> instead of mathl.h.
74258         * lib/math_.h: New file.
74259         * lib/mathl.h: Remove file.
74260         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74261         mathl.h.
74262         * lib/asinl.c: Likewise.
74263         * lib/atanl.c: Likewise.
74264         * lib/ceill.c: Likewise.
74265         * lib/cosl.c: Likewise.
74266         * lib/expl.c: Likewise.
74267         * lib/floorl.c: Likewise.
74268         * lib/frexpl.c: Likewise.
74269         * lib/ldexpl.c: Likewise.
74270         * lib/logl.c: Likewise.
74271         * lib/sincosl.c: Likewise.
74272         * lib/sinl.c: Likewise.
74273         * lib/sqrtl.c: Likewise.
74274         * lib/tanl.c: Likewise.
74275         * lib/trigl.c: Likewise.
74276         * m4/math_h.m4: New file.
74277         * MODULES.html.sh (Mathematics): Add math.
74278
74279 2007-02-17  Bruno Haible  <bruno@clisp.org>
74280
74281         * modules/wctype-tests: New file.
74282         * tests/test-wctype.c: New file.
74283
74284         * modules/wchar-tests: New file.
74285         * tests/test-wchar.c: New file.
74286
74287         * modules/unistd-tests: New file.
74288         * tests/test-unistd.c: New file.
74289
74290         * modules/time-tests: New file.
74291         * tests/test-time.c: New file.
74292
74293         * modules/sysexits-tests: New file.
74294         * tests/test-sysexits.c: New file.
74295
74296         * modules/sys_time-tests: New file.
74297         * tests/test-sys_time.c: New file.
74298
74299         * modules/sys_stat-tests: New file.
74300         * tests/test-sys_stat.c: New file.
74301
74302         * modules/sys_socket-tests: New file.
74303         * tests/test-sys_socket.c: New file.
74304
74305         * modules/sys_select-tests: New file.
74306         * tests/test-sys_select.c: New file.
74307
74308         * modules/string-tests: New file.
74309         * tests/test-string.c: New file.
74310
74311         * modules/stdbool-tests: New file.
74312         * tests/test-stdbool.c: New file.
74313
74314         * modules/netinet_in-tests: New file.
74315         * tests/test-netinet_in.c: New file.
74316
74317         * modules/inttypes-tests: New file.
74318         * tests/test-inttypes.c: New file.
74319
74320         * modules/fcntl-tests: New file.
74321         * tests/test-fcntl.c: New file.
74322
74323         * modules/byteswap-tests: New file.
74324         * tests/test-byteswap.c: New file.
74325
74326         * modules/arpa_inet-tests: New file.
74327         * tests/test-arpa_inet.c: New file.
74328
74329 2007-02-17  Bruno Haible  <bruno@clisp.org>
74330
74331         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74332         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74333         if the corresponding module is not enabled. Emit link warnings if
74334         the function is used nevertheless.
74335         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74336         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74337         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74338         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74339         * modules/inttypes (Depends-on): Add link-warning.
74340         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74341         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74342         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74343         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74344         * modules/imaxdiv (configure.ac): Likewise.
74345         * modules/strtoimax (configure.ac): Likewise.
74346         * modules/strtoumax (configure.ac): Likewise.
74347
74348 2007-02-17  Bruno Haible  <bruno@clisp.org>
74349
74350         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74351         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74352         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74353         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74354
74355 2007-02-17  Bruno Haible  <bruno@clisp.org>
74356
74357         * modules/link-warning: New file.
74358         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74359         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74360         * modules/string (Depends-on): Add link-warning.
74361         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74362         string.h.
74363         * MODULES.html.sh (Support for building libraries and executables): Add
74364         link-warning.
74365
74366 2007-02-17  Bruno Haible  <bruno@clisp.org>
74367
74368         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74369         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74370         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74371         long lines.
74372
74373 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74374             Bruno Haible  <bruno@clisp.org>
74375
74376         * modules/tmpfile: New file.
74377         * lib/tmpfile.c: New file.
74378         * m4/tmpfile.m4: New file.
74379         * MODULES.html.sh (func_all_modules): New section "Input/output".
74380
74381 2007-02-15  Bruno Haible  <bruno@clisp.org>
74382
74383         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74384         (supports_delete_on_close): New function.
74385         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74386
74387 2007-02-14  Bruno Haible  <bruno@clisp.org>
74388
74389         * modules/mbspcasecmp-tests: New file.
74390         * tests/test-mbspcasecmp.sh: New file.
74391         * tests/test-mbspcasecmp.c: New file.
74392
74393         New module mbspcasecmp.
74394         * modules/mbspcasecmp: New file.
74395         * lib/mbspcasecmp.c: New file.
74396         * lib/string_.h (strncasecmp): Change warning message.
74397         (mbspcasecmp): New declaration.
74398         * m4/mbspcasecmp.m4: New file.
74399         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74400         GNULIB_MBSPCASECMP.
74401         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74402         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74403
74404 2007-02-14  Bruno Haible  <bruno@clisp.org>
74405
74406         * modules/mbsncasecmp-tests: New file.
74407         * tests/test-mbsncasecmp.sh: New file.
74408         * tests/test-mbsncasecmp.c: New file.
74409
74410         New module mbsncasecmp.
74411         * modules/mbsncasecmp: New file.
74412         * lib/mbsncasecmp.c: New file.
74413         * lib/string_.h (mbsncasecmp): New declaration.
74414         * m4/mbsncasecmp.m4: New file.
74415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74416         GNULIB_MBSNCASECMP.
74417         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74418         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74419
74420 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74423         Verify that it doesn't overlap with our flags.
74424         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74425         do not have the desired effect in multibyte locales; instead, use
74426         mbscasecmp.
74427         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74428         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74429         we don't require GNU fnmatch ourselves (if our users require it, they
74430         should do so explicitly).
74431
74432         Fix regex code so it doesn't rely on strcasecmp.
74433         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74434         Otherwise, include gnulib's langinfo.h.
74435         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74436         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74437         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74438         * modules/regex (FILES): Remove m4/codeset.m4.
74439         (Depends-on): Add localcharset.  Remove strcase.
74440
74441 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74442
74443         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74444         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74445
74446 2007-02-13  Bruno Haible  <bruno@clisp.org>
74447
74448         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74450
74451 2007-02-12  Bruno Haible  <bruno@clisp.org>
74452
74453         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74454         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74455         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74456         time warning rather than a link error.
74457
74458 2007-02-12  Bruno Haible  <bruno@clisp.org>
74459
74460         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74461         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74462         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74463
74464 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74465
74466         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74467         args, not 2.
74468
74469 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74470
74471         New module 'time', so that apps can include <time.h> as per
74472         POSIX and GNU instead of separate include files like time_r.h
74473         and timegm.h.  This implementation tries out a simpler approach
74474         for replacing decls in standard include files (as compared to
74475         the string module), somewhat as an experiment.
74476
74477         * config/srclist.txt: Comment out mktime.c for now.
74478         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74479         since it doesn't apply any more.  Use generic wording instead.
74480         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74481         'time'.
74482         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74483         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74484         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74485         Don't include <sys/types.h>; no longer needed since we assume C89.
74486         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74487         * lib/strftime.c: Likewise.
74488         * lib/time_r.c: Likewise.
74489         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74490         * lib/nanosleep.c: Include <time.h> first, to check interface.
74491         * lib/strptime.c: Likewise.
74492         * lib/time_r.c: Likewise.
74493         * lib/timegm.c: Likewise.
74494         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74495         needed.
74496         * lib/timegm.c: Don't include timegm.h; no longer needed.
74497         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74498         time.h now handles any problems in that area.
74499         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74500         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74501         that time.h defines struct timespec.
74502         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74503         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74504         handles that.
74505         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74506         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74507         needed.  Set REPLACE_LOCALTIME.
74508         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74509         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74510         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74511         nanosleep; time_h.m4 now does that.  Don't require
74512         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74513         module handles this now.
74514         * modules/getdate (Depends-on): Remove timespec.  Add time.
74515         * modules/nanosleep (Depends-on): Likewise.
74516         * modules/stat-time (Depends-on): Likewise.
74517         * modules/nanosleep (Include): Include time.h, not timespec.h.
74518         * modules/strptime (Files): Remove lib/strptime.h.
74519         (Depends-on): Add extensions, time.
74520         (Include): Include time.h, not strptime.h.
74521         * modules/time_r (Files): Remove lib/time_r.h.
74522         (Depends-on): Add time.
74523         (Include): Include time.h, not time_r.h.
74524         * modules/timegm: Likewise.
74525         * modules/timespec (Description): Now does timespec-related decls
74526         of our own, instead of struct timespec itself.
74527         (Depends-on): Add time; remove extensions.
74528         (Maintainer): Add self.
74529         * modules/utimecmp (Depends-on): Add time; remove timespec.
74530         * modules/utimens (Depends-on): Likewise.
74531         * modules/xnanosleep (Depends-on): Likewise.
74532
74533 2007-02-11  Bruno Haible  <bruno@clisp.org>
74534
74535         * lib/c-strstr.c: Include allocsa.h.
74536         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74537         * lib/c-strcasestr.c: Include allocsa.h.
74538         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74539         * lib/strcasestr.c: Include allocsa.h.
74540         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74541         * lib/mbsstr.c: Include allocsa.h.
74542         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74543         allocsa/freesa instead of malloc/free.
74544         * lib/mbscasestr.c: Include allocsa.h.
74545         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74546         allocsa/freesa instead of malloc/free.
74547         * modules/c-strstr (Depends-on): Add allocsa.
74548         * modules/c-strcasestr (Depends-on): Likewise.
74549         * modules/strcasestr (Depends-on): Likewise.
74550         * modules/mbsstr (Depends-on): Likewise.
74551         * modules/mbscasestr (Depends-on): Likewise.
74552
74553 2007-02-11  Bruno Haible  <bruno@clisp.org>
74554
74555         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74556
74557         * modules/mbsspn-tests: New file.
74558         * tests/test-mbsspn.sh: New file.
74559         * tests/test-mbsspn.c: New file.
74560
74561 2007-02-11  Bruno Haible  <bruno@clisp.org>
74562
74563         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74564
74565         * modules/mbspbrk-tests: New file.
74566         * tests/test-mbspbrk.sh: New file.
74567         * tests/test-mbspbrk.c: New file.
74568
74569 2007-02-11  Bruno Haible  <bruno@clisp.org>
74570
74571         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74572         unneeded cast.
74573
74574         * modules/mbscspn-tests: New file.
74575         * tests/test-mbscspn.sh: New file.
74576         * tests/test-mbscspn.c: New file.
74577
74578 2007-02-11  Bruno Haible  <bruno@clisp.org>
74579
74580         * modules/mbscasecmp-tests: New file.
74581         * tests/test-mbscasecmp.sh: New file.
74582         * tests/test-mbscasecmp.c: New file.
74583
74584 2007-02-11  Bruno Haible  <bruno@clisp.org>
74585
74586         Ensure O(n) worst-case complexity of mbscasestr.
74587         * lib/mbscasestr.c: Include stdbool.h.
74588         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74589         functions.
74590         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74591         the bookkeeping indicates that it's worth it.
74592         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74593
74594         * modules/mbscasestr-tests: New file.
74595         * tests/test-mbscasestr1.c: New file.
74596         * tests/test-mbscasestr2.sh: New file.
74597         * tests/test-mbscasestr2.c: New file.
74598         * tests/test-mbscasestr3.sh: New file.
74599         * tests/test-mbscasestr3.c: New file.
74600         * tests/test-mbscasestr4.sh: New file.
74601         * tests/test-mbscasestr4.c: New file.
74602         * m4/locale-tr.m4: New file.
74603
74604 2007-02-11  Bruno Haible  <bruno@clisp.org>
74605
74606         Ensure O(n) worst-case complexity of mbsstr.
74607         * lib/mbsstr.c: Include stdbool.h.
74608         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74609         functions.
74610         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74611         bookkeeping indicates that it's worth it.
74612         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74613
74614         * modules/mbsstr-tests: New file.
74615         * tests/test-mbsstr1.c: New file.
74616         * tests/test-mbsstr2.sh: New file.
74617         * tests/test-mbsstr2.c: New file.
74618         * tests/test-mbsstr3.sh: New file.
74619         * tests/test-mbsstr3.c: New file.
74620         * m4/locale-fr.m4: New file.
74621
74622 2007-02-11  Bruno Haible  <bruno@clisp.org>
74623
74624         * lib/mbsrchr.c (mbsrchr): Fix bug.
74625
74626         * modules/mbsrchr-tests: New file.
74627         * tests/test-mbsrchr.sh: New file.
74628         * tests/test-mbsrchr.c: New file.
74629
74630 2007-02-11  Bruno Haible  <bruno@clisp.org>
74631
74632         * lib/mbschr.c (mbschr): Fix bug.
74633
74634         * modules/mbschr-tests: New file.
74635         * tests/test-mbschr.sh: New file.
74636         * tests/test-mbschr.c: New file.
74637         * m4/locale-zh.m4: New file.
74638
74639 2007-02-11  Bruno Haible  <bruno@clisp.org>
74640
74641         Support for copying multibyte string iterators.
74642         * lib/mbiter.h: Include <string.h>.
74643         (mbiter_multi_copy): New function.
74644         (mbi_copy): New macro.
74645         * lib/mbuiter.h: Include <string.h>.
74646         (mbuiter_multi_copy): New function.
74647         (mbui_copy): New macro.
74648
74649 2007-02-11  Bruno Haible  <bruno@clisp.org>
74650
74651         New module mbslen.
74652         * modules/mbslen: New file.
74653         * lib/mbslen.c: New file.
74654         * lib/string_.h (mbslen): New declaration.
74655         * m4/mbslen.m4: New file.
74656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74657         GNULIB_MBSLEN.
74658         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74659         * MODULES.html.sh (Internationalization functions): Add mbslen.
74660
74661 2007-02-11  Bruno Haible  <bruno@clisp.org>
74662
74663         Ensure O(n) worst-case complexity of strcasestr substitute.
74664         * lib/strcasestr.c: Include stdbool.h.
74665         (knuth_morris_pratt): New function.
74666         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74667         bookkeeping indicates that it's worth it.
74668         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74669
74670         * modules/strcasestr-tests: New file.
74671         * tests/test-strcasestr.c: New file.
74672
74673 2007-02-11  Bruno Haible  <bruno@clisp.org>
74674
74675         Ensure O(n) worst-case complexity of c_strcasestr.
74676         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74677         (knuth_morris_pratt): New function.
74678         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74679         the bookkeeping indicates that it's worth it.
74680         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74681
74682         * modules/c-strcasestr-tests: New file.
74683         * tests/test-c-strcasestr.c: New file.
74684
74685 2007-02-11  Bruno Haible  <bruno@clisp.org>
74686
74687         Ensure O(n) worst-case complexity of c_strstr.
74688         * lib/c-strstr.c: Include stdbool.h, string.h.
74689         (knuth_morris_pratt): New function.
74690         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74691         bookkeeping indicates that it's worth it.
74692         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74693
74694         * lib/c-strstr.c: Complete rewrite for maintainability.
74695
74696         * modules/c-strstr-tests: New file.
74697         * tests/test-c-strstr.c: New file.
74698
74699 2007-02-11  Bruno Haible  <bruno@clisp.org>
74700
74701         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74702         5.2.1 and earlier, whereby \055 was treated just like the range
74703         delimiter '-'.
74704         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74705
74706 2007-02-08  Bruno Haible  <bruno@clisp.org>
74707
74708         * modules/regex (Depends-on): Add stdbool.
74709         Reported by Dalibor Topic <robilad@kaffe.org>.
74710
74711 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74712
74713         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74714         Prefer returning from main to exiting from it.
74715         Remove unnecessary parens after sizeof.
74716
74717 2007-02-05  Bruno Haible  <bruno@clisp.org>
74718
74719         New module mbssep.
74720         * modules/mbssep: New file.
74721         * lib/mbssep.c: New file.
74722         * lib/string_.h (strsep): Add a conditional link warning.
74723         (mbssep): New declaration.
74724         * m4/mbssep.m4: New file.
74725         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74726         GNULIB_MBSSEP.
74727         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74728         * MODULES.html.sh (Internationalization functions): Add mbssep.
74729
74730 2007-02-05  Bruno Haible  <bruno@clisp.org>
74731
74732         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74733         Optimize search in case of 1 delimiter.
74734
74735 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74736
74737         * lib/acl.h: Include sys/types.h before sys/acl.h.
74738
74739 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74740
74741         Merge upstream fix for glibc bugzilla #3957:
74742
74743         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74744
74745         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74746         bit for RE_HAT_LISTS_NOT_NEWLINE.
74747         (build_charclass_op): Remove bogus comment.
74748
74749 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74750
74751         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74752
74753 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74756         * lib/memmem.c [!defined _LIBC]: Include config.h.
74757
74758 2007-02-04  Bruno Haible  <bruno@clisp.org>
74759
74760         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74761         warning message.
74762
74763 2007-02-04  Bruno Haible  <bruno@clisp.org>
74764
74765         New module mbstok_r.
74766         * modules/mbstok_r: New file.
74767         * lib/mbstok_r.c: New file.
74768         * lib/string_.h (strtok_r): Change argument names to match the
74769         comments. Add a conditional link warning.
74770         (mbstok_r): New declaration.
74771         * m4/mbstok_r.m4: New file.
74772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74773         GNULIB_MBSTOK_R.
74774         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74775         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74776
74777 2007-02-04  Bruno Haible  <bruno@clisp.org>
74778
74779         New module mbsspn.
74780         * modules/mbsspn: New file.
74781         * lib/mbsspn.c: New file.
74782         * lib/string_.h (strspn): Add a conditional link warning.
74783         (mbsspn): New declaration.
74784         * m4/mbsspn.m4: New file.
74785         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74786         GNULIB_MBSSPN.
74787         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74788         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74789
74790 2007-02-04  Bruno Haible  <bruno@clisp.org>
74791
74792         New module mbspbrk.
74793         * modules/mbspbrk: New file.
74794         * lib/mbspbrk.c: New file.
74795         * lib/string_.h (strpbrk): Add a conditional link warning.
74796         (mbspbrk): New declaration.
74797         * m4/mbspbrk.m4: New file.
74798         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74799         GNULIB_MBSPBRK.
74800         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74801         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74802
74803 2007-02-04  Bruno Haible  <bruno@clisp.org>
74804
74805         New module mbscspn.
74806         * modules/mbscspn: New file.
74807         * lib/mbscspn.c: New file.
74808         * lib/string_.h (strcspn): Add a conditional link warning.
74809         (mbscspn): New declaration.
74810         * m4/mbscspn.m4: New file.
74811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74812         GNULIB_MBSCSPN.
74813         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74814         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74815
74816 2007-02-04  Bruno Haible  <bruno@clisp.org>
74817
74818         New module mbscasestr, reduced goal of strcasestr.
74819         * modules/mbscasestr: New file.
74820         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74821         (mbscasestr): Renamed from strcasestr.
74822         * lib/strcasestr.c: Don't include mbuiter.h.
74823         (strcasestr): Remove support for multibyte locales.
74824         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74825         Change the conditional link warning.
74826         (mbscasestr): New declaration.
74827         * m4/mbscasestr.m4: New file.
74828         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74829         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74830         REPLACE_STRCASESTR.
74831         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74833         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74834         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74835         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74836         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74837         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74838         (Depends-on): Remove mbuiter.
74839         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74840
74841 2007-02-04  Bruno Haible  <bruno@clisp.org>
74842
74843         Simplify handling of strncasecmp.
74844         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74845         the conditional link warning.
74846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74847         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74848         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74849         * modules/strcase (configure.ac): Don't invoke
74850         gl_STRING_MODULE_INDICATOR.
74851         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74852
74853 2007-02-04  Bruno Haible  <bruno@clisp.org>
74854
74855         New module mbscasecmp, reduced goal of strcasecmp.
74856         * modules/mbscasecmp: New file.
74857         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74858         (mbscasecmp): Renamed from strcasecmp.
74859         * lib/strcasecmp.c: Don't include mbuiter.h.
74860         (strcasecmp): Remove support for multibyte locales.
74861         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74862         Change the conditional link warning.
74863         (mbscasecmp): New declaration.
74864         * m4/mbscasecmp.m4: New file.
74865         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74866         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74867         REPLACE_STRCASECMP.
74868         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74870         GNULIB_MBSCASECMP.
74871         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74872         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74873         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74874         (Depends-on): Remove mbuiter.
74875         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74876
74877 2007-02-04  Bruno Haible  <bruno@clisp.org>
74878
74879         New module mbsstr. Remove module strstr.
74880         * modules/mbsstr: New file.
74881         * modules/strstr: Remove file.
74882         * lib/mbsstr.c: Renamed from lib/strstr.c.
74883         (mbsstr): Renamed from strstr.
74884         * lib/string_.h (strstr): Remove declaration. Change the conditional
74885         link warning.
74886         (mbsstr): New declaration.
74887         * m4/mbsstr.m4: New file.
74888         * m4/strstr.m4: Remove file.
74889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74890         REPLACE_STRSTR.
74891         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74892         Don't initialize GNULIB_STRSTR.
74893         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74894         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74895         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74896         (Support for systems lacking ANSI C 89): Remove strstr.
74897
74898 2007-02-04  Bruno Haible  <bruno@clisp.org>
74899
74900         New module mbsrchr.
74901         * modules/mbsrchr: New file.
74902         * lib/mbsrchr.c: New file.
74903         * lib/string_.h (strrchr): Add a conditional link warning.
74904         (mbsrchr): New declaration.
74905         * m4/mbsrchr.m4: New file.
74906         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74907         GNULIB_MBSRCHR.
74908         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74909         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74910
74911 2007-02-04  Bruno Haible  <bruno@clisp.org>
74912
74913         New module mbschr.
74914         * modules/mbschr: New file.
74915         * lib/mbschr.c: New file.
74916         * lib/string_.h (strchr): Add a conditional link warning.
74917         (mbschr): New declaration.
74918         * m4/mbschr.m4: New file.
74919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74920         GNULIB_MBSCHR.
74921         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74922         * MODULES.html.sh (Internationalization functions): Add mbschr.
74923
74924 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74925
74926         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74927
74928         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74929
74930 2007-02-04  Bruno Haible  <bruno@clisp.org>
74931
74932         New module description section 'configure.ac-early'.
74933         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74934         (func_get_autoconf_early_snippet): New function.
74935         (func_import, func_create_testdir): Use it. Remove special cases for
74936         modules 'extensions' and 'lock'.
74937         * modules/extensions (configure.ac-early): Require
74938         gl_USE_SYSTEM_EXTENSIONS.
74939         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74940
74941 2007-02-04  Bruno Haible  <bruno@clisp.org>
74942
74943         Make use of gcj-4.3's -fsource and -ftarget option.
74944         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74945         and if so try the options -fsource and -ftarget.
74946         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74947         source_version, ftarget_option, target_version arguments.
74948         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74949         (is_envjavac_oldgcj_14_14_usable): Renamed from
74950         is_envjavac_gcj_14_14_usable.
74951         (is_envjavac_oldgcj_14_13_usable): Renamed from
74952         is_envjavac_gcj_14_13_usable.
74953         (is_gcj_present): Update.
74954         (is_gcj_43, is_gcj43_usable): New functions.
74955         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74956         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74957         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74958         try the options -fsource and -ftarget.
74959
74960 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74963         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74964         larger value.
74965
74966 2007-02-03  Jim Meyering  <jim@meyering.net>
74967
74968         Give tools a better chance to allocate space for very large buffers.
74969         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74970
74971         Make pwd and readlink work also when run with an unreadable parent dir
74972         on systems with openat support.
74973         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74974         provided getcwd function, even when we have openat support.
74975         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74976
74977 2007-02-02  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74980         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74981         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74982         portability problems if one of these functions is only used on specific
74983         platforms.
74984         Reported by Paul Eggert.
74985
74986 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74987
74988         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74989         is causing more trouble than it's curing.
74990         * lib/regex_internal.h (__mempcpy): Remove.
74991         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74992         (and make the code a tad smaller to boot).
74993         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74994
74995 2007-02-02  Jim Meyering  <jim@meyering.net>
74996
74997         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74998         section, not in the Makefile.am: one.
74999
75000 2007-02-02  Eric Blake  <ebb9@byu.net>
75001
75002         * lib/strchrnul.c: Always include config.h first.
75003
75004         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
75005         gnulib strstr is not necessary here.
75006
75007 2007-02-02  Simon Josefsson  <simon@josefsson.org>
75008
75009         * m4/socklen.m4: Fix typo.
75010
75011 2007-02-02  Eric Blake  <ebb9@byu.net>
75012
75013         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
75014         * modules/netinet_in (Makefile.am): Likewise.
75015
75016 2007-02-01  Bruno Haible  <bruno@clisp.org>
75017
75018         * lib/string_.h (GL_LINK_WARNING): New macro.
75019         (strcasecmp, strstr, strcasestr): If provided by the system,
75020         conditionally define as a macro that leads to a warning instead of to
75021         an error.
75022         (strncasecmp): Conditionally define as a macro that leads to a warning.
75023
75024 2007-02-01  Karl Berry  <karl@gnu.org>
75025
75026         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
75027
75028 2007-02-01  Bruno Haible  <bruno@clisp.org>
75029
75030         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
75031         renamings.
75032
75033 2007-02-01  Eric Blake  <ebb9@byu.net>
75034
75035         * modules/regex (Depends-on): Revert dependence on mempcpy.
75036         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
75037         module's definition of mempcpy.
75038         Reported by Paul Eggert.
75039
75040 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * lib/string_.h: If the gnulib module XYZ is not present, undefine
75043         the symbol XYZ before redefining it.  This fixes a problem with
75044         programs that don't use XYZ, when compiled on systems that define
75045         XYZ to something else.
75046
75047 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
75048
75049         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
75050         occurs when "mkdir -m foo" creates a setgid directory that is (1)
75051         writeable to group or other and (2) is intended to have a special
75052         mode bit that is set or cleared.  In such a case, the directory
75053         should be neither group- nor other-writeable until the special
75054         mode bits are right.
75055
75056 2007-01-31  Eric Blake  <ebb9@byu.net>
75057
75058         * modules/mountlist (Depends-on): Add strstr.
75059
75060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
75061         bug.
75062         * modules/string (Makefile.am): Remove redundant replacement.
75063         * modules/regex (Depends-on): Add mempcpy.
75064
75065 2007-01-31  Bruno Haible  <bruno@clisp.org>
75066
75067         New module description field 'Link'.
75068         * gnulib-tool (func_usage): Document --extract-link-directive.
75069         (sed_extract_prog): Recognize 'Link' directive.
75070         (func_get_link_directive): New function.
75071         (func_import): Show summary of link directives.
75072         Handle --extract-link-directive option.
75073         * modules/acl (Link): New section.
75074         * modules/clock-time (Link): New section.
75075         * modules/euidaccess (Link): New section.
75076         * modules/gettext (Link): New section.
75077         * modules/iconv (Link): New section.
75078         * modules/lock (Link): New section.
75079         * modules/nanosleep (Link): New section.
75080         * modules/readline (Link): New section.
75081
75082 2007-01-27  Bruno Haible  <bruno@clisp.org>
75083
75084         Enforce the use of gnulib modules for unportable <string.h> functions.
75085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
75086         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
75087         (gl_HEADER_STRING_H_BODY): Require it.
75088         * lib/string_.h: If the gnulib module XYZ is not present, redefine
75089         the symbol XYZ to one that gives a link error.
75090         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
75091         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
75092         * modules/mempcpy (configure.ac): Likewise.
75093         * modules/memrchr (configure.ac): Likewise.
75094         * modules/stpcpy (configure.ac): Likewise.
75095         * modules/stpncpy (configure.ac): Likewise.
75096         * modules/strcase (configure.ac): Likewise.
75097         * modules/strcasestr (configure.ac): Likewise.
75098         * modules/strchrnul (configure.ac): Likewise.
75099         * modules/strdup (configure.ac): Likewise.
75100         * modules/strndup (configure.ac): Likewise.
75101         * modules/strnlen (configure.ac): Likewise.
75102         * modules/strpbrk (configure.ac): Likewise.
75103         * modules/strsep (configure.ac): Likewise.
75104         * modules/strstr (configure.ac): Likewise.
75105         * modules/strtok_r (configure.ac): Likewise.
75106
75107 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
75108
75109         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
75110
75111 2007-01-30  Jim Meyering  <jim@meyering.net>
75112
75113         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
75114
75115 2007-01-29  Bruno Haible  <bruno@clisp.org>
75116
75117         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
75118         * lib/execute.c: Likewise.
75119         * lib/pipe.c: Likewise.
75120         * lib/printf-args.h: Likewise.
75121         * lib/printf-args.c: Likewise.
75122         * lib/printf-parse.c: Likewise.
75123         * lib/vasnprintf.c: Likewise.
75124
75125 2007-01-29  Eric Blake  <ebb9@byu.net>
75126
75127         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
75128         declaration.
75129
75130 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
75131
75132         * lib/strptime.h (strptime): Use 'restrict' for args where
75133         POSIX requires this.
75134         * lib/strptime.c (strptime): Likewise.
75135         Change license notice from LGPL to GPL, since gnulib-tool will
75136         change this as needed.
75137         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
75138         defined.
75139         Include "strptime.h" first, to check interface.
75140         Do not #undef _LIBC and _NL_CURRENT.
75141         Do not include <stdlib.h>; no longer needed.
75142         Include "time_r.h" and declare ptime_locale_status
75143         only if _LIBC is not defined.
75144         (__P): Remove unused macro.
75145         (match_string): Bring back glibc version, but use it only if _LIBC
75146         is defined.
75147         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75148         Remove unnecessary assertion and abort() call.
75149         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75150         * m4/strptime.m4: Fix serial number comment.
75151         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75152         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75153         (Depends-on): Add time_r.
75154
75155 2007-01-29  Bruno Haible  <bruno@clisp.org>
75156
75157         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75158         strptime.
75159         * modules/strptime (Depends-on): Add stdbool.
75160         * lib/strptime.h: Include <time.h> always. Add comments.
75161
75162 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75163
75164         * modules/strptime: New file.
75165         * lib/strptime.h: New file.
75166         * lib/strptime.c: New file.
75167         * m4/strptime.m4: New file.
75168
75169 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75170
75171         * MODULES.html.sh: New module mpsort.
75172         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75173
75174         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75175         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75177         All uses changed.
75178         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75179         All uses changed.
75180         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75181         to _Restrict_.
75182         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75183         the parameter matches the prototype.
75184
75185 2007-01-28  Jim Meyering  <jim@meyering.net>
75186
75187         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75188         sys/time.h here, reverting that part of the previous patch:
75189         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75190
75191 2007-01-28  Bruno Haible  <bruno@clisp.org>
75192
75193         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75194         value of $(SYS_TIME_H).
75195         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75196         remove it conditionally, too. [added by Jim Meyering]
75197         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75198         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75199         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75200         GETTIMEOFDAY_REPLACEMENT to 1.
75201
75202 2007-01-28  Bruno Haible  <bruno@clisp.org>
75203
75204         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75205         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75207         Set UNISTD_H instead of UNISTD_H2.
75208         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75209
75210 2007-01-28  Bruno Haible  <bruno@clisp.org>
75211
75212         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75213         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75214
75215 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75216
75217         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75218         (func_create_testdir): Ensure C locale for `grep' and `tr'
75219         character ranges.
75220         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75221         ACLOCAL_AMFLAGS parsing state machine.
75222
75223 2007-01-27  Bruno Haible  <bruno@clisp.org>
75224
75225         * modules/unistr/base: Update.
75226
75227 2007-01-27  Bruno Haible  <bruno@clisp.org>
75228
75229         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75230         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75231         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75232         modules/unistr/u32-mbtouc.
75233         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75234         * lib/unistr.h: Update.
75235         * lib/linebreak.c: Update.
75236         * modules/unistr/u32-mbtouc: Renamed from
75237         modules/unistr/u32-mbtouc-safe.
75238         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75239         * lib/unistr.h: Update.
75240         * lib/unistr/u32-to-u8.c: Update.
75241         * lib/unistr/u32-to-u16.c: Update.
75242
75243 2007-01-27  Bruno Haible  <bruno@clisp.org>
75244
75245         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75246         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75247         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75248         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75249         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75250         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75251         modules/unistr/u16-mbtouc.
75252         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75253         * lib/unistr.h: Update.
75254         * lib/linebreak.c: Update.
75255         * modules/linebreak: Update.
75256         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75257         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75258         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75259         * modules/unistr/u16-mbtouc: Renamed from
75260         modules/unistr/u16-mbtouc-safe.
75261         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75262         * lib/unistr.h: Update.
75263         * lib/unistr/u16-to-u8.c: Update.
75264         * modules/unistr/u16-to-u8: Update.
75265         * lib/unistr/u16-to-u32.c: Update.
75266         * modules/unistr/u16-to-u32: Update.
75267
75268 2007-01-27  Bruno Haible  <bruno@clisp.org>
75269
75270         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75271         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75272         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75273         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75274         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75275         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75276         modules/unistr/u8-mbtouc.
75277         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75278         * lib/unistr.h: Update.
75279         * lib/striconveh.c: Update.
75280         * modules/striconveh: Update.
75281         * lib/linebreak.c: Update.
75282         * modules/linebreak: Update.
75283         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75284         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75285         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75286         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75287         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75288         * lib/unistr.h: Update.
75289         * lib/striconveh.c: Update.
75290         * modules/striconveh: Update.
75291         * lib/unistr/u8-to-u16.c: Update.
75292         * modules/unistr/u8-to-u16: Update.
75293         * lib/unistr/u8-to-u32.c: Update.
75294         * modules/unistr/u8-to-u32: Update.
75295
75296 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75297
75298         Sync from Libtool.
75299         * lib/argz.c: Do not include strings.h nor memory.h, include
75300         string.h unconditionally.  Patch by Simon Josefsson.
75301
75302 2007-01-27  Bruno Haible  <bruno@clisp.org>
75303
75304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75305         from gl_HEADER_STRING_H_BODY.
75306         (gl_HEADER_STRING_H_BODY): Require it.
75307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75308         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75309         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75310         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75311         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75312         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75314         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75315         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75316         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75317         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75318         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75319         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75320         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75321         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75322
75323 2007-01-27  Bruno Haible  <bruno@clisp.org>
75324
75325         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75326         check_PROGRAMS into noinst_PROGRAMS.
75327         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75328         check_PROGRAMS in this case.
75329         (func_import): Set for_test to false.
75330         (func_create_testdir): Set for_test to true.
75331
75332 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75333             Bruno Haible  <bruno@clisp.org>
75334
75335         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75336         (Depends-on): Add string.
75337         (Includes): Use <string.h> instead of strcasestr.h.
75338         * modules/string (Makefile.am): Also substitute the value of
75339         REPLACE_STRCASESTR.
75340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75341         assume strcasestr is declared in <string.h> not <strings.h>. Also
75342         set REPLACE_STRCASESTR.
75343         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75344         REPLACE_STRCASESTR.
75345         * lib/strcasestr.h: Remove file.
75346         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75347         * lib/string_.h (strcasestr): New declaration.
75348
75349 2007-01-27  Bruno Haible  <bruno@clisp.org>
75350
75351         * lib/string_.h: Use 'extern'.
75352
75353 2007-01-27  Jim Meyering  <jim@meyering.net>
75354
75355         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75356         of set-but-not-used local, "q".
75357
75358         * lib/mempcpy.c: Include <config.h> before <string.h>.
75359         This fixes a compilation error on HP-UX, due to the system's
75360         "restrict"-using mempcpy prototype.
75361
75362 2007-01-26  Bruno Haible  <bruno@clisp.org>
75363
75364         Small optimization.
75365         * lib/javacomp.c: Include c-strstr.h.
75366          (is_envjavac_gcj): Use c_strstr instead of strstr.
75367         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75368
75369 2007-01-26  Bruno Haible  <bruno@clisp.org>
75370
75371         * MODULES.html.sh (Unicode string functions): Add the new modules.
75372
75373         * modules/uniconv/u32-strconv-to-locale: New file.
75374         * lib/uniconv/u32-strconv-to-locale.c: New file.
75375
75376         * modules/uniconv/u16-strconv-to-locale: New file.
75377         * lib/uniconv/u16-strconv-to-locale.c: New file.
75378
75379         * modules/uniconv/u8-strconv-to-locale: New file.
75380         * lib/uniconv/u8-strconv-to-locale.c: New file.
75381
75382         * modules/uniconv/u32-strconv-from-locale: New file.
75383         * lib/uniconv/u32-strconv-from-locale.c: New file.
75384
75385         * modules/uniconv/u16-strconv-from-locale: New file.
75386         * lib/uniconv/u16-strconv-from-locale.c: New file.
75387
75388         * modules/uniconv/u8-strconv-from-locale: New file.
75389         * lib/uniconv/u8-strconv-from-locale.c: New file.
75390
75391         * modules/uniconv/u32-strconv-to-enc: New file.
75392         * lib/uniconv/u32-strconv-to-enc.c: New file.
75393         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75394         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75395
75396         * modules/uniconv/u16-strconv-to-enc: New file.
75397         * lib/uniconv/u16-strconv-to-enc.c: New file.
75398         * lib/uniconv/u-strconv-to-enc.h: New file.
75399         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75400         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75401
75402         * modules/uniconv/u8-strconv-to-enc: New file.
75403         * lib/uniconv/u8-strconv-to-enc.c: New file.
75404         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75405         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75406
75407         * modules/uniconv/u32-strconv-from-enc: New file.
75408         * lib/uniconv/u32-strconv-from-enc.c: New file.
75409         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75410         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75411
75412         * modules/uniconv/u16-strconv-from-enc: New file.
75413         * lib/uniconv/u16-strconv-from-enc.c: New file.
75414         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75415         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75416
75417         * modules/uniconv/u8-strconv-from-enc: New file.
75418         * lib/uniconv/u8-strconv-from-enc.c: New file.
75419         * lib/uniconv/u-strconv-from-enc.h: New file.
75420         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75421         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75422
75423         * modules/uniconv/u32-conv-from-enc: New file.
75424         * lib/uniconv/u32-conv-from-enc.c: New file.
75425         * modules/uniconv/u32-conv-from-enc-tests: New file.
75426         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75427
75428         * modules/uniconv/u16-conv-from-enc: New file.
75429         * lib/uniconv/u16-conv-from-enc.c: New file.
75430         * lib/uniconv/u-conv-from-enc.h: New file.
75431         * modules/uniconv/u16-conv-from-enc-tests: New file.
75432         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75433
75434         * modules/uniconv/u8-conv-from-enc: New file.
75435         * lib/uniconv/u8-conv-from-enc.c: New file.
75436         * modules/uniconv/u8-conv-from-enc-tests: New file.
75437         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75438
75439         * modules/uniconv/base: New file.
75440         * lib/uniconv.h: New file.
75441
75442 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * doc/gnulib-tool.texi (Initial import): Update to match current
75445         behavior with strdup module.
75446         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75447         * lib/memmem.h: Remove; all uses removed.  This is now done
75448         by <string.h>.
75449         * lib/mempcpy.h: Likewise.
75450         * lib/memrchr.h: Likewise.
75451         * lib/stpcpy.h: Likewise.
75452         * lib/stpncpy.h: Likewise.
75453         * lib/strcase.h: Likewise.
75454         * lib/strchrnul.h: Likewise.
75455         * lib/strdup.h: Likewise.
75456         * lib/strndup.h: Likewise.
75457         * lib/strnlen.h: Likewise.
75458         * lib/strpbrk.h: Likewise.
75459         * lib/strsep.h: Likewise.
75460         * lib/strstr.h: Likewise.
75461         * lib/strtok_r.h: Likewise.
75462         * lib/string_.h: New file.
75463         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75464         Rely on <string.h> instead.
75465         * lib/canon-host.c: Likewise.
75466         * lib/chdir-long.c: Likewise.
75467         * lib/concatpath.c: Likewise.
75468         * lib/exclude.c: Likewise.
75469         * lib/fchdir.c: Likewise.
75470         * lib/getaddrinfo.c: Likewise.
75471         * lib/getcwd.c: Likewise.
75472         * lib/getsubopt.c: Likewise.
75473         * lib/glob.c: Likewise.
75474         * lib/hard-locale.c: Likewise.
75475         * lib/iconvme.c: Likewise.
75476         * lib/javacomp.c: Likewise.
75477         * lib/mempcpy.c: Likewise.
75478         * lib/memrchr.c: Likewise.
75479         * lib/regex_internal.h: Likewise.
75480         * lib/stpncpy.c: Likewise.
75481         * lib/strcasecmp.c: Likewise.
75482         * lib/strchrnul.c: Likewise.
75483         * lib/strdup.c: Likewise.
75484         * lib/striconv.c: Likewise.
75485         * lib/striconveh.c: Likewise.
75486         * lib/striconveha.c: Likewise.
75487         * lib/strncasecmp.c: Likewise.
75488         * lib/strndup.c: Likewise.
75489         * lib/strnlen.c: Likewise.
75490         * lib/strsep.c: Likewise.
75491         * lib/strstr.c: Likewise.
75492         * lib/strtok_r.c: Likewise.
75493         * lib/userspec.c: Likewise.
75494         * lib/w32spawn.h: Likewise.
75495         * lib/xstrndup.c: Likewise.
75496         * lib/mountlist.c (strstr): Remove decl.
75497         * m4/string_h.m4: New file.
75498         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75499         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75500         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75501         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75502         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75503         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75504         Set REPLACE_STRCASECMP if necessary.
75505         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75506         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75507         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75508         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75509         HAVE_DECL_STRDUP if necessary.
75510         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75511         since gl_FUNC_STRNDUP does that now.
75512         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75513         Check for decl here...
75514         (gl_PREREQ_STRNLEN): ... not here.
75515         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75516         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75517         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75518         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75519         necessary.
75520         * modules/string: New file.
75521         * modules/memmem (Files): Remove special-purpose include file.
75522         (Depends-on): Add string.
75523         (Include): Include <string.h>, not the removed file.
75524         * modules/mempcpy: Likewise.
75525         * modules/memrchr: Likewise.
75526         * modules/stpcpy: Likewise.
75527         * modules/stpncpy: Likewise.
75528         * modules/strcase: Likewise.
75529         * modules/strchrnul: Likewise.
75530         * modules/strdup: Likewise.
75531         * modules/strndup: Likewise.
75532         * modules/strnlen: Likewise.
75533         * modules/strpbrk: Likewise.
75534         * modules/strsep: Likewise.
75535         * modules/strstr: Likewise.
75536         * modules/strtok_r: Likewise.
75537         * tests/test-dirname.c: Don't include "strdup.h", since
75538         <string.h> now suffices.
75539         * tests/test-memmem.c: Don't include "memmem.h", since
75540         <string.h> now suffices.
75541
75542 2007-01-25  Bruno Haible  <bruno@clisp.org>
75543
75544         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75545         *resultp is 0.
75546
75547         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75548         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75549         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75550         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75551
75552         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75553         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75554         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75555         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75556         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75557         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75558
75559 2007-01-24  Bruno Haible  <bruno@clisp.org>
75560
75561         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75562         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75563         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75564         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75565         gl_FUNC_FTS_CORE.
75566         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75567         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75568         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75569         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75570         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75571         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75572         gl_FUNC_FCHOWNAT.
75573         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75574         gl_FUNC_STRFTIME.
75575         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75576         Reported by Ralf Wildenhues.
75577
75578 2007-01-24  Bruno Haible  <bruno@clisp.org>
75579
75580         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75581         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75582         gl_GETADDRINFO.
75583         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75584         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75585         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75586
75587 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75588
75589         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75590         Don't use 'exit'; just return from 'main'.
75591         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75592
75593         * lib/fnmatch_.h: Readjust white space and comments to match
75594         glibc, to avoid spurious diffs.
75595
75596 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75597
75598         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75599         2004-12-01 change by Jakub Jelinek, since this code won't compile
75600         if !LIBC.  Problem reported by Bob Proulx.
75601
75602 2007-01-23  Bruno Haible  <bruno@clisp.org>
75603
75604         * lib/striconveh.c: Include c-strcaseeq.h.
75605         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75606         * modules/striconveh (Depends-on): Add c-strcaseeq.
75607
75608 2007-01-23  Bruno Haible  <bruno@clisp.org>
75609
75610         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75611
75612         * modules/c-strcaseeq: New file.
75613         * lib/c-strcaseeq.h: New file.
75614
75615         * modules/streq: New file.
75616         * lib/streq.h: New file.
75617
75618 2007-01-23  Bruno Haible  <bruno@clisp.org>
75619
75620         * modules/striconveha-tests: New file.
75621         * tests/test-striconveha.c: New file.
75622
75623         * lib/striconveha.h: Include <stdbool.h>.
75624         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75625         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75626         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75627         (mem_iconveha): New function.
75628         (str_iconveha_notranslit): Renamed from str_iconveha.
75629         (str_iconveha): New function.
75630         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75631         c-strcase.
75632
75633 2007-01-23  Bruno Haible  <bruno@clisp.org>
75634
75635         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75636         encodings without forgiving before trying any encoding with handler.
75637         (str_iconveha): Try all encodings without forgiving before trying any
75638         encoding with handler.
75639
75640 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75641
75642         Import the following changes from libc.
75643
75644         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75645
75646         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75647
75648         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75649
75650         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75651         normal_bracket label.
75652
75653         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75654
75655         [BZ #361]
75656         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75657         to normal_bracket after fetching the next character.
75658
75659 2007-01-22  Bruno Haible  <bruno@clisp.org>
75660
75661         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75662         argument.
75663         * lib/striconveh.c (iconv_carefully_1): New function.
75664         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75665         argument.
75666         (str_cd_iconveh): Update.
75667         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75668         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75669         * tests/test-striconveh.c (MAGIC): New macro.
75670         (new_offsets): New function.
75671         (main): Test call with and without offsets.
75672
75673 2007-01-22  Bruno Haible  <bruno@clisp.org>
75674
75675         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75676         * modules/sys_select (Makefile.am): Likewise.
75677         * modules/sys_socket (Makefile.am): Likewise.
75678         * modules/sys_time (Makefile.am): Likewise.
75679
75680 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75681
75682         * modules/gettimeofday (License): Change from GPL to LGPL, since
75683         gettimeofday is a library function.
75684
75685 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75686
75687         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75688
75689 2007-01-21  Bruno Haible  <bruno@clisp.org>
75690
75691         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75692
75693 2007-01-21  Bruno Haible  <bruno@clisp.org>
75694
75695         * modules/striconveha: New file.
75696         * lib/striconveha.h: New file.
75697         * lib/striconveha.c: New file.
75698         * MODULES.html.sh (Internationalization functions): Add striconveha.
75699         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75700         string.
75701         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75702
75703 2007-01-21  Bruno Haible  <bruno@clisp.org>
75704
75705         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75706         * lib/striconveh.c (str_iconveh): Likewise.
75707
75708 2007-01-21  Bruno Haible  <bruno@clisp.org>
75709
75710         * lib/striconveh.h (mem_iconveh): New declaration.
75711         * lib/striconveh.c (mem_iconveh): New function.
75712         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75713
75714 2007-01-21  Bruno Haible  <bruno@clisp.org>
75715
75716         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75717
75718         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75719         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75720         original result buffer.
75721         (str_cd_iconveh): Update.
75722         * tests/test-striconveh.c (main): Update.
75723
75724         * lib/striconv.h (mem_cd_iconv): Change specification.
75725         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75726         result buffer.
75727         (str_cd_iconv): Update.
75728         * tests/test-striconv.c (main): Update.
75729
75730 2007-01-21  Bruno Haible  <bruno@clisp.org>
75731
75732         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75733
75734 2007-01-20  Jim Meyering  <jim@meyering.net>
75735
75736         * lib/userspec.c (parse_with_separator): If a user or group string
75737         starts with "+", skip the corresponding name-to-ID look-up, since
75738         such a look-up must fail: user and group names may not include "+".
75739
75740 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75743         since we now assume the sys_time module.
75744         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75745         check for sys/time.h; no longer needed.
75746         * modules/poll (Depends-on): Depend on sys_time.
75747
75748 2007-01-18  Bruno Haible  <bruno@clisp.org>
75749
75750         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75751         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75752
75753         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75754         gettimeofday.
75755
75756         * tests/test-gettimeofday.c: Include <time.h>.
75757         (dummy): Remove variable.
75758
75759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75760         gl_HEADER_SYS_TIME_H.
75761         (gl_HEADER_SYS_TIME_H): New macro.
75762
75763         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75764         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75766         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75767         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75768         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75769         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75770         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75771         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75772         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75773         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75774
75775         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75776         last change; it caused a compilation error when cross-compiling to
75777         Cygwin.
75778
75779 2007-01-18  Jim Meyering  <jim@meyering.net>
75780
75781         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75782         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75783         than the race-prone "test -d sys || mkdir sys".
75784         (configure.ac): Use AC_PROG_MKDIR_P.
75785         * modules/sys_select: Likewise.
75786         * modules/sys_socket: Likewise.
75787         * modules/sys_time: Likewise.
75788
75789 2007-01-18  Eric Blake  <ebb9@byu.net>
75790
75791         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75792         replace gettimeofday.
75793         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75794         name, to avoid infinite recursion.
75795
75796 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75799         module sys_time.
75800         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75801         assume timespec.h defines struct timeval.
75802         * lib/settime.c: Likewise.
75803         * lib/utimens.c: Likewise.
75804         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75805         since we now assume the gettimeofday module.
75806         * lib/tempname.c (__gen_tempname): Likewise.
75807         * lib/gettimeofday.h: Remove.
75808         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75809         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75810         Include <time.h>, for 'time()'.
75811         (localtime_buffer_addr): Also use this workaround if
75812         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75813         to simplify the uses.  All uses changed.
75814         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75815         that #undef is inside {}, and 'const' follows type name consistently.
75816         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75817         (gettimeofday): Do not use the maximum possible value for
75818         tv->tv_usec, since that might break usages other than ls.c.
75819         Instead, we'll leave ls.c alone.  This undoes today's patch
75820         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75821         we've never observed the problem but might as well keep the
75822         canary.
75823         * lib/nanosleep.c: Include timespec.h first, for interface check.
75824         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75825         now assume the sys_time module.
75826         * lib/tempname.c: Likewise.
75827         * lib/timespec.h: Likewise.
75828         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75829         needed.
75830         * lib/strftime.c: Likewise.
75831         * lib/timespec.h: Likewise.
75832         * lib/posixtm.c: Include posixtm.h first, for interface check.
75833         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75834         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75835         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75836         * lib/sys_time_.h: New file.
75837         * lib/timespec.h (struct timespec): Use long int, not long.
75838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75839         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75840         Remove obsolescent call to AC_HEADER_TIME.
75841         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75842         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75843         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75844         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75845         Likewise.
75846         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75847         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75849         into the sys_time module.  Check for gettimeofday just once.
75850         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75851         for gettimeofday signature to just check the signature.  Merely
75852         compile it, since linking doesn't test signature.  Improve test for
75853         whether gettimeofday.o is actually needed.
75854         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75855         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75856         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75857         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75858         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75859         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75860         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75861         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75862         than worrying about sys/time.h.
75863         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75864         Don't bother worrying about TIME_WITH_SYS_TIME.
75865         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75866         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75867         * m4/sys_time_h.m4: New file.
75868         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75869         Don't include sys/time.h.  Return from main rather than exiting.
75870         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75871         all uses changed.
75872         * modules/gethrxtime (Depends-on): Add sys_time.
75873         * modules/gettime (Depends-on): Likewise.
75874         * modules/gettimeofday (Depends-on): Likewise.
75875         * modules/nanosleep (Depends-on): Likewise.
75876         * modules/settime (Depends-on): Likewise.
75877         * modules/tempname (Depends-on): Likewise.
75878         * modules/utimens (Depends-on): Likewise.
75879         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75880         (Include): Change back to <sys/time.h>.
75881         (Maintainer): Add self.
75882         * modules/sys_time: New file.
75883         * modules/tempname (Depends-on): Add gettimeofday.
75884         * tests/test-gettimeofday.c: Include <sys/time.h>
75885         rather than gettimeofday.h.
75886
75887 2007-01-17  Bruno Haible  <bruno@clisp.org>
75888
75889         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75890         the license default to GPL.
75891         (func_create_testdir): Don't complain if a module is LGPL and its
75892         tests module depends on GPLed modules.
75893
75894 2007-01-17  Bruno Haible  <bruno@clisp.org>
75895
75896         * lib/gettimeofday.c (gettimeofday): Add code for the case
75897         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75898         maximum possible value for tv->tv_usec, rather than the minimum one.
75899
75900 2005-10-08  Martin Lambers  <marlam@marlam.de>
75901 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75902 2007-01-16  Bruno Haible  <bruno@clisp.org>
75903
75904         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75905         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75906         gl_FUNC_GETTIMEOFDAY.
75907         (Include): Add gettimeofday.h.
75908         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75909         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75910         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75911         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75912         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75913         * lib/gettimeofday.h: New file.
75914         * lib/gettimeofday.c: Include <sys/timeb.h>.
75915         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75916         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75917         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75918         fall back on time().
75919
75920         * tests/test-gettimeofday.c: New file.
75921         * modules/gettimeofday-tests: New file.
75922
75923 2007-01-16  Eric Blake  <ebb9@byu.net>
75924
75925         * modules/fnmatch (Depends-on): Depend on wchar.
75926         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75927         * m4/fnmatch.m4: Likewise.
75928         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75929         * m4/mbchar.m4: Likewise.
75930         * modules/mbswidth (Depends-on): Depend on wchar.
75931         * lib/mbswidth.c: Assume <wchar.h>.
75932         * m4/mbswidth.m4: Likewise.
75933         * modules/quotearg (Depends-on): Depend on wchar.
75934         * lib/quotearg.c: Assume <wchar.h>.
75935         * m4/quotearg.m4: Likewise.
75936         * modules/regex (Depends-on): Depend on wchar.
75937         * lib/regex_internal.h: Assume <wchar.h>.
75938         * m4/regex.m4: Likewise.
75939         * modules/stdint (Depends-on): Depend on wchar.
75940         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75941         * m4/stdint.m4: Likewise.
75942         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75943         * modules/strftime (Depends-on): Depend on wchar.
75944         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75945         * modules/strtol (Depends-on): Depend on wchar.
75946         * lib/strtol.c: Assume <wchar.h>.
75947         * modules/wcwidth (Depends-on): Depend on wchar.
75948         * lib/wcwidth.h: Assume <wchar.h>.
75949         * m4/wcwidth.m4: Likewise.
75950
75951 2007-01-16  Bruno Haible  <bruno@clisp.org>
75952
75953         * modules/csharpexec-script: New, created from...
75954         * modules/csharpexec: ... this.
75955
75956 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75957
75958         * modules/javaexec-script: New, created from...
75959         * modules/javaexec: ... this.
75960
75961 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75962
75963         * modules/poll (Dependencies): Add sys_select.
75964
75965 2007-01-15  Jim Meyering  <jim@meyering.net>
75966
75967         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75968         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75969         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75970         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75971
75972 2007-01-15  Bruno Haible  <bruno@clisp.org>
75973
75974         * modules/striconveh: New file.
75975         * lib/striconveh.h: New file.
75976         * lib/striconveh.c: New file.
75977         * MODULES.html.sh (Internationalization functions): Add striconveh.
75978
75979         * modules/striconveh-tests: New file.
75980         * tests/test-striconveh.c: New file.
75981
75982 2007-01-15  Bruno Haible  <bruno@clisp.org>
75983
75984         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75985         not from GNU libiconv or GNU libc.
75986
75987 2007-01-15  Bruno Haible  <bruno@clisp.org>
75988
75989         * doc/gnulib-intro.texi (Copyright): Explain the different license
75990         terms for module descriptions, autoconf macros, tests, documentation.
75991
75992 2007-01-14  Bruno Haible  <bruno@clisp.org>
75993
75994         * modules/striconv-tests: New file.
75995         * tests/test-striconv.c: New file.
75996
75997 2007-01-14  Bruno Haible  <bruno@clisp.org>
75998
75999         * modules/iconv-tests: New file.
76000         * tests/test-iconv.c: New file.
76001
76002 2007-01-14  Bruno Haible  <bruno@clisp.org>
76003
76004         * gnulib-tool (func_get_license): For test modules, use the license of
76005         the main module.
76006
76007 2007-01-14  Bruno Haible  <bruno@clisp.org>
76008
76009         * modules/iconv (Include): Clarify that <iconv.h> can only be included
76010         if iconv is found to exist.
76011
76012 2007-01-14  Bruno Haible  <bruno@clisp.org>
76013
76014         * modules/c-ctype-tests: New file.
76015         * tests/test-c-ctype.c: New file.
76016
76017 2007-01-14  Bruno Haible  <bruno@clisp.org>
76018
76019         * modules/binary-io-tests: New file.
76020         * tests/test-binary-io.sh: New file.
76021         * tests/test-binary-io.c: New file.
76022
76023 2007-01-14  Bruno Haible  <bruno@clisp.org>
76024
76025         * modules/array-oset-tests: New file.
76026         * tests/test-array_oset.c: New file.
76027
76028 2007-01-14  Bruno Haible  <bruno@clisp.org>
76029
76030         * modules/array-list-tests: New file.
76031         * tests/test-array_list.c: New file.
76032
76033 2007-01-14  Bruno Haible  <bruno@clisp.org>
76034
76035         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
76036         and make.
76037         Reported by Simon Josefsson in
76038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
76039
76040 2007-01-14  Bruno Haible  <bruno@clisp.org>
76041
76042         * modules/allocsa-tests: New file.
76043         * tests/test-allocsa.c: New file.
76044
76045 2007-01-14  Bruno Haible  <bruno@clisp.org>
76046
76047         * modules/fchdir (Depends-on): Add absolute-header.
76048         * modules/unistd (Depends-on): Likewise.
76049
76050 2006-12-30  Bruno Haible  <bruno@clisp.org>
76051
76052         * modules/fchdir: New file.
76053         * modules/unistd (Files): Add lib/unistd_.h.
76054         (Makefile.am): Generate unistd.h from unistd_.h.
76055         * lib/fchdir.c: New file.
76056         * lib/dirent_.h: New file.
76057         * lib/unistd_.h: New file.
76058         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
76059         * m4/fchdir.m4: New file.
76060         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
76061         (gl_HEADER_UNISTD): Invoke it.
76062         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
76063         function.
76064         * lib/backupfile.c (opendir, closedir): Undefine.
76065         * lib/chown.c (open, close): Undefine.
76066         * lib/clean-temp.c (open, close): Undefine.
76067         * lib/copy-file.c (open, close): Undefine.
76068         * lib/execute.c (open, close): Undefine.
76069         * lib/fsusage.c (open, close): Undefine.
76070         * lib/gc-gnulib.c (open, close): Undefine.
76071         * lib/getcwd.c (opendir, closedir): Undefine.
76072         * lib/glob.c (opendir, closedir): Undefine.
76073         * lib/javacomp.c (open, close): Undefine.
76074         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
76075         * lib/openat-proc.c (open, close): Undefine.
76076         * lib/pagealign_alloc.c (open, close): Undefine.
76077         * lib/pipe.c (open, close): Undefine.
76078         * lib/progreloc.c (open, close): Undefine.
76079         * lib/savedir.c (opendir, closedir): Undefine.
76080         * lib/utime.c (open, close): Undefine.
76081         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
76082
76083 2007-01-10  Bruno Haible  <bruno@clisp.org>
76084
76085         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
76086
76087 2007-01-12  Eric Blake  <ebb9@byu.net>
76088
76089         Provide a robust <wchar.h>.  Further simplifications are now
76090         possible in other modules, but not included here.
76091         * modules/wchar: New module.
76092         * m4/wchar.m4: New file.
76093         * lib/wchar_.h: Likewise.
76094         * modules/mbchar (Depends-on): Depend on wchar, as the first use
76095         of the new module.
76096         * MODULES.html.sh (Extended multibyte and wide character utilities):
76097         New section.
76098
76099 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
76102         to a reasonable default for memory allocation.
76103         (xreadlink): Don't allocate a huge buffer, to work around a buggy
76104         file system that reports garbage st_size values for symlinks.
76105         Problem reported by Liyang Hu.
76106
76107 2007-01-11  Simon Josefsson  <simon@josefsson.org>
76108
76109         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
76110         Emacs .#* auto-save files).
76111
76112 2007-01-11  Bruno Haible  <bruno@clisp.org>
76113
76114         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
76115         directory.
76116
76117 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76118
76119         Use @...@ consistently in lib/wctype_.h.
76120         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
76121         on it being set to 1 or 0.
76122         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
76123         go back to AC_SUBSTing it.
76124         * modules/wctype (Makefile.am): Undo previous change.
76125
76126 2007-01-10  Eric Blake  <ebb9@byu.net>
76127
76128         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
76129         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
76130         * modules/wctype (Makefile.am): Likewise.
76131         Reported by Chris McGuire.
76132
76133 2007-01-10  Jim Meyering  <jim@meyering.net>
76134
76135         fts.c: a small readability/maintainability improvement
76136         * lib/fts.c (fts_read): Make this code slightly more readable and
76137         maintainable by hoisting the "sp->fts_cur = p" assignments to
76138         immediately follow the statements that set P.  Derived from
76139         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
76140
76141 2007-01-10  Eric Blake  <ebb9@byu.net>
76142
76143         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
76144         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76146         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76147         Reported by Chris McGuire.
76148
76149 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76150
76151         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76152         in sed script.
76153
76154 2007-01-09  Bruno Haible  <bruno@clisp.org>
76155
76156         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76157         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76158         variables.
76159         (func_module): Use them.
76160
76161 2007-01-09  Bruno Haible  <bruno@clisp.org>
76162
76163         * modules/unistr/base: New file.
76164         * lib/unistr.h: New file.
76165
76166         * modules/unistr/u8-to-u16: New file.
76167         * lib/unistr/u8-to-u16.c: New file.
76168
76169         * modules/unistr/u8-to-u32: New file.
76170         * lib/unistr/u8-to-u32.c: New file.
76171
76172         * modules/unistr/u16-to-u8: New file.
76173         * lib/unistr/u16-to-u8.c: New file.
76174
76175         * modules/unistr/u16-to-u32: New file.
76176         * lib/unistr/u16-to-u32.c: New file.
76177
76178         * modules/unistr/u32-to-u8: New file.
76179         * lib/unistr/u32-to-u8.c: New file.
76180
76181         * modules/unistr/u32-to-u16: New file.
76182         * lib/unistr/u32-to-u16.c: New file.
76183
76184         * modules/unistr/u8-check: New file.
76185         * modules/unistr/u16-check: New file.
76186         * modules/unistr/u32-check: New file.
76187         * lib/unistr/u8-check.c: New file.
76188         * lib/unistr/u16-check.c: New file.
76189         * lib/unistr/u32-check.c: New file.
76190
76191         * modules/unistr/u8-chr: New file.
76192         * modules/unistr/u16-chr: New file.
76193         * modules/unistr/u32-chr: New file.
76194         * lib/unistr/u8-chr.c: New file.
76195         * lib/unistr/u16-chr.c: New file.
76196         * lib/unistr/u32-chr.c: New file.
76197
76198         * modules/unistr/u8-cmp: New file.
76199         * modules/unistr/u16-cmp: New file.
76200         * modules/unistr/u32-cmp: New file.
76201         * lib/unistr/u8-cmp.c: New file.
76202         * lib/unistr/u16-cmp.c: New file.
76203         * lib/unistr/u32-cmp.c: New file.
76204
76205         * modules/unistr/u8-cpy: New file.
76206         * modules/unistr/u16-cpy: New file.
76207         * modules/unistr/u32-cpy: New file.
76208         * lib/unistr/u8-cpy.c: New file.
76209         * lib/unistr/u16-cpy.c: New file.
76210         * lib/unistr/u32-cpy.c: New file.
76211         * lib/unistr/u-cpy.h: New file.
76212
76213         * modules/unistr/u8-cpy-alloc: New file.
76214         * modules/unistr/u16-cpy-alloc: New file.
76215         * modules/unistr/u32-cpy-alloc: New file.
76216         * lib/unistr/u8-cpy-alloc.c: New file.
76217         * lib/unistr/u16-cpy-alloc.c: New file.
76218         * lib/unistr/u32-cpy-alloc.c: New file.
76219         * lib/unistr/u-cpy-alloc.h: New file.
76220
76221         * modules/unistr/u8-endswith: New file.
76222         * modules/unistr/u16-endswith: New file.
76223         * modules/unistr/u32-endswith: New file.
76224         * lib/unistr/u8-endswith.c: New file.
76225         * lib/unistr/u16-endswith.c: New file.
76226         * lib/unistr/u32-endswith.c: New file.
76227         * lib/unistr/u-endswith.h: New file.
76228
76229         * modules/unistr/u8-mblen: New file.
76230         * modules/unistr/u16-mblen: New file.
76231         * modules/unistr/u32-mblen: New file.
76232         * lib/unistr/u8-mblen.c: New file.
76233         * lib/unistr/u16-mblen.c: New file.
76234         * lib/unistr/u32-mblen.c: New file.
76235
76236         * modules/unistr/u8-mbtouc: New file.
76237         * modules/unistr/u16-mbtouc: New file.
76238         * modules/unistr/u32-mbtouc: New file.
76239         * lib/unistr/u8-mbtouc.c: New file.
76240         * lib/unistr/u16-mbtouc.c: New file.
76241         * lib/unistr/u32-mbtouc.c: New file.
76242
76243         * modules/unistr/u8-mbtouc-safe: New file.
76244         * modules/unistr/u16-mbtouc-safe: New file.
76245         * modules/unistr/u32-mbtouc-safe: New file.
76246         * lib/unistr/u8-mbtouc-safe.c: New file.
76247         * lib/unistr/u16-mbtouc-safe.c: New file.
76248         * lib/unistr/u32-mbtouc-safe.c: New file.
76249
76250         * modules/unistr/u8-move: New file.
76251         * modules/unistr/u16-move: New file.
76252         * modules/unistr/u32-move: New file.
76253         * lib/unistr/u8-move.c: New file.
76254         * lib/unistr/u16-move.c: New file.
76255         * lib/unistr/u32-move.c: New file.
76256         * lib/unistr/u-move.h: New file.
76257
76258         * modules/unistr/u8-next: New file.
76259         * modules/unistr/u16-next: New file.
76260         * modules/unistr/u32-next: New file.
76261         * lib/unistr/u8-next.c: New file.
76262         * lib/unistr/u16-next.c: New file.
76263         * lib/unistr/u32-next.c: New file.
76264
76265         * modules/unistr/u8-prev: New file.
76266         * modules/unistr/u16-prev: New file.
76267         * modules/unistr/u32-prev: New file.
76268         * lib/unistr/u8-prev.c: New file.
76269         * lib/unistr/u16-prev.c: New file.
76270         * lib/unistr/u32-prev.c: New file.
76271
76272         * modules/unistr/u8-set: New file.
76273         * modules/unistr/u16-set: New file.
76274         * modules/unistr/u32-set: New file.
76275         * lib/unistr/u8-set.c: New file.
76276         * lib/unistr/u16-set.c: New file.
76277         * lib/unistr/u32-set.c: New file.
76278         * lib/unistr/u-set.h: New file.
76279
76280         * modules/unistr/u8-startswith: New file.
76281         * modules/unistr/u16-startswith: New file.
76282         * modules/unistr/u32-startswith: New file.
76283         * lib/unistr/u8-startswith.c: New file.
76284         * lib/unistr/u16-startswith.c: New file.
76285         * lib/unistr/u32-startswith.c: New file.
76286         * lib/unistr/u-startswith.h: New file.
76287
76288         * modules/unistr/u8-stpcpy: New file.
76289         * modules/unistr/u16-stpcpy: New file.
76290         * modules/unistr/u32-stpcpy: New file.
76291         * lib/unistr/u8-stpcpy.c: New file.
76292         * lib/unistr/u16-stpcpy.c: New file.
76293         * lib/unistr/u32-stpcpy.c: New file.
76294         * lib/unistr/u-stpcpy.h: New file.
76295
76296         * modules/unistr/u8-stpncpy: New file.
76297         * modules/unistr/u16-stpncpy: New file.
76298         * modules/unistr/u32-stpncpy: New file.
76299         * lib/unistr/u8-stpncpy.c: New file.
76300         * lib/unistr/u16-stpncpy.c: New file.
76301         * lib/unistr/u32-stpncpy.c: New file.
76302         * lib/unistr/u-stpncpy.h: New file.
76303
76304         * modules/unistr/u8-strcat: New file.
76305         * modules/unistr/u16-strcat: New file.
76306         * modules/unistr/u32-strcat: New file.
76307         * lib/unistr/u8-strcat.c: New file.
76308         * lib/unistr/u16-strcat.c: New file.
76309         * lib/unistr/u32-strcat.c: New file.
76310         * lib/unistr/u-strcat.h: New file.
76311
76312         * modules/unistr/u8-strchr: New file.
76313         * modules/unistr/u16-strchr: New file.
76314         * modules/unistr/u32-strchr: New file.
76315         * lib/unistr/u8-strchr.c: New file.
76316         * lib/unistr/u16-strchr.c: New file.
76317         * lib/unistr/u32-strchr.c: New file.
76318
76319         * modules/unistr/u8-strcmp: New file.
76320         * modules/unistr/u16-strcmp: New file.
76321         * modules/unistr/u32-strcmp: New file.
76322         * lib/unistr/u8-strcmp.c: New file.
76323         * lib/unistr/u16-strcmp.c: New file.
76324         * lib/unistr/u32-strcmp.c: New file.
76325
76326         * modules/unistr/u8-strcpy: New file.
76327         * modules/unistr/u16-strcpy: New file.
76328         * modules/unistr/u32-strcpy: New file.
76329         * lib/unistr/u8-strcpy.c: New file.
76330         * lib/unistr/u16-strcpy.c: New file.
76331         * lib/unistr/u32-strcpy.c: New file.
76332         * lib/unistr/u-strcpy.h: New file.
76333
76334         * modules/unistr/u8-strcspn: New file.
76335         * modules/unistr/u16-strcspn: New file.
76336         * modules/unistr/u32-strcspn: New file.
76337         * lib/unistr/u8-strcspn.c: New file.
76338         * lib/unistr/u16-strcspn.c: New file.
76339         * lib/unistr/u32-strcspn.c: New file.
76340         * lib/unistr/u-strcspn.h: New file.
76341
76342         * modules/unistr/u8-strdup: New file.
76343         * modules/unistr/u16-strdup: New file.
76344         * modules/unistr/u32-strdup: New file.
76345         * lib/unistr/u8-strdup.c: New file.
76346         * lib/unistr/u16-strdup.c: New file.
76347         * lib/unistr/u32-strdup.c: New file.
76348         * lib/unistr/u-strdup.h: New file.
76349
76350         * modules/unistr/u8-strlen: New file.
76351         * modules/unistr/u16-strlen: New file.
76352         * modules/unistr/u32-strlen: New file.
76353         * lib/unistr/u8-strlen.c: New file.
76354         * lib/unistr/u16-strlen.c: New file.
76355         * lib/unistr/u32-strlen.c: New file.
76356         * lib/unistr/u-strlen.h: New file.
76357
76358         * modules/unistr/u8-strmblen: New file.
76359         * modules/unistr/u16-strmblen: New file.
76360         * modules/unistr/u32-strmblen: New file.
76361         * lib/unistr/u8-strmblen.c: New file.
76362         * lib/unistr/u16-strmblen.c: New file.
76363         * lib/unistr/u32-strmblen.c: New file.
76364
76365         * modules/unistr/u8-strmbtouc: New file.
76366         * modules/unistr/u16-strmbtouc: New file.
76367         * modules/unistr/u32-strmbtouc: New file.
76368         * lib/unistr/u8-strmbtouc.c: New file.
76369         * lib/unistr/u16-strmbtouc.c: New file.
76370         * lib/unistr/u32-strmbtouc.c: New file.
76371
76372         * modules/unistr/u8-strncat: New file.
76373         * modules/unistr/u16-strncat: New file.
76374         * modules/unistr/u32-strncat: New file.
76375         * lib/unistr/u8-strncat.c: New file.
76376         * lib/unistr/u16-strncat.c: New file.
76377         * lib/unistr/u32-strncat.c: New file.
76378         * lib/unistr/u-strncat.h: New file.
76379
76380         * modules/unistr/u8-strncmp: New file.
76381         * modules/unistr/u16-strncmp: New file.
76382         * modules/unistr/u32-strncmp: New file.
76383         * lib/unistr/u8-strncmp.c: New file.
76384         * lib/unistr/u16-strncmp.c: New file.
76385         * lib/unistr/u32-strncmp.c: New file.
76386
76387         * modules/unistr/u8-strncpy: New file.
76388         * modules/unistr/u16-strncpy: New file.
76389         * modules/unistr/u32-strncpy: New file.
76390         * lib/unistr/u8-strncpy.c: New file.
76391         * lib/unistr/u16-strncpy.c: New file.
76392         * lib/unistr/u32-strncpy.c: New file.
76393         * lib/unistr/u-strncpy.h: New file.
76394
76395         * modules/unistr/u8-strnlen: New file.
76396         * modules/unistr/u16-strnlen: New file.
76397         * modules/unistr/u32-strnlen: New file.
76398         * lib/unistr/u8-strnlen.c: New file.
76399         * lib/unistr/u16-strnlen.c: New file.
76400         * lib/unistr/u32-strnlen.c: New file.
76401         * lib/unistr/u-strnlen.h: New file.
76402
76403         * modules/unistr/u8-strpbrk: New file.
76404         * modules/unistr/u16-strpbrk: New file.
76405         * modules/unistr/u32-strpbrk: New file.
76406         * lib/unistr/u8-strpbrk.c: New file.
76407         * lib/unistr/u16-strpbrk.c: New file.
76408         * lib/unistr/u32-strpbrk.c: New file.
76409         * lib/unistr/u-strpbrk.h: New file.
76410
76411         * modules/unistr/u8-strrchr: New file.
76412         * modules/unistr/u16-strrchr: New file.
76413         * modules/unistr/u32-strrchr: New file.
76414         * lib/unistr/u8-strrchr.c: New file.
76415         * lib/unistr/u16-strrchr.c: New file.
76416         * lib/unistr/u32-strrchr.c: New file.
76417
76418         * modules/unistr/u8-strspn: New file.
76419         * modules/unistr/u16-strspn: New file.
76420         * modules/unistr/u32-strspn: New file.
76421         * lib/unistr/u8-strspn.c: New file.
76422         * lib/unistr/u16-strspn.c: New file.
76423         * lib/unistr/u32-strspn.c: New file.
76424         * lib/unistr/u-strspn.h: New file.
76425
76426         * modules/unistr/u8-strstr: New file.
76427         * modules/unistr/u16-strstr: New file.
76428         * modules/unistr/u32-strstr: New file.
76429         * lib/unistr/u8-strstr.c: New file.
76430         * lib/unistr/u16-strstr.c: New file.
76431         * lib/unistr/u32-strstr.c: New file.
76432         * lib/unistr/u-strstr.h: New file.
76433
76434         * modules/unistr/u8-strtok: New file.
76435         * modules/unistr/u16-strtok: New file.
76436         * modules/unistr/u32-strtok: New file.
76437         * lib/unistr/u8-strtok.c: New file.
76438         * lib/unistr/u16-strtok.c: New file.
76439         * lib/unistr/u32-strtok.c: New file.
76440         * lib/unistr/u-strtok.h: New file.
76441
76442         * modules/unistr/u8-uctomb: New file.
76443         * modules/unistr/u16-uctomb: New file.
76444         * modules/unistr/u32-uctomb: New file.
76445         * lib/unistr/u8-uctomb.c: New file.
76446         * lib/unistr/u16-uctomb.c: New file.
76447         * lib/unistr/u32-uctomb.c: New file.
76448
76449         * MODULES.html.sh (Unicode string functions): Add the new modules.
76450
76451 2007-01-08  Bruno Haible  <bruno@clisp.org>
76452
76453         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76454         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76455         subdirectories.
76456
76457 2007-01-08  Karl Berry  <karl@gnu.org>
76458
76459         * doc/error.texi: mention that main() fns must set program_name
76460         when progname is used.
76461
76462 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76463
76464         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76465         WCTYPE_H is empty, for the benefit of builds from non-distclean
76466         directories.  Problem reported by Eric Blake in
76467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76468
76469 2007-01-08  Bruno Haible  <bruno@clisp.org>
76470
76471         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76472         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76473         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76474         PROVIDE_CANONICALIZE_FILENAME_MODE.
76475         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76476
76477 2007-01-08  Bruno Haible  <bruno@clisp.org>
76478
76479         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76480         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76481         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76482         * lib/fts.c: Likewise.
76483         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76484
76485 2006-12-25  Bruno Haible  <bruno@clisp.org>
76486
76487         * modules/utf8-ucs4-safe: New file.
76488         * lib/utf8-ucs4-safe.h: New file.
76489         * lib/unistr/utf8-ucs4-safe.c: New file.
76490
76491         * modules/utf16-ucs4-safe: New file.
76492         * lib/utf16-ucs4-safe.h: New file.
76493         * lib/unistr/utf16-ucs4-safe.c: New file.
76494
76495         * MODULES.html.sh (Unicode string functions): Add the new modules.
76496
76497 2007-01-08  Bruno Haible  <bruno@clisp.org>
76498
76499         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76500         (Depends-on): Add unitypes.
76501         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76502         (u8_mbtouc_aux): Move out to separate file.
76503         (u8_mbtouc): Use ucs4_t, uint8_t types.
76504         * lib/unistr/utf8-ucs4.c: New file.
76505
76506         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76507         (Depends-on): Add unitypes.
76508         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76509         (u16_mbtouc_aux): Move out to separate file.
76510         (u16_mbtouc): Use ucs4_t, uint16_t types.
76511         * lib/unistr/utf16-ucs4.c: New file.
76512
76513         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76514         (Depends-on): Add unitypes.
76515         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76516         (u8_uctomb_aux): Move out to separate file.
76517         (u8_uctomb): Use ucs4_t, uint8_t types.
76518         * lib/unistr/ucs4-utf8.c: New file.
76519
76520         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76521         (Depends-on): Add unitypes.
76522         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76523         (u16_uctomb_aux): Move out to separate file.
76524         (u16_uctomb): Use ucs4_t, uint16_t types.
76525         * lib/unistr/ucs4-utf16.c: New file.
76526
76527 2006-12-25  Bruno Haible  <bruno@clisp.org>
76528
76529         * modules/unitypes: New file.
76530         * lib/unitypes.h: New file.
76531         * MODULES.html.sh (func_all_modules): New section "Unicode string
76532         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76533         this section. Add unitypes.
76534
76535 2007-01-08  Bruno Haible  <bruno@clisp.org>
76536
76537         Avoid variable names that conflict with those from libtool.
76538         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76539         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76540         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76541         library_names_spec to acl_library_names_spec, hardcode_* to
76542         acl_hardcode_*.
76543         Reported by Ralf Wildenhues.
76544
76545 2007-01-08  Bruno Haible  <bruno@clisp.org>
76546
76547         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76548         definition.
76549         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76550         definition.
76551         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76552         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76553         definition.
76554         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76555         definition.
76556         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76557         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76558         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76559         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76560         definition.
76561         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76562         definition.
76563         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76564         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76565         GC_USE_<algorithm>.
76566         * lib/gc-libgcrypt.c: Likewise.
76567         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76568         * modules/gc-arctwo (configure.ac): Likewise.
76569         * modules/gc-des (configure.ac): Likewise.
76570         * modules/gc-hmac-md5 (configure.ac): Likewise.
76571         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76572         * modules/gc-md2 (configure.ac): Likewise.
76573         * modules/gc-md4 (configure.ac): Likewise.
76574         * modules/gc-md5 (configure.ac): Likewise.
76575         * modules/gc-random (configure.ac): Likewise.
76576         * modules/gc-rijndael (configure.ac): Likewise.
76577         * modules/gc-sha1 (configure.ac): Likewise.
76578
76579 2007-01-08  Bruno Haible  <bruno@clisp.org>
76580
76581         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76582         macro definition.
76583         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76584         definition.
76585         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76586         definition.
76587         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76588         * modules/fcntl-safer (configure.ac): Likewise.
76589         * modules/fopen-safer (configure.ac): Likewise.
76590         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76591         GNULIB_FWRITEERROR macro definition.
76592
76593 2007-01-08  Bruno Haible  <bruno@clisp.org>
76594
76595         * m4/gnulib-common.m4: New file.
76596         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76597         (func_get_filelist): Add m4/gnulib-common.m4.
76598
76599 2007-01-08  Bruno Haible  <bruno@clisp.org>
76600
76601         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76602         command.
76603
76604 2007-01-08  Jim Meyering  <jim@meyering.net>
76605
76606         Use a more robust test for a "can't happen" condition.
76607         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76608         narrowed the st_size value.  Presuming the "can't happen" condition
76609         is true, that narrowing could conceivably convert an invalid st_size
76610         value into a valid one.  Instead, use a change based on Matthew
76611         Woehlke's original patch.
76612
76613         Slight readability improvement: use an assert-like macro
76614         in place of literal "abort ()" uses.
76615         * lib/fts.c (fts_assert): Define.
76616         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76617         Use this macro instead of a bare 'abort'.
76618
76619 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76622         simply work around them.
76623         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76624         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76625         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76626         declaring.
76627         Don't bother to define as macros, since the standard doesn't require it.
76628         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76629         longer worry about IRIX 5.3.
76630         (HAVE_WCTYPE_CTMP_BUG): Remove.
76631
76632 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76633
76634         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76635         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76636         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76637         Problems reported by Georg Schwarz for IRIX 5.3.
76638
76639         * gnulib-tool (autoconf_minversion): Take the maximum version number
76640         found, not the minimum.  Problem reported by James Youngman.
76641
76642 2007-01-03  Karl Berry  <karl@gnu.org>
76643
76644         * doc/error.texi: new file, explaining interaction with progname.
76645         * doc/gnulib.texi: include it.  Update copyright.
76646
76647 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76648
76649         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76650         AC_CANONICAL_HOST, to improve autobuild outputs.
76651
76652 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76653             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76654
76655         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76656         sockets, server sockets, and other file descriptors.  Count errors
76657         to compute the return value.  Reorder the code a bit to be easier
76658         to follow.  Don't set event bits that were not requested (except
76659         POLLERR and POLLHUP).
76660
76661 2007-01-01  Bruno Haible  <bruno@clisp.org>
76662
76663         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76664
76665 2007-01-03  Jim Meyering  <jim@meyering.net>
76666
76667         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76668
76669 2007-01-02  Bruno Haible  <bruno@clisp.org>
76670
76671         * modules/settime (Include): Require timespec.h.
76672         * modules/nanosleep (Include): Likewise.
76673
76674 2007-01-01  Bruno Haible  <bruno@clisp.org>
76675
76676         * gnulib-tool (func_emit_copyright_notice): Bump year.
76677         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76678
76679 2007-01-01  Bruno Haible  <bruno@clisp.org>
76680
76681         Improve support for OpenBSD.
76682         * build-aux/config.rpath (libname_spec): Export.
76683         (library_names_spec): New variable. Export.
76684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76685         library_names_spec from the config.rpath output. Locate shared library
76686         through the name pattern in library_names_spec.
76687
76688 2007-01-01  Eric Blake  <ebb9@byu.net>
76689
76690         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76691
76692 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76695         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76696         assume the C locale, and avoid an "eval" that could cause trouble.
76697         Problem with SORT reported by Bob Proulx.
76698
76699         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76700         Define.  Trivial patch from Henning Nielsen Lund, originally
76701         sent to bug-grep@gnu.org today.
76702
76703 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76706         struct stat.  Problem reported by Henning Nielsen Lund.
76707         * lib/acl.c: Include acl.h first, to check interface.  Don't
76708         bother to include sys/types.h and sys/stat.h again.
76709
76710 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76711
76712         Import the following change from libc; problem reported by
76713         Sven Verdoolaege.
76714
76715         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76716
76717         [BZ #1373]
76718         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76719
76720 2006-12-28  Jim Meyering  <jim@meyering.net>
76721
76722         * build-aux/announce-gen: Do not assume that the package
76723         builds any of tar.gz, tar.bz2, and .xdelta files.
76724         Suggestion from Simon Josefsson.
76725
76726 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76727
76728         * modules/announce-gen: New file.
76729
76730 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76731
76732         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76733         handles its gotchas now.
76734         * lib/mbswidth.c: Likewise.
76735         * lib/wcwidth.h: Likewise.
76736         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76737         and iswcntrl; the wctype module does this stuff now.
76738         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76739         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76740         * modules/mbchar (Depends-on): Add wctype.
76741         * modules/mbswidth (Depends-on): Likewise.
76742         * modules/wcwidth (Depends-on): Likewise.
76743
76744 2006-12-27  Eric Blake  <ebb9@byu.net>
76745
76746         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76747         module uses more than what <wctype.h> is required to provide.
76748
76749 2006-12-26  Eric Blake  <ebb9@byu.net>
76750
76751         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76752
76753 2006-12-26  Eric Blake  <ebb9@byu.net>
76754
76755         * modules/absolute-header: New module.
76756         * modules/fcntl (Depends-on): Depend on it.
76757         * modules/inttypes (Depends-on): Likewise.
76758         * modules/stdint (Depends-on): Likewise.
76759         * modules/sys_stat (Depends-on): Likewise.
76760         * modules/wctype (Depends-on): Likewise.
76761         * MODULES.html.sh (Support for building libraries and
76762         executables): Document it.
76763
76764 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76765
76766         * gnulib-tool (SED): Remove, undoing previous change.
76767         The problem was that it broke coreutils on Solaris, because
76768         "sed --posix" leaked into a makefile.
76769         (sed): New alias, if 'alias' and GNU sed.
76770
76771 2006-12-24  Jim Meyering  <jim@meyering.net>
76772
76773         Work around an fchownat bug in glibc-2.4:
76774         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76775         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76776         in spite of the -P option.
76777         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76778         New macros.
76779         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76780         * modules/openat (Files): Add lib/fchownat.c.
76781         * lib/openat.c (fchownat): Don't define here.  Move to...
76782         * lib/fchownat.c: ...this new file.
76783
76784 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76785
76786         Fix bug reported by Bruno Haible in
76787         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76788         where quotearg.c didn't compile on Mac OS X 10.2 because it
76789         lacks <wchar.h> and wint_t.
76790         * lib/wctype_.h (__wctype_wint_t): New type.
76791         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76792         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76793         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76794         Arg is now of type __wctype_wint_t, not wint_t.
76795         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76796         substitute HAVE_WINT_T.
76797         * modules/wctype (Files): Add m4/wint_t.m4.
76798         (wctype.h): Substitute HAVE_WINT_T.
76799
76800 2006-12-23  Bruno Haible  <bruno@clisp.org>
76801
76802         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76803
76804 2006-12-23  Bruno Haible  <bruno@clisp.org>
76805
76806         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76807         S_ISLNK.
76808         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76809         mingw.
76810
76811 2006-12-22  Bruno Haible  <bruno@clisp.org>
76812
76813         * lib/copy-file.c: Include acl.h.
76814         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76815         Close the file descriptors only after being done with copy_acl.
76816         * modules/copy-file (Depends-on): Add acl.
76817
76818 2006-12-22  Bruno Haible  <bruno@clisp.org>
76819
76820         * gnulib-tool (SED): New variable.
76821         Use $SED instead of sed everywhere.
76822
76823 2006-12-22  Bruno Haible  <bruno@clisp.org>
76824
76825         * modules/no-c++: New file.
76826         * m4/no-c++.m4: New file.
76827         * MODULES.html.sh (Support for building libraries and executables):
76828         Add no-c++.
76829
76830 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76831
76832         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76833         Include <limits.h>, and use its INT_MAX to rewrite the
76834         j loop so that it does not overflow 'int'.  Problem reported by
76835         Ralf Wildenhues in
76836         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76837         Play it safe by shifting left by 1 rather than multiplying by 2,
76838         as GCC is less likely to optimize this away when the value
76839         is signed (when it assumes overflow leads to undefined behavior).
76840         Also, don't assume time_t uses two's complement.
76841
76842 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76843
76844         * MODULES.html.sh: New module wctype.
76845         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76846         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76847         <wctype.h>, since the new wctype module should fix this.
76848         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76849         the wctype module should arrange for it.
76850         * lib/regex_internal.h: Likewise.
76851         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76852         since the wctype module should handle this now.
76853         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76854         * modules/fnmatch (Depends-on): Add wctype.
76855         * modules/quotearg (Depends-on): Likewise.
76856         * modules/regex (Depends-on): Likewise.
76857
76858 2006-12-19  Bruno Haible  <bruno@clisp.org>
76859
76860         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76861         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76862
76863 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76864
76865         * modules/savewd (Depends-on): Fix dependency on fcntl.
76866
76867 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76868
76869         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76870         conforms to C99, rather than relying on the user's environment
76871         setting of STDINT_H.
76872
76873 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76874         and Eric Blake  <ebb9@byu.net>
76875
76876         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76877         This is more consistent with the other defines here.
76878         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76879         Port to z/OS.  Problem reported by Paul Gilmartin.
76880         Change local vars to use gl_ prefix rather than ac_.
76881         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76882         with other defines.
76883         * modules/double-slash-root: New module.
76884         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76885         (Depends-on): Add double-slash-root.
76886         * MODULES.html.sh (File system functions): Mention new module.
76887
76888 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76891         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76892         This is for the benefit of gzip, which doesn't do i18n.
76893
76894 2006-12-12  Jim Meyering  <jim@meyering.net>
76895
76896         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76897         Reported by Andreas Schwab <schwab@suse.de>.
76898
76899 2006-12-12  Bruno Haible  <bruno@clisp.org>
76900
76901         Merge these changes.
76902         2006-09-05  Bruno Haible  <bruno@clisp.org>
76903         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76904         iconv_alloc succeeded.
76905         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76906         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76907         test for " && dest " at the end - dest is always != NULL there. Call
76908         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76909         with 2xNULL arguments, also to flush the state storage. Handle the
76910         IRIX iconv behaviour. Realloc the final result, to throw away unused
76911         memory.
76912
76913 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76914
76915         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76916         and fchmodat unconditionally, since glibc 2.4 has them.
76917         Problem reported by Arkadiusz Miskiewicz.
76918
76919 2006-12-10  Bruno Haible  <bruno@clisp.org>
76920
76921         * gnulib-tool (func_import): Show the include files only for those
76922         modules that are copied and specified.
76923         Reported by Karl Berry.
76924
76925 2006-12-08  Jim Meyering  <jim@meyering.net>
76926
76927         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76928         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76929
76930         * build-aux/announce-gen: Add two new options, both optional:
76931         --bootstrap-tools=TOOL_LIST
76932               a comma-separated list of tools, e.g.,
76933               autoconf,automake,bison,gnulib
76934         --gnulib-snapshot-date=DATE
76935               if gnulib is in the bootstrap tool list,
76936               then report this as the snapshot date.
76937               If not specified, use the current date/time.
76938               If you specify a date here, be sure it's UTC.
76939
76940 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76941
76942         * tests/test-argp-2.sh: Fix test to match actual output.
76943         (func_compare): Fix sed script to be portable.
76944
76945 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76948         workaround for this case.  It is not autoconfigured now; offhand
76949         it's hard to see how to autoconfigure it.
76950
76951 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76952
76953         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76954         a directory that is about to be chowned.  Such a directory's
76955         initial file permissions should permit the owner only and this
76956         should not be changed until after the chown, since the group and
76957         other bits would be incorrect if they granted permission before
76958         the chown.
76959
76960         Fix porting problem for iswctype reported by Georg Schwarz in:
76961         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76962         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76963         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76964         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76965         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76966
76967 2006-12-03  Jim Meyering  <jim@meyering.net>
76968
76969         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76970         p->fts_statp may not yet be defined.
76971         (fts_read): Instead, set it in the caller, once p->fts_statp is
76972         sure to be defined, and corresponds to a top-level directory.
76973         This bug made du -x fail.  Here's the coreutils test case:
76974         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76975         Reported by Mike Frysinger.
76976
76977 2006-12-01  Jim Meyering  <jim@meyering.net>
76978
76979         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76980         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76981         Reported by Simon Josefsson.
76982
76983 2006-11-30  Jim Meyering  <jim@meyering.net>
76984
76985         * m4/warning.m4: Use the all-permissive copyright notice
76986         recommended by RMS (rather than LGPL).
76987         * m4/vararrays.m4: Likewise.
76988         * m4/flexmember.m4: Likewise.
76989
76990 2006-11-29  Bruno Haible  <bruno@clisp.org>
76991
76992         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76993         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76994         using +=.
76995         Reported by Simon Josefsson <simon@josefsson.org>.
76996
76997 2006-11-28  James Youngman <jay@gnu.org>
76998
76999         * README: Advise users that they might find the bug-gnulib@gnu.org
77000         and autotools-announce@gnu.org mailing lists useful.
77001
77002 2006-11-28  Bruno Haible  <bruno@clisp.org>
77003
77004         * m4/ptrdiff_max.m4: Remove file.
77005
77006 2006-11-21  Bruno Haible  <bruno@clisp.org>
77007
77008         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
77009         _AC_COMPUTE_INT.
77010         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
77011         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
77012         _AC_COMPUTE_INT.
77013         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
77014         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
77015         _AC_COMPUTE_INT.
77016         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
77017
77018 2006-11-28  Jim Meyering  <jim@meyering.net>
77019
77020         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
77021         warning from "gcc -Wshadow" about shadowing the builtin.
77022
77023 2006-11-27  Bruno Haible  <bruno@clisp.org>
77024
77025         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
77026         _AC_COMPUTE_INT.
77027         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
77028
77029 2006-11-27  Bruno Haible  <bruno@clisp.org>
77030             Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
77033
77034 2006-11-26  Bruno Haible  <bruno@clisp.org>
77035
77036         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77037         noinst_LTLIBRARIES.
77038
77039 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77040             Bruno Haible  <bruno@clisp.org>
77041
77042         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
77043         if compiling with "gcc -ansi".
77044
77045 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77046
77047         Fix some incompatibilities with gcc -ansi -pedantic.
77048         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
77049         if compiling pedantically with GCC, unless it's C99 or later.
77050         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
77051         it mishandles gcc -ansi -pedantic as well.
77052         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
77053         if gcc -pedantic.
77054         * lib/regexec.c (check_node_accept_bytes): Don't use auto
77055         initializers for struct if -pedantic, unless it's C99 or later.
77056
77057 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
77058
77059         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
77060         Don't close an fd more than once. Identical atimes indicate
77061         success, not failure.
77062
77063 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
77064
77065         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
77066
77067 2006-11-23  Jim Meyering  <jim@meyering.net>
77068
77069         * build-aux/announce-gen: New file.  From coreutils.
77070
77071 2006-11-22  Jim Meyering  <jim@meyering.net>
77072
77073         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
77074         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
77075         (fts_read): Use a temporary to narrow the overused st_size member
77076         before using it in a switch statement.  Reported by Matthew Woehlke.
77077
77078         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
77079         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77080
77081 2006-11-20  Bruno Haible  <bruno@clisp.org>
77082
77083         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
77084         changequote instead of pairs of brackets.
77085         Reported by Andreas Schwab <schwab@suse.de>.
77086
77087 2006-11-21  Jim Meyering  <jim@meyering.net>
77088
77089         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
77090         so as to remain compatible with older compilers.
77091         Patch from Michael Deutschmann.
77092
77093 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77094
77095         * MODULES.html.sh (File system functions): Add openat.
77096
77097         * lib/openat.h (rpl_fstatat): New macro, if
77098         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
77099         (fstatat): Define to rpl_fstatat under the same conditions,
77100         unless COMPILING_FSTATAT.
77101         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
77102         seems to have the bug.
77103         * lib/fstatat.c: New file.
77104         * modules/openat (Files): Add it.
77105
77106 2006-11-20  Bruno Haible  <bruno@clisp.org>
77107
77108         * Makefile: New file.
77109
77110 2006-11-20  Jim Meyering  <jim@meyering.net>
77111
77112         The beginnings of syntax-related checks for gnulib.
77113         * lib/Makefile: New file.
77114         * lib/t-idcache: New script.  Ensure that the two halves of
77115         idcache.c stay in sync.
77116
77117         * lib/idcache.c: Adjust comments in user- and group- portions to
77118         be more accurate, and to be consistent with one another.
77119
77120 2006-11-20  Jim Meyering  <jim@meyering.net>
77121
77122         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
77123         continue using the flexible array member (thus, this module performs
77124         half as many malloc calls), with the addition that...
77125         (getgroup, getuser): Consistently record a non-match via an empty
77126         "name" string, and map an empty string match to a NULL return value.
77127         * modules/idcache (Depends-on): Re-add flexmember.
77128
77129         * lib/idcache.c (getuser): Remove all uses of the register keyword.
77130         (getuidbyname, getgroup, getgidbyname): Likewise.
77131
77132         Use cleaner syntax: NULL rather than 0.
77133         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
77134
77135 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
77138         It mishandled the case where the group was missing.
77139         Problem reported by Greg Schafer.
77140         * modules/idcache: Likewise.
77141
77142 2006-11-18  Jim Meyering  <jim@meyering.net>
77143
77144         * check-module (%exempt_header): Add exception for some
77145         conditionally-included headers.
77146
77147         * modules/i-ring (Depends-on): Add verify.
77148         (License): Change to LGPL.
77149
77150 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77151
77152         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77153         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77154         and inttostr.h.  Use snprintf rather than uinttostr, so that
77155         LGPLed code doesn't depend on GPLed.
77156
77157 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77158
77159         * modules/inline (License): Change from GPL to LGPL.
77160
77161 2006-11-17  Jim Meyering  <jim@meyering.net>
77162
77163         * modules/d-type (License): Switch to LGPL.
77164
77165 2006-11-15  Bruno Haible  <bruno@clisp.org>
77166
77167         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77168
77169 2006-11-15  Eric Blake  <ebb9@byu.net>
77170
77171         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77172         the module dependency.
77173
77174 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77175             Bruno Haible  <bruno@clisp.org>
77176
77177         * gnulib-tool (func_create_testdir): Add license consistency check.
77178
77179 2006-11-15  Eric Blake  <ebb9@byu.net>
77180
77181         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77182         random "(cached)" in configure output.
77183
77184 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77185
77186         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77187         test for conforming inttypes.h is both announced and cached.
77188
77189         * MODULES.html.sh (seen_modules, seen_files): New variables.
77190         (func_module): Rewrite to use a few less gnulib-tool and sed
77191         invocations.  Avoid a couple of quadratic algorithms for ...
77192         (missed_modules, missed_files): ... these, with ...
77193         (func_append, func_tmpdir): ... these new functions, from
77194         gnulib-tool.  Analogously, install traps for cleanup.
77195
77196         * tests/test-gc.c (main): Remove unused variables.
77197         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77198
77199 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77200
77201         * modules/inttostr (License): Change to LGPL.
77202
77203 2006-11-14  Eric Blake  <ebb9@byu.net>
77204
77205         * modules/tempname (License): Change to LGPL.
77206
77207 2006-11-14  Eric Blake  <ebb9@byu.net>
77208
77209         * doc/functions.texi (Function Portability): *printf functions on
77210         Cygwin now understand all POSIX size specifiers.
77211
77212 2006-11-14  Bruno Haible  <bruno@clisp.org>
77213
77214         * modules/c-ctype (License): Change to LGPL.
77215
77216 2006-11-12  Bruno Haible  <bruno@clisp.org>
77217
77218         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77219         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77220         for GNOME libraries, for which the include files are installed in
77221         subdirectories of $prefix/include.
77222
77223 2006-11-12  Bruno Haible  <bruno@clisp.org>
77224
77225         * m4/lib-link.m4: Require at least autoconf-2.54.
77226         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77227         name to underscores for the --with option.
77228
77229 2006-11-13  Bruno Haible  <bruno@clisp.org>
77230
77231         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77232         the tests directory.
77233         Reported by Ralf Wildenhues.
77234
77235 2006-11-13  Bruno Haible  <bruno@clisp.org>
77236
77237         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77238         (func_emit_initmacro_end): Undo the override here.
77239         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77240         Works around the famous automake error in coreutils.
77241
77242 2006-11-13  Eric Blake  <ebb9@byu.net>
77243
77244         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77245         element, not its node.
77246
77247 2006-11-12  Bruno Haible  <bruno@clisp.org>
77248
77249         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77250         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77251
77252 2006-11-12  Bruno Haible  <bruno@clisp.org>
77253
77254         * gnulib-tool: New option --local-symlink.
77255         (func_usage): Document it.
77256         (lsymbolic): New variable.
77257         (func_import, func_create_testdir): If --symlink was not specified,
77258         test whether --local-symlink was specified and the file comes from
77259         the local_gnulib_dir.
77260
77261 2006-11-12  Bruno Haible  <bruno@clisp.org>
77262
77263         * gnulib-tool (func_ln): New function.
77264         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77265
77266 2006-11-12  Bruno Haible  <bruno@clisp.org>
77267
77268         Finish support for source files in subdirectories.
77269         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77270         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77271         AUTOMAKE_OPTIONS.
77272         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77273
77274 2006-11-12  Bruno Haible  <bruno@clisp.org>
77275
77276         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77277         EXTRA_lib_SOURCES augmentation.
77278         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77279
77280 2006-11-12  Jim Meyering  <jim@meyering.net>
77281
77282         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77283         file descriptors.  This also averts a failure on systems with
77284         native openat support when a traversed directory lacks "x" access.
77285         * lib/fts_.h: Include "i-ring.h"
77286         (struct FTS) [fts_fd_ring]: New member.
77287         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77288         (FCHDIR): Add parentheses.
77289         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77290         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77291         When descending, rather than simply closing the previous
77292         fts_cwd_fd value, push that file descriptor onto the ring.
77293         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77294         (fts_open): Initialize the new fd_ring member.
77295         (fts_close): Clear the ring.
77296         (fts_safe_changedir): When possible, use our new fd_ring to skip
77297         the diropen and fstat and dev/ino comparison that would normally
77298         accompany a virtual `chdir ("..")'.
77299
77300         * modules/fts (Depends-on): Add i-ring.
77301         * modules/i-ring: New module.
77302         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77303         * m4/i-ring.m4: New file.
77304
77305 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77306
77307         * gnulib-tool (func_create_testdir): Fix replacement of
77308         `build-aux' in configure.ac.  Run autotools in gltests
77309         subdirectory.
77310         (func_create_testdir, func_create_megatestdir, test): There is
77311         no need for '--force' in most autotool invocations in a new
77312         tree.  Actually fail the whole test if any of the tools, or the
77313         configure or make stages fail.
77314
77315         Sync from Automake.
77316         * build-aux/gnupload: Revert last change.  Add pointer to upload
77317         instructions of the GNU Maintenance Instructions.
77318         Suggestion by Karl Berry.
77319
77320 2006-11-10  Jim Meyering  <jim@meyering.net>
77321
77322         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77323
77324 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77325
77326         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77327         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77328         (bind_textdomain_codeset) [! ENABLE_NLS]:
77329         Evaluate all the arguments.  That way, callers get compatible behavior
77330         if the arguments have side effects.  Also, it avoids some GCC
77331         diagnostics in some cases; Joel E. Denny reported problems when Bison
77332         was configured with --enable-gcc-warnigs.
77333
77334 2006-11-10  Jim Meyering  <jim@meyering.net>
77335
77336         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77337         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77338         account.
77339
77340 2006-11-10  Jim Meyering  <jim@meyering.net>
77341
77342         * modules/inline: New file/module.
77343         * modules/xalloc (Files): Remove m4/inline.m4.
77344         (Depends-on): Add inline, instead.
77345         * modules/oset: Likewise.
77346         * modules/list: Likewise.
77347
77348 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77349
77350         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77351         Problem reported by Matthew Woehlke.
77352
77353 2006-11-09  Bruno Haible  <bruno@clisp.org>
77354
77355         * lib/tempname.c (gen_tempname): Remove variant that invokes
77356         __gen_tempname.
77357         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77358         __gen_tempname.
77359
77360 2006-11-08  Bruno Haible  <bruno@clisp.org>
77361
77362         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77363         to 'yes' instead of 'cross-compiling'.
77364
77365 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * lib/quotearg.h (quotearg_free): New decl.
77368         * lib/quotearg.c (quotearg_free): New function.
77369         (slot0, nslots, slotvec0, slotvec):
77370         Now file-scope so that quotearg_free can get at them.
77371
77372 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77373
77374         Sync from Automake.
77375         * build-aux/gnupload: Add missing 'gnu' to example URL.
77376         Report by Karl Berry.
77377
77378 2006-11-08  Bruno Haible  <bruno@clisp.org>
77379
77380         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77381         Suggested by Paul Eggert.
77382
77383 2006-11-08  Jim Meyering  <jim@meyering.net>
77384
77385         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77386         It's already included if !_LIBC.
77387         (fts_safe_changedir): Add a comment.
77388
77389 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77392         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77393         Matthew Woehlke.
77394
77395         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77396         definitions up, to avoid colliding with change below.
77397         (static_inline) [HAVE_INLINE]: New macro.
77398         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77399         Provide extern decls when !HAVE_INLINE.  Do not define unless
77400         static_inline is defined, either by us or by xmalloc.c.  Use
77401         static_inline rather than static inline.
77402         (XCALLOC): Optimize sizeof(T) = 1 case.
77403         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77404
77405 2006-11-07  Bruno Haible  <bruno@clisp.org>
77406
77407         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77408         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77409         AC_C_INLINE.
77410         * modules/xalloc (Files): Add m4/inline.m4.
77411
77412 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77413
77414         * README: Fix typo.
77415         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77416         (Miscellanous Notes): ...from this.
77417
77418 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77419
77420         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77421         Mention that offsetof should be used instead of sizeof.
77422         From Bruno Haible.
77423
77424 2006-11-07  Bruno Haible  <bruno@clisp.org>
77425
77426         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77427
77428 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77429
77430         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77431         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77432         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77433         (gl_tree_add_before, gl_tree_add_after):
77434         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77435         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77436         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77437         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77438         (gl_linked_add_after, gl_linked_add_at): Likewise.
77439         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77440         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77441         (gl_tree_add_before, gl_tree_add_after): Likewise.
77442         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77443         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77444         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77445
77446 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77447
77448         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77449
77450 2006-11-06  Bruno Haible  <bruno@clisp.org>
77451
77452         * m4/inline.m4: New file.
77453         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77454         * modules/list (Files): Add m4/inline.m4.
77455         * modules/oset (Files): Likewise.
77456
77457 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77458
77459         * lib/idcache.c: Include <stddef.h>, for offsetof.
77460         (struct userid.name): Change from char * to a flexible array member.
77461         All uses changed.
77462         * modules/idcache (Depends-on): Add flexmember.
77463
77464         * MODULES.html.sh (Core language properties): New module flexmember.
77465         * modules/flexmember, m4/flexmember.m4: New files.
77466
77467         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77468         inline functions that are identical with the old xnmalloc_inline,
77469         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77470         that we can avoid some unnecessary integer multiplications and
77471         divisions in the common case where the element size is known at
77472         compile time.
77473         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77474         needed.
77475         (xnboundedmalloc): Remove.
77476         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77477         arguments, for consistency with rest of this header.
77478         (xcharalloc): Rewrite using XNMALLOC.
77479         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77480         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77481         versions have been moved to lib/xalloc.h and renamed to be the
77482         non-*_inline versions.
77483         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77484         and xnrealloc functions, since those functions are now inline and
77485         now call us.
77486         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77487         renaming described above.
77488         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77489         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77490         captures the dependency in AC_C_INLINE.
77491
77492         New module canonicalize-lgpl, proposed by Charles Wilson in
77493         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77494         with a few small changes afterwards.
77495         * MODULES.html.sh (File system functions): New module
77496         canonicalize-lgpl.
77497         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77498         and canonicalize_file_name.
77499         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77500         * modules/canonicalize-lgpl: New files.
77501
77502 2006-11-05  Bruno Haible  <bruno@clisp.org>
77503
77504         * gnulib-tool (func_import, func_create_testdir): Create directories
77505         also for files in subdirectories of lib/.
77506
77507 2006-11-05  Bruno Haible  <bruno@clisp.org>
77508
77509         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77510         ANSI C compliant.
77511
77512 2006-11-03  Bruno Haible  <bruno@clisp.org>
77513
77514         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77515         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77516         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77517         (xnboundedmalloc): New inline function.
77518         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77519         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77520         xmalloc.
77521         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77522         xmalloc.
77523         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77524         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77525         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77526         xmalloc.
77527         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77528         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77529         xmalloc.
77530         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77531         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77532         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77533         xmalloc.
77534         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77535         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77536         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77537         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77538         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77539         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77540         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77541
77542 2006-11-03  Bruno Haible  <bruno@clisp.org>
77543
77544         * lib/c-ctype.h [C++]: Define functions without name mangling.
77545         * lib/fwriteerror.h [C++]: Likewise.
77546         * lib/gcd.h [C++]: Likewise.
77547         * lib/linebreak.h [C++]: Likewise.
77548
77549 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77550
77551         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77552         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77553         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77554         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77555         Check for functions and headers just once.
77556         Check for declaration of canonicalize_file_name.
77557         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77558
77559 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77560
77561         * gnulib-tool (func_import): Fix typo in actioncmd.
77562
77563 2006-11-02  Bruno Haible  <bruno@clisp.org>
77564
77565         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77566         newline sequence in the Makefile.am snippet as a space, like "make"
77567         does.
77568         Reported by Roger Persson <perrog@gmail.com>.
77569
77570 2006-11-01  Bruno Haible  <bruno@clisp.org>
77571
77572         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77573         already declared in <string.h>.
77574         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77575
77576 2006-11-01  Bruno Haible  <bruno@clisp.org>
77577
77578         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77579         * lib/strcase.h: Include <string.h>.
77580         (strcasecmp): Define to rpl_strcasecmp here.
77581
77582 2006-11-01  Bruno Haible  <bruno@clisp.org>
77583
77584         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77585
77586 2006-11-01  Eric Blake  <ebb9@byu.net>
77587
77588         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77589
77590         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77591
77592 2006-10-29  Bruno Haible  <bruno@clisp.org>
77593
77594         Make it compile in C++ mode.
77595         * lib/full-write.c (full_rw): Add a cast.
77596
77597 2006-11-01  Bruno Haible  <bruno@clisp.org>
77598
77599         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77600         be POSIX compliant.
77601         Reported by Roger Persson <perrog@gmail.com>.
77602
77603 2006-11-01  Eric Blake  <ebb9@byu.net>
77604
77605         * lib/getopt_.h: Fix comments.
77606
77607 2006-10-31  Eric Blake  <ebb9@byu.net>
77608
77609         * modules/tmpdir (Depends-on): Add sys_stat.
77610         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77611         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77612         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77613         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77614         tempname.
77615
77616 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         Avoid some C++ diagnostics reported by Bruno Haible.
77619         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77620         xmalloc.
77621         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77622         (struct slotvec): Move to top level.
77623         (quotearg_n_options): Rewrite to avoid xmalloc.
77624         * lib/xalloc.h (xcharalloc): New function.
77625         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77626         [defined __cplusplus]: Add function template that provides result
77627         type propagation.  This part of the change is from Bruno Haible.
77628
77629 2006-10-29  Bruno Haible  <bruno@clisp.org>
77630
77631         Make it compile in C++ mode.
77632         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77633         * lib/strnlen1.c (strnlen1): Cast memchr result.
77634         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77635         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77636         (create_temp_dir): Rename local variable 'template'.
77637         (compile_csharp_using_sscli): Add cast.
77638         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77639         * lib/findprog.c (find_in_path): Likewise.
77640         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77641         * lib/wait-process.c (register_slave_subprocess): Likewise.
77642
77643 2006-10-22  Bruno Haible  <bruno@clisp.org>
77644
77645         * modules/tsearch: New file.
77646         * lib/tsearch.h: New file.
77647         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77648         * m4/tsearch.m4: New file.
77649         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77650
77651 2006-10-29  Eric Blake  <ebb9@byu.net>
77652
77653         * lib/arcfour.c: Assume config.h.
77654         * lib/arctwo.c: Likewise.
77655         * lib/base64.c: Likewise.
77656         * lib/check-version.c: Likewise.
77657         * lib/crc.c: Likewise.
77658         * lib/des.c: Likewise.
77659         * lib/gc-gnulib.c: Likewise.
77660         * lib/gc-libgcrypt.c: Likewise.
77661         * lib/gc-pbkdf2-sha1.c: Likewise.
77662         * lib/getaddrinfo.c: Likewise.
77663         * lib/getdelim.c: Likewise.
77664         * lib/getline.c: Likewise.
77665         * lib/hmac-md5.c: Likewise.
77666         * lib/hmac-sha1.c: Likewise.
77667         * lib/iconvme.c: Likewise.
77668         * lib/md2.c: Likewise.
77669         * lib/md4.c: Likewise.
77670         * lib/memxor.c: Likewise.
77671         * lib/read-file.c: Likewise.
77672         * lib/readline.c: Likewise.
77673         * lib/rijndael-alg-fst.c: Likewise.
77674         * lib/rijndael-api-fst.c: Likewise.
77675         * lib/xgetdomainname.c: Likewise.
77676
77677 2006-10-28  Eric Blake  <ebb9@byu.net>
77678
77679         * lib/xstrndup.c: Assume config.h.
77680
77681 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77682
77683         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77684         stat-macros.h is now for our own macros, whereas stat_h is for
77685         macros in the <sys/stat.h> name space.
77686         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77687         (STAT_MACROS_H): Remove.
77688         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77689         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77690         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77691         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77692         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77693         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77694         Move these macros to ...
77695         * lib/stat_.h: here.  Don't include stat-macros.h.
77696         * lib/canonicalize.c: Don't include stat-macros.h.
77697         * lib/chown.c: Likewise.
77698         * lib/euidaccess.c: Likewise.
77699         * lib/file-type.c: Likewise.
77700         * lib/filemode.c: Likewise.
77701         * lib/glob.c: Likewise.
77702         * lib/isapipe.c: Likewise.
77703         * lib/lchown.c: Likewise.
77704         * lib/lstat.c: Likewise.
77705         * lib/mkdir-p.c: Likewise.
77706         * lib/rmdir.c: Likewise.
77707         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77708         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77709         unless mkdir isn't declared, to speed up 'configure'.
77710         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77711         would define all the S_* symbols.
77712         * modules/canonicalize (Depends-on):
77713         Depend on sys_stat, not stat-macros.
77714         * modules/chown: Likewise.
77715         * modules/euidaccess: Likewise.
77716         * modules/filemode: Likewise.
77717         * modules/file-type: Likewise.
77718         * modules/glob: Likewise.
77719         * modules/isapipe: Likewise.
77720         * modules/lchown: Likewise.
77721         * modules/lstat: Likewise.
77722         * modules/mkancesdirs: Likewise.
77723         * modules/rmdir: Likewise.
77724         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77725         * modules/modechange: Likewise.
77726         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77727         (configure.ac): Remove gl_STAT_MACROS.
77728         * modules/sys_stat (Depends-on): Remove stat-macros.
77729
77730 2006-10-27  Bruno Haible  <bruno@clisp.org>
77731
77732         * m4/signed.m4: Remove file.
77733         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77734         invocation.
77735         * modules/vasnprintf (Files): Remove m4/signed.m4.
77736
77737 2006-10-27  Bruno Haible  <bruno@clisp.org>
77738
77739         Update to GNU gettext 0.16.
77740         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77741         m4/inttypes-h.m4, m4/signed.m4.
77742         * m4/gettext.m4: Update to GNU gettext 0.16.
77743         * m4/intl.m4: New file, from GNU gettext.
77744         * m4/intldir.m4: New file, from GNU gettext.
77745         * config/srclist.txt: Update
77746
77747 2006-10-27  Eric Blake  <ebb9@byu.net>
77748
77749         * MODULES.html.sh: Document tempname.
77750         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77751         dependencies.
77752         (Files): Move lib/tempname.c...
77753         * modules/tempname: ...to this new module.
77754         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77755         (gl_PREREQ_TEMPNAME): Move...
77756         * m4/tempname.m4: ...to this new file.
77757         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77758         * modules/sys_stat (Depends-on): Add stat-macros.
77759         * lib/stat_.h (includes): Pick up stat macros.
77760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77761         if stat macros are broken.
77762         * lib/tempname.c (includes): No need to include "stat-macros.h".
77763         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77764         (direxists, __path_search) [!_LIBC]: Don't compile these in
77765         gnulib; the tmpdir module covers that.
77766         * lib/tempname.h: New file.
77767
77768 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * COPYING: Explain how gnulib-tool converts licence headers.
77771         Almost all wording by Eric Blake.
77772
77773 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77774
77775         * lib/mbchar.h (is_basic_table): Make read-only.
77776         * lib/mbchar.c (is_basic_table): Likewise.
77777         Reported by John Darrington.
77778
77779 2006-10-25  Bruno Haible  <bruno@clisp.org>
77780
77781         * lib/progname.h (set_program_name): Undefine before defining.
77782
77783 2006-10-25  Bruno Haible  <bruno@clisp.org>
77784
77785         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77786         false for non-gcc C++ compilers.
77787         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77788
77789 2006-10-24  Bruno Haible  <bruno@clisp.org>
77790
77791         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77792         iconv implementations like Irix iconv.
77793
77794 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77795
77796         * modules/vararrays: New file.
77797         * m4/vararrays.m4: New file, taken from diffutils.
77798         * MODULES.html.sh: New module vararrays.
77799
77800 2006-10-24  Karl Berry  <karl@gnu.org>
77801
77802         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77803         Don't call GNU Unix.
77804
77805 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77806
77807         * users.txt: Add Libtool.
77808
77809         Sync from Libtool:
77810
77811         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77814         to gnulib's policy of including config.h unconditionally.
77815
77816 2006-10-24  Bruno Haible  <bruno@clisp.org>
77817
77818         * modules/wcwidth (Files): Add m4/wint_t.m4.
77819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77820         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77821
77822 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77823
77824         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77825         to pacify GCC with some -W flags enabled.  Problem reported by
77826         Bruno Haible.
77827
77828 2006-10-24  Jim Meyering  <jim@meyering.net>
77829
77830         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77831         Reported by Karl Berry.
77832
77833 2006-10-23  Bruno Haible  <bruno@clisp.org>
77834
77835         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77836
77837 2006-10-24  Bruno Haible  <bruno@clisp.org>
77838
77839         * lib/gl_list.h: Use C comment style, not C++ comment style.
77840
77841 2006-10-23  Eric Blake  <ebb9@byu.net>
77842
77843         * lib/getaddrinfo.c (includes): Add missing include.
77844
77845 2006-10-23  Bruno Haible  <bruno@clisp.org>
77846             Paul Eggert  <eggert@cs.ucla.edu>
77847
77848         Ability to rename obstack_free.
77849         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77850         obstack_free.
77851         (obstack_free): Invoke the __obstack_free macro.
77852         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77853
77854 2006-10-23  Bruno Haible  <bruno@clisp.org>
77855             Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77858         __argc, __argv from the declaration. (They are defined as macros on
77859         mingw.)
77860
77861 2006-10-22  Bruno Haible  <bruno@clisp.org>
77862
77863         * doc/gnulib-intro.texi: New file.
77864         * doc/gnulib.texi: Include it.
77865
77866 2006-10-21  Bruno Haible  <bruno@clisp.org>
77867
77868         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77869         "Introduction", "Miscellanous Notes", "Particular Modules".
77870
77871 2006-10-21  Bruno Haible  <bruno@clisp.org>
77872
77873         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77874         Change mostlyclean-local rule to avoid sh syntax error from bash
77875         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77876
77877 2006-10-23  Jim Meyering  <jim@meyering.net>
77878
77879         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77880         in place of snprintf.
77881
77882         * modules/inttostr (Files): Add lib/uinttostr.c.
77883         * lib/uinttostr.c (inttostr): New file/function.
77884         * lib/inttostr.h (uinttostr): Declare.
77885         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77886         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77887         Add uinttostr.
77888         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77889
77890 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77891
77892         * lib/canonicalize.c (ELOOP): Define if not already defined.
77893         Problem reported by Bruno Haible in
77894         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77895
77896 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77897
77898         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77899         Problem reported by Perry Smith and Ville Laurikari.
77900
77901         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77902         uses.
77903
77904 2006-10-19  Bruno Haible  <bruno@clisp.org>
77905
77906         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77907         for mingw.
77908
77909 2006-10-19  Bruno Haible  <bruno@clisp.org>
77910
77911         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77912         Needed for mingw.
77913
77914 2006-10-19  Bruno Haible  <bruno@clisp.org>
77915
77916         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77917
77918 2006-10-19  Bruno Haible  <bruno@clisp.org>
77919
77920         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77921         it.
77922
77923 2006-10-19  Bruno Haible  <bruno@clisp.org>
77924
77925         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77926         invocation.
77927
77928 2006-10-19  Bruno Haible  <bruno@clisp.org>
77929
77930         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77931         mountlist by default.
77932
77933 2006-10-16  Bruno Haible  <bruno@clisp.org>
77934
77935         * lib/c-strstr.c: Include c-strstr.h.
77936
77937 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77938
77939         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77940         in a slash.
77941
77942 2006-10-18  Bruno Haible  <bruno@clisp.org>
77943
77944         * lib/lock.h [C++]: Wrap definitions in extern "C".
77945
77946 2006-10-18  Bruno Haible  <bruno@clisp.org>
77947
77948         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77949         gl_LIBOBJS list.
77950
77951 2006-10-18  Bruno Haible  <bruno@clisp.org>
77952
77953         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77954
77955 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77956
77957         * lib/xstrtol.h: Include gettext.h.
77958         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77959         Problem reported by Eric Blake.
77960         * modules/xstrtol (Depends-on): Add gettext-h.
77961
77962 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77963
77964         * lib/strftime.c (advance): New macro.
77965         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77966         incomplete type, so you can't add 0 to it.  Problem and patch
77967         reported by Eelco Dolstra for dietlibc.
77968
77969 2006-10-18  Jim Meyering  <jim@meyering.net>
77970
77971         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77972         type for a local, and rename it: s/up/user_proc/.
77973
77974 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77975
77976         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77977         READ_UTMP_USER_PROCESS.
77978         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77979
77980 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77983         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77984
77985 2006-10-17  Eric Blake  <ebb9@byu.net>
77986
77987         * lib/sigprocmask.c (sigprocmask): Fix typo.
77988
77989         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77990
77991         * modules/clean-temp (Makefile.am): Don't add to make output...
77992         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77993         config.h.
77994
77995 2006-10-17  Bruno Haible  <bruno@clisp.org>
77996
77997         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77998         differently if DEFAULT_TEXT_DOMAIN is set.
77999
78000 2006-10-16  Bruno Haible  <bruno@clisp.org>
78001
78002         * lib/clean-temp.c: Include fwriteerror.h.
78003
78004 2006-10-16  Bruno Haible  <bruno@clisp.org>
78005
78006         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
78007
78008 2006-10-16  Bruno Haible  <bruno@clisp.org>
78009
78010         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
78011         * lib/sigprocmask.h: Include <sys/types.h>.
78012         (sigset_t): Use the system's definition if present.
78013
78014 2006-10-17  Eric Blake  <ebb9@byu.net>
78015
78016         * lib/xvasprintf.c (includes): Assume config.h.
78017         * lib/xasprintf.c (includes): Likewise.
78018
78019 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78020
78021         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
78022         at least as wide as intmax_t.
78023
78024 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
78025
78026         (Imported from Automake.)
78027         * build-aux/gnupload: Update to version 1.1 of directive file.
78028
78029 2006-10-16  Eric Blake  <ebb9@byu.net>
78030
78031         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
78032         match Automake 1.10a.
78033
78034 2006-10-14  Bruno Haible  <bruno@clisp.org>
78035
78036         * modules/sigprocmask: New file.
78037         * lib/sigprocmask.h: New file.
78038         * lib/sigprocmask.c: New file.
78039         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
78040         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
78041         request sigprocmask.o.
78042         (gl_PREREQ_SIGPROCMASK): New macro.
78043         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
78044         (Depends-on): Add sigprocmask.
78045         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
78046         gt_SIGNALBLOCKING. Test for 'raise' only once.
78047         * lib/fatal-signal.c: Include sigprocmask.h.
78048         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
78049         unblock_fatal_signals): Define always.
78050         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78051         sigprocmask.
78052
78053 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         Sync from Automake.
78056         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
78057         which incorrectly sets the mode of an existing destination
78058         directory.  In some cases the unpatched install-sh could do the
78059         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
78060         system.  We hope this is rare in practice, but it's clearly worth
78061         fixing.  Problem reported by Alex Unleashed in
78062         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
78063         Also, don't bother to check for -m bugs unless we're using -m;
78064         suggested by Stepan Kasal.
78065
78066 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78067
78068         Sync from Automake.
78069         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
78070         `-c' flag, so they appear at the same position as in %FASTDEP%
78071         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
78072         which ignores unknown options only after the first non-option.
78073         Bug report against M4 by Nelson H. F. Beebe.
78074
78075 2006-10-13  Jim Meyering  <jim@meyering.net>
78076
78077         Fix a bug in yesterday's change.
78078         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
78079         p->fts_statp->st_dev would be used uninitialized.
78080         Ensures that we always call fts_stat on the very first entry.
78081         Miklos Szeredi reported that find -xdev stopped working.
78082
78083 2006-10-12  Bruno Haible  <bruno@clisp.org>
78084
78085         * gnulib-tool (func_get_automake_snippet): Append an automatically
78086         computed EXTRA_DIST augmentation.
78087         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
78088         * modules/alloca-opt (Makefile.am): Likewise.
78089         * modules/allocsa (Makefile.am): Likewise.
78090         * modules/arcfour (Makefile.am): Likewise.
78091         * modules/arctwo (Makefile.am): Likewise.
78092         * modules/argmatch (Makefile.am): Likewise.
78093         * modules/argz (Makefile.am): Likewise.
78094         * modules/atexit (Makefile.am): Likewise.
78095         * modules/backupfile (Makefile.am): Likewise.
78096         * modules/byteswap (Makefile.am): Likewise.
78097         * modules/c-strtod (Makefile.am): Likewise.
78098         * modules/c-strtold (Makefile.am): Likewise.
78099         * modules/calloc (Makefile.am): Likewise.
78100         * modules/canon-host (Makefile.am): Likewise.
78101         * modules/canonicalize (Makefile.am): Likewise.
78102         * modules/chdir-long (Makefile.am): Likewise.
78103         * modules/chdir-safer (Makefile.am): Likewise.
78104         * modules/check-version (Makefile.am): Likewise.
78105         * modules/chown (Makefile.am): Likewise.
78106         * modules/cloexec (Makefile.am): Likewise.
78107         * modules/close-stream (Makefile.am): Likewise.
78108         * modules/closeout (Makefile.am): Likewise.
78109         * modules/crc (Makefile.am): Likewise.
78110         * modules/csharpexec (Makefile.am): Likewise.
78111         * modules/cycle-check (Makefile.am): Likewise.
78112         * modules/des (Makefile.am): Likewise.
78113         * modules/dev-ino (Makefile.am): Likewise.
78114         * modules/dirfd (Makefile.am): Likewise.
78115         * modules/dirname (Makefile.am): Likewise.
78116         * modules/dup2 (Makefile.am): Likewise.
78117         * modules/eealloc (Makefile.am): Likewise.
78118         * modules/error (Makefile.am): Likewise.
78119         * modules/euidaccess (Makefile.am): Likewise.
78120         * modules/exclude (Makefile.am): Likewise.
78121         * modules/exitfail (Makefile.am): Likewise.
78122         * modules/fcntl-safer (Makefile.am): Likewise.
78123         * modules/fcntl (Makefile.am): Likewise.
78124         * modules/file-type (Makefile.am): Likewise.
78125         * modules/fileblocks (Makefile.am): Likewise.
78126         * modules/filemode (Makefile.am): Likewise.
78127         * modules/filenamecat (Makefile.am): Likewise.
78128         * modules/fnmatch (Makefile.am): Likewise.
78129         * modules/fopen-safer (Makefile.am): Likewise.
78130         * modules/fpending (Makefile.am): Likewise.
78131         * modules/fprintftime (Makefile.am): Likewise.
78132         * modules/free (Makefile.am): Likewise.
78133         * modules/fsusage (Makefile.am): Likewise.
78134         * modules/ftruncate (Makefile.am): Likewise.
78135         * modules/fts (Makefile.am): Likewise.
78136         * modules/gc-arcfour (Makefile.am): Likewise.
78137         * modules/gc-des (Makefile.am): Likewise.
78138         * modules/gc-hmac-md5 (Makefile.am): Likewise.
78139         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
78140         * modules/gc-md4 (Makefile.am): Likewise.
78141         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78142         * modules/gc-sha1 (Makefile.am): Likewise.
78143         * modules/gc (Makefile.am): Likewise.
78144         * modules/getaddrinfo (Makefile.am): Likewise.
78145         * modules/getcwd (Makefile.am): Likewise.
78146         * modules/getdelim (Makefile.am): Likewise.
78147         * modules/getdomainname (Makefile.am): Likewise.
78148         * modules/getgroups (Makefile.am): Likewise.
78149         * modules/gethostname (Makefile.am): Likewise.
78150         * modules/gethrxtime (Makefile.am): Likewise.
78151         * modules/getline (Makefile.am): Likewise.
78152         * modules/getloadavg (Makefile.am): Likewise.
78153         * modules/getlogin_r (Makefile.am): Likewise.
78154         * modules/getndelim2 (Makefile.am): Likewise.
78155         * modules/getopt (Makefile.am): Likewise.
78156         * modules/getpagesize (Makefile.am): Likewise.
78157         * modules/getpass-gnu (Makefile.am): Likewise.
78158         * modules/getpass (Makefile.am): Likewise.
78159         * modules/getsubopt (Makefile.am): Likewise.
78160         * modules/gettime (Makefile.am): Likewise.
78161         * modules/gettimeofday (Makefile.am): Likewise.
78162         * modules/getugroups (Makefile.am): Likewise.
78163         * modules/getusershell (Makefile.am): Likewise.
78164         * modules/glob (Makefile.am): Likewise.
78165         * modules/group-member (Makefile.am): Likewise.
78166         * modules/hard-locale (Makefile.am): Likewise.
78167         * modules/hash (Makefile.am): Likewise.
78168         * modules/hmac-md5 (Makefile.am): Likewise.
78169         * modules/hmac-sha1 (Makefile.am): Likewise.
78170         * modules/human (Makefile.am): Likewise.
78171         * modules/idcache (Makefile.am): Likewise.
78172         * modules/imaxabs (Makefile.am): Likewise.
78173         * modules/imaxdiv (Makefile.am): Likewise.
78174         * modules/inet_ntop (Makefile.am): Likewise.
78175         * modules/inet_pton (Makefile.am): Likewise.
78176         * modules/intprops (Makefile.am): Likewise.
78177         * modules/inttostr (Makefile.am): Likewise.
78178         * modules/inttypes (Makefile.am): Likewise.
78179         * modules/isapipe (Makefile.am): Likewise.
78180         * modules/javaversion (Makefile.am): Likewise.
78181         * modules/lchmod (Makefile.am): Likewise.
78182         * modules/lchown (Makefile.am): Likewise.
78183         * modules/localcharset (Makefile.am): Likewise.
78184         * modules/long-options (Makefile.am): Likewise.
78185         * modules/lstat (Makefile.am): Likewise.
78186         * modules/malloc (Makefile.am): Likewise.
78187         * modules/mathl (Makefile.am): Likewise.
78188         * modules/mbchar (Makefile.am): Likewise.
78189         * modules/md2 (Makefile.am): Likewise.
78190         * modules/md4 (Makefile.am): Likewise.
78191         * modules/md5 (Makefile.am): Likewise.
78192         * modules/memcasecmp (Makefile.am): Likewise.
78193         * modules/memchr (Makefile.am): Likewise.
78194         * modules/memcmp (Makefile.am): Likewise.
78195         * modules/memcoll (Makefile.am): Likewise.
78196         * modules/memcpy (Makefile.am): Likewise.
78197         * modules/memmem (Makefile.am): Likewise.
78198         * modules/memmove (Makefile.am): Likewise.
78199         * modules/mempcpy (Makefile.am): Likewise.
78200         * modules/memrchr (Makefile.am): Likewise.
78201         * modules/memset (Makefile.am): Likewise.
78202         * modules/memxor (Makefile.am): Likewise.
78203         * modules/mkancesdirs (Makefile.am): Likewise.
78204         * modules/mkdir-p (Makefile.am): Likewise.
78205         * modules/mkdir (Makefile.am): Likewise.
78206         * modules/mkdtemp (Makefile.am): Likewise.
78207         * modules/mkstemp (Makefile.am): Likewise.
78208         * modules/mktime (Makefile.am): Likewise.
78209         * modules/modechange (Makefile.am): Likewise.
78210         * modules/mountlist (Makefile.am): Likewise.
78211         * modules/nanosleep (Makefile.am): Likewise.
78212         * modules/obstack (Makefile.am): Likewise.
78213         * modules/openat (Makefile.am): Likewise.
78214         * modules/pagealign_alloc (Makefile.am): Likewise.
78215         * modules/pathmax (Makefile.am): Likewise.
78216         * modules/physmem (Makefile.am): Likewise.
78217         * modules/poll (Makefile.am): Likewise.
78218         * modules/posixtm (Makefile.am): Likewise.
78219         * modules/posixver (Makefile.am): Likewise.
78220         * modules/putenv (Makefile.am): Likewise.
78221         * modules/quote (Makefile.am): Likewise.
78222         * modules/quotearg (Makefile.am): Likewise.
78223         * modules/raise (Makefile.am): Likewise.
78224         * modules/read-file (Makefile.am): Likewise.
78225         * modules/readline (Makefile.am): Likewise.
78226         * modules/readlink (Makefile.am): Likewise.
78227         * modules/readtokens (Makefile.am): Likewise.
78228         * modules/readutmp (Makefile.am): Likewise.
78229         * modules/realloc (Makefile.am): Likewise.
78230         * modules/regex (Makefile.am): Likewise.
78231         * modules/rename-dest-slash (Makefile.am): Likewise.
78232         * modules/rename (Makefile.am): Likewise.
78233         * modules/rijndael (Makefile.am): Likewise.
78234         * modules/rmdir (Makefile.am): Likewise.
78235         * modules/rpmatch (Makefile.am): Likewise.
78236         * modules/safe-read (Makefile.am): Likewise.
78237         * modules/safe-write (Makefile.am): Likewise.
78238         * modules/same-inode (Makefile.am): Likewise.
78239         * modules/same (Makefile.am): Likewise.
78240         * modules/save-cwd (Makefile.am): Likewise.
78241         * modules/savedir (Makefile.am): Likewise.
78242         * modules/setenv (Makefile.am): Likewise.
78243         * modules/settime (Makefile.am): Likewise.
78244         * modules/sha1 (Makefile.am): Likewise.
78245         * modules/sig2str (Makefile.am): Likewise.
78246         * modules/snprintf (Makefile.am): Likewise.
78247         * modules/stat-macros (Makefile.am): Likewise.
78248         * modules/stat-time (Makefile.am): Likewise.
78249         * modules/stdbool (Makefile.am): Likewise.
78250         * modules/stdint (Makefile.am): Likewise.
78251         * modules/stdlib-safer (Makefile.am): Likewise.
78252         * modules/stpcpy (Makefile.am): Likewise.
78253         * modules/stpncpy (Makefile.am): Likewise.
78254         * modules/strcase (Makefile.am): Likewise.
78255         * modules/strcasestr (Makefile.am): Likewise.
78256         * modules/strchrnul (Makefile.am): Likewise.
78257         * modules/strcspn (Makefile.am): Likewise.
78258         * modules/strdup (Makefile.am): Likewise.
78259         * modules/strerror (Makefile.am): Likewise.
78260         * modules/strftime (Makefile.am): Likewise.
78261         * modules/strndup (Makefile.am): Likewise.
78262         * modules/strnlen (Makefile.am): Likewise.
78263         * modules/strpbrk (Makefile.am): Likewise.
78264         * modules/strsep (Makefile.am): Likewise.
78265         * modules/strstr (Makefile.am): Likewise.
78266         * modules/strtod (Makefile.am): Likewise.
78267         * modules/strtoimax (Makefile.am): Likewise.
78268         * modules/strtok_r (Makefile.am): Likewise.
78269         * modules/strtol (Makefile.am): Likewise.
78270         * modules/strtoll (Makefile.am): Likewise.
78271         * modules/strtoul (Makefile.am): Likewise.
78272         * modules/strtoull (Makefile.am): Likewise.
78273         * modules/strtoumax (Makefile.am): Likewise.
78274         * modules/strverscmp (Makefile.am): Likewise.
78275         * modules/sys_socket (Makefile.am): Likewise.
78276         * modules/sys_stat (Makefile.am): Likewise.
78277         * modules/sysexits (Makefile.am): Likewise.
78278         * modules/time_r (Makefile.am): Likewise.
78279         * modules/timegm (Makefile.am): Likewise.
78280         * modules/timespec (Makefile.am): Likewise.
78281         * modules/tmpfile-safer (Makefile.am): Likewise.
78282         * modules/trim (Makefile.am): Likewise.
78283         * modules/unistd-safer (Makefile.am): Likewise.
78284         * modules/unlinkdir (Makefile.am): Likewise.
78285         * modules/unlocked-io (Makefile.am): Likewise.
78286         * modules/userspec (Makefile.am): Likewise.
78287         * modules/utime (Makefile.am): Likewise.
78288         * modules/utimecmp (Makefile.am): Likewise.
78289         * modules/utimens (Makefile.am): Likewise.
78290         * modules/vasnprintf (Makefile.am): Likewise.
78291         * modules/vasprintf (Makefile.am): Likewise.
78292         * modules/vsnprintf (Makefile.am): Likewise.
78293         * modules/xalloc (Makefile.am): Likewise.
78294         * modules/xgetcwd (Makefile.am): Likewise.
78295         * modules/xnanosleep (Makefile.am): Likewise.
78296         * modules/xreadlink (Makefile.am): Likewise.
78297         * modules/xstrtod (Makefile.am): Likewise.
78298         * modules/xstrtol (Makefile.am): Likewise.
78299         * modules/xstrtold (Makefile.am): Likewise.
78300         * modules/yesno (Makefile.am): Likewise.
78301         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78302
78303 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78304
78305         * modules/error (Makefile.am): Distribute files through
78306         EXTRA_DIST, not lib_SOURCES.
78307
78308 2006-10-12  Eric Blake  <ebb9@byu.net>
78309
78310         * modules/error (Makefile.am): Distribute files in /lib.
78311         * modules/obstack (Makefile.am): Likewise.
78312
78313 2006-10-12  Bruno Haible  <bruno@clisp.org>
78314
78315         * modules/acl (Makefile.am): Distribute all files in lib/ through
78316         EXTRA_DIST.
78317         * modules/arcfour (Makefile.am): Likewise.
78318         * modules/arctwo (Makefile.am): Likewise.
78319         * modules/argmatch (Makefile.am): Likewise.
78320         * modules/argz (Makefile.am): Likewise.
78321         * modules/atexit (Makefile.am): Likewise.
78322         * modules/backupfile (Makefile.am): Likewise.
78323         * modules/c-strtod (Makefile.am): Likewise.
78324         * modules/c-strtold (Makefile.am): Likewise.
78325         * modules/calloc (Makefile.am): Likewise.
78326         * modules/canon-host (Makefile.am): Likewise.
78327         * modules/canonicalize (Makefile.am): Likewise.
78328         * modules/chdir-long (Makefile.am): Likewise.
78329         * modules/chdir-safer (Makefile.am): Likewise.
78330         * modules/check-version (Makefile.am): Likewise.
78331         * modules/chown (Makefile.am): Likewise.
78332         * modules/cloexec (Makefile.am): Likewise.
78333         * modules/close-stream (Makefile.am): Likewise.
78334         * modules/closeout (Makefile.am): Likewise.
78335         * modules/crc (Makefile.am): Likewise.
78336         * modules/cycle-check (Makefile.am): Likewise.
78337         * modules/des (Makefile.am): Likewise.
78338         * modules/dirfd (Makefile.am): Likewise.
78339         * modules/dirname (Makefile.am): Likewise.
78340         * modules/dup2 (Makefile.am): Likewise.
78341         * modules/euidaccess (Makefile.am): Likewise.
78342         * modules/exclude (Makefile.am): Likewise.
78343         * modules/exitfail (Makefile.am): Likewise.
78344         * modules/fcntl-safer (Makefile.am): Likewise.
78345         * modules/file-type (Makefile.am): Likewise.
78346         * modules/fileblocks (Makefile.am): Likewise.
78347         * modules/filemode (Makefile.am): Likewise.
78348         * modules/filenamecat (Makefile.am): Likewise.
78349         * modules/fnmatch (Makefile.am): Likewise.
78350         * modules/fopen-safer (Makefile.am): Likewise.
78351         * modules/fpending (Makefile.am): Likewise.
78352         * modules/fprintftime (Makefile.am): Likewise.
78353         * modules/free (Makefile.am): Likewise.
78354         * modules/fsusage (Makefile.am): Likewise.
78355         * modules/ftruncate (Makefile.am): Likewise.
78356         * modules/fts (Makefile.am): Likewise.
78357         * modules/gc (Makefile.am): Likewise.
78358         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78359         * modules/getaddrinfo (Makefile.am): Likewise.
78360         * modules/getcwd (Makefile.am): Likewise.
78361         * modules/getdelim (Makefile.am): Likewise.
78362         * modules/getdomainname (Makefile.am): Likewise.
78363         * modules/getgroups (Makefile.am): Likewise.
78364         * modules/gethostname (Makefile.am): Likewise.
78365         * modules/gethrxtime (Makefile.am): Likewise.
78366         * modules/getline (Makefile.am): Likewise.
78367         * modules/getloadavg (Makefile.am): Likewise.
78368         * modules/getlogin_r (Makefile.am): Likewise.
78369         * modules/getopt (Makefile.am): Likewise.
78370         * modules/getpass (Makefile.am): Likewise.
78371         * modules/getpass-gnu (Makefile.am): Likewise.
78372         * modules/getsubopt (Makefile.am): Likewise.
78373         * modules/gettime (Makefile.am): Likewise.
78374         * modules/gettimeofday (Makefile.am): Likewise.
78375         * modules/getugroups (Makefile.am): Likewise.
78376         * modules/getusershell (Makefile.am): Likewise.
78377         * modules/glob (Makefile.am): Likewise.
78378         * modules/group-member (Makefile.am): Likewise.
78379         * modules/hard-locale (Makefile.am): Likewise.
78380         * modules/hash (Makefile.am): Likewise.
78381         * modules/hmac-md5 (Makefile.am): Likewise.
78382         * modules/hmac-sha1 (Makefile.am): Likewise.
78383         * modules/human (Makefile.am): Likewise.
78384         * modules/idcache (Makefile.am): Likewise.
78385         * modules/imaxabs (Makefile.am): Likewise.
78386         * modules/imaxdiv (Makefile.am): Likewise.
78387         * modules/inet_ntop (Makefile.am): Likewise.
78388         * modules/inet_pton (Makefile.am): Likewise.
78389         * modules/inttostr (Makefile.am): Likewise.
78390         * modules/isapipe (Makefile.am): Likewise.
78391         * modules/lchown (Makefile.am): Likewise.
78392         * modules/long-options (Makefile.am): Likewise.
78393         * modules/lstat (Makefile.am): Likewise.
78394         * modules/malloc (Makefile.am): Likewise.
78395         * modules/mathl (Makefile.am): Likewise.
78396         * modules/mbchar (Makefile.am): Likewise.
78397         * modules/md2 (Makefile.am): Likewise.
78398         * modules/md4 (Makefile.am): Likewise.
78399         * modules/md5 (Makefile.am): Likewise.
78400         * modules/memcasecmp (Makefile.am): Likewise.
78401         * modules/memchr (Makefile.am): Likewise.
78402         * modules/memcmp (Makefile.am): Likewise.
78403         * modules/memcoll (Makefile.am): Likewise.
78404         * modules/memcpy (Makefile.am): Likewise.
78405         * modules/memmem (Makefile.am): Likewise.
78406         * modules/memmove (Makefile.am): Likewise.
78407         * modules/mempcpy (Makefile.am): Likewise.
78408         * modules/memrchr (Makefile.am): Likewise.
78409         * modules/memset (Makefile.am): Likewise.
78410         * modules/memxor (Makefile.am): Likewise.
78411         * modules/mkancesdirs (Makefile.am): Likewise.
78412         * modules/mkdir (Makefile.am): Likewise.
78413         * modules/mkdir-p (Makefile.am): Likewise.
78414         * modules/mkdtemp (Makefile.am): Likewise.
78415         * modules/mkstemp (Makefile.am): Likewise.
78416         * modules/mktime (Makefile.am): Likewise.
78417         * modules/modechange (Makefile.am): Likewise.
78418         * modules/mountlist (Makefile.am): Likewise.
78419         * modules/nanosleep (Makefile.am): Likewise.
78420         * modules/openat (Makefile.am): Likewise.
78421         * modules/pagealign_alloc (Makefile.am): Likewise.
78422         * modules/physmem (Makefile.am): Likewise.
78423         * modules/poll (Makefile.am): Likewise.
78424         * modules/posixtm (Makefile.am): Likewise.
78425         * modules/posixver (Makefile.am): Likewise.
78426         * modules/putenv (Makefile.am): Likewise.
78427         * modules/quote (Makefile.am): Likewise.
78428         * modules/quotearg (Makefile.am): Likewise.
78429         * modules/raise (Makefile.am): Likewise.
78430         * modules/read-file (Makefile.am): Likewise.
78431         * modules/readline (Makefile.am): Likewise.
78432         * modules/readlink (Makefile.am): Likewise.
78433         * modules/readtokens (Makefile.am): Likewise.
78434         * modules/readutmp (Makefile.am): Likewise.
78435         * modules/realloc (Makefile.am): Likewise.
78436         * modules/regex (Makefile.am): Likewise.
78437         * modules/rename (Makefile.am): Likewise.
78438         * modules/rename-dest-slash (Makefile.am): Likewise.
78439         * modules/rijndael (Makefile.am): Likewise.
78440         * modules/rmdir (Makefile.am): Likewise.
78441         * modules/rpmatch (Makefile.am): Likewise.
78442         * modules/safe-read (Makefile.am): Likewise.
78443         * modules/safe-write (Makefile.am): Likewise.
78444         * modules/same (Makefile.am): Likewise.
78445         * modules/save-cwd (Makefile.am): Likewise.
78446         * modules/savedir (Makefile.am): Likewise.
78447         * modules/setenv (Makefile.am): Likewise.
78448         * modules/settime (Makefile.am): Likewise.
78449         * modules/sha1 (Makefile.am): Likewise.
78450         * modules/sig2str (Makefile.am): Likewise.
78451         * modules/snprintf (Makefile.am): Likewise.
78452         * modules/stdlib-safer (Makefile.am): Likewise.
78453         * modules/stpcpy (Makefile.am): Likewise.
78454         * modules/stpncpy (Makefile.am): Likewise.
78455         * modules/strcase (Makefile.am): Likewise.
78456         * modules/strcasestr (Makefile.am): Likewise.
78457         * modules/strchrnul (Makefile.am): Likewise.
78458         * modules/strcspn (Makefile.am): Likewise.
78459         * modules/strdup (Makefile.am): Likewise.
78460         * modules/strerror (Makefile.am): Likewise.
78461         * modules/strftime (Makefile.am): Likewise.
78462         * modules/strndup (Makefile.am): Likewise.
78463         * modules/strnlen (Makefile.am): Likewise.
78464         * modules/strpbrk (Makefile.am): Likewise.
78465         * modules/strsep (Makefile.am): Likewise.
78466         * modules/strstr (Makefile.am): Likewise.
78467         * modules/strtod (Makefile.am): Likewise.
78468         * modules/strtoimax (Makefile.am): Likewise.
78469         * modules/strtok_r (Makefile.am): Likewise.
78470         * modules/strtol (Makefile.am): Likewise.
78471         * modules/strtoll (Makefile.am): Likewise.
78472         * modules/strtoul (Makefile.am): Likewise.
78473         * modules/strtoull (Makefile.am): Likewise.
78474         * modules/strtoumax (Makefile.am): Likewise.
78475         * modules/strverscmp (Makefile.am): Likewise.
78476         * modules/time_r (Makefile.am): Likewise.
78477         * modules/timegm (Makefile.am): Likewise.
78478         * modules/tmpfile-safer (Makefile.am): Likewise.
78479         * modules/unistd-safer (Makefile.am): Likewise.
78480         * modules/unlinkdir (Makefile.am): Likewise.
78481         * modules/userspec (Makefile.am): Likewise.
78482         * modules/utime (Makefile.am): Likewise.
78483         * modules/utimecmp (Makefile.am): Likewise.
78484         * modules/utimens (Makefile.am): Likewise.
78485         * modules/vasnprintf (Makefile.am): Likewise.
78486         * modules/vasprintf (Makefile.am): Likewise.
78487         * modules/vsnprintf (Makefile.am): Likewise.
78488         * modules/xalloc (Makefile.am): Likewise.
78489         * modules/xgetcwd (Makefile.am): Likewise.
78490         * modules/xnanosleep (Makefile.am): Likewise.
78491         * modules/xreadlink (Makefile.am): Likewise.
78492         * modules/xstrtod (Makefile.am): Likewise.
78493         * modules/xstrtol (Makefile.am): Likewise.
78494         * modules/xstrtold (Makefile.am): Likewise.
78495         * modules/yesno (Makefile.am): Likewise.
78496
78497 2006-10-12  Jim Meyering  <jim@meyering.net>
78498
78499         * m4/getloadavg.m4: Revert the change below.
78500
78501         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78502         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78503         fail with a symlink, which is what coreutils' ./bootstrap now
78504         creates by default.
78505
78506 2006-10-12  Bruno Haible  <bruno@clisp.org>
78507
78508         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78509         mingw.
78510         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78511         MSVC and mingw explicitly.
78512
78513 2006-10-11  Simon Josefsson  <jas@extundo.com>
78514             Bruno Haible  <bruno@clisp.org>
78515
78516         Add support for multiple gnulib-tool invocations in the scope of a
78517         single configure.ac file.
78518         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78519         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78520         with the same contents as the _LIBADD variable.
78521         (func_emit_initmacro_start, func_emit_initmacro_end,
78522         func_emit_initmacro_done): New functions.
78523         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78524         gl_LIBOBJS and gl_LTLIBOBJS.
78525
78526 2006-10-11  Bruno Haible  <bruno@clisp.org>
78527
78528         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78529         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78530         autoreconf. Instead, invoke autopoint explicitly but move back the
78531         *.m4 files from gnulib.
78532
78533 2006-10-11  Bruno Haible  <bruno@clisp.org>
78534
78535         * gnulib-tool (func_usage): Make module names after --create-testdir
78536         optional.
78537         (func_create_testdir): If no module was specified, use nearly all
78538         modules.
78539
78540 2006-10-12  Jim Meyering  <jim@meyering.net>
78541
78542         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78543         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78544         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78545         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78546         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78547         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78548         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78549         (fts_set_stat_required): New function.
78550         (fts_open): Defer the calls to fts_stat, if possible or requested.
78551         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78552         into fts_stat itself.
78553         (fts_read): Perform any required (deferred) fts_stat call.
78554         (fts_build): Likewise, for the directory we're about to open and read.
78555         In the readdir loop, carefully decide whether each entry will require
78556         an eventual call to fts_stat, using dirent.d_type info if available.
78557         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78558         a command line argument into this function.  Update all callers.
78559         Map a return value of FTS_DOT to FTS_D for a command line argument.
78560         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78561         Thanks to Miklos Szeredi for his tenacity and for the initial
78562         bug report about "find" failing on a FUSE-based file system.
78563
78564         * lib/fts.c (fts_open): Use consistent indentation.
78565
78566 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78567
78568         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78569         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78570         reported by Jim Meyering.  All uses of cache variables renamed
78571         to match Autoconf's.
78572         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78573         the other one.
78574
78575         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78576         Fix misspelling in diagnostic.
78577
78578 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78579
78580         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78581         defined.  Problem reported by Matthew Woehlke.
78582
78583         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78584         Add support for Tandem NonStop R series.
78585         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78586         Use new macro.
78587
78588         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78589         (has_trailing_slash): Omit size arg; all callers changed.
78590         Omit 'inline', since it doesn't help performance and we'd
78591         need to configure it.
78592         Don't count //, ///, etc. as having a trailing slash.
78593         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78594         (rpl_rename_dest_slash): On failure, use rename's errno rather
78595         than (in some cases) an incorrect or junk errno.
78596         Simplify code by removing need to compute length; this does
78597         cause it to make two passes instead of one over the file name,
78598         but it's worth it.
78599
78600         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78601         change, since Autoconf's version may no longer be appropriate now
78602         that we are using CVS Autoconf's version.  Add support for Tandem.
78603
78604 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78605             Bruno Haible  <bruno@clisp.org>
78606
78607         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78608         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78609         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78610         gl_AC_TYPE_LONG_LONG.
78611
78612         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78613         instead of HAVE_LONG_LONG.
78614         * lib/printf-args.c (printf_fetchargs): Likewise.
78615         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78616         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78617         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78618         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78619         gl_AC_TYPE_LONG_LONG.
78620
78621 2006-10-11  Bruno Haible  <bruno@clisp.org>
78622
78623         * m4/longlong.m4: Add comments.
78624         * m4/ulonglong.m4: Likewise.
78625
78626 2006-10-10  Bruno Haible  <bruno@clisp.org>
78627
78628         Make it possible to #define stpcpy, strdup to aliases.
78629         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78630         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78631
78632 2006-10-10  Bruno Haible  <bruno@clisp.org>
78633
78634         Make it possible to #define gcd to an alias.
78635         * lib/gcd.c: Include config.h.
78636
78637 2006-10-10  Bruno Haible  <bruno@clisp.org>
78638
78639         Make it possible to #define c_isascii to an alias.
78640         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78641         defined. Undefine the macros before defining them, to avoid gcc
78642         warnings.
78643         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78644         define NO_C_CTYPE_MACROS early.
78645
78646 2006-10-10  Bruno Haible  <bruno@clisp.org>
78647
78648         Make it possible to #define set_program_name to an alias.
78649         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78650         ENABLE_RELOCATABLE early.
78651
78652 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78655         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78656         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78657         More generally, don't assume that 64-bit signed int is available
78658         if unsigned int is, and vice versa.
78659         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78660         unsigned symbols, not on their signed counterparts.
78661         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78662         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78663         (UINT64_C, UINTMAX_C):
78664         Likewise.
78665         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78666         unsigned counterparts.
78667         (Have_long_long, Unsigned): New macros.
78668         (Int): Renamed from INT.
78669         (strtoimax): Use the new macros.
78670         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78671         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78672         * modules/inttypes (inttypes.h): Substitute
78673         HAVE_UNSIGNED_LONG_LONG_INT.
78674         * modules/stdint (stdint.h): Likewise.
78675         (Files): Add m4/ulonglong.m4.
78676
78677 2006-10-10  Bruno Haible  <bruno@clisp.org>
78678
78679         Fix a gcc -Wshadow warning.
78680         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78681         to 'bucket'.
78682         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78683         gl_linked_indexof_from_to): Likewise.
78684         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78685         Likewise.
78686         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78687         Likewise.
78688         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78689         Reported by Eric Blake.
78690
78691 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78692
78693         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78694         for NetBSD.  Problem reported by Bruno Haible.
78695
78696 2006-10-09  Jim Meyering  <jim@meyering.net>
78697
78698         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78699         Patch from Bruno Haible.
78700
78701 2006-10-09  Jim Meyering  <jim@meyering.net>
78702
78703         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78704         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78705         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78706
78707 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78708
78709         Don't include <config.h> twice; this doesn't work in some cases,
78710         e.g., when config.h has "#define intmax_t long long int" and
78711         we include <config.h>, <inttypes.h>, <config.h> in that order.
78712         Problem reported by Matthew Woehlke in:
78713         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78714         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78715         * lib/fts-cycle.c: Don't include config.h.
78716         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78717         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78718         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78719         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78720         inttypes.h.
78721         * lib/xstrtoumax.c: Likewise.
78722         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78723         __strtol and the like, so that this module is more like its siblings.
78724         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78725         Remove; no longer needed now that we assume gnulib inttypes.h.
78726
78727 2006-10-08  Bruno Haible  <bruno@clisp.org>
78728
78729         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78730         option.
78731
78732 2006-10-07  Jim Meyering  <jim@meyering.net>
78733
78734         * modules/inttypes (inttypes.h): Revert what seems to have been
78735         an inadvertent part of today's change: use "|", not "/" in the
78736         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78737
78738 2006-10-07  Bruno Haible  <bruno@clisp.org>
78739
78740         * modules/sublist: New file.
78741
78742 2006-10-07  Bruno Haible  <bruno@clisp.org>
78743
78744         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78745         * modules/argz (argz.h): Likewise.
78746         * modules/arpa_inet (arpa/inet.h): Likewise.
78747         * modules/byteswap (byteswap.h): Likewise.
78748         * modules/configmake (configmake.h): Likewise.
78749         * modules/fcntl (fcntl.h): Likewise.
78750         * modules/fnmatch (fnmatch.h): Likewise.
78751         * modules/getopt (getopt.h): Likewise.
78752         * modules/glob (glob.h): Likewise.
78753         * modules/inttypes (inttypes.h): Likewise.
78754         * modules/netinet_in (netinet/in.h): Likewise.
78755         * modules/poll (poll.h): Likewise.
78756         * modules/stdbool (stdbool.h): Likewise.
78757         * modules/stdint (stdint.h): Likewise.
78758         * modules/sys_select (sys/select.h): Likewise.
78759         * modules/sys_socket (sys/socket.h): Likewise.
78760         * modules/sys_stat (sys/stat.h): Likewise.
78761         * modules/sysexits (sysexits.h): Likewise.
78762         * modules/unistd (unistd.h): Likewise.
78763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78764         Add a "DO NOT EDIT" comment to the generated file.
78765         (func_import): Likewise for gnulib-comp.m4.
78766
78767 2006-10-07  Bruno Haible  <bruno@clisp.org>
78768
78769         * lib/gl_sublist.h: New file.
78770         * lib/gl_sublist.c: New file.
78771
78772 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78773
78774         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78775         name (relative to the original working directory) and the file
78776         name component (relative to the temporary working directory).  All
78777         callers changed.
78778         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78779         * lib/mkdir-p.c (make_dir_parents): Likewise.
78780         * lib/mkdir-p.h (make_dir_parents): Likewise.
78781
78782 2006-10-06  Eric Blake  <ebb9@byu.net>
78783
78784         Define several macros for use by the clean-temp module.
78785         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78787         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78788
78789         * lib/clean-temp.h (close_stream_temp): New declaration.
78790         * lib/clean-temp.c (includes): Pull in headers according to what
78791         other modules are in use.
78792         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78793
78794 2006-10-06  Bruno Haible  <bruno@clisp.org>
78795
78796         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78797         instead of fopen, fwriteerror.
78798
78799 2006-10-06  Bruno Haible  <bruno@clisp.org>
78800
78801         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78802         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78803         int.
78804         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78805         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78806         Return an error indicator.
78807         Suggested by Eric Blake.
78808
78809 2006-10-06  Bruno Haible  <bruno@clisp.org>
78810
78811         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78812         Reported by Eric Blake.
78813
78814 2006-10-06  Bruno Haible  <bruno@clisp.org>
78815
78816         * modules/closeout (Description): Mention stderr too.
78817
78818 2006-10-06  Bruno Haible  <bruno@clisp.org>
78819         and Paul Eggert  <eggert@cs.ucla.edu>
78820
78821         * lib/closeout.c (close_stdout): Also close stderr.
78822         * lib/closeout.h: Update comment.
78823
78824 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78825
78826         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78827         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78828         * lib/dirchownmod.c: Include lchown.h.
78829         * lib/lchown.c: Don't include files that lchown.h now includes.
78830         Don't declare chown, since lchown.h now does that.
78831         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78832         (lchown): Define to rpl_chown if lchown is declared but
78833         does not exist.  Declare using a prototype if lchown is not
78834         declared.  Add a copyright notice.
78835         * lib/mkstemp.h: Include <unistd.h>.
78836         * lib/openat.c: Include lchown.h.
78837
78838         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78839         we now test for that separately.
78840         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78841         rather than O_NOFOLLOW, when testing whether it's possible to
78842         avoid a race condition reliably.
78843         * lib/savewd.c (savewd_chdir): Likewise.
78844
78845         Remove macros that are no longer needed now that stdint.h is
78846         reliable.
78847         * lib/fsusage.c (UINTMAX_MAX): Remove.
78848         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78849         * lib/utimecmp.c (SIZE_MAX): Remove.
78850
78851         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78852
78853         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78854         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78855         O_NOATIME works.
78856
78857 2006-10-05  Bruno Haible  <bruno@clisp.org>
78858
78859         * lib/gl_list.h (gl_sortedlist_search_from_to,
78860         gl_sortedlist_indexof_from_to): New declarations.
78861         (gl_list_implementation): New fields sortedlist_search_from_to,
78862         sortedlist_indexof_from_to.
78863         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78864         inline functions.
78865         * lib/gl_list.c (gl_sortedlist_search_from_to,
78866         gl_sortedlist_indexof_from_to): New functions.
78867         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78868         function.
78869         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78870         (gl_array_sortedlist_search_from_to): New function.
78871         (gl_array_list_implementation): Update.
78872         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78873         function.
78874         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78875         (gl_carray_sortedlist_search_from_to): New function.
78876         (gl_carray_list_implementation): Update.
78877         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78878         gl_linked_sortedlist_indexof_from_to): New functions.
78879         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78880         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78881         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78882         gl_tree_sortedlist_indexof_from_to): New functions.
78883         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78884         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78885         Update.
78886         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78887         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78888         Update.
78889
78890 2006-10-05  Bruno Haible  <bruno@clisp.org>
78891
78892         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78893         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78894         (struct gl_list_implementation): Add fields search_from_to,
78895         indexof_from_to. Remove fields search, indexof.
78896         (gl_list_search): Use the search_from_to method.
78897         (gl_list_search_from, gl_list_search_from_to): New functions.
78898         (gl_list_indexof): Use the indexof_from_to method.
78899         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78900         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78901         (gl_list_search_from, gl_list_search_from_to): New functions.
78902         (gl_list_indexof): Use the indexof_from_to method.
78903         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78904         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78905         gl_array_indexof. Add start_index, end_index arguments.
78906         (gl_array_search_from_to): Renamed from gl_array_search. Add
78907         start_index, end_index arguments.
78908         (gl_array_remove, gl_array_list_implementation): Update.
78909         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78910         gl_carray_indexof. Add start_index, end_index arguments.
78911         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78912         start_index, end_index arguments.
78913         (gl_carray_remove, gl_carray_list_implementation): Update.
78914         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78915         gl_linked_search. Add start_index, end_index arguments.
78916         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78917         start_index, end_index arguments.
78918         (gl_linked_remove): Update.
78919         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78920         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78921         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78922         field to 'size_t'.
78923         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78924         gl_tree_search. Add start_index, end_index arguments.
78925         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78926         start_index, end_index arguments.
78927         (gl_tree_remove): Update.
78928         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78929         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78930         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78931         function.
78932         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78933         gl_tree_search. Add start_index, end_index arguments.
78934         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78935         start_index, end_index arguments.
78936         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78937         Update.
78938         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78939
78940 2006-10-05  Bruno Haible  <bruno@clisp.org>
78941
78942         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78943
78944         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78945         fwriteerror_temp): New declarations.
78946         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78947         (descriptors): New variable.
78948         (cleanup): First, close the descriptors.
78949         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78950         fclose_temp, fwriteerror_temp): New functions.
78951
78952 2006-10-04  Jim Meyering  <jim@meyering.net>
78953
78954         * lib/fts.c (fts_open): Tiny comment change.
78955
78956 2006-10-04  Bruno Haible  <bruno@clisp.org>
78957
78958         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78959         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78960         gl_LOCK_BODY.
78961         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78962         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78963         gl_LOCK_EARLY_BODY.
78964         (gl_LOCK): Require gl_LOCK_BODY.
78965
78966 2006-10-04  Bruno Haible  <bruno@clisp.org>
78967
78968         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78969         (gl_oset_search_atleast): New declaration.
78970         (struct gl_oset_implementation): Add field 'search_atleast'.
78971         (gl_oset_search_atleast): New inline function.
78972         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78973         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78974         (gl_array_oset_implementation): Update.
78975         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78976         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78977         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78978
78979 2006-10-04  Bruno Haible  <bruno@clisp.org>
78980
78981         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78982
78983 2006-10-03  Bruno Haible  <bruno@clisp.org>
78984
78985         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78986         from gl_avltreehash_list_implementation.
78987
78988 2006-10-03  Bruno Haible  <bruno@clisp.org>
78989
78990         * lib/gl_oset.c (gl_oset_add): Fix return type.
78991
78992 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78993
78994         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78995
78996 2006-10-02  Eric Blake  <ebb9@byu.net>
78997
78998         * modules/strnlen (Depends-on): Add extensions.
78999
79000 2006-10-02  Eric Blake  <ebb9@byu.net>
79001
79002         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
79003         definition in 2.60+.
79004
79005 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
79006
79007         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
79008         checks.
79009
79010 2006-10-02  Bruno Haible  <bruno@clisp.org>
79011
79012         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
79013         to the AUTOMAKE_OPTIONS.
79014         Reported by Jim Meyering.
79015
79016 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79017
79018         Work around bug in Solaris 10 /proc file system:
79019         /proc/self/fd/NNN/.. isn't the parent directory of
79020         the directory whose file descriptor is NNN.  This needs to
79021         be worked around at run time, not compile time, since a
79022         program might be built on Solaris 8, where things work, and
79023         run on Solaris 10.
79024         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
79025         to use the following interface instead:
79026         (OPENAT_BUFFER_SIZE): New macro.
79027         (openat_proc_name): New function.
79028         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
79029         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
79030         Likewise.
79031         * lib/openat-proc.c: New file.
79032         * modules/openat (Files): Add lib/openat-proc.c.
79033         (Depends-on): Add same-inode, stdbool.
79034         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
79035
79036 2006-09-29  Bruno Haible  <bruno@clisp.org>
79037
79038         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
79039         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
79040         argument. Set stdout_closed before testing for ferror, not after.
79041         (fwriteerror, fwriteerror_no_ebadf): New functions.
79042
79043 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79044
79045         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
79046
79047 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
79048
79049         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
79050         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
79051
79052 2006-09-28  Jim Meyering  <jim@meyering.net>
79053
79054         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
79055         Include <unistd.h>.
79056
79057 2006-09-28  Bruno Haible  <bruno@clisp.org>
79058
79059         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
79060         * modules/linkedhash-list (Depends-on): Likewise.
79061         * modules/rbtreehash-list (Depends-on): Likewise.
79062
79063 2006-09-28  Bruno Haible  <bruno@clisp.org>
79064
79065         * lib/strndup.h: Simplify the redefinition of strndup.
79066         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
79067         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
79068
79069 2006-09-28  Bruno Haible  <bruno@clisp.org>
79070
79071         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
79072         * lib/gl_linkedhash_list.c: Likewise.
79073         * lib/gl_rbtreehash_list.c: Likewise.
79074
79075 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
79078         getaddrinfo.
79079
79080         * lib/__fpending.h: Don't include <stdio_ext.h> unless
79081         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
79082         it causes <stdio_ext.h> to cause a compile-time error.
79083         Problem reported by Nelson H. F. Beebe.
79084         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
79085         of HAVE_DECL___PENDING.
79086
79087         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
79088         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
79089         declaration.
79090
79091 2006-09-27  Jim Meyering  <jim@meyering.net>
79092
79093         This file could end up with a definition for a function
79094         named __strndup, rather than rpl_strndup on a system with
79095         incomplete weak_alias support.
79096         * lib/strndup.c (strndup): Rename from __strndup.
79097         Remove #defines that used to map __strndup to strndup.
79098         Don't use K&R prototypes.
79099         Remove LIBC-related code, since this file is not sync'd with glibc.
79100         * lib/strndup.h: Revamp, accordingly.
79101         * m4/strndup.m4: Modernize.
79102
79103 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79104
79105         * modules/savewd (Depends-on): Add 'raise'.
79106         * lib/savewd.c: Include <signal.h>, for 'raise'.
79107
79108 2006-09-26  Jim Meyering  <jim@meyering.net>
79109
79110         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
79111         when we detect Darwin 8.7.0's acl_get_file bug.
79112         Rearrange to perform the new (below) run-test while $LIBS
79113         contains any acl-related library.  Set USE_ACL at the end.
79114         (gl_ACL_GET_FILE): New function.
79115
79116 2006-09-26  Eric Blake  <ebb9@byu.net>
79117
79118         * lib/verror.c: Include <config.h> unconditionally.
79119
79120 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * modules/clock-time (Maintainer): Add self.
79123         * modules/getlogin_r (Depends-on): Add extensions.
79124
79125 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79126
79127         * modules/clock-time: New module.
79128         * modules/nanosleep (Depends-on): Add clock-time.
79129         * modules/gethrxtime (Depends-on): Likewise.
79130         * modules/gettime (Depends-on): Likewise.
79131         * modules/settime (Depends-on): Likewise.
79132
79133         * modules/fts-lgpl: Depend on openat.
79134         * modules/mkancesdirs: Depend on savewd.
79135         * modules/mkdir-p: Likewise.
79136
79137 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79138
79139         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
79140
79141         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
79142         `gl_have_arbitrary_file_name_length_limit' to
79143         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
79144         actually works between configure runs.
79145
79146 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79147             Bruno Haible  <bruno@clisp.org>
79148
79149         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79150
79151 2006-09-25  Jim Meyering  <jim@meyering.net>
79152
79153         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79154         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79155
79156 2006-09-25  Eric Blake  <ebb9@byu.net>
79157
79158         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79159         exec's in 2006-09-18 patch when shuffling fds.
79160
79161 2006-09-25  Bruno Haible  <bruno@clisp.org>
79162
79163         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79164         Reported by Jim Meyering.
79165
79166 2006-09-24  Jim Meyering  <jim@meyering.net>
79167
79168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79169         compare a pointer against a literal "0".  That caused failures with
79170         at least HP-UX's hpcc.
79171
79172 2006-09-22  Simon Josefsson  <jas@extundo.com>
79173
79174         * modules/gc-sha1:
79175         * modules/gc-md4:
79176         * modules/gc-hmac-sha1:
79177         * modules/gc-hmac-md5:
79178         * modules/gc-des:
79179         * modules/gc-arcfour: Distribute more files.
79180
79181 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79182
79183         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79184         (gl_linked_iterator_from_to): Initialize struct completely.
79185         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79186         (gl_tree_iterator_from_to): Likewise
79187         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79188         * lib/gl_array_list.c [lint] (gl_array_iterator)
79189         (gl_array_iterator_from_to): Likewise.
79190         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79191         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79192         (gl_carray_iterator_from_to): Likewise.
79193
79194         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79195         * lib/md4.c (md4_process_block): Remove unused variable.
79196         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79197         parentheses for clarity.
79198
79199 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79200
79201         * modules/bison-i18n (Depends-on): Add gettext.
79202
79203 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79204
79205         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79206         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79207         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79208         also add missing comma that caused broken test.
79209         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79210         stdlib.h, for `abort'.
79211         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79212         variables.
79213         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79214         include unistd.h if present, for `rmdir'.
79215         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79216         variables.
79217         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79218         in the process include standard headers for prototypes.
79219         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79220         gets declared on GNU/Linux.
79221         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79222         unistd.h, for `rmdir'.
79223         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79224
79225         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79226         always true.
79227         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79228
79229         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79230
79231 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79232
79233         * gnulib-tool (func_version): Create output all at once.  This
79234         may help avoid triggering unnecessary SIGPIPEs, and at any
79235         rate it doesn't hurt.
79236
79237 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79238             Bruno Haible  <bruno@clisp.org>
79239
79240         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79241         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79242         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79243
79244         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79245         (gl_FUNC_VASPRINTF): Invoke it.
79246
79247 2006-09-22  Bruno Haible  <bruno@clisp.org>
79248
79249         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79250         getloadavg.c as first argument.
79251
79252 2006-09-22  Bruno Haible  <bruno@clisp.org>
79253
79254         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79255         at the beginning of the gl_INIT macro.
79256         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79257         gl_GETLOADAVG.
79258
79259 2006-09-22  Bruno Haible  <bruno@clisp.org>
79260
79261         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79262         module.
79263         Suggested by Ralf Wildenhues.
79264
79265 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         Import this patch from libc:
79268
79269         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79270
79271         * lib/regex_internal.c (re_string_reconstruct): Handle
79272         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79273         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79274         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79275         re_string_context_at.
79276
79277         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79278         now requires it.
79279         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79280         gl_REGEX now does it for us.
79281         (gl_REGEX): Add test taken from
79282         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79283
79284         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79285         Check that large offsets work.  Modernize Autoconf usages.
79286         Prefer "yes" to mean a good thing rather than a bad.
79287         Don't put "#define mkstemp" in config.h, as this might interfere
79288         with standard system headers that "#define mkstemp mkstemp64".
79289
79290         * modules/mkstemp (Depends-on): Add extensions, so that
79291         mkstemp is visible on some platforms.
79292         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79293         (Include): Change to "mkstemp.h" from <stdlib.h>.
79294         (Files): Add mkstemp.h.
79295
79296         * lib/mkstemp.h: New file, since some standard headers
79297         #define mkstemp.
79298         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79299         Include "mkstemp.h".
79300         Make the _LIBC code resemble glibc original more,
79301         e.g., use K&R style.
79302         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79303         (mkstemp): Remove, since mkstemp.h does this for us.
79304         * lib/stdlib--.h: Include mkstemp.h.
79305
79306         Import this patch from libc:
79307
79308         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79309
79310         * lib/tempname.c (__gen_tempname): Change attempts_min
79311         into a macro.  Use preprocessor to decide how to initialize
79312         attempts [Coverity CID 67].
79313
79314 2006-09-20  Bruno Haible  <bruno@clisp.org>
79315
79316         * lib/mkdtemp.c: Import from libc.
79317         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79318                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79319                 attempts_min into a macro.  Use preprocessor to decide how to
79320                 initialize attempts [Coverity CID 67].
79321         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79322                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79323                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79324
79325 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79326
79327         * gnulib-tool (func_exit): New function, to allow to pass the
79328         exit status portably through the trap.  Use everywhere.
79329         (--help, --version): Signal a write error.
79330         (trap): catch SIGPIPE, for write errors.
79331         Exit at the end of the trap, with the correct exit status.
79332
79333 2006-09-19  Karl Berry  <karl@gnu.org>
79334
79335         * doc/gnulib.texi: note about the license texinfo files.
79336
79337 2006-09-19  Eric Blake  <ebb9@byu.net>
79338
79339         * gnulib-tool: Avoid space-tab.
79340
79341 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79344         that prevented coreutils 6.1 from building.  Problem reported
79345         by Petter Reinholdtsen.
79346
79347 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79348
79349         * gnulib-tool (avoidlist): Fix typo that broke options like
79350         --avoid=lock that are used by coreutils bootstrap.
79351
79352 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79353
79354         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79355         more systematically.
79356
79357 2006-09-18  Jim Meyering  <jim@meyering.net>
79358
79359         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79360
79361 2006-09-18  Bruno Haible  <bruno@clisp.org>
79362
79363         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79364
79365 2006-09-18  Bruno Haible  <bruno@clisp.org>
79366
79367         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79368         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79369         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79370         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79371         * m4/gettext.m4: Require autoconf >= 2.52.
79372         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79373         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79374         of gl_cv_header_inttypes_h.
79375
79376 2006-09-18  Bruno Haible  <bruno@clisp.org>
79377
79378         * lib/javaversion.c: Include configmake.h.
79379
79380 2006-09-18  Bruno Haible  <bruno@clisp.org>
79381
79382         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79383         avoid that the while loops be executed in a subshell.
79384
79385 2006-09-18  Bruno Haible  <bruno@clisp.org>
79386
79387         * MODULES.html.sh (func_module): Break long lines.
79388         Suggested by Bruce Korb <bkorb@gnu.org>.
79389
79390 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79391
79392         Speed up by a factor of 1.12.
79393         * gnulib-tool (nl): New variable.
79394         (func_import): Rewrite include directive extraction to only read each
79395         directive once.
79396
79397 2006-09-17  Bruno Haible  <bruno@clisp.org>
79398
79399         * modules/javaversion (Makefile.am): Remove DEFS setting.
79400         (Depends-on): Add configmake, for PKGDATADIR definition.
79401
79402 2006-09-17  Bruno Haible  <bruno@clisp.org>
79403
79404         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79405
79406 2006-09-17  Bruno Haible  <bruno@clisp.org>
79407
79408         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79409         (func_modules_transitive_closure, func_modules_add_dummy,
79410         func_modules_to_filelist, func_import, func_create_testdir,
79411         func_create_megatestdir, ...): Use it wherever possible.
79412         Suggested by Ralf Wildenhues.
79413
79414 2006-09-16  Karl Berry  <karl@gnu.org>
79415
79416         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79417         to avoid sectioning errors.
79418         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79419         [ifinfo]: blank line after @center-ed titles.
79420         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79421         Spell FSF address consistently with others.
79422         (These changes approved by rms.)
79423
79424 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79425
79426         Speed up by a factor of 1.61.
79427         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79428         already checked module names again.
79429
79430 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79431
79432         Speed up by a factor of 1.13.
79433         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79434         for new_files, and the input to func_add_or_update.
79435
79436 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79437
79438         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79439         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79440
79441 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79442
79443         * modules/mkancesdirs (Depends-on): Add fcntl.
79444         * modules/savewd: New file.
79445         * MODULES.html.sh (File system functions): Add savewd.
79446
79447         * modules/configmake (Makefile.am): Add support for the
79448         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79449
79450 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * m4/savewd.m4: New file.
79453
79454 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79457         (dirchownmod): New arg FD.  All callers changed.
79458         Use FD rather than opening the directory ourself, as opening is
79459         now the caller's responsibility.
79460         * lib/dirchownmod.h: Likewise.
79461         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79462         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79463         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79464         (test_dir): Remove.
79465         (mkancesdirs): Return length of prefix of FILE that has already
79466         been made, or -2 if there is a child doing the work.  Redo
79467         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79468         ".", and treat ".." specially since it might stray back into
79469         already-created areas.  Use a subprocess if necessary.  New arg
79470         WD; all users changed.  MAKE_DIR function should now return 1
79471         if it creates a directory that is not readable.  Return -2 if
79472         a child process is spun off.
79473         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79474         Adjust signature to match code.
79475         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79476         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79477         all users changed.
79478         * lib/savewd.c, lib/savewd.h: New files.
79479
79480 2006-09-15  Jim Meyering  <jim@meyering.net>
79481
79482         * modules/rename-dest-slash: New module.
79483         * MODULES.html.sh (posix_compat): Add it here.
79484
79485         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79486
79487 2006-09-15  Jim Meyering  <jim@meyering.net>
79488
79489         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79490         file.
79491
79492         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79493
79494 2006-09-15  Jim Meyering  <jim@meyering.net>
79495
79496         * lib/rename-dest-slash.c (has_trailing_slash): Use
79497         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79498         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79499         test before testing whether SRC is a directory.
79500         Suggestions from Bruno Haible.
79501
79502         Avoid a warning about an unused variable.
79503         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79504         into the #ifdef block where it's used.
79505
79506         * lib/rename-dest-slash.c: New file.
79507
79508 2006-09-14  Bruno Haible  <bruno@clisp.org>
79509
79510         * lib/allocsa.c: Include <config.h> unconditionally.
79511         * lib/asnprintf.c: Likewise.
79512         * lib/asprintf.c: Likewise.
79513         * lib/c-strcasecmp.c: Likewise.
79514         * lib/c-strcasestr.c: Likewise.
79515         * lib/c-strncasecmp.c: Likewise.
79516         * lib/c-strstr.c: Likewise.
79517         * lib/classpath.c: Likewise.
79518         * lib/clean-temp.c: Likewise.
79519         * lib/concatpath.c: Likewise.
79520         * lib/copy-file.c: Likewise.
79521         * lib/csharpcomp.c: Likewise.
79522         * lib/csharpexec.c: Likewise.
79523         * lib/execute.c: Likewise.
79524         * lib/fatal-signal.c: Likewise.
79525         * lib/findprog.c: Likewise.
79526         * lib/fwriteerror.c: Likewise.
79527         * lib/gl_array_list.c: Likewise.
79528         * lib/gl_array_oset.c: Likewise.
79529         * lib/gl_avltree_list.c: Likewise.
79530         * lib/gl_avltree_oset.c: Likewise.
79531         * lib/gl_avltreehash_list.c: Likewise.
79532         * lib/gl_carray_list.c: Likewise.
79533         * lib/gl_linked_list.c: Likewise.
79534         * lib/gl_linkedhash_list.c: Likewise.
79535         * lib/gl_list.c: Likewise.
79536         * lib/gl_oset.c: Likewise.
79537         * lib/gl_rbtree_list.c: Likewise.
79538         * lib/gl_rbtree_oset.c: Likewise.
79539         * lib/gl_rbtreehash_list.c: Likewise.
79540         * lib/imaxabs.c: Likewise.
79541         * lib/imaxdiv.c: Likewise.
79542         * lib/javacomp.c: Likewise.
79543         * lib/javaexec.c: Likewise.
79544         * lib/javaversion.c: Likewise.
79545         * lib/linebreak.c: Likewise.
79546         * lib/localcharset.c: Likewise.
79547         * lib/lock.c: Likewise.
79548         * lib/mbchar.c: Likewise.
79549         * lib/mbswidth.c: Likewise.
79550         * lib/mkdtemp.c: Likewise.
79551         * lib/pipe.c: Likewise.
79552         * lib/printf-args.c: Likewise.
79553         * lib/printf-parse.c: Likewise.
79554         * lib/progname.c: Likewise.
79555         * lib/progreloc.c: Likewise.
79556         * lib/readlink.c: Likewise.
79557         * lib/sh-quote.c: Likewise.
79558         * lib/stpcpy.c: Likewise.
79559         * lib/stpncpy.c: Likewise.
79560         * lib/strcasecmp.c: Likewise.
79561         * lib/strcasestr.c: Likewise.
79562         * lib/strcspn.c: Likewise.
79563         * lib/striconv.c: Likewise.
79564         * lib/strncasecmp.c: Likewise.
79565         * lib/strnlen1.c: Likewise.
79566         * lib/strstr.c: Likewise.
79567         * lib/strtok_r.c: Likewise.
79568         * lib/tls.c: Likewise.
79569         * lib/tmpdir.c: Likewise.
79570         * lib/unicodeio.c: Likewise.
79571         * lib/unsetenv.c: Likewise.
79572         * lib/vasnprintf.c: Likewise.
79573         * lib/vasprintf.c: Likewise.
79574         * lib/wait-process.c: Likewise.
79575         * lib/xallocsa.c: Likewise.
79576         * lib/xsetenv.c: Likewise.
79577         * lib/xstriconv.c: Likewise.
79578
79579 2006-09-13  Simon Josefsson  <jas@extundo.com>
79580
79581         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79582         that internally, suggested by Ralf Wildenhues
79583         <Ralf.Wildenhues@gmx.de>.
79584
79585 2006-09-13  Simon Josefsson  <jas@extundo.com>
79586
79587         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79588         @LIBOBJS@.
79589         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79590
79591 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79594         longer worry about uses that don't define HAVE_CONFIG_H.
79595         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79596         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79597         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79598         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79599         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79600         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79601         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79602         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79603         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79604         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79605         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79606         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79607         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79608         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79609         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79610         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79611         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79612         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79613         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79614         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79615         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79616         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79617         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79618         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79619         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79620         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79621         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79622         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79623         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79624         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79625         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79626         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79627         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79628         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79629         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79630         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79631         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79632         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79633         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79634         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79635         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79636         Likewise.
79637
79638 2006-09-13  Eric Blake  <ebb9@byu.net>
79639
79640         * lib/getopt.c: Fix typo in last commit.
79641
79642 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79643
79644         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79645         dgettext.
79646
79647 2006-09-12  Jim Meyering  <jim@meyering.net>
79648
79649         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79650         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79651         Reported by Nelson H. F. Beebe.
79652
79653 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79654
79655         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79656         program_invocation_name and program_invocation_short_name are
79657         initialized.
79658         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79659         and program_invocation_short_name to argp.h, so they are visible
79660         to user programs.
79661         * lib/argp.h: Likewise
79662
79663 2006-09-10  Bruno Haible  <bruno@clisp.org>
79664
79665         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79666         m4/inttypes_h.m4, m4/uintmax_t.m4.
79667
79668 2006-09-10  Bruno Haible  <bruno@clisp.org>
79669
79670         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79671         gl_AC_TYPE_UINTMAX_T.
79672
79673 2006-09-10  Bruno Haible  <bruno@clisp.org>
79674
79675         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79676
79677 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79678
79679         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79680         convention.  Text proposed by Bruno Haible.
79681         (struct argp_option): Document the use of N_() wrappers.
79682
79683         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79684         '\v', and translate the two parts separately, instead of feeding
79685         the whole string to gettext.  This allows to exclude
79686         '\v' from the strings visible to the translator by writing doc
79687         strings as N_("..") "\v" N_("..").
79688
79689 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79690
79691         * config/srclist.txt: Undo latest change; the bug was fixed.
79692
79693 2006-09-09  Bruno Haible  <bruno@clisp.org>
79694
79695         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79696         assignments if building a library without libtool.
79697         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79698         in func_emit_lib_Makefile_am.
79699         (func_import): When building a static library libfoo.a, arrange to
79700         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79701         (func_create_testdir): Likewise.
79702         * modules/gc (configure.ac, Makefile.am): If building statically,
79703         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79704         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79705         * modules/striconv (configure.ac, Makefile.am): Likewise.
79706         Based on a suggestion by Ralf Wildenhues.
79707
79708 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79709
79710         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79711         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79712         Also:
79713
79714         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79715         Add year_2050_test to catch glibc bug 2821
79716         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79717
79718         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79719         Prefer #ifdef to #if.
79720
79721         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79722         Return from 'main' instead of calling 'exit'.
79723
79724 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79725
79726         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79727         returned the maximum time_t value rather than (time_t) -1.
79728         Problem originally reported by William Bardwell
79729         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79730
79731         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79732         Moved to here ...
79733         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79734         ... from here.
79735
79736 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79739         2821 is fixed.
79740
79741 2006-09-08  Jim Meyering  <jim@meyering.net>
79742
79743         Don't make generated files read-only.  That would bother too many
79744         people.  However, do retain the ability to work when targets are
79745         read-only: remove the destination and temporary files before writing
79746         them (when generated via sed or echo), or by using the -f option for
79747         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79748         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79749         * modules/byteswap, modules/configmake, modules/fcntl:
79750         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79751         * modules/localcharset, modules/netinet_in, modules/poll:
79752         * modules/stdbool, modules/stdint, modules/sys_select:
79753         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79754
79755 2006-09-08  Jim Meyering  <jim@meyering.net>
79756
79757         Avoid new build failure on FreeBSD 6.0.
79758         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79759         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79760         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79761
79762 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79763
79764         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79765
79766 2006-09-07  Jim Meyering  <jim@meyering.net>
79767
79768         Fix global typo in last change: use chmod u-w, not chmod u-x.
79769         Spotted by Paul Eggert and Bruce Korb.
79770         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79771         * modules/byteswap, modules/configmake, modules/fcntl:
79772         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79773         * modules/localcharset, modules/netinet_in, modules/poll:
79774         * modules/stdbool, modules/stdint, modules/sys_select:
79775         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79776
79777 2006-09-06  Jim Meyering  <jim@meyering.net>
79778
79779         Make generated files be read-only.
79780         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79781         Ensure that each generated file is now read-only.
79782         * modules/argz: Likewise.
79783         * modules/arpa_inet: Likewise.
79784         * modules/byteswap: Likewise.
79785         * modules/configmake: Likewise.
79786         * modules/fcntl: Likewise.
79787         * modules/fnmatch: Likewise.
79788         * modules/getopt: Likewise.
79789         * modules/glob: Likewise.
79790         * modules/inttypes: Likewise.
79791         * modules/netinet_in: Likewise.
79792         * modules/poll: Likewise.
79793         * modules/stdbool: Likewise.
79794         * modules/stdint: Likewise.
79795         * modules/sys_select: Likewise.
79796         * modules/sys_socket: Likewise.
79797         * modules/sys_stat: Likewise.
79798         * modules/sysexits: Likewise.
79799         * modules/localcharset: Same as above, but continue using temporary
79800         file named "t-$@" (why different?) rather than the "$@-t" used
79801         everywhere else.
79802
79803         * modules/sysexits (Makefile.am): Replace literal occurrences
79804         of "sysexit.h" more readable, and more consistent, "$@".
79805
79806 2006-09-06  Bruno Haible  <bruno@clisp.org>
79807
79808         * modules/striconv: New file.
79809         * modules/xstriconv: New file.
79810         * MODULES.html.sh (Internationalization functions): Add striconv,
79811         xstriconv.
79812
79813 2006-09-06  Bruno Haible  <bruno@clisp.org>
79814
79815         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79816         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79817         not using libtool correctly.
79818
79819 2006-09-06  Bruno Haible  <bruno@clisp.org>
79820
79821         * lib/striconv.h: New file.
79822         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79823         iconvstring.c.
79824         * lib/xstriconv.h: New file.
79825         * lib/xstriconv.c: New file.
79826
79827 2006-09-06  Bruno Haible  <bruno@clisp.org>
79828
79829         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79830         lib_..._LDFLAGS.
79831
79832 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79833
79834         * lib/argz_.h: Sync from Libtool.
79835
79836         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79837                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79838
79839         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79840
79841 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79842
79843         * modules/trim: New file.
79844
79845 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79846
79847         * lib/trim.h: New file.
79848         * lib/trim.c: New file.
79849
79850 2006-09-05  Bruno Haible  <bruno@clisp.org>
79851
79852         * MODULES.html.sh (String handling): Add trim.
79853
79854 2006-09-04  Karl Berry  <karl@gnu.org>
79855
79856         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79857         until next release.
79858
79859 2006-09-03  Bruno Haible  <bruno@clisp.org>
79860
79861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79862         correctly.
79863
79864 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79865
79866         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79867         not gl_GETLOADAVG.  Omit unneeded semicolons.
79868         Problems reported by Ralf Wildenhues in
79869         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79870         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79871         at the end, which is the usual gnulib style.
79872
79873         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79874         of doing all the work ourselves.
79875         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79876         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79877
79878 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79879
79880         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79881         Problem reported by Ralf Wildenhues in
79882         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79883
79884         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79885         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79886
79887 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79888
79889         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79890         yesterday's patch by changing test -n to test -z.
79891
79892 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79895         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79896         the former is now obsolescent.
79897
79898         * modules/chdir-long (Depends-on): Add fcntl.
79899
79900 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79901
79902         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79903         obsolescent, and programs should use gnulib instead.
79904         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79905         but with prefixes changed.
79906
79907 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79908
79909         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79910         or stdbool.h, because they might not exist while configuring.
79911
79912         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79913         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79914         does that for us.
79915         (O_DIRECTORY): Remove.
79916
79917 2006-08-31  Eric Blake  <ebb9@byu.net>
79918
79919         * gnulib-tool: Don't let emacs change spaces to TAB.
79920
79921 2006-08-31  Bruno Haible  <bruno@clisp.org>
79922
79923         * gnulib-tool: When calling func_import more than once, do it in a
79924         subshell.
79925         Reported by Eric Blake <ebb9@byu.net>.
79926
79927 2006-08-31  Bruno Haible  <bruno@clisp.org>
79928
79929         * gnulib-tool (nl): Remove variable.
79930         (sed_transform_lib_file): Use more robust test for config-h module.
79931         (func_import): Fix typo in 2006-08-25 patch.
79932
79933 2006-08-31  Bruno Haible  <bruno@clisp.org>
79934
79935         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79936         specified, augment Makefile.am variables instead of assigning them.
79937
79938 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79939
79940         Work around a bug in both the Linux and SunOS 64-bit kernels:
79941         nanosleep mishandles sleeps for longer than 2**31 seconds.
79942         Problem reported by Frank v Waveren in
79943         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79945         Check for nanosleep bug.
79946         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79947
79948 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         Work around a bug in both the Linux and SunOS 64-bit kernels:
79951         nanosleep mishandles sleeps for longer than 2**31 seconds.
79952         Problem reported by Frank v Waveren in
79953         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79954         * lib/nanosleep.c (BILLION): New constant.
79955         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79956         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79957         implementation.
79958
79959 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79960
79961         * modules/nanosleep (Depends-on): Add gettime.
79962
79963 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79964         and Simon Josefsson  <jas@extundo.com>
79965         and Oskar Liljeblad  <oskar@osk.mine.nu>
79966
79967         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79968         * gnulib-tool (func_import): New license type 'unmodifiable license
79969         text'.
79970         * modules/fdl: Use it.  Longer description.
79971         * module/gpl, module/lgpl: New files.
79972
79973 2006-08-30  Jim Meyering  <jim@meyering.net>
79974
79975         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79976         shadowing the parameter.
79977
79978 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79979
79980         Sync from Libtool:
79981
79982         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79983
79984         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79985         sharing with gnulib.  Report by Eric Blake.
79986
79987 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * modules/isapipe: New file.
79990         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79991
79992 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79993
79994         * modules/configmake (Makefile.am): Add a comment, and omit
79995         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79996         by Bruno Haible.
79997
79998 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79999
80000         * m4/isapipe.m4: New file.
80001
80002 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
80003
80004         * lib/isapipe.c, lib/isapipe.h: New files.
80005
80006 2006-08-29  Jim Meyering  <jim@meyering.net>
80007
80008         * modules/configmake (Makefile.am): Make configmake.h depend on
80009         Makefile.  Otherwise, a stale configmake.h could hang around.
80010
80011 2006-08-29  Eric Blake  <ebb9@byu.net>
80012
80013         * lib/error.c (error_at_line, print_errno_message): Match libc, after
80014         resolution of upstream bug 3044.
80015
80016 2006-08-29  Bruno Haible  <bruno@clisp.org>
80017
80018         * modules/localcharset (Depends-on): Add configmake.
80019         (Makefile.am): Remove setting of LIBDIR through DEFS.
80020
80021 2006-08-29  Bruno Haible  <bruno@clisp.org>
80022
80023         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
80024         defined.
80025
80026 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * modules/fcntl: New file.
80029         * modules/chdir-safer (Depends-on): Add fcntl.
80030         * modules/fts: Likewise.
80031         * modules/mkdir-p: Likewise.
80032
80033         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
80034         This undoes the most recent change, since we're now addressing the
80035         problem in a different way.
80036
80037         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
80038         into output, since the output might be called Makefile.am even
80039         if $makefile_name is something different.
80040         (func_import): Use $makefile_am rather than
80041         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
80042         empty.
80043
80044         * modules/inttypes (Files): Add m4/inttypes-h.m4.
80045
80046 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80047
80048         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
80049         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
80050         recent change to stdint.m4, since we're now addressing the problem in a
80051         different way.
80052
80053 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * m4/fcntl_h.m4: New file.
80056
80057 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * lib/fcntl_.h: New file.
80060         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
80061         the fcntl module.
80062         * lib/dirchownmod.c: Likewise.
80063         * lib/fts.c: Likewise.
80064
80065         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
80066         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
80067         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
80068         just before including <inttypes.h>, to avoid circular inclusion.
80069
80070 2006-08-28  Jim Meyering  <jim@meyering.net>
80071
80072         * doc/visibility.texi: Actually read and correct the grammar of the
80073         sentence affected by yesterday's change.
80074
80075 2006-08-28  Eric Blake  <ebb9@byu.net>
80076
80077         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
80078         needs wrapper.
80079
80080 2006-08-28  Eric Blake  <ebb9@byu.net>
80081
80082         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
80083
80084 2006-08-28  Eric Blake  <ebb9@byu.net>
80085
80086         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
80087
80088 2006-08-28  Bruno Haible  <bruno@clisp.org>
80089
80090         * modules/c-strstr: New file, from GNU gettext.
80091         * MODULES.html.sh (String handling): Add c-strstr.
80092
80093 2006-08-28  Bruno Haible  <bruno@clisp.org>
80094
80095         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
80096         macros.
80097         Reported by Eric Blake.
80098
80099 2006-08-28  Bruno Haible  <bruno@clisp.org>
80100
80101         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
80102         (VASNPRINTF): Return a string of length > INT_MAX without failing.
80103         * lib/vasprintf.c: Include errno.h, limits.h.
80104         (EOVERFLOW): New fallback definition.
80105         (vasprintf): Test here whether the string length is > INT_MAX.
80106         * lib/vsnprintf.c: Include errno.h, limits.h.
80107         (EOVERFLOW): New fallback definition.
80108         (vsnprintf): Fix bug when generated string was too long for the buffer.
80109         Test here whether the string length is > INT_MAX.
80110
80111 2006-08-28  Bruno Haible  <bruno@clisp.org>
80112
80113         * lib/inttypes_.h (SCNX*): Remove definitions.
80114         Reported by Eric Blake.
80115
80116 2006-08-28  Bruno Haible  <bruno@clisp.org>
80117
80118         * lib/c-strstr.h: New file, from GNU gettext.
80119         * lib/c-strstr.c: New file, from GNU gettext.
80120
80121 2006-08-28  Bruno Haible  <bruno@clisp.org>
80122
80123         * gnulib-tool: Reorder some statements.
80124
80125 2006-08-28  Bruno Haible  <bruno@clisp.org>
80126
80127         * gnulib-tool: New option --makefile-name.
80128         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
80129         $makefile_name.
80130         (func_import): Write $makefile_name to the cache file, and read it from
80131         there unless explicitly specified. Use $makefile_name as file name
80132         instead of Makefile.am. Adjust the recommendations accordingly.
80133
80134 2006-08-28  Bruno Haible  <bruno@clisp.org>
80135
80136         * gnulib-tool (func_verify_module): Check against misapplying patch.
80137
80138 2006-08-28  Bruno Haible  <bruno@clisp.org>
80139
80140         * gnulib-tool (func_relativize, func_relconcat): New functions.
80141         Give an error if --local-dir is given with --update.
80142         Remove trailing slashes from $local_gnulib_dir.
80143         (func_import): Store the relativized $local_gnulib_dir in
80144         gnulib-cache.m4, and read it from there if not specified explicitly.
80145
80146 2006-08-28  Bruno Haible  <bruno@clisp.org>
80147
80148         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80149         is the current directory. Respect also $local_gnulib_dir.
80150
80151 2006-08-28  Bruno Haible  <bruno@clisp.org>
80152             Simon Josefsson  <jas@extundo.com>
80153
80154         BeOS portability.
80155         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80156
80157 2006-08-27  Jim Meyering  <jim@meyering.net>
80158
80159         * doc/visibility.texi: Remove duplicate word: "pointer".
80160
80161 2006-08-26  Bruno Haible  <bruno@clisp.org>
80162
80163         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80164         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80165         (Makefile.am): Create inttypes.h from inttypes_.h.
80166         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80167
80168         * modules/imaxabs: New file.
80169
80170         * modules/imaxdiv: New file.
80171
80172 2006-08-26  Bruno Haible  <bruno@clisp.org>
80173
80174         * m4/inttypes.m4: New file.
80175         * m4/_inttypes_h.m4: Remove file.
80176         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80177         PRI_MACROS_BROKEN.
80178         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80179
80180         * m4/imaxabs.m4: New file.
80181
80182         * m4/imaxdiv.m4: New file.
80183
80184 2006-08-26  Bruno Haible  <bruno@clisp.org>
80185
80186         * lib/inttypes_.h: New file.
80187         * lib/inttypes.h: Remove file.
80188         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80189
80190         * lib/imaxabs.c: New file.
80191
80192         * lib/imaxdiv.c: New file.
80193
80194 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80195
80196         New config-h module, so that "make" output needn't be cluttered
80197         by -DHAVE_CONFIG_H.
80198         * MODULES.html.sh (Support for building libraries and executables):
80199         Add config-h.
80200         * modules/config-h: New file.
80201         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80202         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80203         the config-h module is used.
80204
80205         New configmake module, so that "make" output needn't be cluttered
80206         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80207         * MODULES.html.sh (Support for building libraries and executables):
80208         Add configmake.
80209         * modules/configmake: New file.
80210
80211 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80212
80213         * m4/config-h.m4: New file.
80214
80215 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * config/srclist.txt: Add elisp-comp.
80218
80219 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * MODULES.html.sh (Support for building libraries and executables):
80222         Add elisp-comp.
80223         * build-aux/elisp-comp: New file.
80224         * modules/elisp-comp: New file.
80225
80226 2006-08-24  Bruno Haible  <bruno@clisp.org>
80227
80228         * gnulib-tool (func_create_testdir): Use non-default values of
80229         sourcebase and m4base.
80230
80231 2006-08-24  Bruno Haible  <bruno@clisp.org>
80232
80233         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80234         HTML structure.
80235
80236 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * modules/openat (Depends-on): Add lchown.
80239
80240 2006-08-23  Bruno Haible  <bruno@clisp.org>
80241
80242         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80243         of gl_LOCK_EARLY instead of gl_LOCK.
80244
80245 2006-08-23  Bruno Haible  <bruno@clisp.org>
80246
80247         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80248         on OSF/1 to no.
80249         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80250
80251 2006-08-23  Bruno Haible  <bruno@clisp.org>
80252
80253         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80254         as unusable.
80255
80256         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80257         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80258         (gl_LOCK): New macro.
80259
80260 2006-08-22  Simon Josefsson  <jas@extundo.com>
80261
80262         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80263         to md5 module.
80264
80265 2006-08-22  Simon Josefsson  <jas@extundo.com>
80266
80267         * MODULES.html.sh: Add "Support for maintaining and release
80268         projects".
80269
80270         * build-aux/gnupload: New file, from coreutils.
80271
80272 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80273
80274         Avoid the need for AC_LIBSOURCES in m4 macros.
80275         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80276         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80277         * modules/check-version (EXTRA_DIST): Add check-version.h.
80278         * modules/crc (EXTRA_DIST): Add crc.h.
80279         * modules/des (EXTRA_DIST): Add des.h.
80280         * modules/gc (EXTRA_DIST): Add gc.h.
80281         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80282         * modules/getline (EXTRA_DIST): Add getline.h.
80283         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80284         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80285         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80286         * modules/md2 (EXTRA_DIST): Add md2.h.
80287         * modules/md4 (EXTRA_DIST): Add md4.h.
80288         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80289         * modules/read-file (EXTRA_DIST): Add read-file.h.
80290         * modules/readline (EXTRA_DIST): Add readline.h.
80291         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80292         rijndael-api-fst.h.
80293
80294 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * m4/rijndael.m4 (gl_ARCFOUR):
80297         * m4/arctwo.m4 (gl_ARCTWO):
80298         * m4/check-version.m4 (gl_CHECK_VERSION):
80299         * m4/crc.m4 (gl_CRC):
80300         * m4/des.m4 (gl_DES):
80301         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80302         * m4/gc.m4 (gl_GC):
80303         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80304         * m4/getline.m4 (gl_FUNC_GETLINE):
80305         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80306         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80307         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80308         * m4/md2.m4 (gl_MD2):
80309         * m4/md4.m4 (gl_MD4):
80310         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80311         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80312         * m4/readline.m4 (gl_FUNC_READLINE):
80313         * m4/rijndael.m4 (gl_RIJNDAEL):
80314         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80315         to get the necessary .h files and whatnot.
80316
80317 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80320         gnulib rather than the other way around.
80321         * config/srclistvars.sh (COREUTILS): Remove.
80322
80323 2006-08-22  Jim Meyering  <jim@meyering.net>
80324
80325         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80326
80327         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80328
80329 2006-08-22  Eric Blake  <ebb9@byu.net>
80330
80331         * modules/regexprops-generic: New file.
80332         * MODULES.html.sh (Support for building documentation): List it.
80333
80334 2006-08-22  Eric Blake  <ebb9@byu.net>
80335
80336         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80337         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80338         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80339         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80340
80341 2006-08-22  Bruno Haible  <bruno@clisp.org>
80342
80343         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80344         and lib_LTLIBRARIES like the other lib_* variables.
80345
80346 2006-08-22  Bruno Haible  <bruno@clisp.org>
80347
80348         * build-aux/x-to-1.in: New file, from GNU gettext.
80349
80350 2006-08-22  Bruno Haible  <bruno@clisp.org>
80351
80352         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80353         <utmpx.h> exists.
80354
80355 2006-08-22  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80358         <utmpx.h> exists.
80359
80360 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80361
80362         BeOS portability.
80363         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80364         exist.
80365         Problem reported by Bruno Haible.
80366
80367 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         Avoid the need for AC_LIBSOURCES in m4 macros.
80370         * modules/acl (EXTRA_DIST): Add acl.h.
80371         * modules/argmatch (Files): Add m4/argmatch.m4.
80372         (configure.ac): Add gl_ARGMATCH.
80373         (EXTRA_DIST): Renamed from lib_SOURCES, for
80374         consistency with the other modules.  Remove argmatch.c.
80375         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80376         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80377         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80378         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80379         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80380         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80381         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80382         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80383         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80384         * modules/closeout (EXTRA_DIST): Add closeout.h.
80385         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80386         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80387         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80388         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80389         dirname.h; remove basename.c and stripslash.c.
80390         * modules/exclude (EXTRA_DIST): Add exclude.h.
80391         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80392         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80393         * modules/file-type (EXTRA_DIST): Add file-type.h.
80394         * modules/filemode (EXTRA_DIST): Add filemode.h.
80395         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80396         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80397         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80398         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80399         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80400         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80401         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80402         * modules/getdate (EXTRA_DIST): Add getdate.c.
80403         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80404         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80405         * modules/getpass (EXTRA_DIST): Add getpass.h.
80406         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80407         * modules/group-member (EXTRA_DIST): Add group-member.h.
80408         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80409         * modules/hash (EXTRA_DIST): Add hash.h.
80410         * modules/human (EXTRA_DIST): Add human.h.
80411         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80412         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80413         * modules/lchown (EXTRA_DIST): Add lchown.h.
80414         * modules/long-options (EXTRA_DIST): Add long-options.h.
80415         * modules/lstat (EXTRA_DIST): Add lstat.h.
80416         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80417         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80418         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80419         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80420         * modules/memxor (EXTRA_DIST): Add memxor.h.
80421         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80422         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80423         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80424         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80425         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80426         * modules/physmem (EXTRA_DIST): Add physmem.h.
80427         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80428         * modules/posixver (EXTRA_DIST): Add posixver.h.
80429         * modules/quote (EXTRA_DIST): Add quote.h.
80430         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80431         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80432         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80433         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80434         regex_internal.h regexec.c.
80435         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80436         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80437         * modules/same (EXTRA_DIST): Add same.h.
80438         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80439         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80440         * modules/savedir (EXTRA_DIST): Add savedir.h.
80441         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80442         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80443         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80444         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80445         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80446         * modules/strdup (EXTRA_DIST): Add strdup.h.
80447         * modules/strftime (EXTRA_DIST): Add strftime.h.
80448         * modules/strndup (EXTRA_DIST): Add strndup.h.
80449         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80450         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80451         * modules/time_r (EXTRA_DIST): Add time_r.h.
80452         * modules/timespec (EXTRA_DIST): Add timespec.h.
80453         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80454         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80455         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80456         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80457         * modules/userspec (EXTRA_DIST): Add userspec.h.
80458         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80459         * modules/utimens (EXTRA_DIST): Add utimens.h.
80460         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80461         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80462         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80463         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80464         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80465         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80466         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80467         * modules/yesno (EXTRA_DIST): Add yesno.h.
80468
80469 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80470
80471         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80472
80473         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80474         * m4/dev-ino.m4, same-inode.m4: Remove.
80475
80476         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80477         * m4/acl.m4 (AC_FUNC_ACL):
80478         * m4/backupfile.m4 (gl_BACKUPFILE):
80479         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80480         * m4/canon-host.m4 (gl_CANON_HOST):
80481         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80483         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80484         * m4/cloexec.m4 (gl_CLOEXEC):
80485         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80486         * m4/closeout.m4 (gl_CLOSEOUT):
80487         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80488         * m4/dirname.m4 (gl_DIRNAME):
80489         * m4/exclude.m4 (gl_EXCLUDE):
80490         * m4/exitfail.m4 (gl_EXITFAIL):
80491         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80492         * m4/file-type.m4 (gl_FILE_TYPE):
80493         * m4/filemode.m4 (gl_FILEMODE):
80494         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80495         * m4/fpending.m4 (gl_FUNC_FPENDING):
80496         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80497         * m4/fts.m4 (gl_FUNC_FTS):
80498         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80499         * m4/getdate.m4 (gl_GETDATE):
80500         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80501         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80502         * m4/getpass.m4 (gl_FUNC_GETPASS):
80503         * m4/gettime.m4 (gl_GETTIME):
80504         * m4/getugroups.m4 (gl_GETUGROUPS):
80505         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80506         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80507         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80508         * m4/hash.m4 (gl_HASH):
80509         * m4/idcache.m4 (gl_IDCACHE):
80510         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80511         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80512         * m4/long-options.m4 (gl_LONG_OPTIONS):
80513         * m4/lstat.m4 (gl_FUNC_LSTAT):
80514         * m4/md5.m4 (gl_MD5):
80515         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80516         * m4/memcoll.m4 (gl_MEMCOLL):
80517         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80518         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80519         * m4/memxor.m4 (gl_MEMXOR):
80520         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80521         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80522         * m4/modechange.m4 (gl_MODECHANGE):
80523         * m4/mountlist.m4 (gl_MOUNTLIST):
80524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80525         * m4/openat.m4 (gl_FUNC_OPENAT):
80526         * m4/pathmax.m4 (gl_PATHMAX):
80527         * m4/physmem.m4 (gl_PHYSMEM):
80528         * m4/posixtm.m4 (gl_POSIXTM):
80529         * m4/posixver.m4 (gl_POSIXVER):
80530         * m4/quote.m4 (gl_QUOTE):
80531         * m4/quotearg.m4 (gl_QUOTEARG):
80532         * m4/readtokens.m4 (gl_READTOKENS):
80533         * m4/readutmp.m4 (gl_READUTMP):
80534         * m4/regex.m4 (gl_REGEX):
80535         * m4/safe-read.m4 (gl_SAFE_READ):
80536         * m4/safe-write.m4 (gl_SAFE_WRITE):
80537         * m4/same.m4 (gl_SAME):
80538         * m4/save-cwd.m4 (gl_SAVE_CWD):
80539         * m4/savedir.m4 (gl_SAVEDIR):
80540         * m4/settime.m4 (gl_SETTIME):
80541         * m4/sha1.m4 (gl_SHA1):
80542         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80543         * m4/stat-macros.m4 (gl_STAT_MACROS):
80544         * m4/stat-time.m4 (gl_STAT_TIME):
80545         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80546         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80547         * m4/strdup.m4 (gl_FUNC_STRDUP):
80548         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80549         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80550         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80551         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80552         * m4/time_r.m4 (gl_TIME_R):
80553         * m4/timespec.m4 (gl_TIMESPEC):
80554         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80555         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80556         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80557         * m4/userspec.m4 (gl_USERSPEC):
80558         * m4/utimecmp.m4 (gl_UTIMECMP):
80559         * m4/utimens.m4 (gl_UTIMENS):
80560         * m4/xalloc.m4 (gl_XALLOC):
80561         * m4/xgetcwd.m4 (gl_XGETCWD):
80562         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80563         * m4/xreadlink.m4 (gl_XREADLINK):
80564         * m4/xstrtod.m4 (gl_XSTRTOD):
80565         * m4/yesno.m4 (gl_YESNO):
80566         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80567         to get the necessary .h files and whatnot.
80568
80569 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80570             Bruno Haible  <bruno@clisp.org>
80571
80572         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80573         /bin/sh understanding of '!' conditional negation.
80574
80575 2006-08-21  Jim Meyering  <jim@meyering.net>
80576
80577         * modules/openat (Depends-on): Really alphabetize.
80578
80579         * modules/acl (Depends-on): Add error and quote.
80580
80581         * check-module (find_included_lib_files): Add at-func.c to the
80582         ok-to-include-more-than-once white list.
80583
80584         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80585
80586 2006-08-21  Bruno Haible  <bruno@clisp.org>
80587
80588         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80589         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80590         Reported by Martin Lambers <marlam@marlam.de>.
80591
80592 2006-08-21  Bruno Haible  <bruno@clisp.org>
80593
80594         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80595         specify an installation location, don't emit a noinst_LIBRARIES or
80596         noinst_LTLIBRARIES assignment.
80597
80598 2006-08-21  Bruno Haible  <bruno@clisp.org>
80599
80600         BeOS portability.
80601         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80602         BeOS has mbrtowc() but no <wctype.h>.
80603
80604 2006-08-21  Bruno Haible  <bruno@clisp.org>
80605
80606         BeOS portability.
80607         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80608         exist.
80609
80610 2006-08-21  Bruno Haible  <bruno@clisp.org>
80611
80612         BeOS portability.
80613         * lib/mbchar.h: Include <wctype.h> only if it exists.
80614
80615 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80616
80617         Remove files that are no longer needed by their respective modules.
80618         * m4/obstack.m4: Remove.
80619         * m4/strerror_r.m4: Remove.
80620         * m4/uint32_t.m4: Remove.
80621         * m4/uintptr_t.m4: Remove.
80622         * m4/ullong_max.m4: Remove.
80623         * m4/xstrtoimax.m4: Remove.
80624         * m4/xstrtoumax.m4: Remove.
80625
80626         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80627         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80628         dependencies now capture this.
80629
80630         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80631         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80632         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80633         * m4/human.m4 (gl_HUMAN): Likewise.
80634         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80635         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80636
80637         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80638
80639         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80640         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80641         stdint.
80642         * m4/human.m4 (gl_HUMAN): Likewise.
80643         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80644         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80645         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80646         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80647         * m4/xstrtol (gl_XSTRTOL): Likewise.
80648
80649         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80650         AC_TYPE_LONG_LONG_INT.
80651         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80652         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80653         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80654         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80655
80656         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80657         on stdbool.
80658
80659         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80660         (gl_PREREQ_XSTRTOUL): Remove.
80661
80662         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80663
80664         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80665         mode.
80666
80667 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80668
80669         Add and change modules to make it easier for coreutils to use
80670         gnulib-tool.
80671         * modules/backupfile (Files): Remove m4/d-ino.m4.
80672         (Depends-on): Add d-ino.
80673         * modules/cycle-check (Depends-on): Add stdint.
80674         (lib_SOURCES): Add cycle-check.h.
80675         * modules/d-ino: New module.
80676         * modules/d-type: New module.
80677         * modules/error (Files): Remove m4/strerror_r.m4.
80678         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80679         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80680         m4/inttypes_h.m4, m4/uintmax_t.m4.
80681         (Depends-on): Add stdint.
80682         (lib_SOURCES): Add fsusage.h.
80683         * modules/getcwd (Files): Remove d-ino.m4.
80684         (Depends-on): Add d-ino.
80685         * modules/getndelim2 (Depends-on): Add stdint.
80686         * modules/glob (Files): Remove m4/d-type.m4.
80687         (Depends-on): Add d-type.
80688         * modules/host-os: New module.
80689         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80690         m4/inttypes_h.m4, m4/uintmax_t.m4.
80691         * Depends-on: Add stdint.
80692         (lib_SOURCES): Add human.h.
80693         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80694         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80695         m4/uintmax_t.m4, m4/ulonglong.m4.
80696         (Depends-on): Add stdint.
80697         (EXTRA_DIST): Add inttostr.h.
80698         * modules/lchmod: New module.
80699         * modules/link-follow: New module.
80700         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80701         (Depends-on): Add lchmod.
80702         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80703         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80704         (Depends-on): Add stdint.
80705         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80706         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80707         (Depends-on): Add stdint.
80708         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80709         * modules/perl: New module.
80710         * modules/regex (Depends-on): Add stdint.
80711         * modules/rmdir-errno: New module.
80712         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80713         m4/intmax_t.m4.
80714         (Depends-on): Add stdint.
80715         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80716         m4/uintmax_t.m4.
80717         (Depends-on): Add stdint.
80718         * modules/unlink-busy: New module.
80719         * modules/utimecmp (Depends-on): Add stdint.
80720         * modules/uptime: New module.
80721         * modules/winsz-ioctl: New module.
80722         * modules/winsz-termios: New module.
80723         * modules/xnanosleep (Depends-on): Add nanosleep.
80724         * modules/ullong_max: Remove.
80725         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80726         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80727         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80728         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80729         (Depends-on): Add inttypes.
80730         (lib_SOURCES): Add xstrtol.h.
80731         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80732         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80733         * MODULES.html.sh: Move 'assert' into the assert section.
80734         Move 'dummy' into the linking section.
80735         Remove ullong_max.
80736         Add section for compatibility checks for POSIX:2001 functions,
80737         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80738         winsz-ioctl, and winsz-termios into it.
80739         Add lchmod.
80740         Add top-level Misc section and put host-os, perl, and uptime
80741         into it.
80742
80743 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80746         now assume the stdint module.  Do not include inttypes.h.
80747         * lib/fsusage.h: Likewise.
80748         * lib/getndelim2.c: Likewise.
80749         * lib/human.h: Likewise.
80750         * lib/inttostr.h: Likewise.
80751         * lib/obstack.c: Likewise.
80752         * lib/regex_internal.h: Likewise.
80753         * lib/tempname.c: Likewise.
80754         * lib/utimecmp.c: Likewise.
80755         * lib/xstrtol.h: Likewise.
80756
80757         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80758
80759         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80760         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80761         * lib/xtime.h: Likewise.
80762
80763 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80764
80765         * modules/openat (Files): Add lib/fchmodat.c.
80766         Fixes problem reported by Jay Youngman.
80767
80768 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80769
80770         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80771         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80772
80773 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80774             Bruno Haible  <bruno@clisp.org>
80775
80776         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80777         and is a script that invokes bison. Tighten the code. Add comments.
80778
80779 2006-08-18  Jim Meyering  <jim@meyering.net>
80780
80781         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80782         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80783         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80784         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80785
80786 2006-08-18  Bruno Haible  <bruno@clisp.org>
80787
80788         * modules/bison-i18n: New file.
80789         * MODULES.html.sh (Internationalization functions): Add it.
80790
80791 2006-08-18  Bruno Haible  <bruno@clisp.org>
80792
80793         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80794         sys/statvfs.h. When getmntinfo was found, check its declaration and
80795         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80796
80797 2006-08-18  Bruno Haible  <bruno@clisp.org>
80798
80799         * m4/bison-i18n.m4: New file, from bison.
80800
80801 2006-08-18  Bruno Haible  <bruno@clisp.org>
80802
80803         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80804         (ME_DUMMY): Treat "kernfs" as a dummy.
80805         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80806
80807 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80808
80809         Update from coreutils.
80810
80811         2006-08-15  Jim Meyering  <jim@meyering.net>
80812
80813         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80814
80815         2006-01-17  Jim Meyering  <jim@meyering.net>
80816
80817         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80818
80819         2006-01-11  Jim Meyering  <jim@meyering.net>
80820
80821         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80822         Check for the lchmod function.
80823
80824 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80825
80826         Update from coreutils.
80827
80828         * lib/__fpending.h: Add copyright notice.
80829         * lib/fprintftime.h: Likewise.
80830         * lib/savedir.c: Use (C) in copyright notice.
80831         * lib/savedir.h: Likewise.
80832
80833         2006-08-15  Jim Meyering  <jim@meyering.net>
80834
80835         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80836         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80837         in support of the EXPECTED_ERRNO macro.
80838         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80839         definitions.  Instead, define the appropriate symbols and include
80840         "at-func.c".
80841         * lib/mkdirat.c (mkdirat): Likewise.
80842         * lib/fchmodat.c (fchmodat): Likewise.
80843         (ENOSYS): Remove definition.
80844         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80845         it.  Don't include "unistd--.h" -- it wasn't ever used.
80846
80847         2006-01-17  Jim Meyering  <jim@meyering.net>
80848
80849         Rewrite fts.c not to change the current working directory,
80850         by using openat, fstatat, fdopendir, etc..
80851
80852         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80853         (HAVE_OPENAT_SUPPORT): Define.
80854         [_LIBC] (fchdir): Don't undef or define; no longer used.
80855         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80856         Now, this `function' always succeeds, and consumes its file descriptor
80857         parameter -- so callers must not close such FDs.  Update callers.
80858         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80859         (diropen): Add parameter, SP.  Adjust all callers.
80860         Implement using diropen_fd, rather than open.
80861         (fts_open): Initialize new member, fts_cwd_fd.
80862         Remove fts_rft-setting code.
80863         (fts_close): Close fts_cwd_fd, if necessary.
80864         (__opendir2): Define in terms of opendir or opendirat,
80865         depending on whether the FST_NOCHDIR flag is set.
80866         (fts_build): Since fts_safe_changedir consumes its FD, and since
80867         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80868         and close the dup'd file descriptor upon failure.
80869         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80870         (fts_safe_changedir): Tweak semantics to reflect that this function
80871         now calls cwd_advance_fd and hence consumes its FD argument.
80872         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80873         [struct FTS] (fts_rft): Remove now-unused member.
80874         [struct FTS] (fts_cycle.state): Improve comment.
80875
80876         * lib/openat.c (openat_needs_fchdir): New function.
80877         * lib/openat.h (openat_needs_fchdir): Declare it.
80878
80879 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80882         Problem and fix reported by Pádraig Brady in
80883         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80884
80885 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80886
80887         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80888
80889 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * lib/memcoll.c (memcoll): Optimize for the common case where the
80892         arguments are bytewise equal.
80893
80894 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80895
80896         * doc/regexprops-generic.texi: Add a copyright notice.
80897
80898 2006-08-15  Bruno Haible  <bruno@clisp.org>
80899
80900         * modules/tmpdir (License): Change to LGPL.
80901
80902 2006-08-15  Bruno Haible  <bruno@clisp.org>
80903
80904         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80905         module.
80906
80907 2006-08-14  Simon Josefsson  <jas@extundo.com>
80908
80909         * config/srclist.txt: Add gnupload.
80910
80911 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         Change copyright notice from LGPL 2 to GPL 2, since that's the
80914         standard form used in the gnulib repository.
80915         * tests/test-lock.c: Likewise.
80916         * tests/test-stdint.c: Likewise.
80917         * tests/test-tls.c: Likewise.
80918
80919         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80920         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80921         Add copyright notice.
80922
80923         * check-module: Add copyright notice.  Output a copyright
80924         notice if "--version" is specified.
80925         * modules/COPYING: New file.
80926         * tests/test-getaddrinfo.c: Add copyright notice.
80927         * tests/test-verify.c: Likewise.
80928
80929 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         Change copyright notice from LGPL 2 to GPL 2, since that's the
80932         standard form used in the gnulib repository.
80933         * lib/lock.c: LGPL -> GPL.
80934         * lib/lock.h: Likewise.
80935         * lib/strnlen1.c: Likewise.
80936         * lib/strnlen1.h: Likewise.
80937         * lib/tls.c: Likewise.
80938         * lib/tls.h: Likewise.
80939         * lib/tmpdir.c: Likewise.
80940
80941         * lib/TODO: Remove; this belongs only in coreutils.
80942
80943 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         Add copyright notices to long-enough files that lack them, since
80946         otherwise the files aren't clearly free.  Use the same notice that
80947         getdate.texi already uses.
80948         * doc/alloca-opt.texi: Add copyright notice.
80949         * doc/alloca.texi: Likewise.
80950         * doc/ctime.texi: Likewise.
80951         * doc/functions.texi: Likewise.
80952         * doc/gcd.texi: Likewise.
80953         * doc/gnulib-tool.texi: Likewise.
80954         * doc/inet_ntoa.texi: Likewise.
80955         * doc/visibility.texi: Likewise.
80956
80957         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80958         * doc/quote.texi: Add copyright notice.
80959
80960         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80961         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80962         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80963         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80964         is now obsolete, and give a pointer to the Sun list.
80965         Add copyright notice.
80966
80967 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80968
80969         * config/srclistvars.sh: Add copyright notice.
80970
80971 2006-08-14  Eric Blake  <ebb9@byu.net>
80972
80973         Import the following change from libc:
80974
80975         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80976
80977         Upstream bug 2997.
80978         * lib/misc/error.c: Add space between program name and message if file
80979         name is missing.
80980
80981 2006-08-12  Karl Berry  <karl@gnu.org>
80982
80983         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80984         remove, these originate in gnulib now.
80985
80986 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80987
80988         * doc/Makefile (standards.info standards.html standards.dvi):
80989         Also depend on make-stds.texi.
80990
80991 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80992
80993         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80994         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80995
80996         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80997         in wchar_t.  Problem reported by Eric Blake.
80998
80999         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
81000         LEN is smaller than SIZE.  Suggested by Bruno Haible.
81001         Also, help the compiler to keep LEN in a register.
81002
81003 2006-08-11  Eric Blake  <ebb9@byu.net>
81004
81005         * users.txt: Sort.  Add tar.
81006
81007 2006-08-11  Bruno Haible  <bruno@clisp.org>
81008
81009         * users.txt: New file.
81010
81011 2006-08-11  Bruno Haible  <bruno@clisp.org>
81012
81013         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
81014         before <wchar.h>. Needed for OSF/1 and BSD/OS.
81015
81016 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         * modules/snprintf (Depends-on): Remove minmax.
81019         (Maintainer): Add self and Bruno.
81020
81021 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
81022
81023         * lib/.cppi-disable: Add snprintf.h, socket_.h.
81024         * lib/snprintf.c: Include <errno.h> and <limits.h>.
81025         (EOVERFLOW): Define if the system does not.
81026         Do not include "minmax.h"; it wasn't used.
81027         (snprintf): Don't assume size_t promotes to an unsigned type.
81028         Fix bug when generated string was too long for the buffer: the
81029         buffer's contents are supposed to be the initial prefix of the
81030         output.  Don't assume vasnprintf returns EOVERFLOW if the size
81031         exceeds INT_MAX; do the check ourselves.
81032
81033         Import the following changes from libc:
81034
81035         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
81036
81037         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
81038         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
81039         set wc to the byte which couldn't be converted.
81040         (re_string_reconstruct): Don't clear valid_raw_len before calling
81041         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
81042         tip_context using re_string_context_at.
81043
81044         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
81045
81046         * lib/posix/regex.h: g++ still cannot handled [restrict].
81047
81048         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
81049
81050         * lib/posix/regex.h: Remove special handling for VMS.
81051
81052 2006-08-10  Jim Meyering  <jim@meyering.net>
81053
81054         * modules/same-inode: New module.
81055         * modules/dev-ino: New module.
81056         * modules/cycle-check: Depend on these modules, rather than simply
81057         including their .h files.
81058         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
81059         required via m4/cycle-check.m4.
81060         * modules/same: Depend on new same-inode module, rather than
81061         including same-inode.h.
81062         * modules/chdir-safer: New file.
81063
81064         * modules/chown (Depends-on): Add stat-macros.
81065
81066 2006-08-10  Jim Meyering  <jim@meyering.net>
81067
81068         * m4/cycle-check.m4: New file.
81069         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
81070         * m4/dev-ino.m4, m4/same-inode.m4: New files.
81071
81072 2006-08-10  Eric Blake  <ebb9@byu.net>
81073
81074         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
81075         in from original proposal.
81076
81077 2006-08-10  Eric Blake  <ebb9@byu.net>
81078         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
81079
81080         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
81081         namespace.
81082
81083 2006-08-10  Bruno Haible  <bruno@clisp.org>
81084
81085         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
81086         as well.
81087
81088 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81089
81090         Sync from coreutils.
81091
81092         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
81093
81094         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
81095         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
81096
81097 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81098
81099         * modules/restrict: Remove; no longer needed now that we assume
81100         Autoconf 2.59 or later.
81101         * MODULES.html.sh: Remove 'restrict'.
81102         * modules/argp (Depends-on): Remove 'restrict'.
81103         * modules/base64 (Depends-on): Likewise.
81104         * modules/gc (Depends-on): Likewise.
81105         * modules/getaddrinfo (Depends-on): Likewise.
81106         * modules/glob (Depends-on): Likewise.
81107         * modules/inet_ntop (Depends-on): Likewise.
81108         * modules/inet_pton (Depends-on): Likewise.
81109         * modules/memxor (Depends-on): Likewise.
81110         * modules/regex (Depends-on): Likewise.
81111         * modules/strtok_r (Depends-on): Likewise.
81112         * modules/time_r (Depends-on): Likewise.
81113
81114 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81115
81116         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
81117         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
81118         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81119         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
81120         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
81121         * m4/memxor.m4 (gl_MEMXOR): Likewise.
81122         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
81123         gl_C_RESTRICT replaced by AC_C_RESTRICT.
81124
81125         Merge from coreutils.
81126         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
81127         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
81128         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81129         * m4/time_r.m4 (gl_TIME_R): Likewise.
81130
81131 2006-08-09  Karl Berry  <karl@gnu.org>
81132
81133         * config/srclist.txt: no more gettext-tools, per Bruno.
81134
81135 2006-08-08  Eric Blake  <ebb9@byu.net>
81136
81137         * modules/verror: New module.
81138         * MODULES.html.sh: Document it.
81139
81140 2006-08-08  Eric Blake  <ebb9@byu.net>
81141
81142         * lib/verror.h, lib/verror.c: New files.
81143
81144 2006-08-08  Eric Blake  <ebb9@byu.net>
81145
81146         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81147         verror_at_line output complies with GNU Coding Standards even when
81148         file is NULL.
81149
81150 2006-08-07  Bruno Haible  <bruno@clisp.org>
81151
81152         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81153         versions of AIX.
81154         Reported by Ralf Wildenhues.
81155
81156 2006-08-07  Bruno Haible  <bruno@clisp.org>
81157
81158         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81159         in an AC_DEFUN. Needed so that the autoconf snippets can use
81160         AC_REQUIRE.
81161
81162 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81163
81164         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81165         Initialize pkgdata_DATA.
81166         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81167         overriding it.
81168
81169 2006-08-06  Eric Blake  <ebb9@byu.net>
81170
81171         * lib/error.h: Fold in some upstream changes from glibc.
81172         * lib/error.c: Likewise.
81173
81174 2006-08-04  Bruno Haible  <bruno@clisp.org>
81175
81176         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81177         Make the mostlyclean-local rule depend on mostlyclean-generic.
81178         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81179
81180 2006-07-31  Bruno Haible  <bruno@clisp.org>
81181
81182         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81183         <stdlib.h>, <string.h>.
81184
81185 2006-07-30  Bruno Haible  <bruno@clisp.org>
81186
81187         * modules/readlink (License): Change to LGPL.
81188
81189 2006-07-30  Bruno Haible  <bruno@clisp.org>
81190
81191         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81192         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81193         set PKGDATADIR to point to it.
81194
81195 2006-07-30  Bruno Haible  <bruno@clisp.org>
81196
81197         * modules/csharpexec (configure.ac): Comment out macro invocation.
81198         * modules/javaexec (configure.ac): Likewise.
81199         * modules/javacomp-script (configure.ac): Likewise.
81200
81201         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81202
81203 2006-07-30  Bruno Haible  <bruno@clisp.org>
81204
81205         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81206         linked-list.
81207
81208 2006-07-30  Bruno Haible  <bruno@clisp.org>
81209
81210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81211
81212 2006-07-30  Bruno Haible  <bruno@clisp.org>
81213
81214         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81215         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81216         get removed.
81217
81218 2006-07-29  Bruno Haible  <bruno@clisp.org>
81219
81220         Make it possible for gnulib-tool to work with locally modified or
81221         augmented gnulib repositories.
81222         * gnulib-tool (func_usage): Document --local-dir option.
81223         (local_gnulib_dir): New variable.
81224         Handle --local-dir option.
81225         (func_lookup_file): New function.
81226         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81227         (func_get_description, func_get_filelist, func_get_description,
81228         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81229         func_get_automake_snippet, func_get_include_directive,
81230         func_get_license, func_get_maintainer): Use func_lookup_file.
81231         (func_import, func_create_testdir): Use func_lookup_file.
81232
81233 2006-07-29  Bruno Haible  <bruno@clisp.org>
81234
81235         * modules/setenv (Depends-on): Add unistd.
81236
81237 2006-07-29  Bruno Haible  <bruno@clisp.org>
81238
81239         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81240
81241 2006-07-29  Bruno Haible  <bruno@clisp.org>
81242
81243         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81244
81245 2006-07-29  Bruno Haible  <bruno@clisp.org>
81246
81247         * gnulib-tool (import, update): If there is no Makefile.am, look at
81248         aclocal.m4, instead of bailing out.
81249
81250 2006-07-29  Bruno Haible  <bruno@clisp.org>
81251
81252         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81253         Categorize the options by when they are useful.
81254
81255 2006-07-29  Bruno Haible  <bruno@clisp.org>
81256
81257         * gnulib-tool (func_usage): Document option --no-libtool.
81258         Handle option --no-libtool.
81259         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81260         for changed semantics of $libtool variable.
81261         (func_import): Likewise. If libtool is not used, show this through
81262         an option --no-libtool.
81263         (func_create_testdir): Update.
81264
81265 2006-07-29  Bruno Haible  <bruno@clisp.org>
81266
81267         * gnulib-tool (func_import): Extend error message about missing
81268         --doc-base.
81269
81270 2006-07-29  Bruno Haible  <bruno@clisp.org>
81271
81272         * gnulib-tool (func_import): Don't create the $docbase directory if
81273         there is no file to store there.
81274
81275 2006-07-29  Bruno Haible  <bruno@clisp.org>
81276
81277         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81278         relevant, look for configure.ac there, not in the current directory.
81279         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81280
81281 2006-07-29  Bruno Haible  <bruno@clisp.org>
81282
81283         * gnulib-tool (SORT): New variable.
81284         (func_usage): Undocument --assume-autoconf option.
81285         Remove --assume-autoconf option handling.
81286         (autoconf_minversion): Determine from the contents of configure.ac.
81287         (func_import): Remove autoconf_minversion handling.
81288         Suggested by Eric Blake.
81289
81290 2006-07-29  Bruno Haible  <bruno@clisp.org>
81291
81292         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81293
81294 2006-07-29  Bruno Haible  <bruno@clisp.org>
81295
81296         * config/srclist.txt (*setenv.[ch]): Remove rules.
81297
81298 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81299
81300         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81301
81302 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81303
81304         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81305         arpa/inet.h.
81306
81307 2006-07-28  Simon Josefsson  <jas@extundo.com>
81308
81309         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81310         * modules/inet_pton (Depends-on): Likewise.
81311
81312 2006-07-28  Simon Josefsson  <jas@extundo.com>
81313
81314         * m4/netinet_in_h.m4: New file.
81315
81316 2006-07-28  Simon Josefsson  <jas@extundo.com>
81317
81318         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81319         #include's.
81320
81321 2006-07-28  Simon Josefsson  <jas@extundo.com>
81322
81323         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81324         #include's.
81325
81326 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81327
81328         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81329         setgid on directories only if they set these bits.
81330         * lib/modechange.h: Remove obsolete comment about masks.
81331
81332 2006-07-28  Eric Blake  <ebb9@byu.net>
81333
81334         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81335         macro expansion.
81336
81337 2006-07-28  Bruno Haible  <bruno@clisp.org>
81338
81339         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81340
81341 2006-07-28  Bruno Haible  <bruno@clisp.org>
81342
81343         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81344
81345 2006-07-28  Bruno Haible  <bruno@clisp.org>
81346
81347         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81348         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81349         Define fallbacks.
81350         Avoids link error on FreeBSD 4.x.
81351         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81352
81353         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81354         encoding.
81355         * lib/mbswidth.c (iswcntrl): Likewise.
81356
81357 2006-07-27  Bruno Haible  <bruno@clisp.org>
81358
81359         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81360         test.
81361
81362 2006-07-27  Bruno Haible  <bruno@clisp.org>
81363
81364         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81365         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81366         defined.
81367
81368 2006-07-26  Eric Blake  <ebb9@byu.net>
81369
81370         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81371
81372 2006-07-26  Eric Blake  <ebb9@byu.net>
81373
81374         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81375         like mingw that lack mkstemp.
81376         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81377         avoid compilation warning on mingw.
81378
81379 2006-07-26  Bruno Haible  <bruno@clisp.org>
81380
81381         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81382         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81383         INT_FAST*_MIN, INTPTR_MIN.
81384
81385 2006-07-25  Bruno Haible  <bruno@clisp.org>
81386
81387         * modules/version-etc (Depends-on): Add stdarg.
81388
81389 2006-07-25  Bruno Haible  <bruno@clisp.org>
81390
81391         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81392         complex commands.
81393
81394 2006-07-25  Bruno Haible  <bruno@clisp.org>
81395
81396         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81397         defined in <stdarg.h> or config.h.
81398
81399 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81400
81401         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81402         (gl_STDIO_SAFER): Remove.
81403
81404 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81405
81406         * MODULES.html.sh (File stream based Input/Output):
81407         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81408         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81409         * modules/fopen-safer, modules/tmpfile-safer: New files.
81410         * modules/stdio-safer: Remove.
81411
81412 2006-07-24  Bruno Haible  <bruno@clisp.org>
81413
81414         * modules/tmpdir: New file.
81415         * MODULES.html.sh (File system functions): Add it.
81416
81417 2006-07-24  Bruno Haible  <bruno@clisp.org>
81418
81419         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81420         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81421
81422 2006-07-24  Bruno Haible  <bruno@clisp.org>
81423
81424         * modules/clean-temp: New file.
81425
81426 2006-07-24  Bruno Haible  <bruno@clisp.org>
81427
81428         * m4/tmpdir.m4: New file, from GNU gettext.
81429
81430 2006-07-24  Bruno Haible  <bruno@clisp.org>
81431
81432         * lib/tmpdir.h: New file, from GNU gettext.
81433         * lib/tmpdir.c: New file, from GNU gettext.
81434
81435 2006-07-24  Bruno Haible  <bruno@clisp.org>
81436
81437         * lib/clean-temp.h: New file, from GNU gettext.
81438         * lib/clean-temp.c: New file, from GNU gettext.
81439
81440 2006-07-23  Eric Blake  <ebb9@byu.net>
81441
81442         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81443         (Depends-on): Add binary-io.
81444
81445 2006-07-23  Eric Blake  <ebb9@byu.net>
81446
81447         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81448
81449 2006-07-23  Eric Blake  <ebb9@byu.net>
81450
81451         * lib/tmpfile-safer.c: New file.
81452         * lib/stdio-safer.h (fopen_safer): Add prototype.
81453         * lib/stdio--.h (tmpfile): Make safer.
81454
81455 2006-07-23  Bruno Haible  <bruno@clisp.org>
81456
81457         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81458         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81459         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81460         gl_linked_remove_at): Use it.
81461
81462 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81463         and Simon Josefsson <jas@extundo.com>
81464
81465         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81466
81467         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81468
81469 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81470
81471         * modules/close-stream: New file.
81472         * modules/closeout (Description): Make it clear that it exits
81473         with a diagnostic on error.
81474         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81475         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81476
81477 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81478
81479         * m4/close-stream.m4: New file.
81480
81481 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81482
81483         * lib/close-stream.c, lib/close-stream.h: New files.
81484
81485 2006-07-22  Bruno Haible  <bruno@clisp.org>
81486
81487         Merge from GNU gettext 0.15.
81488
81489         2006-05-01  Bruno Haible  <bruno@clisp.org>
81490
81491                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81492
81493         2006-07-22  Bruno Haible  <bruno@clisp.org>
81494
81495                 * modules/javaversion: New file.
81496                 * MODULES.html.sh (Java): Add javaversion.
81497
81498         2006-03-12  Bruno Haible  <bruno@clisp.org>
81499
81500                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81501
81502         2005-12-04  Bruno Haible  <bruno@clisp.org>
81503
81504                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81505                 (untested).
81506
81507         2006-06-21  Bruno Haible  <bruno@clisp.org>
81508
81509                 Avoid warnings from recent versions of mcs.
81510                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81511                 -o, -L, -r any more. Use options documented since mcs-1.0
81512                 instead. Similarly for -g.
81513
81514         2005-12-04  Bruno Haible  <bruno@clisp.org>
81515
81516                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81517                 .resources, not .resource.
81518
81519         2005-07-09  Bruno Haible  <bruno@clisp.org>
81520
81521                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81522                 add a .dll suffix.
81523                 Reported by Mark Junker <mjscod@gmx.de>.
81524
81525         2006-07-22  Bruno Haible  <bruno@clisp.org>
81526
81527                 * modules/gettext: Upgrade to gettext-0.15.
81528                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81529                 m4/visibility.m4.
81530                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81531
81532 2006-07-22  Bruno Haible  <bruno@clisp.org>
81533
81534         Merge from GNU gettext 0.15.
81535
81536         2006-03-25  Bruno Haible  <bruno@clisp.org>
81537
81538                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81539
81540         2006-07-21  Bruno Haible  <bruno@clisp.org>
81541
81542                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81543                 "1.1".
81544
81545         2006-05-09  Bruno Haible  <bruno@clisp.org>
81546
81547                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81548                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81549                 for the conftestver execution.
81550
81551         2006-05-01  Bruno Haible  <bruno@clisp.org>
81552
81553                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81554                 optional target-version argument. Verify that the compiler
81555                 groks source of the specified source-version, or add -source
81556                 option as necessary. Verify that the compiler produces
81557                 bytecode in the specified target-version, or add -target and
81558                 -source options as necessary. Make the result of the test
81559                 available as variable CONF_JAVAC. Also log error output in
81560                 config.log.
81561
81562         2006-03-11  Bruno Haible  <bruno@clisp.org>
81563
81564                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81565
81566         2006-05-09  Bruno Haible  <bruno@clisp.org>
81567
81568                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81569                 CLASSPATH_SEPARATOR to a semicolon.
81570
81571         2006-03-12  Bruno Haible  <bruno@clisp.org>
81572
81573                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81574                 available as variable CONF_JAVA, for subsequent autoconf
81575                 tests. Also log error output in config.log.
81576
81577         2006-07-19  Bruno Haible  <bruno@clisp.org>
81578
81579                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81580                 that getline works on glibc2 systems. Needed to avoid trouble
81581                 in relocatable.c.
81582                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81583
81584         2005-12-04  Bruno Haible  <bruno@clisp.org>
81585
81586                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81587                 launcher (untested).
81588
81589         2005-12-04  Bruno Haible  <bruno@clisp.org>
81590
81591                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81592
81593         2006-07-22  Bruno Haible  <bruno@clisp.org>
81594
81595                 * gettext.m4: Update from GNU gettext-0.15.
81596                 * nls.m4: Likewise.
81597                 * po.m4: Likewise.
81598                 * inttypes-pri.m4: Likewise.
81599                 * inttypes-h.m4: Renamed from inttypes.m4.
81600                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81601
81602 2006-07-22  Bruno Haible  <bruno@clisp.org>
81603
81604         Merge from GNU gettext 0.15.
81605
81606         2005-07-05  Bruno Haible  <bruno@clisp.org>
81607
81608                 * printf-args.c (printf_fetchargs): Work around broken
81609                 definition of wint_t on mingw.
81610
81611         2005-02-12  Bruno Haible  <bruno@clisp.org>
81612
81613                 * xallocsa.h: Add extern "C" for C++.
81614
81615         2006-05-17  Bruno Haible  <bruno@clisp.org>
81616
81617                 Cygwin portability.
81618                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81619
81620         2006-04-30  Bruno Haible  <bruno@clisp.org>
81621
81622                 * progreloc.c: Include <mach-o/dyld.h> if available.
81623                 (find_executable): Use _NSGetExecutablePath when possible.
81624
81625         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81626
81627                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81628                 function.
81629
81630         2005-12-29  Bruno Haible  <bruno@clisp.org>
81631
81632                 * progreloc.c (set_program_name_and_installdir): Fix
81633                 compilation error.
81634
81635         2005-12-04  Bruno Haible  <bruno@clisp.org>
81636
81637                 Cygwin portability.
81638                 * progreloc.c: Include <windows.h> also on Cygwin.
81639                 (find_executable): Add support for Cygwin.
81640                 (set_program_name_and_installdir): Handle also platforms with
81641                 nonempty EXEEXT.
81642
81643         2006-07-11  Bruno Haible  <bruno@clisp.org>
81644
81645                 * javacomp.c: Fix a comment.
81646                 Reported by Jim Meyering.
81647
81648         2006-04-30  Bruno Haible  <bruno@clisp.org>
81649
81650                 * javacomp.h (compile_java_class): Add source_version,
81651                 target_version arguments.
81652                 * javacomp.c: Rewritten to choose only a compiler that
81653                 respects the specified source_version and target_version.
81654
81655         2006-06-27  Bruno Haible  <bruno@clisp.org>
81656
81657                 Assume correct S_ISDIR macro.
81658                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81659
81660         2006-07-22  Bruno Haible  <bruno@clisp.org>
81661
81662                 * javaversion.h: New file, from GNU gettext.
81663                 * javaversion.c: New file, from GNU gettext.
81664                 * javaversion.java: New file, from GNU gettext.
81665                 * javaversion.class: New file, from GNU gettext.
81666
81667         2006-05-17  Bruno Haible  <bruno@clisp.org>
81668
81669                 Cygwin portability.
81670                 * javaexec.c (execute_java_class): Test for jview program
81671                 also on Cygwin.
81672
81673         2006-04-09  Bruno Haible  <bruno@clisp.org>
81674
81675                 * fatal-signal.c: Don't include string.h.
81676                 (at_fatal_signal): Use a copying loop instead of memcpy.
81677
81678         2005-12-04  Bruno Haible  <bruno@clisp.org>
81679
81680                 * csharpexec.c: Add support for 'clix' launcher (untested).
81681                 (execute_csharp_using_sscli): New function.
81682                 (execute_csharp_program): Call it.
81683
81684         2006-06-21  Bruno Haible  <bruno@clisp.org>
81685
81686                 Avoid warnings from recent versions of mcs.
81687                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81688                 -o, -L, -r any more. Use options documented since mcs-1.0
81689                 instead. Similarly for -g.
81690
81691         2005-07-09  Bruno Haible  <bruno@clisp.org>
81692
81693                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81694                 add a .dll suffix.
81695                 Reported by Mark Junker <mjscod@gmx.de>.
81696
81697         2006-06-17  Bruno Haible  <bruno@clisp.org>
81698
81699                 * config.charset: Update for NetBSD 3.0.
81700
81701         2006-05-17  Bruno Haible  <bruno@clisp.org>
81702
81703                 Cygwin portability.
81704                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81705
81706         2006-05-16  Bruno Haible  <bruno@clisp.org>
81707
81708                 * localcharset.c [CYGWIN]: Include <windows.h>.
81709                 (get_charset_aliases): For Cygwin, return the same CPxxx
81710                 aliases list as under WIN32.
81711                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81712                 the environment variables. Fall back to GetACP().
81713
81714         2006-04-05  Bruno Haible  <bruno@clisp.org>
81715
81716                 * config.charset: Update Juan Manuel Guerrero's address.
81717
81718         2005-02-12  Bruno Haible  <bruno@clisp.org>
81719
81720                 * allocsa.h: Add extern "C" for C++.
81721
81722         2005-02-10  Bruno Haible  <bruno@clisp.org>
81723
81724                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81725                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81726
81727         2006-07-22  Bruno Haible  <bruno@clisp.org>
81728
81729                 * gettext.h: Update to GNU gettext-0.15.
81730
81731 2006-07-22  Bruno Haible  <bruno@clisp.org>
81732
81733         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81734         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81735         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81736
81737 2006-07-21  Eric Blake  <ebb9@byu.net>
81738
81739         * modules/stdlib-safer: New file.
81740         * MODULES.html.sh (File stream based Input/Output): Add
81741         stdlib-safer.
81742
81743 2006-07-21  Eric Blake  <ebb9@byu.net>
81744
81745         * lib/stdlib-safer.h: New file from coreutils, required by
81746         stdlib--.h.
81747
81748 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81749
81750         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81751
81752 2006-07-20  Bruno Haible  <bruno@clisp.org>
81753
81754         * gnulib-tool: Recognize new option --assume-autoconf.
81755         (autoconf_minversion): New variable.
81756         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81757
81758 2006-07-20  Bruno Haible  <bruno@clisp.org>
81759
81760         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81761
81762 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81763
81764         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81765         Reindent and repaginate.
81766
81767 2006-07-19  Derek Price  <derek@ximbiot.com>
81768
81769         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81770         Correct grammar.
81771
81772 2006-07-17  Bruno Haible  <bruno@clisp.org>
81773
81774         * modules/list: New file.
81775         * modules/array-list: New file.
81776         * modules/carray-list, modules/carray-list-tests: New files.
81777         * modules/linked-list, modules/linked-list-tests: New files.
81778         * modules/avltree-list, modules/avltree-list-tests: New files.
81779         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81780         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81781         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81782         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81783         * modules/oset: New file.
81784         * modules/array-oset: New file.
81785         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81786         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81787         * tests/test-carray_list.c: New file.
81788         * tests/test-linked_list.c: New file.
81789         * tests/test-avltree_list.c: New file.
81790         * tests/test-rbtree_list.c: New file.
81791         * tests/test-linkedhash_list.c: New file.
81792         * tests/test-avltreehash_list.c: New file.
81793         * tests/test-rbtreehash_list.c: New file.
81794         * tests/test-avltree_oset.c: New file.
81795         * tests/test-rbtree_oset.c: New file.
81796         * MODULES.html.sh (Container data structures): New section.
81797
81798 2006-07-17  Bruno Haible  <bruno@clisp.org>
81799
81800         * m4/gl_list.m4: New file.
81801
81802 2006-07-17  Bruno Haible  <bruno@clisp.org>
81803
81804         * lib/gl_list.h: New file.
81805         * lib/gl_list.c: New file.
81806         * lib/gl_array_list.h: New file.
81807         * lib/gl_array_list.c: New file.
81808         * lib/gl_carray_list.h: New file.
81809         * lib/gl_carray_list.c: New file.
81810         * lib/gl_linked_list.h: New file.
81811         * lib/gl_linked_list.c: New file.
81812         * lib/gl_anylinked_list1.h: New file.
81813         * lib/gl_anylinked_list2.h: New file.
81814         * lib/gl_avltree_list.h: New file.
81815         * lib/gl_avltree_list.c: New file.
81816         * lib/gl_anyavltree_list1.h: New file.
81817         * lib/gl_anyavltree_list2.h: New file.
81818         * lib/gl_rbtree_list.h: New file.
81819         * lib/gl_rbtree_list.c: New file.
81820         * lib/gl_anyrbtree_list1.h: New file.
81821         * lib/gl_anyrbtree_list2.h: New file.
81822         * lib/gl_anytree_list1.h: New file.
81823         * lib/gl_anytree_list2.h: New file.
81824         * lib/gl_linkedhash_list.h: New file.
81825         * lib/gl_linkedhash_list.c: New file.
81826         * lib/gl_anyhash_list1.h: New file.
81827         * lib/gl_anyhash_list2.h: New file.
81828         * lib/gl_avltreehash_list.h: New file.
81829         * lib/gl_avltreehash_list.c: New file.
81830         * lib/gl_rbtreehash_list.h: New file.
81831         * lib/gl_rbtreehash_list.c: New file.
81832         * lib/gl_anytreehash_list1.h: New file.
81833         * lib/gl_anytreehash_list2.h: New file.
81834
81835         * lib/gl_oset.h: New file.
81836         * lib/gl_oset.c: New file.
81837         * lib/gl_array_oset.h: New file.
81838         * lib/gl_array_oset.c: New file.
81839         * lib/gl_avltree_oset.h: New file.
81840         * lib/gl_avltree_oset.c: New file.
81841         * lib/gl_rbtree_oset.h: New file.
81842         * lib/gl_rbtree_oset.c: New file.
81843         * lib/gl_anytree_oset.h: New file.
81844
81845 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * m4/mkancesdirs.m4: New file.
81848         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81849         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81850         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81851         it.
81852
81853 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81854
81855         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81856         * lib/mkancesdirs.h: New files.
81857         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81858         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81859         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81860         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81861         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81862         callers changed.  Revamp internals significantly, by not
81863         attempting to create directories that are temporarily more
81864         permissive than the final results.  Do not attempt to use
81865         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81866         This removes some race conditions, fixes some bugs, and simplifies
81867         things.  Use new dirchownmod function to do owner and mode changes.
81868         * lib/mkdir-p.h: Likewise.
81869         * lib/modechange.c (octal_to_mode): New function.
81870         (struct mode_change): New member mentioned.
81871         (make_node_op_equals): New arg mentioned.  All callers changed.
81872         (mode_compile): Keep track of which mode bits the user has explicitly
81873         mentioned.
81874         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81875         New arg PMODE_BITS, to keep track of which mode bits the user
81876         mentioned; it treats S_ISUID and S_ISGID speciall.
81877         All callers changed.
81878         * lib/modechange.h: Likewise.
81879
81880 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81881
81882         * MODULES.html.sh: Add mkancestors.
81883         * modules/mkancesdirs: New module.
81884         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81885         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81886         The chdir-safer and afs files are now orphans; I'll remove them
81887         unless someone speaks up.
81888         Add lib/dirchownmod.c, lib/dirchownmod.h.
81889         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81890         Add lchown, mkancesdirs.
81891         (Maintainer): Add self.
81892
81893 2006-07-15  Karl Berry  <karl@gnu.org>
81894
81895         * gnulib-tool: help message wording/arrangement.
81896
81897 2006-07-14  Simon Josefsson  <jas@extundo.com>
81898
81899         * doc/gnulib.texi (Libtool and Windows): New section.
81900
81901 2006-07-12  Simon Josefsson  <jas@extundo.com>
81902
81903         * modules/gendocs (License): Fix license, approved by Karl.
81904
81905 2006-07-12  Eric Blake  <ebb9@byu.net>
81906
81907         * MODULES.html.sh: Add gendocs.
81908
81909 2006-07-11  Eric Blake  <ebb9@byu.net>
81910
81911         * modules/fdl: New module, to install doc/fdl.texi.
81912         * MODULES.html.sh: Add new section for documentation modules.
81913         * gnulib-tool: Avoid space-tab.
81914         (--doc-base): New option, to manage files from doc.
81915
81916 2006-07-11  Eric Blake  <ebb9@byu.net>
81917
81918         * m4/absolute-header.m4: Fix comments to match recent change.
81919
81920 2006-07-11  Eric Blake  <ebb9@byu.net>
81921
81922         * gnulib-tool: List --doc-base before --tests-base.
81923
81924 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81925
81926         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81927
81928 2006-07-11  Bruno Haible  <bruno@clisp.org>
81929
81930         * README: Mention where to put documentation.
81931
81932 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81933
81934         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81935
81936 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81937
81938         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81939         to stdint.m4.
81940
81941 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81942
81943         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81944         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81945         "no/such/file/stdint.h" when there is no such file, so that
81946         the resulting C code can be parsed by dodgy compilers.
81947         Problems reported by Bob Proulx.
81948
81949 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81950
81951         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81952         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81953         macros into the GNU _D_EXACT_NAMLEN.
81954         * lib/savedir.c:  Likewise.
81955         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81956
81957 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81958         and Paul Eggert  <eggert@cs.ucla.edu>
81959
81960         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81961         * m4/savedir.m4:
81962         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81963         macros into the GNU _D_EXACT_NAMLEN.
81964
81965 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81966
81967         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81968         around the absolute name, to work around a problem with the HP-UX
81969         11.23 native C compiler, reported by Bob Proulx.
81970
81971 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81972
81973         * doc/maintain.texi, make-stds.texi: Sync from
81974         <http://savannah.gnu.org/projects/gnustandards>.
81975
81976 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81977
81978         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81979
81980 2006-07-09  Jim Meyering  <jim@meyering.net>
81981
81982         * m4/glob.m4: Remove a doubled word in a comment.
81983
81984 2006-07-09  Jim Meyering  <jim@meyering.net>
81985
81986         * lib/argp-pv.c: Remove a doubled word in a comment.
81987         * lib/check-version.c (check_version): Likewise.
81988         * lib/javacomp.c (compile_java_class): Likewise.
81989
81990 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81991
81992         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81993         for the benefit of people using Autoconf 2.60.  If you want to
81994         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81995         (or m4/onceonly.m4, if pre-2.57) manually.
81996
81997 2006-07-08  Jim Meyering  <jim@meyering.net>
81998
81999         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
82000         comment.
82001         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
82002         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
82003         comment.
82004
82005 2006-07-08  Jim Meyering  <jim@meyering.net>
82006
82007         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
82008
82009 2006-07-07  Simon Josefsson  <jas@extundo.com>
82010
82011         * tests/test-crc.c: Change expected crc value, the test vector
82012         were probably computed using the old broken crc.c?
82013
82014 2006-07-06  Simon Josefsson  <jas@extundo.com>
82015
82016         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
82017         now the canonical place for the M4 file).
82018
82019         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
82020         from the sys_socket dependency now.
82021
82022         * modules/inet_pton (Files): Ditto.
82023
82024         * modules/inet_ntop (Files): Ditto.
82025
82026 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82027
82028         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
82029         not gl_PREREQ_GETUSERSHELL.
82030
82031 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82032
82033         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
82034         with only one argument, for Autoconf 2.60.
82035         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
82036         expand to nothing, so add a shell command to avoid syntax error.
82037         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82038
82039 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82040
82041         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
82042
82043 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82044
82045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
82046         no longer needed.  Check for isblank decl.
82047         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
82048         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
82049         of existence.
82050
82051 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * lib/getloadavg.c: Use __VMS, not VMS.
82054         * lib/getopt.c: Likewise.
82055         * lib/getpagesize.h: Likewise.
82056         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
82057         and probably does not work.
82058
82059 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82060
82061         * lib/.cppi-disable: Add wcwidth.
82062         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
82063         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
82064         (ISGRAPH): Remove.  All uses changed to isgraph.
82065         (FOLD) [!defined _LIBC]: Remove special case.
82066         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
82067         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
82068         HAVE_ISBLANK.
82069         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
82070         case.
82071
82072 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82073
82074         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
82075         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
82076         brackets.  Other minor changes to suppress some compiler
82077         warnings.
82078
82079 2006-07-06  Derek R. Price  <derek@ximbiot.com>
82080         and Paul Eggert  <eggert@cs.ucla.edu>
82081
82082         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
82083         of invoking obsolescent AC_HEADER_DIRENT macro.
82084         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
82085         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
82086         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
82087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
82088         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
82089         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82090         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
82091         * m4/readdir.m4: Remove; no longer needed.
82092
82093 2006-07-06  Derek R. Price  <derek@ximbiot.com>
82094         and Paul Eggert  <eggert@cs.ucla.edu>
82095
82096         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
82097         Don't worry about this obsolete case any more.
82098         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
82099         directories.
82100         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
82101         worry about this obsolete case any more.
82102         * lib/fts.c: Likewise.
82103         * lib/getcwd.c: Likewise.
82104         * lib/glob.h: Likewise.
82105         * lib/savedir.c: Likewise.
82106
82107 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82108
82109         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
82110         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
82111         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
82112         needed.
82113         All uses removed.
82114         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82115         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82116         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
82117         needed.
82118         * m4/getdate.m4 (gl_GETDATE): Likewise.
82119         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82120         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82121         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82122         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82123         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82124         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82125         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
82126         needed.
82127
82128 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82129
82130         * lib/memcasecmp.c: Include <limits.h>.
82131         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
82132         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
82133         Don't assume isdigit succeeds only on '0' through '9'.
82134
82135 2006-07-05  Eric Blake  <ebb9@byu.net>
82136
82137         * modules/getaddrinfo (Depends-on): Add snprintf.
82138
82139 2006-07-05  Eric Blake  <ebb9@byu.net>
82140
82141         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
82142         to avoid 'header present but could not be compiled' on cygwin.
82143
82144 2006-07-05  Eric Blake  <ebb9@byu.net>
82145
82146         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82147         missing from netdb.h.
82148         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82149
82150 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82151
82152         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82153         no longer needed.
82154         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82155         * m4/getdate.m4 (gl_GETDATE): Likewise.
82156         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82157         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82158         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82159         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82160         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82161
82162 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82163
82164         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82165         All uses of is_space replaced by isspace.
82166         * lib/exit.h: Don't talk about STDC_HEADERS.
82167         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82168         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82169         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82170         replaced by isprint etc.
82171         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82172         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82173         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82174         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82175         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82176         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82177
82178 2006-07-05  Bruno Haible  <bruno@clisp.org>
82179
82180         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82181         the function exists, before testing against AIX.
82182         Reported by Martin Lambers <marlam@marlam.de>.
82183
82184 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82187         From Mark D. Baushke.
82188
82189 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82192         to the absolute name, not just one, to bypass Sun C 5.8's
82193         "warning: #include of /usr/include/... may be non-portable".
82194
82195 2006-07-04  Eric Blake  <ebb9@byu.net>
82196
82197         * modules/dirname-tests: New test module.
82198         * tests/test-dirname.c: New file, replacing dirname.c
82199         TEST_DIRNAME section that was recently deleted.
82200
82201 2006-07-04  Bruno Haible  <bruno@clisp.org>
82202
82203         Assume ANSI C header files and <ctype.h> functions.
82204         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82205         (mbsnwidth): Use isprint, iscntrl instead.
82206
82207 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82208
82209         Merge from coreutils.
82210         * MODULES.html.sh: Add xstrtold.
82211         * modules/xstrtold: New file.
82212         * modules/cycle-check (Files): Add lib/same-inode.h.
82213         * modules/dirname (Files): Add m4/double-slash-root.m4.
82214         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82215         * modules/mkdir-p (Files): Add lib/same-inode.h.
82216         * modules/same (Files): Add lib/same-inode.h.
82217
82218 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82221         This is to keep the terminology clean; POSIX talks about
82222         "absolute pathnames", not "full pathnames", but the GNU
82223         Coding Standards say to use "path" for something else;
82224         so use "absolute" to keep both sides happy.
82225         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82226         Set gl_absolute_header, not gl_full_header_path.
82227         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82228         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82229         All uses changed.
82230
82231         Merge from coreutils.
82232
82233         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82236         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82237         want to require the building of c-strtod.o.
82238         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82239         needs -lm directly.
82240         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82241
82242         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82243
82244         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82245         --as-needed option if available.  Problem reported by Albert Chin in
82246         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82247         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82248         cc merely issues a bunch of annoying warnings for --as-needed
82249         (this problem was reported by Bob Proulx).  Also, try linking with
82250         -lm to detect a bug in binutils 2.16 (this problem was reported
82251         by Ralf Wildenhues).
82252
82253         2006-06-18  Jim Meyering  <jim@meyering.net>
82254
82255         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82256         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82257         macro.
82258         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82259         also check for glibc-2.4's abort-inducing bug.
82260
82261         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82262         Low-probability clean-up should be to use rmdir to get rid of
82263         the just-created directory, not unlink.
82264
82265         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82266         configure fail, and request a bug report to inform us about it.
82267         Add a comment that, barring reports to the contrary, in 2007 we'll
82268         assume ftruncate is universally available.
82269
82270         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82271
82272         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82273
82274         2006-03-12  Jim Meyering  <jim@meyering.net>
82275
82276         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82277         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82278         * m4/same.m4 (gl_SAME): Likewise.
82279         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82280
82281         2006-03-11  Eric Blake  <ebb9@byu.net>
82282
82283         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82284         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82285         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82286         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82287
82288 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82289
82290         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82291         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82292         reported by Mark D. Baushke, one in
82293         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82294
82295         Merge from coreutils.
82296
82297         * lib/.cppi-disable: Add stdint_.h.
82298         * lib/.cvsignore: Add stdint.h.
82299
82300         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82303         both double and long double versions.
82304         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82305         * lib/xstrtold.c: New file.
82306         * lib/xstrtod.h (xstrtold): New decl.
82307
82308         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82309
82310         * lib/filemode.c (setst): Remove.
82311         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82312         (arguably) clearer, and the generated code is a bit smaller on my
82313         Debian GNU/Linux stable x86 host.
82314
82315         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82318         Assume that filemode.h includes sys/types.h and sys/stat.h.
82319         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82320         (ftypelet): Reorder to put common cases first, for efficiency.
82321         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82322         to do 'M'.
82323         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82324         of 10, for compatibility with FreeBSD.  All callers changed.
82325         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82326         types that can't be deduced solely from st_mode.  First arg is now a
82327         const pointer.
82328         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82329         (strmode): Renamed from mode_string.
82330         (filemodestring): New decl.
82331         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82332         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82333         needed.
82334         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82335
82336         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82339         fsusage.h now does that.  Include fsusage.h first, to test interface.
82340         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82341         at most one method (the old code could have generated decls that
82342         didn't conform to C89, not that this was ever exercised).
82343         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82344
82345         2006-03-19  Jim Meyering  <jim@meyering.net>
82346
82347         Work even in a chroot where d_ino values for entries in "/"
82348         don't match the stat.st_ino values for the same names.
82349         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82350         number, iterate through all entries again, using lstat instead.
82351         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82352         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82353
82354         * lib/getcwd.c (__getcwd): Clarify a comment.
82355         Use memcpy in place of a call to strcpy.
82356
82357         2006-03-12  Jim Meyering  <jim@meyering.net>
82358
82359         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82360         matches that of the current directory (which we're about to chdir ".."
82361         out of), then save the dev-ino of the parent, instead.
82362
82363         * lib/same-inode.h (SAME_INODE): New file/macro.
82364         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82365         Include "same-inode.h", instead.
82366         * lib/same.c: Likewise.
82367         * lib/cycle-check.h: Include "same-inode.h".
82368         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82369         * lib/cycle-check.c (SAME_INODE): Remove definition.
82370         * lib/root-dev-ino.h: Include "same-inode.h".
82371
82372         2006-03-11  Eric Blake  <ebb9@byu.net>
82373
82374         * lib/same.c (same_name): s/base_name/last_component/
82375         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82376         * lib/filenamecat.c (file_name_concat): Likewise.
82377
82378         2006-03-11  Eric Blake  <ebb9@byu.net>,
82379                     Paul Eggert  <eggert@cs.ucla.edu>
82380
82381         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82382         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82383         drive prefix.
82384         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82385         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82386         (last_component): New method.
82387         * lib/dirname.c (dir_len): Determine when drive letters need a
82388         subsequent slash.  Preserve // when it is special.
82389         (dir_name): Don't append dot when drive letter is absolute.
82390         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82391         * lib/basename.c (base_name): New semantics - malloc the result.
82392         Preserve // when it is special.  Preserve relative files that look
82393         like drive letters.
82394         (base_len): Preserve // when it is special.
82395         (last_component): New method, similar to old base_name semantics.
82396         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82397         base_name.  Strip redundant slashes from ///.
82398
82399 2006-07-03  Jim Meyering  <jim@meyering.net>
82400
82401         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82402         macro is used before the first cycle_check call.
82403
82404 2006-07-03  Eric Blake  <ebb9@byu.net>
82405
82406         * modules/dirname (Depends-on): Add xstrndup.
82407
82408 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82409
82410         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82411         test cases, so that config.log is a bit easier to follow.
82412
82413 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82414
82415         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82416         both are 64 bits, since this seems to be the tradition, and this
82417         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82418         we ever run into a host that prefers long long to long in this
82419         case, we'll need another configure-time test.  Problem reported by
82420         Jim Meyering.
82421
82422 2006-07-02  Eric Blake  <ebb9@byu.net>
82423
82424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82425
82426 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82427
82428         * modules/inttypes (Depends-on): No longer depends on stdint.
82429         * modules/stdint (Description): Say more about assumptions.
82430         Say that the fast types might differ.  Say macros are used.
82431         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82432         (Makefile.am): Revise list of substituted symbols to match
82433         new stdint.m4.
82434         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82435         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82436         * tests/test-stdint.c (verify_same_types)
82437         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82438         the code conforms to C99/C89.
82439         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82440         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82441
82442 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82443
82444         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82445         but fix a bug, by requiring at least 64 bits.
82446         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82447         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82448         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82449         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82450
82451         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82452         changes.  Make 2.59 a prerequisite.  Check and substitute for
82453         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82454         inttypes.h.  Do not use special include files; just use the
82455         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82456         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82457         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82458         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82459         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82460         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82461         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82462         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82463         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82464         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82465         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82466         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82467         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82468         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82469         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82470         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82471         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82472         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82473         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82474         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82475         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82476         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82477         not check for things that C99 does not require, e.g., int8_t.  If
82478         a test isn't needed unless <stdint.h> isn't working, and is
82479         unlikely to be needed for any other reason, then don't do it
82480         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82481         size_t, since we assume C89 freestanding at least.  Do not check
82482         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82483         the right thing even if the types are not defined.  Instead use:
82484         (gl_STDINT_TYPE_PROPERTIES): New macro.
82485         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82486         testing whether <sys/types.h> clashes, as Autoconf does this for
82487         us now.  All uses removed.
82488         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82489         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82490         (gl_CHECK_TYPE_SAME):
82491         Remove; no longer needed.
82492         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82493         exists, since we'll return 0 anyway in that case.
82494         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82495
82496 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82497
82498         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82499         possible collision with system files.
82500         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82501         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82502         WCHAR_MIN and WCHAR_MAX in this case.
82503         (<stddef.h>): Do not include; no longer needed.
82504         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82505         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82506         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82507         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82508         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82509         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82510         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82511         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82512         !defined(__c99))]: Include in this case too, since it's harmless
82513         now.
82514         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82515         dangerous to do so.
82516         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82517         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82518         (_STDINT_MIN, _STDINT_MAX): New macros.
82519         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82520         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82521         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82522         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82523         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82524         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82525         macros, not typedefs; this simplifies things quite a bit.
82526         Use long int for all types narrower than int64_t.
82527         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82528         Define in terms of long long int or int64_t or long int,
82529         not int64_t or int32_t.  This saves some compile-time testing.
82530         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82531         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82532         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82533         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82534         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82535         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82536         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82537         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82538         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82539         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82540         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82541         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82542         undef any previous version and define our own version, for
82543         simplicity and consistency with the new macros for types.
82544         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82545         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82546         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82547         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82548         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82549         @WINT_T_SUFFIX@ to keep things simple here.
82550         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82551         Simplify by assuming typical 8/16/32/64 host, since we're
82552         already doing that elsewhere anyway.
82553         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82554         and assume long long int is 64 bits if available.  This
82555         speeds up 'configure'.
82556
82557 2006-07-01  Eric Blake  <ebb9@byu.net>
82558
82559         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82560         Reported by Andreas Buening.
82561
82562 2006-07-01  Eric Blake  <ebb9@byu.net>
82563
82564         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82565
82566 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82567
82568         * lib/getaddrinfo.c: fixed typo
82569
82570 2006-06-29  Jim Meyering  <jim@meyering.net>
82571
82572         * modules/strftime (Maintainer): Add my name, since with the
82573         FPRINTFTIME changes strftime.c has forked from glibc.
82574
82575 2006-06-29  Eric Blake  <ebb9@byu.net>
82576
82577         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82578
82579 2006-06-29  Eric Blake  <ebb9@byu.net>
82580
82581         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82582
82583 2006-06-29  Eric Blake  <ebb9@byu.net>
82584
82585         * lib/stat_.h: New file.
82586
82587 2006-06-29  Eric Blake  <ebb9@byu.net>
82588
82589         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82590         unused static function.
82591
82592 2006-06-29  Eric Blake  <ebb9@byu.net>
82593
82594         * doc/functions.texi (Function Portability): Document missing lstat
82595         on mingw.
82596
82597 2006-06-29  Eric Blake  <ebb9@byu.net>
82598
82599         * MODULES.html.sh: Add sys_stat.
82600         * modules/sys_stat: New module.
82601         * modules/mkstemp (Depends-on): Add sys_stat.
82602
82603 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82604
82605         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82606
82607 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82608
82609         * m4/c-bs-a.m4: Removed.
82610
82611 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82612
82613         * lib/strftime.c: Assume strftime() exists.
82614
82615 2006-06-29  Derek Price  <derek@ximbiot.com>
82616
82617         * modules/c-bs-a: Removed - \a is C89.
82618         * MODULES.html.sh: Remove c-bs-a.
82619
82620 2006-06-29  Bruno Haible  <bruno@clisp.org>
82621
82622         * modules/wcwidth (License): Change to LGPL.
82623
82624 2006-06-28  Simon Josefsson  <jas@extundo.com>
82625
82626         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82627         on _WIN32.
82628
82629         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82630         getnameinfo.
82631
82632 2006-06-28  Simon Josefsson  <jas@extundo.com>
82633
82634         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82635
82636 2006-06-28  Simon Josefsson  <jas@extundo.com>
82637
82638         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82639         functions there.  It will succeed on Windows XP, but on Windows
82640         2000 and (presumably) earlier, it will fail, and use the internal
82641         re-implementation.
82642         (use_win32_p): New function.
82643         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82644         Support AI_NUMERICSERV to disable getservbyname.
82645         (getnameinfo): New function, only supports
82646         NI_NUMERICHOST|NI_NUMERICSERV for now.
82647
82648         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82649         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82650         getnameinfo.
82651
82652 2006-06-28  Eric Blake  <ebb9@byu.net>
82653
82654         * modules/wcwidth: New file.
82655         * modules/mbchar (Depends-on): Add wcwidth.
82656         * modules/mbswidth (Depends-on): Add wcwidth.
82657         * MODULES.html.sh: Add wcwidth.
82658
82659 2006-06-28  Eric Blake  <ebb9@byu.net>
82660
82661         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82663
82664 2006-06-28  Eric Blake  <ebb9@byu.net>
82665
82666         * lib/xvasprintf.h: Fix comments.
82667
82668 2006-06-28  Eric Blake  <ebb9@byu.net>
82669
82670         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82671         * lib/mbswidth.c (wcwidth): Move from here...
82672         * lib/wcwidth.h: ...to this new file.
82673
82674 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82675
82676         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82677
82678         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82679         it's obsolete.
82680         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82681
82682 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82683
82684         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82685         Autoconf 2.60 says this stuff was obsolete.
82686
82687 2006-06-28  Bruno Haible  <bruno@clisp.org>
82688
82689         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82690
82691 2006-06-28  Bruno Haible  <bruno@clisp.org>
82692
82693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82694         gt_TYPE_WCHAR_T.
82695
82696 2006-06-28  Bruno Haible  <bruno@clisp.org>
82697
82698         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82699         declaration for wcwidth.
82700         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82701
82702 2006-06-28  Bruno Haible  <bruno@clisp.org>
82703
82704         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82705         (mkdir): Define using _mkdir.
82706
82707 2006-06-28  Bruno Haible  <bruno@clisp.org>
82708
82709         * lib/getaddrinfo.h: Fix POSIX URL.
82710         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82711         _WIN32.
82712         (use_win32_p): Make static.
82713         (getaddrinfo): Reject service name if it is empty or does not consist
82714         solely of decimal digits, or if its value is > 65535.
82715         (getnameinfo): Remove useless casts.
82716
82717 2006-06-27  Simon Josefsson  <jas@extundo.com>
82718
82719         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82720         Eggert and Martin Lambers.
82721
82722 2006-06-27  Simon Josefsson  <jas@extundo.com>
82723
82724         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82725         Eggert and Martin Lambers.
82726
82727 2006-06-27  Bruno Haible  <bruno@clisp.org>
82728
82729         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82730         result to 0, not to empty.
82731         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82732
82733 2006-06-27  Bruno Haible  <bruno@clisp.org>
82734
82735         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82736
82737 2006-06-26  Simon Josefsson  <jas@extundo.com>
82738
82739         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82740         present.
82741
82742 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82743
82744         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82745         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82746         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82747
82748 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82749
82750         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82751
82752 2006-06-26  Bruno Haible  <bruno@clisp.org>
82753
82754         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82755
82756 2006-06-26  Bruno Haible  <bruno@clisp.org>
82757
82758         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82759
82760 2006-06-26  Bruno Haible  <bruno@clisp.org>
82761
82762         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82763         SGI C compiler in pre-C99 mode.
82764         Suggested by Mark D. Baushke and Larry Jones.
82765
82766 2006-06-26  Bruno Haible  <bruno@clisp.org>
82767
82768         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82769         WCHAR_MAX.
82770         Reported by Mark D. Baushke and Larry Jones.
82771
82772 2006-06-26  Bruno Haible  <bruno@clisp.org>
82773
82774         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82775         in pre-C99 mode.
82776         Suggested by Mark D. Baushke and Larry Jones.
82777
82778 2006-06-23  Simon Josefsson  <jas@extundo.com>
82779             Bruno Haible  <bruno@clisp.org>
82780
82781         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82782         Emit mostlyclean-local rule.
82783         (func_emit_tests_Makefile_am): Likewise.
82784         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82785
82786 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82787
82788         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82789
82790 2006-06-23  Bruno Haible  <bruno@clisp.org>
82791
82792         * tests/test-stdint.c: Update to match ISO C 99 Technical
82793         Corrigendum 1.
82794
82795 2006-06-23  Bruno Haible  <bruno@clisp.org>
82796
82797         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82798
82799 2006-06-23  Bruno Haible  <bruno@clisp.org>
82800
82801         * lib/stdint_.h: Treat IRIX like OpenBSD.
82802
82803 2006-06-23  Bruno Haible  <bruno@clisp.org>
82804
82805         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82806         ISO C 99 Technical Corrigendum 1.
82807
82808 2006-06-22  Simon Josefsson  <jas@extundo.com>
82809
82810         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82811         MinGW.
82812
82813 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82814
82815         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82816         needed.  Some compiler complained about some of them.  Problem reported
82817         by Larry Jones in
82818         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82819
82820 2006-06-21  Simon Josefsson  <jas@extundo.com>
82821
82822         * tests/test-getaddrinfo.c: New file.
82823
82824         * modules/getaddrinfo-tests: New file.
82825
82826         * MODULES.html.sh: Add inet_pton.
82827
82828         * modules/inet_pton: New file.
82829
82830 2006-06-21  Simon Josefsson  <jas@extundo.com>
82831
82832         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82833         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82834         of using the (limited) gnulib implementation on Windows XP.
82835
82836         * m4/inet_pton.m4: New file.
82837
82838 2006-06-21  Simon Josefsson  <jas@extundo.com>
82839
82840         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82841         variable.
82842
82843         * lib/socket_.h: Don't define WINVER.
82844
82845         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82846         slightly modified to work in gnulib.
82847
82848 2006-06-21  Simon Josefsson  <jas@extundo.com>
82849
82850         * doc/gnulib.texi (Windows sockets): Add.
82851
82852 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82853
82854         * lib/read-file.c (fread_file): Start with buffer allocation of
82855         0 bytes rather than 1 byte; this simplifies the code.
82856         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82857         code to free buffer and save/restore errno.
82858         (internal_read_file): Remove unused local.
82859
82860 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82861
82862         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82863         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82864         Problem reported by Denis Excoffier in
82865         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82866
82867 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82868
82869         * modules/sys_socket, modules/socklen: Include sys/types since
82870         FreeBSD 4.x's sys/socket.h needs it.
82871
82872 2006-06-19  Simon Josefsson  <jas@extundo.com>
82873
82874         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82875
82876 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82877
82878         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82879
82880 2006-06-19  Bruno Haible  <bruno@clisp.org>
82881
82882         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82883         and FULL_PATH_INTTYPES_H in angle brackets.
82884         Reported by Mark D. Baushke <mdb@gnu.org>.
82885
82886 2006-06-17  Eric Blake  <ebb9@byu.net>
82887
82888         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82889         errno.
82890
82891 2006-06-17  Bruno Haible  <bruno@clisp.org>
82892
82893         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82894         <sys/inttypes.h>.
82895
82896 2006-06-17  Bruno Haible  <bruno@clisp.org>
82897
82898         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82899         whether errno is declared. Assume <errno.h> declares errno.
82900
82901 2006-06-17  Bruno Haible  <bruno@clisp.org>
82902
82903         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82904
82905 2006-06-17  Bruno Haible  <bruno@clisp.org>
82906
82907         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82908         problem on Solaris 2.5.1.
82909
82910 2006-06-16  Eric Blake  <ebb9@byu.net>
82911
82912         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82913         * lib/unicodeio.c [!defined errno]: Likewise.
82914         * lib/strtol.c [!defined errno]: Likewise.
82915         * lib/strtod.c [!defined errno]: Likewise.
82916
82917 2006-06-15  Eric Blake  <ebb9@byu.net>
82918
82919         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82920
82921 2006-06-15  Eric Blake  <ebb9@byu.net>
82922
82923         * config/srclist.txt (ssize_t.m4): Lose sync.
82924
82925 2006-06-15  Bruno Haible  <bruno@clisp.org>
82926
82927         * modules/stdint (Files): Include m4/full-header-path.m4,
82928         m4/size_max.m4, m4/wchar_t.m4.
82929         (Makefile.am): Many more substitutions.
82930         * modules/stdint-tests: New file.
82931         * tests/test-stdint.c: New file.
82932
82933 2006-06-15  Bruno Haible  <bruno@clisp.org>
82934
82935         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82936         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82937         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82938         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82939         gl_CHECK_TYPE_SAME): New macros.
82940
82941 2006-06-15  Bruno Haible  <bruno@clisp.org>
82942
82943         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82944
82945 2006-06-15  Bruno Haible  <bruno@clisp.org>
82946
82947         * lib/stdint_.h: Rewritten to be fully auto-configured.
82948         Fixes bug on HP-UX/IA64.
82949
82950 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82951
82952         * lib/getdate.y (__attribute__): Don't define if already defined.
82953         Problem reported by Larry Jones.
82954         * lib/utimens.c (__attribute__): Likewise.
82955
82956 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82957
82958         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82959         reported by Andreas Schwab.
82960
82961 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82962             Bruno Haible  <bruno@clisp.org>
82963
82964         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82965         check for the declaration of strnlen and a run test that exposes the
82966         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82967         rpl_strndup.
82968
82969 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82970             Bruno Haible  <bruno@clisp.org>
82971
82972         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82973
82974 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82975
82976         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82977         compile test, for Tru64 4.0D.
82978
82979 2006-05-28  Karl Berry  <karl@gnu.org>
82980
82981         * config/srclist.txt (printf-args.c): lose sync.
82982
82983 2006-05-26  Martin Lambers  <marlam@marlam.de>
82984
82985         * lib/getpass.c: Updates the test for the native W32 API, and adds
82986         missing includes, thus fixing compilation warnings.
82987
82988 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82989
82990         * lib/exclude.c (exclude_fnmatch): New function.
82991         (excluded_file_name): Call exclude_fnmatch.
82992         * lib/exclude.h (excluded_file_name): New prototype
82993
82994 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82995
82996         * lib/tempname.c (small_open, large_open): New macros.
82997         (__open, __open64) [!_LIBC]: Remove.
82998         (__gen_tempname): Use small_open and large_open instead of __open
82999         and __open64.  This fixes a portability bug on HP-UX 11.11i
83000         reported by Simon Wing-Tang in
83001         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
83002
83003 2006-05-24  Bruno Haible  <bruno@clisp.org>
83004
83005         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
83006         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
83007         Reported by Thorsten Maerz <torte@netztorte.de> via
83008         Aaron Stone <aaron@serendipity.cx>.
83009
83010 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83011
83012         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
83013         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
83014         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
83015         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
83016         not really conditional on the cache.
83017         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
83018
83019 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
83022         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
83023         (my_usleep): Don't mishandle maximum value.
83024
83025 2006-05-19  Jim Meyering  <jim@meyering.net>
83026
83027         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
83028
83029 2006-05-17  Bruno Haible  <bruno@clisp.org>
83030
83031         Cygwin portability.
83032         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
83033
83034 2006-05-17  Bruno Haible  <bruno@clisp.org>
83035
83036         * lib/stdint_.h: Fix recognition of Cygwin.
83037
83038 2006-05-15  Bruno Haible  <bruno@clisp.org>
83039
83040         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
83041         on libtool patch by Ralf Wildenhues.
83042
83043 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83044
83045         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
83046         test for C99 conformance; (bool) 0.5 is an integer constant
83047         expression, but (bool) -0.5 is not.  Problem reported by Fedor
83048         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
83049
83050 2006-05-11  Simon Josefsson  <jas@extundo.com>
83051
83052         * m4/xvasprintf.m4: Fix obvious typo.
83053
83054 2006-05-11  Jim Meyering  <jim@meyering.net>
83055
83056         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
83057         James Lemley.
83058
83059 2006-05-10  Simon Josefsson  <jas@extundo.com>
83060
83061         * lib/md4.c: Typo fix, update copyright years.
83062         (K1, K2): Don't use L because it turn computations into 64-bit on
83063         64-bit platforms.
83064
83065 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
83068         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
83069         unwanted sign propagation, e.g., on hosts with 64-bit int.
83070         There still are some problems with reeelly weird theoretical hosts
83071         (e.g., 33-bit int) but it's not worth worrying about now.
83072         * lib/sha1.c (rol): Likewise.
83073         (K1, K2, K3, K4): Remove unnecessary L suffix.
83074
83075 2006-05-10  Bruno Haible  <bruno@clisp.org>
83076
83077         * lib/des.c: Cast to avoid warnings.
83078
83079 2006-05-09  Bruno Haible  <bruno@clisp.org>
83080
83081         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
83082         (Depends-on): Depend also on xsize, stdarg.
83083         (configure.ac): Add gl_XVASPRINTF.
83084
83085 2006-05-09  Bruno Haible  <bruno@clisp.org>
83086
83087         * m4/xvasprintf.m4: New file.
83088
83089 2006-05-09  Bruno Haible  <bruno@clisp.org>
83090
83091         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
83092         (EOVERFLOW): Define fallback value.
83093         (xstrcat): New function.
83094         (xvasprintf): Recognize the special case of a string concatenation.
83095
83096 2006-05-08  Eric Blake  <ebb9@byu.net>
83097
83098         * gnulib-tool (func_version): Base copyright year on CVS date.
83099         (func_emit_copyright_notice): New function.
83100         (func_emit_lib_Makefile_am): Use it.
83101         (func_emit_tests_Makefile_am): Likewise.
83102         (func_import): Likewise.
83103
83104 2006-05-08  Bruno Haible  <bruno@clisp.org>
83105
83106         * modules/stdarg: New file.
83107         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
83108
83109 2006-05-08  Bruno Haible  <bruno@clisp.org>
83110
83111         * m4/stdarg.m4: New file, from GNU gettext.
83112
83113 2006-05-08  Bruno Haible  <bruno@clisp.org>
83114
83115         * config/srclist.txt (build-aux/config.rpath): different from latest
83116         release.
83117
83118 2006-05-08  Bruno Haible  <bruno@clisp.org>
83119
83120         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
83121
83122 2006-05-05  Jim Meyering  <jim@meyering.net>
83123
83124         * m4/warning.m4: New file, derived from bison's file by the same name.
83125
83126 2006-05-03  Bruno Haible  <bruno@clisp.org>
83127
83128         * lib/stdint_.h: Shorter URL.
83129         * lib/inttypes.h: Likewise.
83130
83131 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83132
83133         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
83134
83135 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83136
83137         * lib/verify.h: Document the internals better.  Most of this change
83138         was written by Bruno Haible.
83139
83140 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * doc/verify.texi: New file, partly based on a proposal by
83143         Bruno Haible.
83144
83145 2006-05-02  Bruno Haible  <bruno@clisp.org>
83146
83147         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83148         test from here...
83149         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83150
83151 2006-04-29  Bruno Haible  <bruno@clisp.org>
83152
83153         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83154         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83155
83156 2006-04-29  Bruno Haible  <bruno@clisp.org>
83157
83158         * gnulib-tool: Make --update option actually work.
83159
83160 2006-04-29  Bruno Haible  <bruno@clisp.org>
83161
83162         * doc/gcd.texi: New file.
83163         * doc/gnulib.texi: Include it.
83164
83165 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83166
83167         * lib/getdate.y (get_date): When adding relative date, start with the
83168         initial time, not with the result of the first mktime call.
83169
83170 2006-04-25  Bruno Haible  <bruno@clisp.org>
83171
83172         * gnulib-tool (func_import): Output the include directives in three
83173         blocks, sorted separately.
83174         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83175
83176 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83179         to define main with arguments, for C++.  Reported by Eric Blake.
83180         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83181         Prefer 'int main ()' to 'int main (void)', for C++.
83182         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83183         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83184         for 'main', for C99 and C++.
83185
83186 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83187
83188         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83189         Don't assume that exit status -1 is valid.
83190         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83191         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83192         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83193         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83194         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83195         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83196         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83197         functions can be used without declaring them, or that you can
83198         exit with status -1.
83199         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83200
83201 2006-04-24  Karl Berry  <karl@gnu.org>
83202
83203         * config/srclist.txt (longdouble.m4): sync lost.
83204
83205 2006-04-24  Eric Blake  <ebb9@byu.net>
83206
83207         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83208
83209 2006-04-24  Bruno Haible  <bruno@clisp.org>
83210
83211         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83212         poll() implementation in AIX.
83213         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83214
83215 2006-04-24  Bruno Haible  <bruno@clisp.org>
83216
83217         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83218         assigned exactly once.
83219
83220 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83221             Bruno Haible  <bruno@clisp.org>
83222
83223         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83224         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83225         for AM_CPPFLAGS.
83226
83227 2006-04-23  Bruno Haible  <bruno@clisp.org>
83228
83229         * modules/copy-file: Depend on unistd.
83230         * modules/execute: Likewise.
83231         * modules/fatal-signal: Likewise.
83232         * modules/findprog: Likewise.
83233         * modules/mkdtemp : Likewise.
83234         * modules/pipe: Likewise.
83235         * modules/wait-process: Likewise.
83236
83237 2006-04-23  Bruno Haible  <bruno@clisp.org>
83238
83239         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83240         condition was already detected.
83241         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83242
83243 2006-04-23  Bruno Haible  <bruno@clisp.org>
83244
83245         * lib/copy-file.c: Include <unistd.h> unconditionally.
83246         * lib/execute.c: Likewise.
83247         * lib/fatal-signal.c: Likewise.
83248         * lib/findprog.c: Likewise.
83249         * lib/mkdtemp.c: Likewise.
83250         * lib/pipe.h: Likewise.
83251         * lib/pipe.c: Likewise.
83252         * lib/wait-process.h: Likewise.
83253
83254 2006-04-23  Bruno Haible  <bruno@clisp.org>
83255
83256         * gnulib-tool (func_usage): Fix --import description. Document
83257         --update.
83258         (func_import): Create temporary file in a temporary directory, if
83259         --dry-run is specified. Silence errors from 'grep' when there are no
83260         m4 files in $m4dir.
83261         (func_create_testdir): Silence errors from 'grep' when there are no
83262         m4 files in $m4dir.
83263         Reported by Karl Berry <karl@freefriends.org>.
83264
83265 2006-04-20  Bruno Haible  <bruno@clisp.org>
83266
83267         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83268         one argument, so that the code will be portable to Autoconf 2.60.
83269         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83270         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83271         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83272
83273 2006-04-19  Derek Price  <derek@ximbiot.com>
83274             Eric Blake  <ebb9@byu.net>
83275
83276         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83277         rather than "/full/path.h".  Update comment to match.  Shorten &
83278         generalize m4_translit call via AS_TR_CPP.
83279
83280 2006-04-19  Derek Price  <derek@ximbiot.com>
83281             Eric Blake  <ebb9@byu.net>
83282
83283         * lib/inttypes.h: Correct grammar in comment.
83284
83285 2006-04-18  Derek Price  <derek@ximbiot.com>
83286             Paul Eggert  <eggert@cs.ucla.edu>
83287
83288         * modules/inttypes: New file.
83289         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83290
83291 2006-04-18  Derek Price  <derek@ximbiot.com>
83292             Paul Eggert  <eggert@cs.ucla.edu>
83293
83294         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83295         New files.
83296
83297 2006-04-18  Derek Price  <derek@ximbiot.com>
83298             Paul Eggert  <eggert@cs.ucla.edu>
83299
83300         * lib/inttypes.h: New file.
83301         * lib/strtoimax.c: Assume <inttypes.h>.
83302
83303 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83304
83305         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83306         isn't mounted.  Problem reported by Kir Kolyshkin.
83307
83308 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83309
83310         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83311         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83312         Derek R. Price.
83313         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83314         implementation.
83315
83316 2006-04-12  Eric Blake  <ebb9@byu.net>
83317
83318         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83319         is now done automatically by the corresponding Autoconf macro.
83320
83321 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83322
83323         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83324         time_r.h.
83325
83326 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83327
83328         Merge regex changes from libc, removing some of our
83329         POSIX-conformance changes that were rejected and redoing them in a
83330         less-intrusive way.
83331
83332         * lib/regcomp.c (re_compile_internal, init_dfa):
83333         Length arg is now size_t, not Idx.  All uses changed.
83334         (peek_token): Forward decl now says internal_function.
83335         (__re_error_msgid, __re_error_msgid_idx):
83336         Now static rather than extern with attribute_hidden.
83337         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83338         For some reason libc prefers K&R style defns for external functions.
83339         (regerror) [!defined _LIBC]: Likewise.
83340         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83341         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83342         (build_range_exp, build_collating_symbol):
83343         Use K&R-style defn.
83344         (re_compile_fastmap): Use '\0' to memset, not 0.
83345         (utf8_sb_map): Make the calculations more obvious.
83346         (init_dfa, parse_bracket_exp, build_charclass_op):
83347         Call calloc and cast result, as glibc does.
83348         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83349         (build_range_exp, build_collating_symbol):
83350         Now internal functions.
83351
83352         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83353
83354         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83355         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83356         Don't depend on VMS; depend on __VMS instead, for POSIX
83357         namespace cleanness.
83358         (regoff_t): Define to ssize_t, not long int.
83359
83360         Remove the REG_ macros named below.  Instead, make the old names
83361         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83362         __USE_GNU_REGEX.
83363         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83364         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83365         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83366         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83367         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83368         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83369         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83370         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83371         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83372         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83373         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83374         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83375         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83376         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83377         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83378         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83379         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83380         (REG_NREGS):
83381         Remove.  All uses replaced by the old RE_* names.
83382         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83383         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83384         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83385         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83386         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83387         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83388         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83389         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83390         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83391         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83392         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83393         Don't bother having these macros be independent of each others'
83394         values, since they no longer exist in the POSIX name space.
83395
83396         Rename the following member names back to their old names,
83397         unless !__USE_GNU_REGEX.  All uses changed back.
83398         (buffer): Renamed from re_buffer.
83399         (allocated): Renamed from re_allocated.
83400         (used): Renamed from re_used.
83401         (syntax): Renamed from re_syntax.
83402         (fastmap): Renamed from re_fastmap.
83403         (translate): Renamed from re_translate.
83404         (can_be_null): Renamed from re_can_be_null.
83405         (regs_allocated): Renamed from re_regs_allocated.
83406         (fastmap_accurate): Renamed from re_fastmap_accurate.
83407         (no_sub): Renamed from re_no_sub.
83408         (not_bol): Renamed from re_not_bol.
83409         (not_eol): Renamed from re_not_eol.
83410         (newline_anchor): Renamed from re_newline_anchor.
83411         (num_regs): Renamed from rm_num_regs.
83412         (start): Renamed from rm_start.
83413         (end): Renamed from rm_end.
83414
83415         (free_state): Move up a bit.
83416
83417         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83418         #define to be empty.
83419         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83420         when that is what is intended.
83421         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83422         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83423         (MAX): New macro.
83424         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83425         All uses changed back to re_malloc, etc.  It's now the caller's
83426         responsibility to check for overflow; all callers changed.
83427         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83428         (re_x2nrealloc): Remove.
83429         (free_state): Remove decl.
83430
83431         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83432         (re_set_registers, re_exec):
83433         Use K&R-style defn.
83434
83435         2006-01-31  Roland McGrath  <roland@redhat.com>
83436
83437         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83438         Reported by Mike Frysinger <vapier@gentoo.org>.
83439
83440         2006-01-15  Andreas Jaeger  <aj@suse.de>
83441
83442         [BZ #1950]
83443         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83444         build_wcs_upper_buffer change.
83445         (build_wcs_upper_buffer): Change return type.
83446
83447         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83448
83449         * lib/regex_internal.h: Include <stdint.h> if available.
83450
83451         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83452
83453         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83454
83455         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83456
83457         * lib/regcomp.c: Adjust for changed secondary hash function.
83458
83459         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83460
83461         * lib/regex.h: Pretty printing.
83462         Clean up namespace a bit.
83463
83464         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83465
83466         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83467         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83468
83469         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83470                     Ulrich Drepper  <drepper@redhat.com>
83471
83472         [BZ #1302]
83473         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83474         changed.
83475         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83476
83477         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83478
83479         [BZ #281]
83480         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83481         * lib/regcomp.c: Remove unnecessary uses of
83482         unsigned RE_TRANSLATE_TYPE.
83483         * lib/regex_internal.h: Likewise.
83484         * lib/regex_internal.c: Likewise.
83485         * lib/regexec.c: Likewise.
83486         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83487
83488         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83489
83490         * lib/regexec.c (find_recover_state): Remove unnecessary
83491         initialization.
83492         (transit_state_bkref): Make DFA a const pointer.
83493         (get_subexp): Likewise.
83494         (check_arrival): Likewise.
83495         (update_cur_sifted_state): Likewise.
83496         (re_search_internal): Likewise.
83497         (prune_impossible_nodes): Likewise.
83498         (acquire_init_state_context): Likewise.
83499         (proceed_next_node): Likewise.
83500         (set_regs): Likewise.
83501         (free_fail_stack_return): Likewise.
83502         (check_arrival_expand_ecl): Mark DFA parameter as const.
83503         (check_arrival_expand_ecl_sub): Likewise.
83504         (check_subexp_limits): Likewise.
83505         (sub_epsilon_src_nodes):  Likewise.
83506         (add_epsilon_src_nodes):  Likewise.
83507         (merge_state_array): Likewise.
83508         (update_regs): Likewise.
83509         (build_trtable): Likewise.
83510         (sift_states_backward): Mark MCTX parameter as const.
83511         (build_sifted_states): Likewise.
83512         (update_cur_sifted_state): Likewise.
83513         (sift_states_mkref): Likewise.
83514         (check_arrival_expand_ecl): Mark eclosure as const.
83515         (check_dst_limits_calc_pos_1): Likewise.
83516         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83517         pointer.
83518
83519         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83520
83521         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83522         (transit_state_sb): Likewise.
83523         (transit_state_mb): Likewise.
83524         (sift_states_iter_mb): Likewise.
83525         (check_arrival_add_next_nodes): Likewise.
83526         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83527         [_LIBC] (re_search_2_stub): Use mempcpy.
83528
83529         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83530         mbrtowc for very simple UTF-8 case.
83531
83532         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83533         a pointer-to-const.
83534         (re_acquire_state_context): Likewise.
83535         * lib/regex_internal.h: Adjust prototypes.
83536
83537         * lib/regex.c: Prevent using C++ compilers.
83538
83539         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83540         (re_acquire_state_context): Likewise.
83541
83542 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83543
83544         * modules/regex (Depends-on): Add ssize_t.
83545
83546 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83547
83548         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83549         translation table.
83550
83551 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83554
83555 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83556             Bruno Haible  <bruno@clisp.org>
83557
83558         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83559         <sys/types.h> and <inttypes.h>.
83560
83561 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83562
83563         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83564         `__error_t_defined', so argp.h will not typedef the former.
83565
83566 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83567
83568         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83569         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83570         glibc names.  Even if glibc is changed to conform to POSIX, the
83571         traditional names will be available anyway, since regex depends on
83572         the extensions module.  Also, fix a longstanding typo in the
83573         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83574         reported by Emanuele Giaquinta.  Also, change sense of cached
83575         variable, so that the message makes sense.
83576
83577 2006-03-24  Simon Josefsson  <jas@extundo.com>
83578
83579         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83580         including some doc fixes.
83581         (base64_encode_alloc): Fix +1 bug on allocation failures.
83582
83583 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83584
83585         * lib/base64.c (base64_encode): Do not read past end of array with
83586         unsanitized input on systems with CHAR_BIT > 8.
83587
83588 2006-03-24  Eric Blake  <ebb9@byu.net>
83589
83590         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83591
83592 2006-03-22  Karl Berry  <karl@gnu.org>
83593
83594         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83595         * config/srclistvars.sh (COREUTILS): new var.
83596
83597 2006-03-17  Jim Meyering  <jim@meyering.net>
83598
83599         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83600         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83601
83602 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83603
83604         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83605         no longer needs it.  Instead, check that regoff_t is as least
83606         as wide as ptrdiff_t.
83607
83608         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83609         so that our regex.h stays compatible with the installed regex.
83610         This is helpful for installers who configure --without-included-regex.
83611         Problem reported by Emanuele Giaquinta.
83612
83613 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83616         Typedef to long int, not to off_, as POSIX will likely change
83617         in that direction.
83618
83619 2006-03-15  Eric Blake  <ebb9@byu.net>
83620
83621         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83622
83623 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83624
83625         * lib/argp-help.c (validate_uparams): Fix typo
83626         * lib/argp-parse.c (argp_default_options): Consistently begin help
83627         messages with a lowercase letter.
83628
83629 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83630
83631         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83632         overrun buffers and shouldn't be used (much as gets shouldn't be
83633         used).
83634         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83635
83636 2006-03-08  Simon Josefsson  <jas@extundo.com>
83637
83638         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83639         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83640
83641 2006-03-08  Simon Josefsson  <jas@extundo.com>
83642
83643         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83644         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83645
83646 2006-03-08  Simon Josefsson  <jas@extundo.com>
83647
83648         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83649         signal that configure disabled the device.
83650
83651 2006-03-08  Simon Josefsson  <jas@extundo.com>
83652
83653         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83654         languages.
83655
83656 2006-03-07  Simon Josefsson  <jas@extundo.com>
83657
83658         * modules/getopt (Depends-on): Add unistd.
83659
83660         * modules/unistd: New file.
83661
83662 2006-03-07  Simon Josefsson  <jas@extundo.com>
83663
83664         * modules/gc-random: New file.
83665
83666 2006-03-07  Simon Josefsson  <jas@extundo.com>
83667
83668         * m4/unistd_h.m4: New file.
83669
83670 2006-03-07  Simon Josefsson  <jas@extundo.com>
83671
83672         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83673         test to be side-effect free by storing the result in the cache
83674         variable gl_cv_lib_readline, and moving the assignment of
83675         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83676         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83677
83678 2006-03-07  Simon Josefsson  <jas@extundo.com>
83679
83680         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83681         error on missing devices (the functions will return an error).
83682
83683         * m4/gc.m4: Move random stuff to gc-random.m4
83684
83685 2006-03-07  Simon Josefsson  <jas@extundo.com>
83686
83687         * lib/unistd_.h: New file.
83688
83689 2006-03-07  Simon Josefsson  <jas@extundo.com>
83690
83691         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83692
83693 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83694
83695         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83696         Problem reported by Juan Manuel Guerrero.
83697
83698 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83699
83700         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83701         the unistd module.
83702         * lib/getlogin_r.c: Likewise.
83703         * lib/getlogin_r.h: Likewise.
83704         * lib/glob.c: Likewise.
83705         * lib/pagealign_alloc.c: Likewise.
83706         * lib/unistd_.h: Remove; no longer needed.
83707
83708 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83711         Add unistd.
83712         * modules/c-stack (Depends-on): Add unistd.
83713         * modules/getlogin_r: Likewise.
83714         * modules/glob: Likewise.
83715         * modules/pagealign_alloc: Likewise.
83716         * modules/unistd (Files): Remove lib/unistd_.h.
83717         (EXTRA_DIST): Remove.
83718         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83719         need unistd_.h.
83720         (MOSTLYCLEANFILES): Remove unistd.h-t.
83721
83722 2006-03-03  Simon Josefsson  <jas@extundo.com>
83723
83724         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83725
83726 2006-03-03  Simon Josefsson  <jas@extundo.com>
83727
83728         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83729         libidn and bison.
83730
83731 2006-03-03  Simon Josefsson  <jas@extundo.com>
83732
83733         * build-aux/maint.mk: Add indent target.
83734
83735 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83736
83737         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83738         our replacement poll.h in any case, to avoid a differing
83739         declaration from a system header.  Seen on AIX.
83740
83741 2006-03-01  Simon Josefsson  <jas@extundo.com>
83742
83743         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83744         <kasal@ucw.cz>.
83745
83746 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83747
83748         * modules/gettime (Depends-on): Add extensions module.
83749         * modules/nanosleep (Depends-on): Likewise.
83750         * modules/settime (Depends-on): Likewise.
83751
83752 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83753
83754         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83755         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83756         pedantically.
83757         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83758         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83759
83760         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83761         not "==".  Reported by Ralf Wildenhues.
83762
83763 2006-03-01  Karl Berry  <karl@gnu.org>
83764
83765         * doc/Copyright/request-*: new files, synced from gnuorg.
83766
83767 2006-03-01  Karl Berry  <karl@gnu.org>
83768
83769         * config/srclist.txt (Copyright/*): new entries.
83770
83771 2006-02-28  Simon Josefsson  <jas@extundo.com>
83772
83773         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83774
83775 2006-02-27  Simon Josefsson  <jas@extundo.com>
83776
83777         * lib/base64.h: Indent #define's.  From Jim Meyering
83778         <jim@meyering.net>.
83779
83780 2006-02-27  Jim Meyering  <jim@meyering.net>
83781
83782         Revert the change of 2006-02-24, so these files can continue
83783         to be sync'd from gettext.
83784         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83785         of `config.h'.
83786
83787 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83788
83789         * modules/intprops: New file.
83790         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83791         Add intprops.
83792         * modules/getloadavg (Files): Remove lib/intprops.h.
83793         (Depends-on): Add intprops.
83794         * modules/human: Likewise.
83795         * modules/inttostr: Likewise.
83796         * modules/openat: Likewise.
83797         * modules/sig2str: Likewise.
83798         * modules/userspec: Likewise.
83799         * modules/utimecmp: Likewise.
83800         * modules/xnanosleep: Likewise.
83801         * modules/xstrtol: Likewise.
83802
83803 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83804
83805         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83806         * modules/lock-tests (TESTS): Use $(EXEEXT).
83807         * modules/tls-tests: Likewise.
83808         * modules/argp-tests: Likewise.
83809         (check_PROGRAMS): New var, replacing...
83810         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83811
83812 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83813
83814         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83815         `config.h'.
83816
83817 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83820
83821 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83822
83823         Sync from coreutils.
83824         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83825         gl_CHDIR_SAFER.
83826
83827 2006-02-22  Jim Meyering  <jim@meyering.net>
83828
83829         Sync from coreutils.
83830         * m4/chdir-safer.m4: New file.
83831
83832 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83833
83834         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83835         AT_FDCWD exceeds INT_MAX.
83836         * lib/openat.h (AT_FDCWD): Likewise.
83837
83838 2006-02-17  Eric Blake  <address@hidden>
83839
83840         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83841
83842 2006-02-16  Simon Josefsson  <jas@extundo.com>
83843
83844         * modules/getaddrinfo (Depends-on): Add sys_socket.
83845
83846 2006-02-15  Simon Josefsson  <jas@extundo.com>
83847
83848         * build-aux/maint.mk: Add dsyntax-check rule.
83849
83850 2006-02-15  Eric Blake  <ebb9@byu.net>
83851
83852         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83853         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83854         'present but cannot compile' warnings on cygwin.
83855         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83856         use ws2tcpip.h if sys/socket.h works.
83857         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83858         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83859
83860 2006-02-14  Simon Josefsson  <jas@extundo.com>
83861
83862         * modules/maintainer-makefile (Files): Rename.
83863
83864         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83865         and (the local) Makefile.cfg to maint-cfg.mk.
83866
83867         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83868         to the latter.
83869
83870         * modules/maintainer-makefile: New module.
83871
83872         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83873         severaly stripped to make it possible to build it up from scratch
83874         with reliable tests.
83875
83876         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83877         fixes to permit overriding the default actions when configure and
83878         makefile are not available.
83879
83880 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83881
83882         Sync from coreutils.
83883         * modules/lstat (Depends-on): Don't depend on xalloc.
83884         (License): Change from GPL to LGPL, since this is now simply a
83885         replacement for a libc function.
83886
83887 2006-02-14  Jim Meyering  <jim@meyering.net>
83888
83889         Sync from coreutils.
83890
83891         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83892         failure on deficient systems, and simplify gnulib lgpl dependencies.
83893         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83894         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83895
83896         * lib/xalloc-die.c: Remove unused definition of N_.
83897
83898 2006-02-14  Jim Meyering  <jim@meyering.net>
83899
83900         Sync from coreutils.
83901         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83902         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83903         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83904         double-quote uses of that variable, to accommodate the rare case in
83905         which getmntent is available in none of the libraries checked.  This
83906         happens at least on FreeBSD 5.0.
83907
83908 2006-02-13  Simon Josefsson  <jas@extundo.com>
83909
83910         * gnulib-tool (Usage): Fix --import, from
83911         karl@freefriends.org (Karl Berry).
83912
83913 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83914
83915         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83916
83917 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83918
83919         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83920         "autoupdate" on 2005-12-12.
83921
83922 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83923
83924         * modules/closeout (Depends-on): Remove atexit.
83925
83926 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83927
83928         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83929         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83930
83931 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83932
83933         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83934         __EXTENSIONS__ if this causes compilation to fail.  Problem
83935         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83936         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83937
83938 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83941         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83942         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83943         All uses changed.
83944
83945 2006-01-26  Simon Josefsson  <jas@extundo.com>
83946
83947         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83948         prototype is visible on mingw32.
83949
83950         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83951         for mingw32.
83952
83953         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83954         mingw32).
83955
83956 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83959         attempt to open for write; this always fails, at least on POSIX
83960         hosts.  This reinstates the 2006-01-09 change, which was
83961         inadvertently removed.
83962
83963 2006-01-26  Bruno Haible  <bruno@clisp.org>
83964
83965         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83966         Reported by Paul Eggert.
83967
83968 2006-01-26  Bruno Haible  <bruno@clisp.org>
83969             Paul Eggert  <eggert@cs.ucla.edu>
83970
83971         * lib/stdbool_.h (_Bool)
83972         [(! (defined __cplusplus || defined __BEOS__)
83973           && !defined __GNUC__
83974           && !(defined __HP_cc || defined __xlc__
83975                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83976                || defined __sgi))]:
83977         #define to signed char in these cases too; this simplifies
83978         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83979         etc., separately) and makes it more conservative.
83980
83981 2006-01-25  Simon Josefsson  <jas@extundo.com>
83982
83983         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83984         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83985         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83986
83987 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83988
83989         * lib/argp-namefrob.h: Bugfix. Remove stray #
83990
83991 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83992
83993         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83994         so that we test the test.
83995         Check for yet another HP-UX cc bug involving *bool |= bool.
83996
83997 2006-01-25  Karl Berry  <karl@gnu.org>
83998
83999         * config/srclist.txt (vasnprintf.c): sync lost.
84000
84001 2006-01-25  Jim Meyering  <jim@meyering.net>
84002
84003         Sync from the stable (b5) branch of coreutils:
84004
84005         * lib/fts.c (fts_children): Don't let close() clobber errno from
84006         failed fchdir().
84007
84008         * lib/fts.c (fts_stat): When following a symlink-to-directory,
84009         don't necessarily interpret stat-fails+lstat-succeeds as indicating
84010         a dangling symlink.  That can also happen at least for ELOOP.
84011         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
84012         FYI, this bug predates the inclusion of fts.c in coreutils.
84013
84014         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
84015         in their own block, so pre-c99 compilers don't object.
84016
84017         Avoid the double-free (first in fts_read, second in fts_close) that
84018         would occur when an `active' directory is made inaccessible (e.g.,
84019         via chmod a-x) during a traversal.
84020         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84021         before returning.  Reproduce this failure by
84022         mkdir -p a/b; cd a; chmod a-x . b
84023         Reported by Stavros Passas.
84024
84025 2006-01-25  Jim Meyering  <jim@meyering.net>
84026
84027         * lib/fileblocks.c: Remove more useless parentheses.
84028         * lib/readutmp.h: Likewise.
84029
84030 2006-01-25  Bruno Haible  <bruno@clisp.org>
84031
84032         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
84033         warnings.
84034         Reported by Paul Eggert.
84035
84036 2006-01-25  Bruno Haible  <bruno@clisp.org>
84037
84038         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
84039         rid of a trap command. For Solaris sh.
84040         Reported by Mark D. Baushke <mdb@gnu.org>.
84041
84042 2006-01-24  Simon Josefsson  <jas@extundo.com>
84043
84044         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
84045         Bruno.
84046
84047 2006-01-24  Karl Berry  <karl@gnu.org>
84048
84049         * config/srclist.txt (argp-namefrob.h): sync lost.
84050
84051 2006-01-24  Jim Meyering  <jim@meyering.net>
84052
84053         * modules/openat (Files): Add lib/intprops.h.
84054         From Mark D. Baushke.
84055
84056 2006-01-24  Jim Meyering  <jim@meyering.net>
84057
84058         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
84059         Reported by Mark D. Baushke.
84060
84061 2006-01-24  Jim Meyering  <jim@meyering.net>
84062
84063         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
84064
84065 2006-01-24  Bruno Haible  <bruno@clisp.org>
84066
84067         * modules/strnlen (Maintainer): Change from glibc to all.
84068
84069 2006-01-24  Bruno Haible  <bruno@clisp.org>
84070
84071         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
84072         Patch by Paul Eggert.
84073
84074 2006-01-24  Bruno Haible  <bruno@clisp.org>
84075
84076         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
84077         already has it.
84078         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
84079         2005-11-26.
84080
84081         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
84082         'signed char' to avoid problems with the built-in _Bool type.
84083         Reported by Paul Eggert on 2005-11-26.
84084
84085 2006-01-24  Bruno Haible  <bruno@clisp.org>
84086
84087         * gnulib-tool (func_import): Avoid constructing complicated sed
84088         expressions inside backquote.
84089         Report and solution by Mark D. Baushke <mdb@gnu.org>.
84090
84091 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
84092
84093         These changes imported from libc.
84094         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
84095         test and two separate function calls.
84096         * lib/strndup.c (__strndup): Add libc_hidden_def.
84097
84098 2006-01-23  Simon Josefsson  <jas@extundo.com>
84099
84100         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
84101         Remove the test_*_SOURCES variable: automake infers it by default.
84102         * modules/tls-tests: Likewise.
84103
84104 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84105
84106         Work around porting bugs reported by Dieter in
84107         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
84108         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
84109         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
84110         Include "getopt.h" first, to check interface.
84111         (getenv): Declare only if defined HAVE_DECL_GETENV &&
84112         !HAVE_DECL_GETENV.
84113         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
84114         (__strndup): Revert to K&R-style function dfns, the glibc style.
84115         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
84116         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
84117         Include strnlen.h first, to get prototype properly.
84118         (strnlen): Renamed from __strnlen.
84119         Remove weak alias.
84120
84121 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84122
84123         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
84124
84125 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84126
84127         * config/srclist.txt: Adjust to reflect glibc reorganization.
84128         This affects only comments.
84129
84130 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84131
84132          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
84133          Reported by Bruce Korb <bkorb@gnu.org>.
84134
84135 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84136
84137         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
84138         to pacify gcc -Wswitch-default.
84139
84140 2006-01-22  Bruno Haible  <bruno@clisp.org>
84141
84142         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
84143         temporary buffer for sprintf, take into account the precision also
84144         for 'd', 'i', 'u', 'o', 'x', 'X'.
84145
84146 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84147
84148         * modules/argp-tests: New module
84149         * tests/test-argp.c: New file
84150         * tests/test-argp-2.sh: New file
84151
84152 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84153
84154         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84155         (__argp_base_name): Removed
84156         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84157         typo.
84158         (__argp_base_name): Provide macro definition or extern declaration
84159         depending on the configuration
84160
84161 2006-01-20  Simon Josefsson  <jas@extundo.com>
84162
84163         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84164
84165 2006-01-20  Simon Josefsson  <jas@extundo.com>
84166
84167         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84168
84169 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84170
84171         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84172         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84173         Suggested by Bruno Haible.
84174
84175 2006-01-20  Karl Berry  <karl@gnu.org>
84176
84177         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84178         until changes propagate, I guess.
84179
84180 2006-01-19  Simon Josefsson  <jas@extundo.com>
84181
84182         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84183
84184 2006-01-19  Simon Josefsson  <jas@extundo.com>
84185
84186         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84187
84188 2006-01-19  Simon Josefsson  <jas@extundo.com>
84189
84190         * gnulib-tool: Set check_PROGRAMS.
84191
84192         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84193         modules/des-tests, modules/gc-arcfour-tests,
84194         modules/gc-arctwo-tests, modules/gc-des-tests,
84195         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84196         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84197         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84198         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84199         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84200         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84201         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84202         test_*_SOURCES.
84203
84204 2006-01-18  Simon Josefsson  <jas@extundo.com>
84205
84206         * modules/socklen (Depends-on): Depend on sys_socket.
84207
84208 2006-01-18  Simon Josefsson  <jas@extundo.com>
84209
84210         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84211         modules/des-tests, modules/gc-arcfour-tests,
84212         modules/gc-arctwo-tests, modules/gc-des-tests,
84213         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84214         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84215         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84216         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84217         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84218         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84219         $(EXEEXT) to automake TESTS variable, for mingw32.
84220
84221 2006-01-17  Simon Josefsson  <jas@extundo.com>
84222
84223         * modules/socklen (Include): Need sys/socket.h.
84224
84225 2006-01-17  Bruno Haible  <bruno@clisp.org>
84226
84227         * modules/ssize_t (Include): Add <sys/types.h>.
84228
84229 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84230
84231         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84232         it's not portable and it doesn't work with cross-compiles.
84233         Problem reported by Bruno Haible.  Fix missing-$ typo in
84234         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84235         -zignore from being used with Sun's C compiler.
84236
84237 2006-01-12  Simon Josefsson  <jas@extundo.com>
84238
84239         * lib/base64.c: Fix warning, reported by Bruno Haible
84240         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84241
84242 2006-01-12  Bruno Haible  <bruno@clisp.org>
84243
84244         * modules/ldd: New file.
84245         * build-aux/ldd.sh.in: New file.
84246         * MODULES.html.sh (Support for building libraries and executables): Add
84247         ldd.
84248
84249 2006-01-12  Bruno Haible  <bruno@clisp.org>
84250
84251         * m4/ldd.m4: New file.
84252
84253 2006-01-12  Bruno Haible  <bruno@clisp.org>
84254
84255         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84256         endless loop while replacing $auxdir with build-aux.
84257
84258 2006-01-11  Simon Josefsson  <jas@extundo.com>
84259
84260         * lib/stdint_.h (SIZE_MAX): Add missing (.
84261
84262 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84263
84264         Sync from coreutils.
84265         * lib/md5.c: Fix commentary typos.
84266         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84267         * lib/md5.h (__attribute__): Remove; unused.
84268         * lib/sha1.c: Fix commentary to match md5 better.
84269         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84270         so that we don't need to worry about alignment.  All uses changed.
84271         This merges the 2005-10-28 md5 change into sha1.
84272
84273 2006-01-11  Jim Meyering  <jim@meyering.net>
84274
84275         Sync from coreutils.
84276         * lib/md5.c (OP): Fix spacing.
84277
84278 2006-01-11  Bruno Haible  <bruno@clisp.org>
84279
84280         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84281         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84282         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84283
84284 2006-01-11  Bruno Haible  <bruno@clisp.org>
84285
84286         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84287         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84288         the "early" section as well.
84289
84290 2006-01-11  Bruno Haible  <bruno@clisp.org>
84291
84292         Avoid "ar: no archive members specified" error on MacOS X.
84293         * gnulib-tool (func_modules_add_dummy): New function.
84294         (func_import, func_create_testdir): Invoke it.
84295
84296 2006-01-11  Bruno Haible  <bruno@clisp.org>
84297
84298         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84299         with $auxdir in AC_CONFIG_FILES statements.
84300
84301 2006-01-11  Bruno Haible  <bruno@clisp.org>
84302
84303         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84304         Initialize also noinst_HEADERS to empty.
84305
84306 2006-01-11  Bruno Haible  <bruno@clisp.org>
84307
84308         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84309         variables.
84310         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84311         autoreconf.
84312
84313 2006-01-11  Bruno Haible  <bruno@clisp.org>
84314
84315         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84316         overridable by the user.
84317         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84318
84319 2006-01-10  Simon Josefsson  <jas@extundo.com>
84320
84321         * modules/sys_socket: New file.
84322
84323 2006-01-10  Simon Josefsson  <jas@extundo.com>
84324
84325         * m4/sys_socket_h.m4: New file.
84326
84327 2006-01-10  Simon Josefsson  <jas@extundo.com>
84328
84329         * lib/socket_.h: New file.
84330
84331 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         * modules/readutmp (Maintainer): Add myself.
84334
84335 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84336
84337         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84338         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84339         People who are still concerned with buggy memcmp implementations
84340         can invoke gl_FUNC_MEMCMP themselves.
84341
84342 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * lib/regex_internal.h (BITSET_WORD_BITS):
84345         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84346         preprocessor mishandles large unsigned values as if they were signed.
84347         Problem reported by Claudio Fontana in
84348         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84349
84350 2006-01-10  Jim Meyering  <jim@meyering.net>
84351
84352         Avoid the double-free (first in fts_read, second in fts_close) that
84353         would occur when an `active' directory is made inaccessible (e.g.,
84354         via chmod a-x) during a traversal.
84355         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84356         before returning.  Reproduce this failure by
84357         mkdir -p a/b; cd a; chmod a-x . b
84358         Reported by Stavros Passas.
84359
84360         Sync from coreutils.
84361         * lib/sha1.c: Tweak grammar in a comment.
84362
84363 2006-01-10  Jim Meyering  <jim@meyering.net>
84364
84365         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84366         Patch by Joerg Sonnenberger.
84367
84368 2006-01-10  Bruno Haible  <bruno@clisp.org>
84369
84370         * modules/readutmp: Depend on module free.
84371         * modules/strtok_r: Depend on module restrict.
84372
84373 2006-01-10  Bruno Haible  <bruno@clisp.org>
84374
84375         * modules/gettext (configure.ac): Add an invocation of
84376         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84377
84378 2006-01-10  Bruno Haible  <bruno@clisp.org>
84379
84380         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84381         Reported by Werner Lemberg <wl@gnu.org>.
84382
84383 2006-01-10  Bruno Haible  <bruno@clisp.org>
84384
84385         * lib/localcharset.c: Update from GNU gettext.
84386
84387 2006-01-10  Bruno Haible  <bruno@clisp.org>
84388
84389         * lib/argp.h (__const): Remove macro. Use const instead.
84390         * lib/argp-fmtstream.h (__const): Likewise.
84391         * lib/glob_.h (__const): Remove macro.
84392         * lib/glob-libc.h: Use const instead of __const.
84393
84394 2006-01-10  Bruno Haible  <bruno@clisp.org>
84395
84396         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84397         variable.
84398         Needed to avoid an automake error regarding the 'gettext' module.
84399
84400 2006-01-09  Simon Josefsson  <jas@extundo.com>
84401
84402         * modules/inet_ntop (Depends-on): Add restrict.
84403
84404 2006-01-09  Simon Josefsson  <jas@extundo.com>
84405
84406         * modules/gc-rijndael-tests (License): Put under LGPL.
84407
84408         * modules/gc-des-tests (License): Likewise.
84409
84410         * modules/gc-arcfour-tests (License): Likewise.
84411
84412         * modules/gc-arctwo-tests (License): Likewise.
84413
84414         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84415
84416         * modules/gc-hmac-sha1-tests (Files): Likewise.
84417
84418         * modules/gc-hmac-md5-tests (License): Likewise.
84419
84420         * modules/gc-sha1-tests (License): Likewise.
84421
84422         * modules/gc-md5-tests (License): Likewise.
84423
84424         * modules/gc-md4-tests (License): Likewise.
84425
84426         * modules/gc-md2-tests (License): Likewise.
84427
84428         * modules/gc-tests (License): Likewise.
84429
84430         * modules/des-tests (License): Likewise.
84431
84432         * modules/md4-tests (License): Likewise.
84433
84434         * modules/md2-tests (License): Likewise.
84435
84436 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         Sync from coreutils:
84439
84440         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84441         * modules/lib-ignore: New file.
84442         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84443         chdir-safer.m4, lchmod.m4.
84444         * modules/openat: Add mkdirat.c, openat-priv.h.
84445
84446 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84447
84448         Sync from coreutils.
84449         * m4/lib-ignore.m4: New file.
84450         * m4/lchmod.m4: New file.
84451
84452 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84453
84454         Sync from coreutils.
84455         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84456         for write access: POSIX says that must fail.
84457         * lib/fts.c (diropen): Likewise.
84458         * lib/save-cwd.c (save_cwd): Likewise.
84459         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84460         well, for minor improvements on hosts that lack O_DIRECTORY.
84461         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84462         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84463         Fall back on chown if open failed with EACCES.
84464
84465         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84466         Report an error at compile-time if only a 1-second nominal clock
84467         resolution is found.
84468
84469         * lib/lchmod.h: New file.
84470         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84471         (make_dir_parents): Use lchown rather than chown, and
84472         lchmod rather than chmod.
84473
84474         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84475         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84476         "proc" reported by n0dalus.
84477
84478         * lib/mountlist.c: Include <limits.h>.
84479         (dev_from_mount_options)
84480         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84481         New function.  It no longer assumes "dev=" has the System V meaning
84482         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84483         (read_file_system_list)
84484         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84485         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84486         dev= in that case.
84487
84488         * lib/posixtm.h (PDS_PRE_2000): New macro.
84489         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84490         allow_century.  All usages changed.  Reject dates outside the range
84491         1969-1999 if PDS_PRE_2000 is used.
84492
84493 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         Sync from coreutils.
84496         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84497         (Time of day items): Mention the possibility of leap seconds.
84498         Problem reported by Dr. David Alan Gilbert.
84499
84500 2006-01-09  Jim Meyering  <jim@meyering.net>
84501
84502         Sync from coreutils.
84503
84504         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84505
84506         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84507
84508         * lib/modechange.c (mode_compile): Reject an invalid mode string
84509         that starts with an octal digit.  From Andreas Gruenbacher.
84510
84511         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84512         and dup to open_safer and dup_safer, respectively.
84513         (openat_permissive): Fix typo in comment.
84514
84515         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84516         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84517         (_): Remove; no longer needed.
84518         (openat): Renamed from rpl_openat; no need for rpl_openat
84519         since openat.h renames openat for us.
84520         Replace most of the body with a call to openat_permissive,
84521         to avoid duplicate code.
84522         Port to (probably hypothetical) environments were mode_t is
84523         wider than int.
84524         (openat_permissive): Require mode arg, so that we can check
84525         types better.  Put it just after flags.  Change cwd failure
84526         indicator from pointer-to-bool to pointer-to-errno-value.
84527         All callers changed.
84528         Invoke openat_save_fail and/or openat_restore_fail if
84529         cwd_errno is null, so that openat can call us.
84530         (openat_permissive, fdopendir, fstatat, unlinkat):
84531         Simplify errno handling to avoid some duplicate code,
84532         as it's OK to set errno on success.
84533         * lib/openat.h: Revamp code so that function macros depend on
84534         __OPENAT_PREFIX only, not also on AT_FDCWD.
84535         (openat_ro): Remove.  Caller changed to use openat_permissive.
84536         (openat_permissive): Now a macro, if not a function.
84537         (openat_restore_fail, openat_save_fail): Now always functions,
84538         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84539
84540         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84541         and openat.c.
84542         * lib/mkdirat.c: Include openat-priv.h.
84543         Remove definitions of macros defined therein.
84544         * lib/openat.c: Likewise.
84545
84546         * lib/mkdirat.c (mkdirat): New file and function.
84547         * lib/openat.h (mkdirat): Declare.
84548
84549         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84550
84551         * lib/openat.h (openat_permissive): Declare.
84552         (openat_ro): Define.
84553
84554         * lib/openat.c (EXPECTED_ERRNO): New macro.
84555         (openat_permissive): New function -- used in remove.c rewrite.
84556         (all functions): Set errno just before returning, only if there
84557         was an actual failure.
84558         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84559
84560         Emulate openat-family functions using Linux's procfs, if possible.
84561         Idea and some code based on Ulrich Drepper's glibc changes.
84562
84563         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84564         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84565         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84566         before falling back on save_cwd and restore_cwd.
84567         (fdopendir, fstatat, unlinkat): Likewise.
84568
84569         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84570         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84571
84572         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84573         as second argument to va_arg.  Otherwise, some versions of gcc
84574         warn that `if this code is reached, the program will abort'.
84575
84576 2006-01-09  Jim Meyering  <jim@meyering.net>
84577
84578         Sync from coreutils.
84579         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84580         Require openat-priv.h.
84581
84582 2006-01-09  Bruno Haible  <bruno@clisp.org>
84583
84584         * modules/strnlen (Include): Use strnlen.h.
84585
84586 2006-01-09  Bruno Haible  <bruno@clisp.org>
84587
84588         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84589
84590 2006-01-09  Bruno Haible  <bruno@clisp.org>
84591
84592         * lib/sysexit_.h (EX_OK): New macro.
84593         Suggested by Martin Lambers <marlam@marlam.de>.
84594
84595 2006-01-09  Bruno Haible  <bruno@clisp.org>
84596
84597         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84598         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84599
84600 2006-01-09  Bruno Haible  <bruno@clisp.org>
84601
84602         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84603         numbers.
84604
84605 2006-01-09  Bruno Haible  <bruno@clisp.org>
84606
84607         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84608         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84609         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84610         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84611
84612 2006-01-09  Bruno Haible  <bruno@clisp.org>
84613
84614         * build-aux/javacomp.sh.in: New file, moved from lib/.
84615         * modules/javacomp-script (Files): Update.
84616         (configure.ac): Add AC_CONFIG_FILES invocation.
84617         (EXTRA_DIST): Remove variable.
84618
84619         * build-aux/javaexec.sh.in: New file, moved from lib/.
84620         * modules/javaexec (Files): Update.
84621         (configure.ac): Add AC_CONFIG_FILES invocation.
84622         (EXTRA_DIST): Remove javaexec.sh.in.
84623
84624         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84625         * modules/csharpcomp-script (Files): Update.
84626         (configure.ac): Add AC_CONFIG_FILES invocation.
84627         (EXTRA_DIST): Remove variable.
84628
84629         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84630         * modules/csharpexec (Files): Update.
84631         (configure.ac): Add AC_CONFIG_FILES invocation.
84632         (EXTRA_DIST): Remove csharpexec.sh.in.
84633
84634 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84635
84636         Sync from coreutils.
84637
84638         Add POSIX ACL support
84639         * lib/acl.h (copy_acl, set_acl): Add declarations.
84640         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84641         systems other than Linux.
84642         (chmod_or_fchmod): New function: use fchmod when possible,
84643         and chmod otherwise.
84644         (file_has_acl): Add a POSIX ACL implementation, with a
84645         Linux-specific subcase.
84646         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84647         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84648         acls are unsupported.
84649         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84650         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84651         are unsupported.
84652
84653 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84654
84655         Sync from coreutils.
84656         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84657
84658 2006-01-07  Bruno Haible  <bruno@clisp.org>
84659
84660         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84661         gl_EARLY.
84662
84663 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84664
84665         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84666         Problem reported for Mingw by Mark Junker.
84667
84668 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84669
84670         * README: Gnulib normally doesn't generate a tarball.
84671
84672 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84673
84674         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84675         long int, not int, for nanosecond counts, so that people who are
84676         used to POSIX struct timespec won't be surprised.  Reported by Jim
84677         Meyering.
84678
84679 2005-12-28  Bruno Haible  <bruno@clisp.org>
84680
84681         * build-aux/config.rpath: Update from GNU gettext.
84682
84683 2005-12-16  Jim Meyering  <jim@meyering.net>
84684
84685         * modules/fprintftime: New module.
84686         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84687
84688 2005-12-16  Jim Meyering  <jim@meyering.net>
84689
84690         * m4/fprintftime.m4: New file.
84691
84692 2005-12-16  Jim Meyering  <jim@meyering.net>
84693
84694         * lib/fprintftime.c, lib/fprintftime.h: New files.
84695
84696 2005-12-15  Simon Josefsson  <jas@extundo.com>
84697
84698         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84699         new m4/socklen.m4.
84700
84701 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84702
84703         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84704         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84705
84706 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84707
84708         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84709         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84710         struct uparams is valid. Fall back to the default values if it is
84711         not.
84712
84713 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84714
84715         * modules/argp (Files): Add argp-pin.c
84716         (Depends-on): dirname
84717         (lib_SOURCES): Add argp-pin.c
84718
84719 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84720
84721         * m4/argp.m4:  Check if program_invocation_name and
84722         program_invocation_short_name are declared and define appropriate
84723         macros if they are not.
84724
84725 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84726
84727         * lib/argp-help.c (__argp_base_name): New function
84728         (__argp_short_program_name): Rewrite using __argp_base_name
84729         * lib/argp-namefrob.h: Define program_invocation_name and
84730         program_invocation_short_name if requested
84731         (__argp_base_name): Add prototype
84732         * lib/argp-parse.c (argp_def): Use gettext wrappers
84733         (argp_default_parser): Use __argp_base_name
84734         * lib/argp-pin.c: New file. Defines program_invocation_name and
84735         program_invocation_short_name on systems that lack them.
84736
84737 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84740         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84741         porting problem reported by Georg Schwarz in
84742         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84743
84744 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84745
84746         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84747         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84748         porting problem reported by Georg Schwarz in
84749         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84750
84751 2005-12-05  Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84754         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84755         Reported by Mark Junker <mjscod@gmx.de>.
84756
84757 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84758
84759         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84760         Use implementation from Albert Chin, with some
84761         comments/corrections by Stepan Kasal and myself.
84762
84763 2005-12-02  Bruno Haible  <bruno@clisp.org>
84764
84765         * gnulib-tool (func_import): Accept GPLed build tool modules when
84766         --lgpl is given.
84767         * modules/csharpcomp-script: New file.
84768         * modules/csharpcomp: Depend on it.
84769         * modules/javacomp-script: New file.
84770         * modules/javacomp: Depend on it.
84771         Suggested by Simon Josefsson.
84772
84773 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84774
84775         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84776         statement, to work around an HP-UX 10.20 compiler bug reported by
84777         Peter O'Gorman.
84778
84779 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84780
84781         * modules/savedir (Depends-on): Add openat.
84782
84783 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84784
84785         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84786         (uintmax_t) [defined uintmax_t]: Do not declare.
84787         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84788         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84789         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84790         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84791         sake of portability to weird hosts that C allows (though we don't
84792         know of any practical examples).
84793
84794         * lib/savedir.h (fdsavedir): New decl.
84795         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84796         contains most of the former guts of savedir.
84797         (savedir): Use savedirstream.
84798         Include "openat.h".
84799
84800 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84801
84802         * modules/obstack (Files): Add m4/ulonglong.m4.
84803         Problem reported by Davide Angelocola.
84804
84805 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84806
84807         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84808         coreutils no longer futzes with rounding modes.
84809
84810 2005-11-14  Jim Meyering  <jim@meyering.net>
84811
84812         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84813         replacement of mkstemp.
84814
84815 2005-11-10  Simon Josefsson  <jas@extundo.com>
84816
84817         * lib/readline.c: Remove EOL.
84818
84819 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84820
84821         * modules/gethrxtime (Depends-on): Add gettime.
84822
84823 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84824
84825         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84826         or gettimeofday; no longer needed.
84827
84828 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84831         time business.
84832         (gethrxtime) [! (HAVE_NANOUPTIME
84833         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84834         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84835         our own approximation.
84836
84837 2005-11-08  Eric Blake  <ebb9@byu.net>
84838
84839         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84840
84841 2005-11-08  Eric Blake  <ebb9@byu.net>
84842
84843         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84844
84845 2005-11-04  Bruno Haible  <bruno@clisp.org>
84846
84847         * gnulib-tool: Implement --update mode.
84848
84849 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84850
84851         Fix porting problem reported by Theodoros V. Kalamatianos.
84852         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84853         Don't assume that futimes failing means we must fail.
84854
84855 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84856
84857         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84858         variables to suggest the intended function of the PATH_MAX check.
84859
84860 2005-10-30  Kean Johnston  <jkj@sco.com>
84861
84862         Trivial changes to support SCO systems.
84863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84864         as PATH_MAX.
84865         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84866         where __ptr is null when no I/O is pending.
84867
84868 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84871         leave errno alone.  Problem reported by Dmitry V. Levin.
84872
84873 2005-10-28  Simon Josefsson  <jas@extundo.com>
84874
84875         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84876         Test more.
84877
84878         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84879
84880         * modules/md2, modules/md2-tests: New files.
84881
84882 2005-10-28  Simon Josefsson  <jas@extundo.com>
84883
84884         * m4/inet_ntop.m4: More tests.
84885
84886         * m4/gc-md2.m4, md2.m4: New file.
84887
84888 2005-10-28  Simon Josefsson  <jas@extundo.com>
84889
84890         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84891         "restrict" keywords, as per POSIX.  Protect the function
84892         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84893         Don't use K&R prototypes.  Check the sprintf return values.
84894         Re-define EAFNOSUPPORT if not present.  Indent.
84895
84896         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84897         suggested by Bruno Haible <bruno@clisp.org>.
84898
84899         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84900
84901         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84902
84903         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84904         libgcrypt).
84905
84906         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84907
84908         * lib/md2.h, lib/md2.c: New files.
84909
84910 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84911
84912         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84913         errno alone.  Problem reported by Frederic Jolliton.
84914
84915 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * modules/verify (License): Change from GPL to LGPL.  This is a
84918         tiny module and there are apparently near-equivalents that are
84919         under the BSD license.
84920
84921 2005-10-24  Simon Josefsson  <jas@extundo.com>
84922
84923         * modules/sha1: Relicense to LGPL.
84924
84925 2005-10-24  Simon Josefsson  <jas@extundo.com>
84926
84927         * lib/md4.h: Shrink buffer size, now that we changed the type.
84928
84929 2005-10-23  Simon Josefsson  <jas@extundo.com>
84930
84931         * gnulib-tool (func_import): Fix --tests-base.
84932
84933 2005-10-22  Simon Josefsson  <jas@extundo.com>
84934
84935         * modules/arcfour (Depends-on): Need stdint.
84936
84937 2005-10-22  Simon Josefsson  <jas@extundo.com>
84938
84939         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84940         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84941
84942 2005-10-22  Simon Josefsson  <jas@extundo.com>
84943
84944         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84945         suggested by Bruno Haible <bruno@clisp.org>.
84946
84947 2005-10-22  Simon Josefsson  <jas@extundo.com>
84948
84949         * lib/crc.h: Include stddef.h, for size_t.
84950
84951 2005-10-22  Simon Josefsson  <jas@extundo.com>
84952
84953         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84954         arcfour_context struct (simplify test vector testing in GNU
84955         Shishi).
84956
84957 2005-10-21  Simon Josefsson  <jas@extundo.com>
84958
84959         * modules/des, modules/des-tests: New files.
84960
84961         * modules/gc-des, modules/gc-des-tests: New files.
84962
84963         * tests/test-des.c, tests/test-gc-des.c: New file.
84964
84965 2005-10-21  Simon Josefsson  <jas@extundo.com>
84966
84967         * modules/arctwo, modules/arctwo-tests: New files.
84968
84969         * tests/test-arctwo.c: New file.
84970
84971         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84972
84973         * tests/test-gc-arctwo.c: New file.
84974
84975 2005-10-21  Simon Josefsson  <jas@extundo.com>
84976
84977         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84978         Bruno Haible <bruno@clisp.org>.
84979
84980         * m4/gc-des.m4: New file.
84981
84982 2005-10-21  Simon Josefsson  <jas@extundo.com>
84983
84984         * m4/arctwo.m4: New file.
84985
84986         * m4/gc-arctwo.m4: New file.
84987
84988 2005-10-21  Simon Josefsson  <jas@extundo.com>
84989
84990         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84991         block.
84992
84993 2005-10-21  Simon Josefsson  <jas@extundo.com>
84994
84995         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84996         <bruno@clisp.org>.
84997
84998         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84999
85000         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
85001         Bruno Haible <bruno@clisp.org>.
85002
85003         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
85004         <bruno@clisp.org>.
85005
85006 2005-10-21  Simon Josefsson  <jas@extundo.com>
85007
85008         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
85009
85010 2005-10-21  Simon Josefsson  <jas@extundo.com>
85011
85012         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
85013
85014 2005-10-21  Simon Josefsson  <jas@extundo.com>
85015
85016         * lib/des.h, lib/des.c: New files.
85017
85018         * lib/gc-gnulib.c: Support DES.c
85019
85020 2005-10-21  Simon Josefsson  <jas@extundo.com>
85021
85022         * lib/arctwo.h, lib/arctwo.c: New files.
85023
85024         * lib/gc-gnulib.c: Support ARCTWO.
85025
85026 2005-10-21  Simon Josefsson  <jas@extundo.com>
85027
85028         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
85029         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85030
85031 2005-10-21  Simon Josefsson  <jas@extundo.com>
85032
85033         * gnulib-tool (func_import, func_create_testdir): Define automake
85034         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
85035         Makefile.am snippet),
85036         suggested by Bruno Haible <bruno@clisp.org>.
85037
85038         * modules/gc (Makefile.am): Use it.
85039
85040 2005-10-21  Bruno Haible  <bruno@clisp.org>
85041
85042         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
85043         patch.
85044
85045 2005-10-19  Simon Josefsson  <jas@extundo.com>
85046
85047         * tests/test-gc-rijndael.c: New file.
85048
85049         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
85050
85051 2005-10-19  Simon Josefsson  <jas@extundo.com>
85052
85053         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
85054         interface too.
85055
85056 2005-10-19  Simon Josefsson  <jas@extundo.com>
85057
85058         * tests/test-gc-arcfour.c: New file.
85059
85060         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
85061
85062 2005-10-19  Simon Josefsson  <jas@extundo.com>
85063
85064         * modules/gc-md4, modules/gc-md4-tests: New file.
85065
85066         * tests/test-gc-md4.c: New file.
85067
85068 2005-10-19  Simon Josefsson  <jas@extundo.com>
85069
85070         * m4/gc-md4.m4: New file.
85071
85072 2005-10-19  Simon Josefsson  <jas@extundo.com>
85073
85074         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
85075         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
85076         <kasal@ucw.cz>.
85077
85078 2005-10-19  Simon Josefsson  <jas@extundo.com>
85079
85080         * m4/gc-arcfour.m4: New file.
85081
85082         * m4/gc-rijndael.m4: New file.
85083
85084 2005-10-19  Simon Josefsson  <jas@extundo.com>
85085
85086         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
85087
85088 2005-10-19  Simon Josefsson  <jas@extundo.com>
85089
85090         * lib/gc-gnulib.c: Support ARCFOUR.
85091
85092 2005-10-19  Simon Josefsson  <jas@extundo.com>
85093
85094         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
85095         support.
85096
85097         * lib/gc.h: Add ECB enum type.
85098
85099         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
85100
85101 2005-10-18  Simon Josefsson  <jas@extundo.com>
85102
85103         * tests/test-md5.c: New file.
85104
85105         * modules/md5-tests: New file.
85106
85107 2005-10-18  Simon Josefsson  <jas@extundo.com>
85108
85109         * tests/test-md4.c: New file.
85110
85111         * modules/md4, modules/md4-tests: New files.
85112
85113 2005-10-18  Simon Josefsson  <jas@extundo.com>
85114
85115         * m4/md4.m4: New file.
85116
85117 2005-10-18  Simon Josefsson  <jas@extundo.com>
85118
85119         * lib/md4.h, lib/md4.c: New files, based on md5.?.
85120
85121 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
85122
85123         * gnulib-tool (func_create_testdir): Omit the second check whether
85124         BUILT_SOURCES in nonempty.
85125
85126 2005-10-17  Simon Josefsson  <jas@extundo.com>
85127
85128         * tests/test-rijndael.c: New file.
85129
85130 2005-10-17  Simon Josefsson  <jas@extundo.com>
85131
85132         * modules/sha1: Depend on stdint instead of md5.
85133
85134         * modules/md5: Depend on stdint, remove uint32_t.
85135
85136 2005-10-17  Simon Josefsson  <jas@extundo.com>
85137
85138         * modules/gc-sha1-tests: New file.
85139
85140         * tests/test-gc-sha1.c: New file.
85141
85142 2005-10-17  Simon Josefsson  <jas@extundo.com>
85143
85144         * m4/md5.m4: Remove call to uint32_t.m4.
85145
85146 2005-10-17  Simon Josefsson  <jas@extundo.com>
85147
85148         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85149
85150         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85151         md5.h.
85152
85153         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85154
85155         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85156
85157 2005-10-17  Simon Josefsson  <jas@extundo.com>
85158
85159         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85160
85161 2005-10-17  Simon Josefsson  <jas@extundo.com>
85162
85163         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85164
85165 2005-10-17  Simon Josefsson  <jas@extundo.com>
85166
85167         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85168
85169         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85170
85171 2005-10-17  Bruno Haible  <bruno@clisp.org>
85172
85173         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85174         that it can also be used in a test.
85175
85176 2005-10-16  Bruno Haible  <bruno@clisp.org>
85177
85178         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85179         TESTS_ENVIRONMENT, so that individual tests can augment it.
85180
85181         * gnulib-tool (func_create_testdir): Use an intermediate target for
85182         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85183         macros, like $(ALLOCA_H), which cannot be passed through the command
85184         line.
85185
85186 2005-10-15  Simon Josefsson  <jas@extundo.com>
85187
85188         * modules/rijndael-tests: New file.
85189
85190         * modules/rijndael: New file.
85191
85192 2005-10-15  Simon Josefsson  <jas@extundo.com>
85193
85194         * m4/rijndael.m4: New file.
85195
85196 2005-10-15  Simon Josefsson  <jas@extundo.com>
85197
85198         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85199
85200         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85201
85202 2005-10-14  Simon Josefsson  <jas@extundo.com>
85203
85204         * tests/test-arcfour.c: New file.
85205
85206         * modules/arcfour, modules/arcfour-tests: New files.
85207
85208 2005-10-14  Simon Josefsson  <jas@extundo.com>
85209
85210         * m4/arcfour.m4: New file.
85211
85212 2005-10-14  Simon Josefsson  <jas@extundo.com>
85213
85214         * lib/arcfour.h, lib/arcfour.c: New files.
85215
85216 2005-10-14  Roland McGrath  <roland@redhat.com>
85217
85218         Import from libc.  [BZ #1331]
85219         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85220         macro argument.
85221         Reported by Matej Vela <vela@debian.org>.
85222
85223 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85226         include <wchar.h>; no longer needed.
85227
85228 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85231
85232 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85233         and  Ulrich Drepper  <drepper@redhat.com>
85234
85235         Import from libc.
85236         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85237         instead of inline stream orientation test and two separate
85238         function calls.  Pay no attention to USE_IN_LIBIO.
85239
85240 2005-10-13  Simon Josefsson  <jas@extundo.com>
85241
85242         * modules/gc-hmac-md5-tests: New file.
85243
85244         * tests/test-gc-hmac-sha1.c: New file.
85245
85246         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85247
85248         * modules/gc-hmac-md5-tests: New file.
85249
85250         * tests/test-gc-md5.c: New file.
85251
85252         * modules/gc-md5-tests: New file.
85253
85254 2005-10-13  Simon Josefsson  <jas@extundo.com>
85255
85256         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85257         Move memory allocation outside of loop.
85258
85259 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85260
85261         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85262         intermediate directory is in a read-only file system.  Problem
85263         reported by Eric Blake.
85264
85265 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85266
85267         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85268
85269 2005-10-12  Simon Josefsson  <jas@extundo.com>
85270
85271         * tests/test-hmac-sha1.c: New file.
85272
85273         * modules/hmac-sha1-tests: New file.
85274
85275         * modules/hmac-sha1: New file.
85276
85277 2005-10-12  Simon Josefsson  <jas@extundo.com>
85278
85279         * modules/gc-sha1: New file.
85280
85281 2005-10-12  Simon Josefsson  <jas@extundo.com>
85282
85283         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85284
85285         * tests/test-gc-pbkdf2-sha1.c: New file.
85286
85287 2005-10-12  Simon Josefsson  <jas@extundo.com>
85288
85289         * modules/gc-md5, modules/gc-hmac-md5: New files.
85290
85291         * modules/gc (Files): Remove md5, memxor and hmac files.
85292
85293 2005-10-12  Simon Josefsson  <jas@extundo.com>
85294
85295         * m4/gc-pbkdf2-sha1.m4: New file.
85296
85297         * m4/gc-hmac-sha1.m4: New file.
85298
85299         * m4/gc-sha1: New file.
85300
85301         * m4/hmac-sha1.m4: New file.
85302
85303 2005-10-12  Simon Josefsson  <jas@extundo.com>
85304
85305         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85306
85307         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85308
85309 2005-10-12  Simon Josefsson  <jas@extundo.com>
85310
85311         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85312         suggested by Bruno Haible <bruno@clisp.org>.
85313
85314 2005-10-12  Simon Josefsson  <jas@extundo.com>
85315
85316         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85317
85318 2005-10-12  Simon Josefsson  <jas@extundo.com>
85319
85320         * lib/gc-pbkdf2-sha1.c: New file.
85321
85322         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85323
85324 2005-10-12  Simon Josefsson  <jas@extundo.com>
85325
85326         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85327
85328         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85329
85330 2005-10-12  Simon Josefsson  <jas@extundo.com>
85331
85332         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85333         GC_USE_HMAC_MD5, respectively.
85334
85335         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85336         (gc_md5): Fix typo.
85337
85338         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85339
85340         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85341
85342         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85343
85344 2005-10-12  Bruno Haible  <bruno@clisp.org>
85345
85346         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85347         Reported by Stepan Kasal <kasal@ucw.cz>.
85348
85349 2005-10-11  Simon Josefsson  <jas@extundo.com>
85350
85351         * tests/test-crc.c: New file.
85352
85353         * modules/crc, modules/crc-tests: New files.
85354
85355 2005-10-11  Simon Josefsson  <jas@extundo.com>
85356
85357         * m4/crc.m4: New file.
85358
85359 2005-10-11  Simon Josefsson  <jas@extundo.com>
85360
85361         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85362
85363         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85364
85365         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85366
85367 2005-10-11  Simon Josefsson  <jas@extundo.com>
85368
85369         * lib/crc.h, lib/crc.c: New files.
85370
85371         * lib/gc.h (gc_hash_buffer): Add doc.
85372
85373 2005-10-11  Bruno Haible  <bruno@clisp.org>
85374
85375         * modules/c-strcasestr: New file.
85376         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85377
85378 2005-10-11  Bruno Haible  <bruno@clisp.org>
85379
85380         * modules/c-strcase: New file.
85381         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85382
85383 2005-10-11  Bruno Haible  <bruno@clisp.org>
85384
85385         * lib/strcasecmp.c: Include limits.h.
85386         (strcasecmp): Avoid integer overflow on exotic platforms.
85387         * lib/strncasecmp.c: Include limits.h.
85388         (strncasecmp): Avoid integer overflow on exotic platforms.
85389         Reported by Paul Eggert.
85390
85391 2005-10-11  Bruno Haible  <bruno@clisp.org>
85392
85393         * lib/c-strcasestr.h: New file, from GNU gettext.
85394         * lib/c-strcasestr.c: New file, from GNU gettext.
85395
85396 2005-10-11  Bruno Haible  <bruno@clisp.org>
85397
85398         * lib/c-strcase.h: New file, from GNU gettext.
85399         * lib/c-strcasecmp.c: New file, from GNU gettext.
85400         * lib/c-strncasecmp.c: New file, from GNU gettext.
85401
85402 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85403
85404         * modules/mempcpy (License): GPL -> LGPL.
85405         * modules/strchrnul (License): Likewise.
85406         * modules/sysexits (License): Likewise.
85407
85408 2005-10-08  Simon Josefsson  <jas@extundo.com>
85409
85410         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85411
85412 2005-10-07  Simon Josefsson  <jas@extundo.com>
85413
85414         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85415
85416 2005-10-06  Simon Josefsson  <jas@extundo.com>
85417
85418         * tests/test-hmac-md5.c: New file.
85419
85420         * modules/hmac-md5-tests: New file.
85421
85422         * modules/hmac-md5: New file.
85423
85424 2005-10-06  Simon Josefsson  <jas@extundo.com>
85425
85426         * m4/hmac-md5.m4: New file.
85427
85428         * m4/memxor.m4: Require gl_C_RESTRICT.
85429
85430 2005-10-06  Simon Josefsson  <jas@extundo.com>
85431
85432         * lib/memxor.c (memxor): Avoid casts and warnings.
85433
85434 2005-10-06  Simon Josefsson  <jas@extundo.com>
85435
85436         * lib/hmac-md5.c: New file.
85437
85438         * lib/hmac.h: New file.
85439
85440 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85441
85442         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85443         promotes to int, not unsigned int, to catch the AIX 5.3
85444         compiler bug.
85445
85446 2005-10-05  Simon Josefsson  <jas@extundo.com>
85447
85448         * modules/memxor: New file.
85449
85450         * modules/iconv (Files): Move config.rpath to havelib, it is used
85451         there.
85452
85453         * modules/havelib (Files): Add config.rpath.
85454
85455 2005-10-05  Simon Josefsson  <jas@extundo.com>
85456
85457         * m4/memxor.m4: New file.
85458
85459 2005-10-05  Simon Josefsson  <jas@extundo.com>
85460
85461         * lib/memxor.c (memxor): Fix compiler error.
85462
85463         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85464         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85465
85466         * lib/memxor.h, lib/memxor.c: New files.
85467
85468         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85469         we assume all systems have it, suggested by Jim Meyering
85470         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85471         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85472         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85473         same reasons.
85474
85475 2005-10-05  Simon Josefsson  <jas@extundo.com>
85476
85477         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85478
85479 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85480
85481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85482         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85483         needed, since the source code now assumes these .h files.
85484
85485 2005-10-05  Derek Price  <derek@ximbiot.com>
85486
85487         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85488
85489 2005-10-05  Bruno Haible  <bruno@clisp.org>
85490
85491         * modules/stdint (License): Change to LGPL.
85492
85493 2005-10-04  Simon Josefsson  <jas@extundo.com>
85494
85495         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85496         D. Baushke" <mdb@gnu.org>.
85497
85498 2005-10-04  Bruno Haible  <bruno@clisp.org>
85499
85500         * lib/verify.h (verify_true): Provide alternative definition for C++.
85501
85502 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85503
85504         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85505         (SSIZE_MAX): New macro, if not already defined.
85506         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85507         than 2 GiB.
85508
85509 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85510
85511         Sync from coreutils.
85512         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85513         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85514         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85515         ULLONG_MAX doesn't work with 2.7.2.1.
85516
85517 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85518
85519         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85520         From Ben Pfaff.
85521
85522         * modules/exclude (Depends-on): Depend on verify.
85523         * modules/strtoimax (Depends-on): Likewise.
85524         * modules/utimecmp (Depends-on): Likewise.
85525
85526 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85527
85528         * lib/exclude.c: Include verify.h.
85529         (verify): Remove.  All callers changed to use verify.h's version.
85530         * lib/strtoimax.c: Likewise.
85531         * lib/utimecmp.c: Likewis.e
85532
85533         Sync from coreutils.
85534         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85535         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85536         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85537         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85538         bother returning ENOSYS if settimeofday or stime fails; just let
85539         them return whatever errno they want to return.
85540         * lib/utimens.c: Include unistd.h, for dup2.
85541         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85542         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85543
85544 2005-10-02  Jim Meyering  <jim@meyering.net>
85545
85546         Sync from coreutils.
85547         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85548         from glibc-2.2.5 that fails for read-only files.
85549
85550 2005-10-02  Jim Meyering  <jim@meyering.net>
85551
85552         Sync from coreutils.
85553         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85554         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85555         `#if HAVE_CONFIG_H'.
85556         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85557         Remove AT_FDCWD test.
85558         Do not consume the fd unless successful.
85559         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85560         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85561         block, so that we don't even try to compile it if settimeofday is
85562         available.  This works around a compilation failure on OSF1 V5.1,
85563         due to stime requiring a `long int*' while tv_sec is `int'.
85564
85565 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85566
85567         Sync from coreutils.
85568         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85569         against `yes', rather than just testing for nonempty.
85570
85571 2005-10-01  Simon Josefsson  <jas@extundo.com>
85572
85573         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85574         and Darwin.
85575
85576         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85577         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85578         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85579         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85580         Check if struct addrinfo is declared.
85581
85582 2005-10-01  Simon Josefsson  <jas@extundo.com>
85583
85584         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85585         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85586         AI_* and EAI_* definitions.  Protect function declarations.
85587
85588 2005-10-01  Jim Meyering  <jim@meyering.net>
85589
85590         Sync from coreutils.
85591
85592         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85593         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85594         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85595         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85596         in the inet and nsl libraries.  Required on Solaris 5.7.
85597
85598 2005-10-01  Jim Meyering  <jim@meyering.net>
85599
85600         Sync from coreutils.
85601         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85602         in the inet and nsl libraries.  Required on Solaris 5.7.
85603
85604 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85605
85606         * lib/getdelim.c (getdelim): Remove unused variables.
85607
85608 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85609
85610         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85611         so that the code works even with ancient cpp.  Portability problem
85612         with GCC 2.7.2.1 reported by Thomas M.Ott.
85613
85614 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85615
85616         * modules/regex (Depends-on): Add strcase.
85617
85618         * modules/gethostname (Licence): Change from GPL to LGPL, since
85619         gethostname.c is a trivial implementation of a standard library
85620         function.
85621         * modules/poll (License): Change from GPL to LGPL, since it's
85622         derived from LGPL code.
85623
85624 2005-09-27  Jim Meyering  <jim@meyering.net>
85625
85626         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85627         HAVE_CONFIG_H.
85628
85629         * lib/intprops.h (signed_type_or_expr__): Define.
85630         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85631         for unsigned types.
85632
85633 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85634
85635         * lib/verify.h (verify_expr): Remove, replacing with:
85636         (verify_true): New macro that returns true instead of void.
85637         (verify_type__): Remove.
85638         (verify): Use verify_true rather than verify_type__.
85639
85640 2005-09-26  Bruno Haible  <bruno@clisp.org>
85641
85642         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85643         is necessary.
85644         (lib_SOURCES): Remove mbchar.c.
85645         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85646         (Files): Add m4/mbrtowc.m4.
85647         * modules/mbiter: Likewise.
85648         * modules/mbuiter: Likewise.
85649
85650 2005-09-26  Bruno Haible  <bruno@clisp.org>
85651
85652         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85653         compile mbchar.c if they are not both present.
85654         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85655         * m4/mbiter.m4 (gl_MBITER): Likewise.
85656         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85657         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85658         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85659
85660 2005-09-25  Jim Meyering  <jim@meyering.net>
85661
85662         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85663         also uses socklen_t.
85664
85665 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         * lib/utimens.c (ENOSYS): Define if not already defined.
85668         (futimens): Support having a null PATH if the file descriptor
85669         is nonnegative.
85670
85671         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85672         Remove.
85673         (__attribute): Define to empty unless GCC 3.1 or later.
85674         This works around a core dump on OpenBSD 3.4, which has GCC
85675         2.95.3, which dumps core when given __attribute__(()).  It also
85676         simplifies other tests, since we really don't want to bother with
85677         worrying about which ancient version of GCC supported what.
85678         Original problem reported by Yoann Vandoorselaere, with part of
85679         the fix suggested by Derek Price.
85680
85681 2005-09-24  Jim Meyering  <jim@meyering.net>
85682
85683         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85684         so we can once again use a positive bitfield width of 1 -- now we
85685         don't have to explain why we were using a bitfield width of 2.
85686
85687 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85688
85689         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85690         and similarly for the other external symbols.  Problem reported
85691         by James Gallager.
85692
85693         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85694         bug reported by Jim Meyering.
85695
85696         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85698         not needed, since socklen is a prerequisite module.
85699
85700 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85701
85702         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85703         Problem reported by Eric Blake.
85704         (getaddrinfo): Initialize se so that it's not garbage.
85705         Redo internal storage allocation so that it doesn't make unportable
85706         assumptions about alignment.
85707         Fix a memory leak.
85708
85709         * lib/utimens.c (futimens): Use futimesat if available.
85710         Prefer it to futimes since it doesn't have the futimes bug.
85711
85712         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85713         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85714         Instead, declare a function that returns a pointer to an array,
85715         and use verify_type__ to declare the size of the array.
85716         Problem and germ of a solution reported by Bruno Haible.
85717         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85718         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85719
85720 2005-09-23  Jim Meyering  <jim@meyering.net>
85721
85722         Sync from coreutils.
85723         Correct build failure (socklen_t not defined) on at least
85724         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85725         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85726
85727 2005-09-23  Jim Meyering  <jim@meyering.net>
85728
85729         * modules/getaddrinfo (Depends-on): Add socklen.
85730
85731 2005-09-23  Bruno Haible  <bruno@clisp.org>
85732
85733         * tests/test-verify.c: New file.
85734
85735 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85736
85737         Sync from coreutils.
85738
85739         * modules/argmatch (Depends-on): Add verify.
85740         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85741         unistd-safer.
85742         * modules/save-cwd (Depends-on): Likewise.
85743
85744         * modules/openat (Files): Add lib/openat-die.c.
85745         (Depends-on): Remove error, exitfail.
85746         Add dirname.
85747
85748         * modules/verify: New file.
85749         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85750         with "verify" module.
85751
85752 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85753
85754         Sync from coreutils.
85755
85756         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85757         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85758         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85759         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85760         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85761         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85762         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85763         Don't bother checking for string.h, stdlib.h, unistd.h.
85764         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85765         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85766         module's job.
85767         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85768         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85769
85770         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85771         (gl_GETDATE): Use it.
85772
85773         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85774
85775 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85776
85777         Sync from coreutils.
85778
85779         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85780         stat-time.h.
85781         * lib/argmatch.h: Include verify.h
85782         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85783         (ARGMATCH_ASSERT): Remove; unused.
85784         * lib/canonicalize.c: Assume STDC_HEADERS.
85785         * lib/exclude.c: Include "strcase.h".
85786         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85787         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85788         and stdio-safer.h.
85789         (getusershell): Call fopen, not fopen_safer.
85790         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85791         Do not include unistd-safer.h.
85792         (save_cwd): Don't call fd_safer; no longer needed
85793         now that we include fcntl--.h.
85794
85795         * lib/getdate.y (relative_time): New type.
85796         (RELATIVE_TIME_0): New constant.
85797         (parser_control): Use relative_time instead of doing it ourselves.
85798         (%union): Add new relative_time rel member.
85799         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85800         Now typeless.
85801         (relunit, relunit_snumber): Now of type rel.
85802         (zone, rel, relunit, get_date): Adjust to above changes.
85803
85804         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85805         Do not include unistd-safer.h.
85806         (getloadavg): Don't call fd_safer; no longer needed
85807         now that we include fcntl--.h.
85808
85809         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85810         (make_dir_parents): Treat ENOSYS like EEXIST.
85811
85812         Improve quality of diagnostics on restore_cwd failure.
85813         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85814         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85815         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85816         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85817         each time through the loop.  Do not diagnose restore_cwd failure;
85818         that is the caller's job (and perhaps the caller does not care).
85819
85820         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85821         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85822         If the file already exists but is not a directory, don't bother
85823         to try to make its parents.
85824         Close potential file descriptor leak if we can't chdir("/") (!).
85825         Don't always return true if chdir($PWD) fails; return true only
85826         if the requested action was done successfully (except for the
85827         chdir($PWD)).
85828         Don't log final directory unless we actually made it.
85829         Refactor to avoid duplicate code to fix up permissions.
85830         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85831
85832         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85833         to make it a bit faster and (I hope) clearer.
85834         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85835         Fix bug in formats like %2N.
85836
85837         * lib/verify.h: New file.
85838
85839 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85840
85841         Sync from coreutils.
85842         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85843
85844 2005-09-22  Jim Meyering  <jim@meyering.net>
85845
85846         Sync from coreutils.
85847
85848         * m4/lstat.m4 (gl_FUNC_LSTAT):
85849         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85850         Remove obsolete comment.
85851         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85852         * m4/xstrtod.m4: Likewise.
85853
85854         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85855
85856 2005-09-22  Jim Meyering  <jim@meyering.net>
85857
85858         Sync from coreutils.
85859
85860         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85861
85862         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85863         the .tm_year member, since otherwise gcc-4.0 would now warn about
85864         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85865
85866         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85867         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85868
85869         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85870         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85871         when run in a time zone for which daylight savings time is in effect
85872         for the starting date.
85873
85874         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85875         stop us from restricting permissions of just-created absolute-named
85876         directories.
85877         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85878         to restore initial working directory.
85879         * lib/mkdir-p.c (make_dir_parents): New parameter:
85880         different_working_dir, to tell caller if/when we change the working
85881         directory and are unable to return to the initial one.
85882         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85883         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85884         `return false'.  This fixes a bug introduced on 2004-07-30.
85885
85886         * lib/openat.c (fdopendir): Be sure to close the supplied
85887         file descriptor before returning.  This makes our replacement
85888         implementation a little closer to Solaris's, where fdopendir
85889         ties the file descriptor to the returned DIR* pointer.
85890         * lib/openat.c (unlinkat): New function.
85891         * lib/openat.h (unlinkat): Add prototype.
85892         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85893         (openat_restore_fail): Rename from openat_restore_die.
85894         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85895
85896         Provide an alternative to exiting immediately upon save_cwd or
85897         restore_cwd failure.  Now, an application can arrange e.g.,
85898         to perform a longjump in that case.
85899         * lib/openat.c: Include dirname.h.
85900         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85901         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85902         and openat_restore_die rather than calling error directly.
85903         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85904
85905         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85906         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85907         define.
85908
85909         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85910         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85911                             int utc, int nanoseconds);
85912         Background:
85913         date should not have to allocate a megabyte of virtual memory to
85914         handle a format argument like +%1048575T.  When implemented with
85915         strftime, it must allocate such a buffer, use strftime to fill it
85916         in, print it, then free it.
85917         With fprintftime, it simply prints everything and exits.
85918         With no need for memory allocation, that's one fewer way to fail.
85919         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85920         optional field width, not before, so we accept %9:z, not %:9z.
85921         (my_strftime): Be sure to use L_('x') for literals.
85922
85923         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85924         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85925         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85926         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85927         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85928         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85929         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85930         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85931         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85932         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85933         * lib/xgethostname.c, lib/xreadlink.c:
85934         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85935
85936         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85937         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85938         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85939         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85940         and don't include <sys/file.h>).
85941
85942 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85943
85944         Sync from coreutils.
85945
85946         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85947         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85948         [!LDAV_DONE]: Avoid unused variable warning.
85949
85950 2005-09-21  Bruno Haible  <bruno@clisp.org>
85951
85952         * lib/unicodeio.h (unicode_to_mb): New declaration.
85953
85954 2005-09-20  Derek Price  <derek@ximbiot.com>
85955
85956         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85957         getaddrinfo.h.
85958
85959 2005-09-20  Bruno Haible  <bruno@clisp.org>
85960
85961         * gnulib-tool: Remove trailing slashes from the values specified for
85962         --source-base, --m4-base, --tests-base, --aux-dir.
85963         Suggested by Simon Josefsson <jas@extundo.com>.
85964
85965 2005-09-20  Bruno Haible  <bruno@clisp.org>
85966
85967         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85968         func_modules_to_filelist, func_import, func_create_testdir): Make all
85969         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85970         change when gnulib-tool is invoked in a different locale.
85971
85972 2005-09-19  Simon Josefsson  <jas@extundo.com>
85973
85974         * m4/socklen.m4: Fix typo.
85975
85976 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85977
85978         Use a consistent style for including <config.h>.
85979         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85980         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85981         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85982         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85983         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85984         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85985         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85986         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85987         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85988         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85989         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85990         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85991         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85992         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85993         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85994         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85995         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85996         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85997         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85998         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85999         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
86000         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
86001         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
86002         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
86003         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
86004         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
86005         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
86006         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
86007         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
86008         lib/xstrtoumax.c, lib/yesno.c:
86009         Standardize inclusion of config.h.
86010         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
86011         lib/inttostr.h:  Removed inclusion of config.h from header files.
86012         * lib/inttostr.c:  Adjusted in-tree users.
86013         * lib/timespec.h: Remove superfluous warning to include config.h.
86014         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
86015         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
86016         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
86017         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
86018         config.h with HAVE_CONFIG_H.
86019
86020 2005-09-19  Jim Meyering  <jim@meyering.net>
86021
86022         * modules/pathmax (License): Change to LGPL.
86023
86024 2005-09-19  Derek Price  <derek@ximbiot.com>
86025
86026         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
86027
86028 2005-09-19  Bruno Haible  <bruno@clisp.org>
86029
86030         * gnulib-tool (import): Provide default for --tests-base.
86031
86032 2005-09-19  Bruno Haible  <bruno@clisp.org>
86033
86034         * doc/quote.texi: New file, extracted from gnulib.texi.
86035         * doc/ctime.texi: New file, extracted from gnulib.texi.
86036         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
86037         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
86038         * doc/gnulib.texi: Include them.
86039
86040 2005-09-18  Bruno Haible  <bruno@clisp.org>
86041
86042         Portability fix.
86043         * gnulib-tool (func_readlink): New function.
86044         (func_ln_if_changed): Use it.
86045
86046 2005-09-18  Bruno Haible  <bruno@clisp.org>
86047
86048         * gnulib-tool: Support --with-tests also with --import.
86049         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
86050         (func_import): Use variables $testsbase and $inctests. Emit a
86051         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
86052         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
86053         SUBDIRS += $testsdir.
86054         (func_create_testdir): Update.
86055
86056 2005-09-18  Bruno Haible  <bruno@clisp.org>
86057
86058         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
86059         instead of $dry_run.
86060         (func_cp_if_changed, func_mv_if_changed): Remove functions.
86061         (func_ln_if_changed): Don't handle dry-run here.
86062         (func_import): In dry-run mode, detect more precisely which actions
86063         would be performed, and don't use "...ing" verbs.
86064
86065 2005-09-18  Bruno Haible  <bruno@clisp.org>
86066
86067         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
86068         (func_import): Use join on two temporary files instead of three nested
86069         loops, in order to determine which files are new or old.
86070
86071 2005-09-18  Bruno Haible  <bruno@clisp.org>
86072
86073         * gnulib-tool (func_import): Comment out code that spits out the
86074         new files with --dry-run.
86075
86076 2005-09-18  Bruno Haible  <bruno@clisp.org>
86077
86078         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
86079
86080 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86081
86082         * lib/stat-time.h: New file.
86083         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
86084         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
86085         in a different way.
86086         (timespec_cmp): New function.
86087         * lib/utimecmp.c: Include stat-time.h.
86088         (SYSCALL_RESOLUTION): Depend on whether various struct stat
86089         members exist, not on the obsolescent ST_MTIM_NSEC.
86090         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
86091
86092 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86093
86094         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
86095
86096 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86097
86098         * MODULES.html.sh (File system functions): Add stat-time.
86099         * modules/stat-time: New file.
86100         * modules/timespec (Files): Remove m4/st_mtim.m4; this
86101         is now done in a different way, by the stat-time module.
86102         * modules/utimecmp (Depends-on): Add stat-time.
86103
86104 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
86105
86106         * m4/st_mtim.m4: Remove.  Superseded by...
86107         * m4/stat-time.m4: New file.
86108         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
86109         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
86110
86111 2005-09-15  Derek Price  <derek@ximbiot.com>
86112
86113         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
86114
86115 2005-09-15  Derek Price  <derek@ximbiot.com>
86116
86117         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
86118         * lib/regex_internal.c: Ditto, using this...
86119         (__GNUC_PREREQ): ...new macro.
86120         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
86121         using...
86122         (__GNUC_PREREQ): ...this new macro.
86123
86124         * lib/strstr.h: Include string.h. Define strstr as a macro here.
86125
86126 2005-09-15  Derek Price  <derek@ximbiot.com>
86127             Paul Eggert  <eggert@cs.ucla.edu>
86128
86129         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
86130         changes, consolidating in...
86131         * lib/regex_internal.h: ...this file.
86132
86133 2005-09-13  Jim Meyering  <jim@meyering.net>
86134
86135         * lib/canon-host.c: Filter through gnu indent and reword comments
86136         slightly.
86137         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
86138
86139 2005-09-13  Derek Price  <derek@ximbiot.com>
86140
86141         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
86142         failure.
86143         Reported by Jim Meyering  <jim@meyering.net>.
86144
86145 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86146
86147         * lib/base64.c: Typo.
86148         (base64_encode): Put b64str in initialized data section.
86149
86150 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86151
86152         Merge glibc and coreutils changes into gnulib, plus a few
86153         extra fixes.
86154         * lib/md5.c: Use #error rather than a string.
86155         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86156         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86157         (__attribute__): Define to empty for non recent-GCC.
86158         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86159         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86160         Renamed from their non-__ counterparts, with new macros replacing
86161         them if not _LIBC.  Add __THROW attribute.
86162         (rol): Remove.
86163         (struct md5_ctx): Align buffer if using GCC.
86164         * lib/sha1.h (struct sha1_ctx): Likewise.
86165         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86166         The old name was backwards.
86167         (NOTSWAP): Remove; not used.
86168         (rol): New macro, moved here from md5.h.
86169         (sha1_process_block): Remove a FIXME that doesn't make sense.
86170
86171 2005-09-12  Derek Price  <derek@ximbiot.com>
86172
86173         Return usable errors from canon-host.
86174         * lib/canon-host.h: New file.
86175         * lib/canon-host.c (canon_host): Wrap...
86176         (canon_host_r): ...this new function, which now relies exclusively on
86177         getaddrinfo.
86178         (ch_strerror): New function.
86179         (last_cherror): New global.
86180         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86181         interface.
86182         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86183         void *.
86184         (freeaddrinfo): Free ai->ai_canonname when set.
86185
86186 2005-09-12  Derek Price  <derek@ximbiot.com>
86187
86188         Make canon-host require getaddrinfo.
86189         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86190         AC_LIBSOURCE canon-host.h.  Call...
86191         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86192         gl_GETADDRINFO.
86193         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86194
86195 2005-09-12  Derek Price  <derek@ximbiot.com>
86196
86197         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86198         LGPL.
86199         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86200
86201 2005-09-12  Derek Price  <derek@ximbiot.com>
86202
86203         * lib/gai_strerror.c: Include config.h when available.  Include
86204         getaddrinfo.h before other headers to test interface.
86205         Reported by Larry Jones <lawrence.jones@ugs.com>.
86206
86207 2005-09-12  Derek Price  <derek@ximbiot.com>
86208             Paul Eggert  <eggert@cs.ucla.edu>
86209
86210         * modules/glob (Files): Add glob-libc.h.
86211
86212 2005-09-12  Derek Price  <derek@ximbiot.com>
86213             Paul Eggert  <eggert@cs.ucla.edu>
86214
86215         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86216         glob_.h, glob-libc.h.
86217         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86218
86219 2005-09-12  Derek Price  <derek@ximbiot.com>
86220             Paul Eggert  <eggert@cs.ucla.edu>
86221
86222         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86223         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86224         protecting things that should be done only in gnulib contexts.
86225         * lib/glob_.h: New file, containing only the glob things needed for
86226         gnulib.
86227         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86228         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86229         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86230         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86231         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86232         and to respect the namespace rules better.
86233
86234 2005-09-08  Simon Josefsson  <jas@extundo.com>
86235
86236         * modules/socklen: New file.
86237
86238 2005-09-08  Simon Josefsson  <jas@extundo.com>
86239
86240         * m4/socklen.m4: New file.
86241
86242 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86243
86244         * modules/utimens (Files): Add m4/utimbuf.m4, since
86245         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86246         Reported by Sergey Poznyakoff.
86247
86248 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86249
86250         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86251         definitions, since that's the preferred style in glibc.
86252         Fix a minor spacing issue, and update copyright notice to match
86253         glibc's.
86254
86255 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86256
86257         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86258
86259 2005-09-06  Simon Josefsson  <jas@extundo.com>
86260
86261         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86262         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86263
86264 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86265
86266         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86267         warning.
86268
86269 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86270
86271         * config/srclist.txt: Add glibc bug 1302.
86272
86273 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86274
86275         Change bitset word type from unsigned int to unsigned long int,
86276         as this has better performance on typical 64-bit hosts.
86277         Port bitset code to hosts with unusual word sizes.
86278         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86279         (build_collating_symbol):
86280         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86281         argument is a bitset.  This is merely a style issue, but it makes
86282         it clearer that an entire array is expected.
86283         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86284         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86285         Port to the case where bitset_word is not the same as unsigned int.
86286         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86287         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86288         Likewise.
86289         * lib/regexec.c (check_dst_limits_calc_pos_1,
86290         check_subexp_matching_top):
86291         (build_trtable, group_nodes_into_DFAstates):
86292         Likewise.
86293         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86294         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86295         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86296         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86297         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86298         * lib/regcomp.c (optimize_subexps, lower_subexp):
86299         Work even if bitset_word has holes in its bitwise representation.
86300         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86301         * lib/regexec.c (check_dst_limits_calc_pos_1,
86302         check_subexp_matching_top):
86303         Likewise.
86304         * lib/regex_internal.c (re_string_reconstruct):
86305         Don't assume UCHAR_MAX == 255.
86306         * lib/regex_internal.h (bitset_set_all): Likewise.
86307         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86308         All uses changed.
86309         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86310         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86311         All uses changed.
86312         (BITSET_WORD_MAX): New macro.
86313         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86314         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86315         (bitset_empty, bitset_copy):
86316         Prefer sizeof (bitset) to multiplying it out ourselves.
86317         (bitset_not_merge): Remove; unused.
86318         (bitset_contain): Return bool, not unsigned int with one bit on.
86319         All callers changed.
86320         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86321         alignment than re_node_set; do this by defining a new internal
86322         type struct dests_alloc and using it to allocate memory.
86323
86324 2005-09-05  Bruno Haible  <bruno@clisp.org>
86325
86326         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86327         links.
86328
86329 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86330
86331         * modules/size_max (Makefile.am): Add size_max.h
86332
86333 2005-09-04  Derek Price  <derek@ximbiot.com>
86334
86335         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86336
86337 2005-09-03  Simon Josefsson  <jas@extundo.com>
86338
86339         * gnulib-tool: Fix typo.
86340
86341 2005-09-03  Simon Josefsson  <jas@extundo.com>
86342
86343         * config/srclist.txt: Add glibc bug 1293.
86344
86345 2005-09-03  Derek Price  <derek@ximbiot.com>
86346
86347         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86348         From Larry Jones <lawrence.jones@ugs.com>.
86349
86350 2005-09-02  Simon Josefsson  <jas@extundo.com>
86351
86352         * modules/socklen: New file.
86353
86354 2005-09-02  Simon Josefsson  <jas@extundo.com>
86355
86356         * modules/havelib: New module.
86357
86358         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86359         Use havelib.
86360
86361 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         Check for arithmetic overflow when calculating sizes, to prevent
86364         some buffer-overflow issues.  These patches are conservative, in the
86365         sense that when I couldn't determine whether an overflow was possible,
86366         I inserted a run-time check.
86367         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86368         macros.
86369         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86370         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86371         (re_xnrealloc, re_x2nrealloc): New inline functions.
86372         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86373         parse_bracket_exp):
86374         (build_equiv_class, build_charclass): Check for arithmetic overflow
86375         in size expression calculations.
86376         * lib/regex_internal.c (re_string_realloc_buffers):
86377         (build_wcs_upper_buffer, re_node_set_add_intersect):
86378         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86379         (re_dfa_add_node, register_state): Likewise.
86380         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86381         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86382         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86383         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86384
86385 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86386
86387         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86388         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86389
86390 2005-09-02  Bruno Haible  <bruno@clisp.org>
86391
86392         Support for lib vs. lib64 distinction on biarch platforms.
86393         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86394         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86395         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86396
86397 2005-09-02  Bruno Haible  <bruno@clisp.org>
86398
86399         * gnulib-tool (import): In the other first-use case, provide defaults
86400         as well.
86401
86402 2005-09-02  Bruno Haible  <bruno@clisp.org>
86403
86404         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86405         patches not yet found in the latest gettext release.
86406
86407 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86408
86409         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86410         to avoid a collision with bits/local_lim.h in glibc.
86411         All uses changed.  Problem reported by Dmitry V. Levin in
86412         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86413
86414         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86415         bugs in int versus size_t comparisons.
86416         (re_string_context_at): Fix bug where the code assumed that
86417         Idx is signed.
86418
86419         Use bool where appropriate.
86420         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86421         All callers changed.
86422         (calc_eclosure_iter): Likewise, for ROOT arg.
86423         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86424         (build_charclass_op): Likewise, for NON_MATCH arg.
86425         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86426         (re_string_construct_common): Likewise, for ICASE arg.
86427         * lib/regexec.c (re_search_2_stub, re_search_stub):
86428         Likewise, for RET_LEN arg.
86429         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86430         (set_regs): Likewise, for FL_BACKTRACK arg.
86431         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86432         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86433         (calc_eclosure_iter, parse_bracket_exp):
86434         Use bool for internal variables that are booleans.
86435         * lib/regexec.c (re_search_internal, check_matching,
86436         proceed_next_node):
86437         (set_regs, build_sifted_states, sift_states_bkref):
86438         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86439         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86440         (find_collation_sequence_value):
86441         Likewise.
86442         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86443         (re_node_set_compare):
86444         Return bool, not int. All callers changed.
86445         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86446         (build_trtable, check_node_accept): Likewise.
86447         * lib/regex_internal.h: Include stdbool.h.
86448
86449         Fix bugs uncovered when converting to bool.
86450         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86451         failure instead of charging ahead blindly.
86452         * lib/regex_internal.c (register_state): Likewise.
86453         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86454         for freeing internal storage.
86455         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86456         bitset pieces used as boolean, to avoid undefined behavior
86457         on hosts that do int overflow checking.
86458
86459 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86460
86461         * config/srclist.txt: Add glibc bugs 1285-1287.
86462
86463 2005-09-01  Jim Meyering  <jim@meyering.net>
86464
86465         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86466         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86467         Require gl_STAT_MACROS, too.
86468
86469 2005-09-01  Bruno Haible  <bruno@clisp.org>
86470
86471         * gnulib-tool (import): In the first-use case, provide defaults.
86472
86473 2005-09-01  Bruno Haible  <bruno@clisp.org>
86474
86475         * gnulib-tool (func_import): Remove the .tmp files.
86476
86477 2005-09-01  Bruno Haible  <bruno@clisp.org>
86478
86479         * gnulib-tool (func_import): Fix handling of symbolic links.
86480
86481 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86484         old glibc regex code mishandles strings longer than 2**31 bytes.
86485         This patch fixes this when the regex code is used in gnulib
86486         (i.e., outside glibc).
86487
86488         This patch should not affect the use of the regex code inside
86489         glibc.  No doubt this problem also needs to be handled for glibc
86490         as well, but the result will be an incompatible change to the
86491         glibc ABI, and the old ABI will have to be supported too.  That
86492         can be the the subject for another patch.
86493
86494         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86495         governing whether the rest of this patch is active.  By default,
86496         the macro is disabled and the patch has no effect.
86497         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86498         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86499         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86500         (re_match_2, re_set_registers): Use the new types.
86501         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86502         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86503         New macros.
86504         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86505         (re_string_context_at, bin_tree_t, re_dfastate_t):
86506         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86507         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86508         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86509         (re_string_char_size_at, re_string_wchar_at):
86510         (re_string_elem_size_at):
86511         Use the new types and macros to port to 64-bit hosts.
86512         Use unsigned types for internal values, so that the code
86513         mostly works even for arrays larger than SSIZE_MAX.
86514         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86515         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86516         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86517         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86518         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86519         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86520         (calc_inveclosure, parse_dup_op, build_range_exp):
86521         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86522         (fetch_number, create_token_tree, mark_opt_subexp):
86523         Likewise.
86524         * lib/regex_internal.c (re_string_construct_common,
86525         create_ci_newstate):
86526         (create_cd_newstate, re_string_allocate, re_string_construct):
86527         (re_string_realloc_buffers, build_wcs_upper_buffer):
86528         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86529         (re_string_reconstruct, re_string_peek_byte_case):
86530         (re_string_fetch_byte_case, re_string_context_at):
86531         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86532         (re_node_set_init_copy, re_node_set_add_intersect):
86533         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86534         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86535         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86536         (re_acquire_state, re_acquire_state_context, register_state):
86537         Likewise.
86538         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86539         search_cur_bkref_entry):
86540         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86541         (re_search_internal, re_search_2_stub, re_search_stub)
86542         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86543         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86544         (update_cur_sifted_state, check_dst_limits):
86545         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86546         (check_subexp_limits, sift_states_bkref, merge_state_array):
86547         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86548         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86549         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86550         (expand_bkref_cache, check_node_accept_bytes):
86551         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86552         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86553         (acquire_init_state_context, check_halt_node_context):
86554         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86555         (sift_states_backward, clean_state_log_if_needed):
86556         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86557         (find_recover_state, transit_state_sb, transit_state_mb):
86558         (transit_state_bkref, build_trtable, match_ctx_clean):
86559         Likewise.
86560         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86561         to work around an assumption that REG_MISSING is negative.
86562
86563         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86564         (seek_collating_symbol_entry) [defined _LIBC]:
86565         (lookup_collation_sequence_value) [defined _LIBC]:
86566         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86567         Use prototypes rather than old-style function definitions.
86568         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86569         (transit_state_sb) [0]:
86570         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86571
86572         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86573         rm_eo.
86574
86575         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86576         (optimize_subexps, lower_subexp):
86577         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86578         since the signed shift might overflow.  Use 1u<<31 instead.
86579         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86580         Likewise.
86581         * lib/regexec.c (check_dst_limits_calc_pos_1,
86582         check_subexp_matching_top): Likewise.
86583
86584         * lib/regcomp.c (optimize_subexps, lower_subexp):
86585         Use CHAR_BIT rather than 8, for clarity.
86586         * lib/regexec.c (check_dst_limits_calc_pos_1):
86587         (check_subexp_matching_top): Likewise.
86588         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86589         have to worry about portability issues when shifting it left.
86590         Remove no-longer-needed test for table_size > 0.
86591         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86592         in a word, as the resulting behavior is undefined.
86593         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86594         in one case, a <= should have been an <, and in another case the
86595         whole test was missing.
86596         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86597         the standard name CHAR_BIT.
86598         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86599         this is not true on one's complement and signed-magnitude hosts.
86600
86601         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86602         next_last_offset.
86603         (struct re_dfa_t): Remove unused member states_alloc.
86604         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86605
86606 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86607
86608         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86609         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86610         and large-file glibc and in 32-bit large-file Solaris.
86611
86612 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86613
86614         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86615         lengths fit in regoff_t; this isn't true if regoff_t is the same
86616         width as size_t.
86617         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86618         (= START + RANGE) instead of RANGE.  This avoids overflow
86619         problems when regoff_t is the same width as size_t.
86620         All callers changed.
86621         (re_search_2_stub): Check for overflow when adding the
86622         sizes of the two strings.
86623         (re_search_stub): Check for overflow when adding START
86624         to RANGE; if it occurs, substitute the extreme value.
86625
86626 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86627
86628         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86629
86630 2005-08-31  Jim Meyering  <jim@meyering.net>
86631
86632         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86633         a pointer-to-const.
86634         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86635         (register_state): Likewise.
86636         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86637         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86638         (group_nodes_into_DFAstates): Likewise.
86639
86640 2005-08-31  Jim Meyering  <jim@meyering.net>
86641
86642         * check-module: Add a FIXME comment.
86643
86644 2005-08-31  Eric Blake  <ebb9@byu.net>
86645
86646         * modules/unistd-safer (Files): Add unistd--.h.
86647         * modules/stdio-safer (Files): Add stdio--.h.
86648
86649 2005-08-31  Derek Price  <derek@ximbiot.com>
86650
86651         * lib/getdelim.c (getdelim): Return EOF on EOF.
86652         Reported by Larry Jones <lawrence.jones@ugs.com>.
86653
86654 2005-08-31  Bruno Haible  <bruno@clisp.org>
86655
86656         Avoid unnecessary diffs in the generated lib/Makefile.am.
86657         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86658         the generated files.
86659         (func_import): Don't set cmd.
86660
86661 2005-08-31  Bruno Haible  <bruno@clisp.org>
86662
86663         * lib/strstr.c: Include <stddef.h>, for NULL.
86664         * lib/strcasestr.c: Likewise.
86665         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86666
86667 2005-08-31  Bruno Haible  <bruno@clisp.org>
86668
86669         * gnulib-tool: New option --macro-prefix.
86670         (func_import): Use macro_prefix.
86671         (import): Handle option --macro-prefix.
86672
86673 2005-08-31  Bruno Haible  <bruno@clisp.org>
86674
86675         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86676         Also use new variables cached_lgpl, cached_libtool.
86677
86678 2005-08-31  Bruno Haible  <bruno@clisp.org>
86679
86680         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86681         always instantiating them.
86682
86683 2005-08-31  Bruno Haible  <bruno@clisp.org>
86684
86685         * gnulib-tool (func_import): Read the previous cached settings
86686         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86687         earlier added by gnulib but are now dropped. Warn when a gnulib file
86688         overwrites a non-gnulib file.
86689
86690 2005-08-31  Bruno Haible  <bruno@clisp.org>
86691
86692         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86693         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86694         projects that don't keep autogenerated files in CVS. Put into
86695         actioncmd only the specified modules, not the transitive closure.
86696
86697 2005-08-31  Bruno Haible  <bruno@clisp.org>
86698
86699         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86700         Create directories that shall be filled.
86701         (import): Don't look for gl_* macros in configure.ac. Recurse across
86702         all directories containing a gnulib-cache.m4 files, if meaningful.
86703
86704 2005-08-31  Bruno Haible  <bruno@clisp.org>
86705
86706         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86707         (import): Set seen_libtool when we see gl_LIBTOOL.
86708
86709 2005-08-31  Bruno Haible  <bruno@clisp.org>
86710
86711         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86712         declaration macro definitions from generated gnulib.m4.
86713
86714 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86715
86716         * lib/iconvme.h: Add prototype for iconv_alloc.
86717
86718 2005-08-29  Simon Josefsson  <jas@extundo.com>
86719
86720         * lib/iconvme.c: Fix errno.
86721
86722 2005-08-29  Bruno Haible  <bruno@clisp.org>
86723
86724         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86725         that it works when the directory contains spaces.
86726
86727 2005-08-29  Bruno Haible  <bruno@clisp.org>
86728
86729         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86730
86731 2005-08-29  Bruno Haible  <bruno@clisp.org>
86732
86733         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86734         Emit more advice.
86735
86736 2005-08-29  Bruno Haible  <bruno@clisp.org>
86737         and Stepan Kasal  <kasal@ucw.cz>
86738
86739         * check-module: If more parameters are given, check each of them
86740         separately; add more exceptions, as noted by Jim Meyering.
86741         (check_module): New procedure.
86742         (%exempt_header): Now contains all exceptions.
86743
86744 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86745
86746         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86747
86748 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86749
86750         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86751
86752 2005-08-28  Bruno Haible  <bruno@clisp.org>
86753
86754         * m4/gnulib-tool.m4: New file.
86755
86756 2005-08-27  Jim Meyering  <jim@meyering.net>
86757
86758         * modules/unistd-safer (Files): Add pipe-safer.c.
86759         * modules/fcntl-safer (Files): Add creat-safer.c.
86760
86761 2005-08-27  Jim Meyering  <jim@meyering.net>
86762
86763         * m4/stdlib-safer.m4: New file.  From coreutils.
86764         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86765         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86766         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86767         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86768         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86769
86770 2005-08-27  Jim Meyering  <jim@meyering.net>
86771
86772         * lib/fopen-safer.c: Merge minor changes from coreutils.
86773         * lib/dup-safer.c: Likewise.
86774         * lib/fd-safer.c: Likewise.
86775
86776         Merge from coreutils.
86777         * lib/stdio--.h: New file.
86778         * lib/stdlib--.h: New file.
86779         * lib/mkstemp-safer.c: New file.
86780
86781         GNU tar needs these.
86782         * lib/pipe-safer.c: New file.
86783         * lib/creat-safer.c: New file.
86784         * lib/fcntl--.h (creat): Define to creat_safer.
86785         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86786         * lib/unistd--.h (pipe): Define to pipe_safer.
86787         * lib/unistd-safer.h: Declare pipe_safer.
86788
86789 2005-08-26  Simon Josefsson  <jas@extundo.com>
86790
86791         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86792         Haible <bruno@clisp.org>.
86793
86794 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86795
86796         * lib/regex_internal.h: Remove all references to
86797         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86798         or better.
86799         (bitset_not, bitset_merge, bitset_not_merge):
86800         (bitset_mask, re_string_allocate, re_string_construct):
86801         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86802         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86803         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86804         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86805         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86806         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86807         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86808         (re_acquire_state_context):
86809         Remove unnecessary forward decls.
86810         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86811         Put __attribute at function definition,
86812         now that the function decl has been removed.
86813         * lib/regex_internal.c (re_string_peek_byte_case):
86814         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86815         Likewise.
86816
86817 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86818
86819         * m4/regex.m4: Add AC_PREREQ(2.50).
86820         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86821
86822 2005-08-25  Simon Josefsson  <jas@extundo.com>
86823
86824         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86825         __fsetlocking.
86826
86827 2005-08-25  Simon Josefsson  <jas@extundo.com>
86828
86829         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86830         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86831         GLIBC specific code.
86832
86833 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86834
86835         Make regex safe for g++.  This fixes one real bug (an "err"
86836         that should have been "*err").  g++ problem reported by
86837         Sam Steingold.
86838         * lib/regex_internal.h (re_calloc): New macro, consistent with
86839         re_malloc etc.  All callers of calloc changed to use re_calloc.
86840         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86841         not int.  All callers changed.
86842         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86843         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86844         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86845         (find_recover_state): Change "err" to "*err"; this fixes what
86846         appears to be a real bug.
86847         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86848         versus int.
86849
86850 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86851
86852         * modules/regex (Depends-on): Add malloc, since the code
86853         assumes that !malloc(0) means failure.
86854
86855 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86856
86857         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86858
86859         alloca modernization/simplification for regex.
86860         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86861         needs to be at the start of the file, and can be moved into
86862         regex_internal.h and simplified.
86863         * lib/regex_internal.h: Include <alloca.h>.
86864         (__libc_use_alloca) [!defined _LIBC]: New macro.
86865         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86866         now works outside glibc.
86867
86868 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86869
86870         * config/srclist.txt: Add glibc bugs 1241, 1245.
86871
86872 2005-08-25  Jim Meyering  <jim@meyering.net>
86873
86874         * lib/open-safer.c: Include <config.h>.
86875         Otherwise, we'd lose LARGEFILE support in any file using
86876         e.g. "fcntl--.h"
86877
86878 2005-08-25  Bruno Haible  <bruno@clisp.org>
86879
86880         * m4/minmax.m4: Require autoconf 2.52.
86881         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86882         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86883         alternatives of translit over the alphabet.
86884         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86885
86886 2005-08-24  Simon Josefsson  <jas@extundo.com>
86887
86888         * tests/test-getpass.c: New file.
86889
86890 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86891
86892         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86893         for GNU regex features.
86894
86895 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86896
86897         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86898         * lib/regex.h (regerror): Likewise.
86899
86900         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86901         requires this.  (The code never needed it.)
86902
86903         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86904         All uses of recently-renamed identifiers changed to use the new,
86905         POSIX-compliant names.  The code will build and run just fine
86906         without these changes, but it's better to eat our own dog food
86907         and use the standard-conforming names.
86908
86909         * lib/regex.h: Fix a multitude of POSIX name space violations.
86910         These changes have an effect only for programs that define
86911         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86912         do not change anything for programs compiled in the normal way.
86913         Also, there is no effect on the ABI.
86914
86915         (_REGEX_SOURCE): New macro.
86916         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86917         defined and _GNU_SOURCE is not; this fixes a name space violation.
86918
86919         Rename the following macros to obey POSIX requirements.
86920         The old names are still visible as macros if _REGEX_SOURCE is defined.
86921         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86922         RE_BACKSLASH_ESCAPE_IN_LISTS.
86923         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86924         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86925         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86926         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86927         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86928         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86929         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86930         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86931         (REG_INTERVALS): renamed from RE_INTERVALS.
86932         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86933         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86934         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86935         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86936         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86937         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86938         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86939         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86940         RE_UNMATCHED_RIGHT_PAREN_ORD.
86941         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86942         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86943         (REG_DEBUG): renamed from RE_DEBUG.
86944         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86945         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86946         unusual, since we can't clash with the POSIX REG_ICASE.
86947         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86948         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86949         (REG_NO_SUB): renamed from RE_NO_SUB.
86950         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86951         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86952         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86953         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86954         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86955         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86956         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86957         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86958         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86959         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86960         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86961         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86962         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86963         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86964         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86965         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86966         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86967         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86968         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86969         (REG_FIXED): Renamed from REGS_FIXED.
86970         (REG_NREGS): Renamed from RE_NREGS.
86971
86972         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86973         of other REG_* macros, since POSIX says the user is allowed to
86974         #undef these macros selectively.
86975
86976         (reg_errcode_t): Update comment stating what other tables need
86977         to be consistent.
86978
86979         Rename the following enum values to obey POSIX requirements.
86980         The old names are still visible as macros.
86981         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86982         is not defined, since GNU is supposed to be a superset of POSIX as
86983         much as possible, and since we want reg_errcode_t to be a signed
86984         type for implementation consistency.
86985         (_REG_NOERROR): Renamed from REG_NOERROR.
86986         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86987         (_REG_BADPAT): Renamed from REG_BADPAT.
86988         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86989         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86990         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86991         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86992         (_REG_EBRACK): Renamed from REG_EBRACK.
86993         (_REG_EPAREN): Renamed from REG_EPAREN.
86994         (_REG_EBRACE): Renamed from REG_EBRACE.
86995         (_REG_BADBR): Renamed from REG_BADBR.
86996         (_REG_ERANGE): Renamed from REG_ERANGE.
86997         (_REG_ESPACE): Renamed from REG_ESPACE.
86998         (_REG_BADRPT): Renamed from REG_BADRPT.
86999         (_REG_EEND): Renamed from REG_EEND.
87000         (_REG_ESIZE): Renamed from REG_ESIZE.
87001         (_REG_ERPAREN): Renamed from REG_ERPAREN.
87002         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
87003         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
87004         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
87005         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
87006
87007         (_REG_RE_NAME, _REG_RM_NAME): New macros.
87008         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
87009         changed.  But support the old name if the new one is not defined
87010         and if _REGEX_SOURCE.
87011
87012         Change the following member names in struct re_pattern_buffer.
87013         The old names are still supported if !_REGEX_SOURCE.
87014         The new names are always supported, regardless of _REGEX_SOURCE.
87015         (re_buffer): Renamed from buffer.
87016         (re_allocated): Renamed from allocated.
87017         (re_used): Renamed from used.
87018         (re_syntax): Renamed from syntax.
87019         (re_fastmap): Renamed from fastmap.
87020         (re_translate): Renamed from translate.
87021         (re_can_be_null): Renamed from can_be_null.
87022         (re_regs_allocated): Renamed from regs_allocated.
87023         (re_fastmap_accurate): Renamed from fastmap_accurate.
87024         (re_no_sub): Renamed from no_sub.
87025         (re_not_bol): Renamed from not_bol.
87026         (re_not_eol): Renamed from not_eol.
87027         (re_newline_anchor): Renamed from newline_anchor.
87028
87029         Change the following member names in struct re_registers.
87030         The old names are still supported if !_REGEX_SOURCE.
87031         The new names are always supported, regardless of _REGEX_SOURCE.
87032         (rm_num_regs): Renamed from num_regs.
87033         (rm_start): Renamed from start.
87034         (rm_end): Renamed from end.
87035
87036         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
87037         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
87038         Prepend __ to parameter names.
87039
87040         Undo yesterday's changes.
87041
87042 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
87043
87044         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
87045         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
87046         lib/regex.c.
87047
87048 2005-08-24  Jim Meyering  <jim@meyering.net>
87049
87050         Sync from coreutils.
87051         * m4/fcntl-safer.m4: New file.
87052
87053         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
87054         and object files for this module.
87055
87056 2005-08-24  Jim Meyering  <jim@meyering.net>
87057
87058         Sync from coreutils.
87059         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
87060
87061 2005-08-24  Jim Meyering  <jim@meyering.net>
87062
87063         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
87064         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
87065
87066 2005-08-24  Jim Meyering  <jim@meyering.net>
87067
87068         * modules/fcntl-safer: New module.
87069         * modules/fts (Depends-on): Add fcntl-safer.
87070         * MODULES.html.sh (File descriptor based Input/Output):
87071         Add fcntl-safer.
87072
87073 2005-08-24  Bruno Haible  <bruno@clisp.org>
87074
87075         Support for unit test modules.
87076         * modules/README: Mention tests modules.
87077         * modules/TEMPLATE-TESTS: New file.
87078         * gnulib-tool: New options --extract-tests-module, --with-tests and
87079         --tests-base (unused for the moment).
87080         (testsbase, inctests): New variables.
87081         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
87082         (func_verify_module): Exclude TEMPLATE-TESTS.
87083         (func_verify_nontests_module, func_verify_tests_module): New functions.
87084         (func_get_dependencies): Add implicit dependency for tests modules.
87085         (func_get_tests_module): New function.
87086         (func_modules_transitive_closure): When --with-tests was specified,
87087         include the unit tests as well, unless explicitly avoided.
87088         (func_emit_lib_Makefile_am): Ignore the tests modules here.
87089         (func_emit_tests_Makefile_am): New function.
87090         (func_create_testdir): When --with-tests was specified, emit a
87091         tests/ directory.
87092         * MODULES.html.sh (Future developments): Update.
87093
87094 2005-08-24  Bruno Haible  <bruno@clisp.org>
87095
87096         * modules/tls-tests: New file.
87097         * tests/test-tls.c: New file, from GNU gettext.
87098
87099 2005-08-24  Bruno Haible  <bruno@clisp.org>
87100
87101         * modules/lock-tests: New file.
87102         * tests/test-lock.c: New file, from GNU gettext.
87103
87104 2005-08-24  Bruno Haible  <bruno@clisp.org>
87105
87106         * lib/lock.h: Add multiple inclusion guard.
87107         * lib/tls.h: Add multiple inclusion guard.
87108
87109 2005-08-24  Bruno Haible  <bruno@clisp.org>
87110
87111         * gnulib-tool: Add support for the --aux-dir option to
87112         --create-testdir, --create-megatestdir, --test, --megatest.
87113         (func_create_testdir, func_create_megatestdir): Optionally emit a
87114         AC_CONFIG_AUX_DIR directive.
87115         (create-testdir, create-megatestdir, test, megatest): Provide a
87116         default value for $auxdir.
87117
87118 2005-08-24  Bruno Haible  <bruno@clisp.org>
87119
87120         * gnulib-tool (import): Use compound statement instead of subshell
87121         where possible.
87122
87123 2005-08-24  Bruno Haible  <bruno@clisp.org>
87124
87125         * gnulib-tool (import): Change --aux-dir default to "build-aux".
87126
87127 2005-08-24  Bruno Haible  <bruno@clisp.org>
87128
87129         * gnulib-tool (func_version): Update.
87130
87131 2005-08-24  Bruno Haible  <bruno@clisp.org>
87132
87133         * gnulib-tool (func_import, func_create_testdir,
87134         func_create_megatestdir): Quote all autoconf macro arguments.
87135
87136 2005-08-24  Bruno Haible  <bruno@clisp.org>
87137
87138         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
87139         option --force, because --force causes the aclocal.m4 of each
87140         subdirectory to be newer than the corresponding config.h.in.
87141
87142 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87143
87144         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87145         All contents moved to gl_REGEX.
87146         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87147         assume that it does.
87148
87149 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         * lib/regex.h (REG_NOSYS)
87152         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87153         Define, since POSIX requires it as of 2001.
87154         (_REG_ENOSYS)
87155         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87156         New private symbol, used to keep the enum signed in all cases.
87157         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87158         Youngman in
87159         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87160
87161         * lib/regex_internal.c (re_string_skip_chars, register_state):
87162         (calc_state_hash):
87163         Remove forward decls; no longer needed now that we use prototypes.
87164         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87165         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87166         (clean_state_log_if_needed): Likewise.
87167
87168 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87169
87170         * config/srclist.txt: Add glibc bugs 1231-1233.
87171
87172 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87173
87174         Fix problems reported by Sam Steingold in
87175         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87176         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87177         assumed that reg_errcode_t is a signed type, which is not
87178         necessarily true if _XOPEN_SOURCE is not defined.
87179         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87180         since some compilers warn about it otherwise.
87181
87182 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87185         (init_word_char, create_initial_state, duplicate_node_closure):
87186         (fetch_token, peek_token_bracket, build_range_exp):
87187         (build_collating_symbol): Remove forward decls; no longer needed
87188         now that we use prototypes.
87189
87190         * lib/regcomp.c:
87191         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87192         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87193         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87194         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87195         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87196         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87197         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87198         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87199         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87200         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87201         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87202         (build_charclass, build_charclass_op, fetch_number, create_tree):
87203         (create_token_tree, mark_opt_subexp, duplicate_tree):
87204         Use prototypes rather than old-style definitions.
87205
87206         * lib/regex_internal.c:
87207         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87208         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87209         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87210         (re_string_reconstruct, re_string_peek_byte_case):
87211         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87212         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87213         (re_node_set_init_copy, re_node_set_add_intersect):
87214         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87215         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87216         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87217         (re_acquire_state, re_acquire_state_context, register_state):
87218         (create_ci_newstate, create_cd_newstate, free_state):
87219         Likewise.
87220         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87221         re_search_2):
87222         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87223         (re_search_internal, prune_impossible_nodes):
87224         (acquire_init_state_context, check_matching, static):
87225         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87226         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87227         (update_regs, sift_states_backward, build_sifted_states):
87228         (clean_state_log_if_needed, merge_state_array):
87229         (update_cur_sifted_state, add_epsilon_src_nodes):
87230         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87231         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87232         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87233         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87234         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87235         (check_arrival, check_arrival_add_next_nodes):
87236         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87237         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87238         (check_node_accept_bytes, check_node_accept, extend_buffers):
87239         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87240         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87241         (sift_ctx_init):
87242         Likewise.
87243
87244         * lib/regex_internal.h:
87245         (re_string_allocate, re_string_construct, re_string_reconstruct):
87246         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87247         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87248         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87249         (re_string_context_at, re_string_peek_byte_case):
87250         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87251         is defined, since we now use prototypes always.
87252
87253         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87254         C89 or better.  All uses removed.
87255
87256 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87257
87258         * config/srclist.txt: Add glibc bugs 1220-1227.
87259
87260 2005-08-20  Jim Meyering  <jim@meyering.net>
87261
87262         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87263         of unused local, dfa.
87264
87265 2005-08-20  Bruno Haible  <bruno@clisp.org>
87266
87267         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87268
87269 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87270
87271         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87272         (re_node_set_insert_last, re_dfa_add_node):
87273         Rename local variables to avoid GCC shadowing warnings.
87274
87275 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87276
87277         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87278         [defined lint]: Suppress bogus uninitialized-variable warnings.
87279
87280         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87281         and let the caller return REG_ESPACE if out of space.  This
87282         removes an uninitialied-variable warning with GCC 4.0.1, and also
87283         avoids taking the address of a local variable.  All callers
87284         changed.
87285
87286 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87287
87288         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87289         $LIBCSRC/posix/regexec.c.
87290         Add glibc bug 1217 for regcomp.c.
87291
87292 2005-08-19  Jim Meyering  <jim@meyering.net>
87293
87294         * lib/regexec.c (proceed_next_node): Redo local variables to
87295         avoid GCC shadowing warnings.
87296
87297 2005-08-18  Bruno Haible  <bruno@clisp.org>
87298
87299         * lib/strstr.c (strstr): Fix return value in multibyte case.
87300         * lib/strcasestr.c (strcasestr): Likewise.
87301
87302 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87303
87304         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87305
87306 2005-08-17  Jim Meyering  <jim@meyering.net>
87307
87308         Make the %s format (seconds since the epoch) work for a negative
87309         number and when used with a zero-padded field width, e.g. %015s.
87310
87311         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87312         label so that it precedes the code to set `digits'.  Otherwise,
87313         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87314         print `00-22'.  Now, it prints `-0022', as it should.
87315
87316 2005-08-17  Bruno Haible  <bruno@clisp.org>
87317
87318         * modules/strstr (Files): Add m4/mbrtowc.m4.
87319         (Depends-on): Add mbuiter.
87320
87321 2005-08-17  Bruno Haible  <bruno@clisp.org>
87322
87323         * modules/strcasestr: New file.
87324         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87325         strcasestr.
87326
87327 2005-08-17  Bruno Haible  <bruno@clisp.org>
87328
87329         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87330
87331 2005-08-17  Bruno Haible  <bruno@clisp.org>
87332
87333         * modules/mbuiter: New file.
87334         * MODULES.html.sh (Extended multibyte and wide character utilities):
87335         Add mbuiter.
87336
87337 2005-08-17  Bruno Haible  <bruno@clisp.org>
87338
87339         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87340         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87341
87342 2005-08-17  Bruno Haible  <bruno@clisp.org>
87343
87344         * m4/strcasestr.m4: New file.
87345
87346 2005-08-17  Bruno Haible  <bruno@clisp.org>
87347
87348         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87349         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87350
87351 2005-08-17  Bruno Haible  <bruno@clisp.org>
87352
87353         * lib/strcasestr.h: New file.
87354         * lib/strcasestr.c: New file.
87355
87356 2005-08-17  Bruno Haible  <bruno@clisp.org>
87357
87358         * lib/strcasecmp.c: Use mbuiter.h.
87359
87360 2005-08-17  Bruno Haible  <bruno@clisp.org>
87361
87362         * lib/mbuiter.h: New file.
87363
87364 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87365
87366         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87367         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87368         and gl_GETOPT are both invoked via different paths (as happens
87369         with GNU tar CVS because it uses both argp and getopt), the former
87370         wins.
87371
87372 2005-08-16  Bruno Haible  <bruno@clisp.org>
87373
87374         * modules/tls: New file.
87375         * MODULES.html.sh (Multithreading): Add tls.
87376
87377 2005-08-16  Bruno Haible  <bruno@clisp.org>
87378
87379         * modules/strnlen1: New file.
87380         * MODULES.html.sh (String handling): Add strnlen1.
87381
87382 2005-08-16  Bruno Haible  <bruno@clisp.org>
87383
87384         * modules/strcase (Files): Add m4/mbrtowc.m4.
87385         (Depends-on): Add strnlen1, mbchar.
87386
87387 2005-08-16  Bruno Haible  <bruno@clisp.org>
87388
87389         * modules/mbiter: New file.
87390         * MODULES.html.sh (Extended multibyte and wide character utilities):
87391         Add mbiter.
87392
87393 2005-08-16  Bruno Haible  <bruno@clisp.org>
87394
87395         * modules/mbfile: New file.
87396         * MODULES.html.sh (Extended multibyte and wide character utilities):
87397         Add mbfile.
87398
87399 2005-08-16  Bruno Haible  <bruno@clisp.org>
87400
87401         * modules/mbchar: New file.
87402         * MODULES.html.sh (Extended multibyte and wide character utilities):
87403         New section.
87404
87405 2005-08-16  Bruno Haible  <bruno@clisp.org>
87406
87407         * m4/tls.m4: New file, from GNU gettext.
87408
87409 2005-08-16  Bruno Haible  <bruno@clisp.org>
87410
87411         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87412         always.
87413         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87414
87415 2005-08-16  Bruno Haible  <bruno@clisp.org>
87416
87417         * m4/mbiter.m4: New file.
87418
87419 2005-08-16  Bruno Haible  <bruno@clisp.org>
87420
87421         * m4/mbfile.m4: New file.
87422
87423 2005-08-16  Bruno Haible  <bruno@clisp.org>
87424
87425         * m4/mbchar.m4: New file.
87426
87427 2005-08-16  Bruno Haible  <bruno@clisp.org>
87428
87429         * lib/tls.h: New file, from GNU gettext.
87430         * lib/tls.c: New file, from GNU gettext.
87431
87432 2005-08-16  Bruno Haible  <bruno@clisp.org>
87433
87434         * lib/strnlen1.h: New file.
87435         * lib/strnlen1.c: New file.
87436
87437 2005-08-16  Bruno Haible  <bruno@clisp.org>
87438
87439         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87440         (mbi_init): Update.
87441         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87442         NUL byte, not after it.
87443
87444 2005-08-16  Bruno Haible  <bruno@clisp.org>
87445
87446         * lib/strcase.h (strcasecmp): Add note in comments.
87447         * lib/strncasecmp.c: Use code from strcasecmp.c.
87448         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87449         (strcasecmp): Work correctly in multibyte locales.
87450
87451 2005-08-16  Bruno Haible  <bruno@clisp.org>
87452
87453         * lib/mbiter.h: New file.
87454
87455 2005-08-16  Bruno Haible  <bruno@clisp.org>
87456
87457         * lib/mbfile.h: New file.
87458
87459 2005-08-16  Bruno Haible  <bruno@clisp.org>
87460
87461         * lib/mbchar.h: New file.
87462         * lib/mbchar.c: New file.
87463
87464 2005-08-16  Bruno Haible  <bruno@clisp.org>
87465
87466         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87467         the valid ones. Makes the comparison operations transitive:
87468         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87469         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87470
87471 2005-08-15  Simon Josefsson  <jas@extundo.com>
87472
87473         * modules/ssize_t (License): Change to 'unlimited'.
87474
87475         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87476
87477 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87478
87479         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87480         Add comments for each pending glibc patch.
87481
87482 2005-08-15  Bruno Haible  <bruno@clisp.org>
87483
87484         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87485         __cplusplus is defined.
87486
87487 2005-08-14  Jim Meyering  <jim@meyering.net>
87488
87489         Sync from coreutils.
87490
87491         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87492         Use the hash-table-based cycle-detection code not just when
87493         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87494         Reported by James Youngman in
87495         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87496         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87497         FTS_TIGHT_CYCLE_CHECK.
87498         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87499         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87500         once again.
87501         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87502         * lib/fts.c (fd_safer): Remove decl.
87503         Include fcntl--.h rather than unistd-safer.h
87504         (fts_safe_changedir): Don't call fd_safer; no longer needed
87505         now that we include fcntl--.h.
87506
87507 2005-08-12  Simon Josefsson  <jas@extundo.com>
87508
87509         * modules/getndelim2: Use ssize_t module.
87510         * modules/getnline: Likewise.
87511         * modules/safe-read: Likewise.
87512         * modules/xreadlink: Likewise.
87513
87514         * modules/ssize_t: New file.
87515
87516 2005-08-12  Simon Josefsson  <jas@extundo.com>
87517
87518         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87519
87520 2005-08-12  Simon Josefsson  <jas@extundo.com>
87521
87522         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87523         ssize_t.
87524
87525 2005-08-12  Simon Josefsson  <jas@extundo.com>
87526
87527         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87528         readline, getdelim and check_version.
87529         (Support for systems lacking ISO C 99: Sizes of integer types):
87530         Add size_max.
87531
87532 2005-08-12  Bruno Haible  <bruno@clisp.org>
87533
87534         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87535
87536 2005-08-11  Simon Josefsson  <jas@extundo.com>
87537
87538         * modules/readline: New file.
87539
87540         * modules/strnlen (Files): Add strnlen.h.
87541
87542 2005-08-11  Simon Josefsson  <jas@extundo.com>
87543
87544         * m4/readline.m4: New file.
87545
87546 2005-08-11  Simon Josefsson  <jas@extundo.com>
87547
87548         * lib/readline.h, readline.c: New file.
87549
87550 2005-08-11  Simon Josefsson  <jas@extundo.com>
87551
87552         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87553         gl_AVOID.
87554
87555 2005-08-11  Bruno Haible  <bruno@clisp.org>
87556
87557         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87558
87559 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87560
87561         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87562
87563 2005-08-10  Simon Josefsson  <jas@extundo.com>
87564
87565         * tests/test-iconvme.c: New file.
87566
87567 2005-08-10  Simon Josefsson  <jas@extundo.com>
87568
87569         * m4/strnlen.m4: New file.
87570
87571         * m4/strndup.m4: Don't check for strnlen declaration, done in
87572         strnlen.m4.
87573
87574 2005-08-10  Simon Josefsson  <jas@extundo.com>
87575
87576         * lib/strndup.c: Use strnlen.h.
87577
87578         * lib/strnlen.h: New file.
87579
87580 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87581
87582         * README: Typos.
87583
87584 2005-08-02  Simon Josefsson  <jas@extundo.com>
87585
87586         * modules/readline: New file.
87587
87588 2005-08-02  Simon Josefsson  <jas@extundo.com>
87589
87590         * modules/getdelim: New file.
87591
87592         * modules/getline: Rewrite, don't use getndelim2.
87593
87594 2005-08-02  Simon Josefsson  <jas@extundo.com>
87595
87596         * m4/getline.m4: Separate out getdelim stuff into separate module.
87597
87598         * m4/getdelim.m4: New file.
87599
87600 2005-08-02  Simon Josefsson  <jas@extundo.com>
87601
87602         * lib/getline.h, getline.c: Rewrite.
87603
87604         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87605
87606 2005-07-31  Bruno Haible  <bruno@clisp.org>
87607
87608         * lib/lock.h (gl_lock_initializer): New macro.
87609         (gl_lock_define_initialized): Use it.
87610         (gl_rwlock_initializer): New macro.
87611         (gl_rwlock_define_initialized): Use it.
87612         (gl_recursive_lock_initializer): New macro.
87613         (gl_recursive_lock_define_initialized): Use it.
87614
87615 2005-07-30  Karl Berry  <karl@gnu.org>
87616
87617         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87618         Report from Ben Pfaff, regarding getopt.
87619
87620 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87623         normal way.
87624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87625         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87626         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87627         (gl_GETOPT): Use the new macros.  Most of the implementation
87628         is moved to the new macros.  This is for programs like Emacs
87629         that don't want all the functionality of gl_GETOPT.
87630
87631 2005-07-26  Bruno Haible  <bruno@clisp.org>
87632
87633         * m4/lock.m4: Update from GNU gettext.
87634
87635 2005-07-26  Bruno Haible  <bruno@clisp.org>
87636
87637         * lib/lock.h: Update from GNU gettext.
87638         * lib/lock.c: Update from GNU gettext.
87639
87640 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87641
87642         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87643         obsolescent AC_TRY_RUN.  Include the default includes files, for
87644         'exit'.
87645
87646 2005-07-24  Bruno Haible  <bruno@clisp.org>
87647
87648         * modules/visibility: New file.
87649         * MODULES.html.sh (Misc): Add visibility.
87650
87651 2005-07-24  Bruno Haible  <bruno@clisp.org>
87652
87653         * m4/visibility.m4: New file.
87654
87655 2005-07-24  Bruno Haible  <bruno@clisp.org>
87656
87657         * doc/visibility.texi: New file.
87658
87659 2005-07-22  Bruno Haible  <bruno@clisp.org>
87660
87661         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87662         $(ALLOCA_H), redundant through BUILT_SOURCES.
87663         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87664         redundant through BUILT_SOURCES.
87665         * modules/byteswap (Makefile.am): Remove explicit dependency on
87666         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87667         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87668         $(FNMATCH_H), redundant through BUILT_SOURCES.
87669         * modules/getopt (Makefile.am): Remove explicit dependency on
87670         $(GETOPT_H), redundant through BUILT_SOURCES.
87671         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87672         redundant through BUILT_SOURCES.
87673         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87674         redundant through BUILT_SOURCES.
87675         * modules/stdbool (Makefile.am): Remove explicit dependency on
87676         $(STDBOOL_H), redundant through BUILT_SOURCES.
87677         * modules/stdint (Makefile.am): Remove explicit dependency on
87678         $(STDINT_H), redundant through BUILT_SOURCES.
87679         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87680         Remove explicit dependency on $(SYSEXITS_H).
87681         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87682
87683 2005-07-18  Simon Josefsson  <jas@extundo.com>
87684
87685         * lib/check-version.c (check_version): Accept identical versions too.
87686
87687 2005-07-18  Bruno Haible  <bruno@clisp.org>
87688
87689         * modules/lock: New file.
87690         * MODULES.html.sh (Multithreading): New section.
87691
87692 2005-07-18  Bruno Haible  <bruno@clisp.org>
87693
87694         * m4/lock.m4: New file, from GNU gettext.
87695
87696 2005-07-18  Bruno Haible  <bruno@clisp.org>
87697
87698         * lib/lock.h: New file, from GNU gettext.
87699         * lib/lock.c: New file, from GNU gettext.
87700
87701 2005-07-18  Bruno Haible  <bruno@clisp.org>
87702
87703         * lib/lock.h (gl_once_t): New type.
87704         (gl_once_define, gl_once): New macros.
87705         * lib/lock.c (fresh_once): New variable.
87706         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87707         functions.
87708
87709 2005-07-16  Simon Josefsson  <jas@extundo.com>
87710
87711         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87712         workaround, suggested by Bruno.
87713
87714 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87715
87716         * modules/xalloc (Depends-on): Add xalloc-die.
87717         * modules/xvasprintf (Depends-on): Add xalloc-die.
87718
87719 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87720
87721         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87722         with a minor change.
87723
87724 2005-07-15  Bruno Haible  <bruno@clisp.org>
87725
87726         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87727         When using lib/poll.c, define poll as rpl_poll.
87728
87729 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87730
87731         * modules/argp (Depends-on): Remove unlocked-io.
87732
87733 2005-07-14  Derek Price  <derek@ximbiot.com>
87734
87735         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87736         for glob symlink bug.
87737
87738 2005-07-14  Bruno Haible  <bruno@clisp.org>
87739
87740         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87741         Instead, test for *_unlocked function declarations directly.
87742
87743 2005-07-11  Simon Josefsson  <jas@extundo.com>
87744
87745         * modules/size_max: New file.
87746
87747         * modules/xsize: Depend on size_max module for size_max.m4.
87748
87749 2005-07-11  Simon Josefsson  <jas@extundo.com>
87750
87751         * lib/size_max.h: New file.
87752
87753 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87754
87755         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87756         copyright symbol and the year.
87757         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87758         (version_etc_va): Use parameterized copyright notice.
87759         Reword to conform to the current GNU coding standards.
87760
87761 2005-07-11  Karl Berry  <karl@gnu.org>
87762
87763         * doc/gnulib.texi (Quoting): new node.
87764         (Initial import): more info, from Patrice.
87765
87766 2005-07-11  Bruno Haible  <bruno@clisp.org>
87767
87768         * gnulib-tool (func_usage): Document option --avoid.
87769         (Command line options): Handle --avoid.
87770         (func_acceptable): New function.
87771         (func_modules_transitive_closure): Use it.
87772
87773 2005-07-11  Bruno Haible  <bruno@clisp.org>
87774
87775         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87776         Reported by Jim Meyering.
87777
87778 2005-07-10  Bruno Haible  <bruno@clisp.org>
87779
87780         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87781         Needed when size_t is smaller than 'unsigned int'.
87782         Reported by Paul Eggert.
87783
87784 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87785
87786         * modules/argp (Depends-on): Add unlocked-io
87787
87788 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87789
87790         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87791         block of defines.
87792
87793 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87794
87795         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87796         fix now.
87797
87798 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87799         and Paul Eggert  <eggert@cs.ucla.edu>
87800
87801         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87802         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87803
87804 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87805
87806         * modules/regex (Files): Add lib/regex_internal.c,
87807         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87808         (Depends-on): Add extensions.
87809         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87810
87811 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87812
87813         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87814         pathconf.
87815         * m4/same.m4 (gl_SAME): Likewise.
87816         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87817
87818         * m4/regex.m4: Adjust to new libc regex implementation.
87819         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87820         all the .c and .h parts of (the new) regex.
87821         Quote the m4 stuff better.
87822         Check for RE_ICASE bug of old gnulib.
87823         Check for REG_STARTEND of recent libc.
87824         Rename local variables from jm_* to gl_*.
87825         Quote operand of "test -f".
87826         Say "recent enough" version of libc, not "version 2".
87827         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87828         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87829         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87830         Remove check for btowc, isascii.
87831         Require AM_LANGINFO_CODESET.
87832
87833 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         * lib/regex.c, regex.h: Sync from libc.
87836         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87837         * lib/regexec.c:
87838         New files, synced from libc, except that regex_internal.h
87839         currently has a small porting fix.
87840
87841 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87842
87843         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87844         regex_internal.c, regexec.c.
87845         Add regex_internal.h too, but as a comment, since the libc version
87846         is currently broken in gnulib mode.
87847
87848 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87849
87850         Support programs like Emacs that use gnulib but not gettext.
87851         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87852         * modules/gettext-h: New file.
87853         * modules/gettext (Files): Remove lib/gettext.h.
87854         (Depends-on): Add gettext-h.
87855         (Makefile.am): Remove lib_SOURCES.
87856         * modules/argmatch, modules/c-stack, modules/closeout:
87857         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87858         * modules/execute, modules/file-type, modules/getaddrinfo:
87859         * modules/getopt, modules/human, modules/javacomp:
87860         * modules/javaexec, modules/mkdir-p, modules/obstack:
87861         * modules/openat, modules/pagealign_alloc, modules/pipe:
87862         * modules/quotearg, modules/regex, modules/rpmatch:
87863         * modules/unicodeio, modules/userspec, modules/version-etc:
87864         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87865         * modules/xsetenv:
87866         Depend on gettext-h, not gettext.
87867
87868 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87869
87870         * gnulib-tool (func_import): Add support for 'public domain' license.
87871         * modules/alloca, modules/atexit, modules/memmove:
87872         Now public domain, not GPL.
87873         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87874         * modules/realloc, modules/strerror, modules/strtod:
87875         Now LGPL, not GPL.
87876
87877 2005-07-05  Bruno Haible  <bruno@clisp.org>
87878
87879         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87880         autoconf CVS. Needed for mingw.
87881
87882 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87883
87884         Remove the dependency of the strftime module on the tzset module.
87885         * modules/strftime (Depends-on): Remove dependency on tzset.
87886
87887 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87888
87889         Remove the dependency of the strftime module on the tzset module.
87890         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87891         gl_FUNC_TZSET_CLOBBER.
87892
87893 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87894
87895         Remove the dependency of the strftime module on the tzset module.
87896         * lib/strftime.c (my_strftime)
87897         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87898         Copy the input structure, to work around some of the bug with
87899         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87900         Solaris releases, you should also use the tzset module, but we won't
87901         require it as a dependency any more since we don't want LGPLed code
87902         to depend on GPLed code.
87903
87904 2005-07-02  Jim Meyering  <jim@meyering.net>
87905
87906         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87907         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87908         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87909         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87910
87911 2005-07-02  Jim Meyering  <jim@meyering.net>
87912
87913         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87914
87915 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87916
87917         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87918         declares only 'struct timespec;' (!).
87919
87920 2005-07-01  Jim Meyering  <jim@meyering.net>
87921
87922         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87923         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87924         * lib/save-cwd.c, tempname.c:
87925         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87926         and don't include <sys/file.h>).
87927
87928 2005-06-29  Jim Meyering  <jim@meyering.net>
87929
87930         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87931         type name.  Use the variable name instead.
87932         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87933         Likewise.
87934
87935 2005-06-28  Simon Josefsson  <jas@extundo.com>
87936
87937         * modules/check-version (Files): Add check-version.m4.
87938
87939 2005-06-28  Simon Josefsson  <jas@extundo.com>
87940
87941         * m4/check-version.m4: New file, suggested by Jim Meyering
87942         <jim@meyering.net>.
87943
87944 2005-06-28  Simon Josefsson  <jas@extundo.com>
87945
87946         * lib/check-version.h, lib/check-version.c: New files.
87947
87948 2005-06-28  Simon Josefsson  <jas@extundo.com>
87949
87950         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87951         collision with global variable.  Better indentation.  Don't
87952         increment buffer pointer beyond buffer end.  Based on comments
87953         from Paul Eggert <eggert@cs.ucla.edu>.
87954
87955         * lib/base64.h: Indent.
87956
87957 2005-06-28  Simon Josefsson  <jas@extundo.com>
87958
87959         * doc/gnulib.texi (Library version handling): New section.
87960
87961 2005-06-28  Jim Meyering  <jim@meyering.net>
87962
87963         * check-module (find_included_lib_files): Hard-code another
87964         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87965         but modules/fts-lgpl (correctly) does not list those files.
87966
87967         * modules/canonicalize (Files): Add lib/pathmax.h.
87968
87969 2005-06-25  Simon Josefsson  <jas@extundo.com>
87970
87971         * modules/check-version: New file.
87972
87973 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87974
87975         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87976         initializer of struct addrinfo, as an indication that we don't
87977         care how many members the structure has.
87978
87979 2005-06-24  Derek Price  <derek@ximbiot.com>
87980         and Bruno Haible  <bruno@clisp.org>
87981
87982         Remove stat module & update lstat.
87983         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87984         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87985         * m4/stat.m4: Remove this file.
87986
87987 2005-06-24  Derek Price  <derek@ximbiot.com>
87988         and Bruno Haible  <bruno@clisp.org>
87989
87990         Remove stat module & update lstat.
87991         * lib/stat.c: Remove this file...
87992         (slash_aware_lstat): ...moving this content and its support...
87993         * lib/lstat.c (rpl_lstat): ...into here.
87994         * lib/lstat.h: New file.
87995
87996 2005-06-24  Derek Price  <derek@ximbiot.com>
87997         and Bruno Haible  <bruno@clisp.org>
87998
87999         Remove stat module & update lstat.
88000         * config/srclist.txt (libc sources): Remove stat.
88001
88002 2005-06-24  Derek Price  <derek@ximbiot.com>
88003         and Bruno Haible  <bruno@clisp.org>
88004
88005         Remove stat module & update lstat.
88006         * MODULES.html.sh (stat): Remove.
88007         * MODULES.html: Regenerated.
88008         * modules/lstat (Description): Correct function name.
88009         (Files): Add "lstat.h".
88010         (Depends-on): Remove stat, add xalloc, stat-macros.
88011         * modules/stat: Remove this file.
88012         (Include): Add "lstat.h", remove <sys/stat.h>.
88013
88014 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
88015
88016         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
88017         (ranged_convert): Don't save conversion in a temporary struct.
88018         This causes a warning with GCC 4.0.0, and anyway in the typical
88019         case it's not worth the extra 100 bytes or so of code.
88020         (ranged_convert, __mktime_internal): When calling a function via a
88021         pointer P, use P () rather than (*P) (), as we now assume C89 or
88022         better.
88023
88024 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88025
88026         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
88027         "who -r" failed to give output.  Problem reported by Tim Waugh.
88028
88029         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
88030         (xcalloc): Use it to avoid needless tests.
88031         Problem reported by Jim Meyering.
88032
88033 2005-06-20  Derek Price  <derek@ximbiot.com>
88034
88035         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
88036         unnecessary for Autoconfs > 2.59c.
88037
88038 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88039
88040         * lib/argp.h (__option_is_short): Check upper limit of
88041         __key. Isprint() requires its argument to have the value
88042         of an unsigned char or EOF.
88043
88044 2005-06-16  Jim Meyering  <jim@meyering.net>
88045
88046         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
88047         when either N or S is zero.
88048
88049 2005-06-16  Derek Price  <derek@ximbiot.com>
88050
88051         * m4/bison.m4: Declare YACC & YFLAGS precious.
88052
88053 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
88054
88055         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
88056         multibyte string or pattern, fall back on unibyte matching.
88057         Problem reported by James Youngman.
88058
88059 2005-06-08  Bruno Haible  <bruno@clisp.org>
88060
88061         * modules/csharpcomp: New file.
88062         * MODULES.html.sh (C#): Add csharpcomp.
88063
88064 2005-06-08  Bruno Haible  <bruno@clisp.org>
88065
88066         * m4/csharpcomp.m4: New file, from GNU gettext.
88067
88068 2005-06-08  Bruno Haible  <bruno@clisp.org>
88069
88070         * lib/csharpcomp.h: New file, from GNU gettext.
88071         * lib/csharpcomp.c: New file, from GNU gettext.
88072         * lib/csharpcomp.sh.in: New file, from GNU gettext.
88073
88074 2005-06-08  Bruno Haible  <bruno@clisp.org>
88075
88076         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
88077         warning on mingw.
88078
88079 2005-06-07  Derek Price  <derek@ximbiot.com>
88080
88081         Sync from CVS.
88082         * lib/glob_.h: Indent nested #ifdef.
88083
88084 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88085
88086         Sync from coreutils.
88087         Use "file name" when talking about file names, instead of "filename"
88088         or "path", as per the GNU coding standards.
88089         * lib/mkdir-p.c: Renamed from makepath.c.
88090         (make_dir_parents): Renamed from make_path.  All callers changed.
88091         * lib/mkdir-p.h: Likewise.  All includers changed.
88092         * lib/filenamecat.c: Renamed from path-concat.c.
88093         (file_name_concat): Renamed from path_concat.  All callers changed.
88094         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
88095         * lib/filenamecat.h: Likewise.  All includers changed.
88096         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
88097         in comments or local variable names.
88098         * lib/basename.c: Likewise.
88099         * lib/canonicalize.c, canonicalize.h: Likewise.
88100         * lib/dirname.c, dirname.h: Likewise.
88101         * lib/euidaccess.c: Likewise.
88102         * lib/exclude.c: Likewise
88103         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
88104         * lib/fsusage.c, fsuage.h: Likewise.
88105         * lib/fts.c, fts_.h: Likewise.
88106         * lib/getcwd.c: Likewise.
88107         * lib/getloadavg.c: Likewise.
88108         * lib/mkstemp.c: Likewise.
88109         * lib/mountlist.c, mountlist.h: Likewise.
88110         * lib/openat.c, openat.h: Likewise.
88111         * lib/readlink-stub.c: Likewise.
88112         * lib/readutmp.c, readutmp.h: Likewise.
88113         * lib/rename.c: Likewise.
88114         * lib/rmdir.c: Likewise.
88115         * lib/same.c: Likewise.
88116         * lib/savedir.c: Likewise.
88117         * lib/stripslash.c: Likewise.
88118         * lib/tempname.c: Likewise.
88119         * lib/xreadlink.c: Likewise.
88120         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
88121         All uses changed.
88122         * lib/exclude.h: Likewise.
88123
88124         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
88125         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88126         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
88127         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88128         * lib/pathmax.h: Include <limits.h> unconditionally, since other
88129         files have been getting away with it for years (MORE/BSD 4.3
88130         is extinct now).
88131         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
88132         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88133
88134         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
88135         Define to 256, not 255, as per modern POSIX.
88136
88137 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88138
88139         Sync from coreutils.
88140         Use "file name" when talking about file names, instead of "filename"
88141         or "path", as per the GNU coding standards.
88142         * MODULES.html.sh: mkdir-p renamed from makepath.
88143         filenamecat renamed from path-concat.
88144         * modules/filenamecat: Renamed from modules/path-concat.
88145         (Files): filenamecat.h and filenamecat.c renamed from
88146         path-concat.h and path-concat.c.
88147         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88148         (Include): filenamecat.h, not path-concat.h.
88149         * modules/mkdir-p: Renamed from modules/makepath.
88150         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88151         makepath.c.
88152         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88153         (Include): mkdir-p.h, not makepath.h.
88154
88155 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88156
88157         Sync from coreutils.
88158         * m4/mkdir-p.m4: Renamed from makepath.m4.
88159         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88160         Rename files from makepath.c to mkdir-p.c, and from
88161         makepath.h to mkdir-p.h.
88162         * m4/filenamecat.m4: Renamed from path-concat.m4.
88163         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88164         Rename files from path-concat.c to filenamecat.c,
88165         and from path-concat.h to filenamecat.h.
88166         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88167         "file name" in local variables or comments.
88168         * m4/rename.m4: Likewise.
88169
88170 2005-06-01  Bruno Haible  <bruno@clisp.org>
88171
88172         * modules/csharpexec: New file.
88173         * MODULES.html.sh (C#): New section.
88174
88175 2005-06-01  Bruno Haible  <bruno@clisp.org>
88176
88177         * m4/csharp.m4: New file, from GNU gettext.
88178         * m4/csharpexec.m4: New file, from GNU gettext.
88179
88180 2005-06-01  Bruno Haible  <bruno@clisp.org>
88181
88182         * lib/csharpexec.h: New file, from GNU gettext.
88183         * lib/csharpexec.c: New file, from GNU gettext.
88184         * lib/csharpexec.sh.in: New file, from GNU gettext.
88185
88186 2005-05-31  Derek Price  <derek@ximbiot.com>
88187             Paul Eggert  <eggert@cs.ucla.edu>
88188
88189         Sync from cvs.
88190         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88191
88192 2005-05-31  Derek Price  <derek@ximbiot.com>
88193             Paul Eggert  <eggert@cs.ucla.edu>
88194
88195         Sync from cvs.
88196         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88197
88198 2005-05-29  Derek Price  <derek@ximbiot.com>
88199
88200         * config/srclist.txt (glob_.h, glob.c): Add these files.
88201
88202 2005-05-29  Derek Price  <derek@ximbiot.com>
88203
88204         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88205         * modules/glob: New file.
88206         * modules/getlogin_r: Add link to POSIX spec in description.
88207
88208 2005-05-29  Derek Price  <derek@ximbiot.com>
88209             Paul Eggert  <eggert@cs.ucla.edu>
88210
88211         * m4/glob.m4: New file.
88212
88213 2005-05-29  Derek Price  <derek@ximbiot.com>
88214             Paul Eggert  <eggert@cs.ucla.edu>
88215
88216         * lib/glob_.h, lib/glob.c: New files.
88217
88218 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88219
88220         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88221         * modules/fts-lgpl (Depends-on): Remove gettext.
88222
88223 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88224
88225         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88226         and don't require gt_INTTYPES_PRI.
88227
88228 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88229
88230         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88231
88232         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88233         the configuration hassle isn't worth it.
88234         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88235         (LONGEST_MODIFIER, PRIuMAX): Remove.
88236
88237 2005-05-27  Bruno Haible  <bruno@clisp.org>
88238
88239         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88240
88241 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88242
88243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88244         _POSIX_PTHREAD_SEMANTICS for Solaris.
88245
88246 2005-05-25  Derek Price  <derek@ximbiot.com>
88247
88248         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88249
88250 2005-05-25  Derek Price  <derek@ximbiot.com>
88251             Paul Eggert  <eggert@cs.ucla.edu>
88252
88253         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88254         * lib/getlogin_r.c, getlogin_r.h: New files.
88255
88256 2005-05-25  Bruno Haible  <bruno@clisp.org>
88257             Derek Price  <derek@ximbiot.com>
88258
88259         * lib/getlogin_r.h: Simplify API documentation.
88260
88261 2005-05-23  Derek Price  <derek@ximbiot.com>
88262
88263         * modules/minmax (Files): Add m4/minmax.m4.
88264         (configure.ac): Add gl_MINMAX.
88265
88266 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88267
88268         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88269         so that unistd-safer.h (GPL'ed code) need not be included.
88270
88271 2005-05-22  Bruno Haible  <bruno@clisp.org>
88272
88273         * m4/minmax.m4: New file.
88274         Based on a patch by Derek Price <derek@ximbiot.com>.
88275
88276 2005-05-22  Bruno Haible  <bruno@clisp.org>
88277
88278         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88279         (INT64_MIN): Fix definition.
88280         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88281
88282         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88283         NEED_SIGNED_INT_TYPES.
88284
88285         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88286         HAVE_SYSTEM_INTTYPES.
88287
88288 2005-05-22  Bruno Haible  <bruno@clisp.org>
88289
88290         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88291         Also include <sys/param.h> if it defines MIN, MAX.
88292         Based on a patch by Derek Price <derek@ximbiot.com>.
88293
88294 2005-05-21  Jim Meyering  <jim@meyering.net>
88295
88296         * modules/fts (Files): Add m4/inttypes-pri.m4.
88297         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88298
88299 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88300
88301         New fts module.
88302         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88303         (setup_dir, free_dir): New functions.
88304         (enter_dir, leave_dir): Define trivial
88305         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88306         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88307         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88308         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88309         Move to fts-cycle.c.
88310         (fts_open): Use setup_dir.
88311         (fts_close): Use free_dir.
88312         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88313         This adds a label and some gotos, but the alternatives were messier.
88314         Check for memory allocation failure when entering a dir.
88315         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88316         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88317         (FTS): New member fts_cycle, that is a union that contains the
88318         old active_dir_ht and cycle_state.  All uses changed to mention
88319         fts_cycle.ht and fts_cycle.state.
88320         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88321         fts.c, with the following changes:
88322         (setup_dir, free_dir): New functions.
88323         (enter_dir): Now returns bool.  Return true if successful, false
88324         if memory exhausted.  All callers changed.
88325         Do not bother partly cleaning up on
88326         memory allocation failure; that is free_dir's job.
88327         However, free ad if hash_insert fails, to avoid memory leak.
88328         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88329         fts->fts_options to see which union member to use.
88330
88331 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88332
88333         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88334         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88335
88336 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88337
88338         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88339
88340 2005-05-20  Jim Meyering  <jim@meyering.net>
88341
88342         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88343         Now a macro, to pacify GCC.
88344
88345 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88346
88347         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88348         of -1.
88349
88350 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88351
88352         * lib/chown.c (rpl_chown): Return -1 on failure.
88353
88354 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88355
88356         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88357         Don't check for stddef.h.
88358         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88359         don't use its results.
88360         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88361         since we include them unconditionally.  Don't require
88362         AM_STDBOOL_H, since stdbool is a prerequisite.
88363         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88364         since we assume C89 or better.
88365         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88366         as we don't use their results.
88367         Don't check for fchdir, memmove, memset, strrchr, as we use
88368         them unconditionally.
88369         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88370         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88371
88372 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88373
88374         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88375         Include <stddef.h> unconditionally, since we assume C89 now.
88376         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88377         * lib/fts.c: Include fts_.h first, to check interface.
88378         Do not include intprops.h; no longer needed.
88379         Include cycle-check.h and hash.h, since fts_.h no longer does.
88380         Remove unnecessary casts of closedir to void.
88381         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88382         decide whether to decrement nlinks.
88383         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88384         (FTS): Use struct hash_table * instead of Hash_table, so that
88385         we no longer need to include hash.h here.
88386
88387 2005-05-18  Jim Meyering  <jim@meyering.net>
88388
88389         * modules/dirfd (License): Change to LGPL.  Most of the code
88390         is already in the public domain.
88391
88392 2005-05-18  Jim Meyering  <jim@meyering.net>
88393
88394         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88395         Reported by Yoann Vandoorselaere.
88396
88397 2005-05-17  Jim Meyering  <jim@meyering.net>
88398
88399         * m4/fts.m4: New file, from coreutils.
88400
88401 2005-05-17  Jim Meyering  <jim@meyering.net>
88402
88403         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88404
88405 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88406
88407         Sync from coreutils.
88408         * m4/unlinkdir.m4: New file.
88409
88410 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88411
88412         Sync from coreutils.
88413         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88414         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88415         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88416         White space changes only.
88417         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88418         special.
88419         * lib/yesno.c: Include getline.h, not ctype.h.
88420         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88421         Use getline to remove arbitrary restriction on response length.
88422
88423 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88424
88425         * config/srclist-update: Spell out "Street" in FSF postal
88426         mail address; this is the style the FSF seems to prefer.
88427
88428         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88429         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88430         this updates FSF postal mail address.
88431
88432         Sync from coreutils.
88433         * modules/unlinkdir: New file.
88434         * modules/yesno (Depends-on): Add getline.
88435         * MODULES.html.sh (File system functions): Add unlinkdir.
88436
88437 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88438
88439         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88440         lib/strsep.h:
88441         Change the initial comment to refer to GPL, not LGPL.
88442         gnulib-tool will change it to LGPL as needed.
88443
88444         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88445         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88446         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88447         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88448         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88449         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88450         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88451         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88452         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88453         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88454         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88455         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88456         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88457         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88458         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88459         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88460         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88461         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88462         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88463         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88464         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88465         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88466         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88467         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88468         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88469         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88470         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88471         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88472         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88473         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88474         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88475         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88476         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88477         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88478         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88479         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88480         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88481         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88482         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88483         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88484         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88485         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88486         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88487         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88488         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88489         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88490         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88491         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88492         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88493         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88494         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88495         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88496         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88497         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88498         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88499         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88500         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88501         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88502         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88503         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88504         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88505         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88506         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88507         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88508         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88509         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88510         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88511         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88512         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88513         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88514         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88515         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88516         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88517         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88518         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88519         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88520         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88521         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88522         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88523         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88524         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88525         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88526         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88527         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88528         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88529         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88530         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88531         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88532         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88533         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88534         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88535         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88536         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88537         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88538         lib/yesno.c, lib/yesno.h:
88539         Update FSF postal mail address.
88540
88541 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88542
88543         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88544         tests/test-memmem.c, tests/test-stpncpy.c:
88545         Update FSF postal mail address.
88546
88547 2005-05-13  Bruno Haible  <bruno@clisp.org>
88548
88549         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88550         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88551         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88552         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88553         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88554         Add support for 64-bit integers in the MSVC compiler.
88555
88556 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88557
88558         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88559
88560 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88561
88562         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88563
88564 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88565
88566         * doc/getdate.texi (General date syntax): Don't say that date
88567         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88568         Problem reported by Nic Ferrier.
88569
88570 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88571
88572         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88573         specified in ai_socktype. Fix invalid ai_protocol
88574         check. ai_protocol is usually set to 0 or depending on
88575         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88576         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88577         ai_socktype / ai_protocol in the returned addrinfo structure.
88578
88579 2005-05-10  Simon Josefsson  <jas@extundo.com>
88580
88581         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88582         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88583
88584 2005-05-10  Karl Berry  <karl@gnu.org>
88585
88586         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88587         (from http://www.gnu.org/licenses).
88588         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88589         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88590         fdl.texi suffices.
88591
88592 2005-05-10  Karl Berry  <karl@gnu.org>
88593
88594         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88595         (COPYING.DOC): remove.
88596
88597         * config/srclist-update: new FSF address.
88598
88599 2005-05-10  Derek Price  <derek@ximbiot.com>
88600
88601         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88602         possible.
88603
88604 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88605             Bruno Haible  <bruno@clisp.org>
88606
88607         * modules/inet_ntop: New file.
88608         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88609         inet_ntop.
88610
88611 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88612             Bruno Haible  <bruno@clisp.org>
88613
88614         * m4/inet_ntop.m4: New file.
88615
88616 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88617             Bruno Haible  <bruno@clisp.org>
88618
88619         * lib/inet_ntop.h: New file.
88620         * lib/inet_ntop.c: New file, from glibc with modifications.
88621
88622 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88623
88624         * modules/time_r (License): Change to LGPL.
88625         * modules/extensions (License): Change to LGPL.  Actually,
88626         the license is more permissive than that, but currently gnulib-tool
88627         doesn't know how to handle more-permissive licenses.
88628
88629         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88630         Problem reported by Dave Love.
88631
88632 2005-05-08  Jim Meyering  <jim@meyering.net>
88633
88634         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88635         blank.
88636
88637 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88638
88639         * modules/argmatch (Depends-on): Add stdbool.
88640         * modules/backupfile (Depends-on): Likewise.
88641         * modules/chdir-long (Depends-on): Likewise.
88642         * modules/closeout (Depends-on): Likewise.
88643         * modules/cycle-check (Depends-on): Likewise.
88644         * modules/dirname (Depends-on): Likewise.
88645         * modules/fnmatch (Depends-on): Likewise.
88646         * modules/fsusage (Depends-on): Likewise.
88647         * modules/fwriteerror (Depends-on): Likewise.
88648         * modules/getcwd (Depends-on): Likewise.
88649         * modules/getloadavg (Depends-on): Likewise.
88650         * modules/hard-locale (Depends-on): Likewise.
88651         * modules/makepath (Depends-on): Likewise.
88652         * modules/mountlist (Depends-on): Likewise.
88653         * modules/nanosleep (Depends-on): Likewise.
88654         * modules/posixtm (Depends-on): Likewise.
88655         * modules/quotearg (Depends-on): Likewise.
88656         * modules/readtokens (Depends-on): Likewise.
88657         * modules/readtokens0 (Depends-on): Likewise.
88658         * modules/readutmp (Depends-on): Likewise.
88659         * modules/save-cwd (Depends-on): Likewise.
88660         * modules/strftime (Depends-on): Likewise.
88661         * modules/userspec (Depends-on): Likewise.
88662         * modules/utimecmp (Depends-on): Likewise.
88663         * modules/xgetcwd (Depends-on): Likewise.
88664         * modules/xnanosleep (Depends-on): Likewise.
88665         * modules/xstrtod (Depends-on): Likewise.
88666         * modules/yesno (Depends-on): Likewise.
88667
88668 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88669
88670         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88671         needless checks.
88672
88673 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88674
88675         Merge from coreutils.  Among other things,
88676         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88677         * lib/fd-safer.c: New file.
88678         * lib/fcntl-safer.h, open-safer.c: Remove.
88679         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88680         * lib/dup-safer.c: Include unistd-safer.h first.
88681         Don't include errno.h.
88682         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88683         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88684         * lib/file-type.c: Rely on file-type.h change.
88685         * lib/getloadavg.c: Include unistd-safer.h.
88686         (getloadavg): Use safer open.
88687         * lib/getusershell.c: Include "stdio-safer.h".
88688         (getusershell): Use safer fopen.
88689         * lib/long-options.c (long_options): Use NULL rather than 0.
88690         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88691         'free'.
88692         * lib/modechange.c: Likewise.
88693         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88694         (MODE_DONE): New constant.
88695         (struct mode_change): Remove 'next' member.
88696         (make_node_op_equals): New function; like the old one of the
88697         same name, except it allocates an array.
88698         (mode_compile, mode_create_from_ref): Use it.
88699         (mode_compile): Allocate result as an array, not a linked list.
88700         Parse octal string ourself, so that we catch mistakes like "+0".
88701         (mode_adjust): Arg is an array, not a linked list.
88702         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88703         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88704         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88705         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88706         Remove.  This is now stat-macros.h's job.
88707         (talloc): Remove.  All callers replaced by xalloc, so that
88708         our invokers don't have to worry about reporting memory failures.
88709         (make_node_op_equals): Remove.
88710         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88711         New constants.
88712         (struct mode_change): Moved here from modechange.h.
88713         (mode_append_entry): Remove.
88714         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88715         apps to have incorrect behavior.  Use simpler algorithm for head
88716         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88717         Detect more invalid usages rather than having somewhat-random behavior.
88718         Don't insert an "a=" action, as that leads to incorrect behavior.
88719         (mode_compile, mode_create_from_ref): Return NULL on error instead
88720         of an enum, since now there's only one way to have an error.  All
88721         callers changed.
88722         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88723         at the correct time.  Simplify calculation of "+u" and its ilk.
88724         Don't mishandle "+X".
88725         (mode_free): Remove "register" and localize decls.
88726         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88727         (struct mode_change): Move to modechange.c; callers don't
88728         need to see this stuff.
88729         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88730         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88731         (mode_change, mode_adjust): Reflect the new signatures noted above.
88732         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88733         that might redefine system include files.
88734         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88735         (my_usleep): Use NULL rather than (void *) 0.
88736         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88737         Use siginterrupt to specify that system calls should be interrupted.
88738         (rpl_nanosleep): Move initialization of suspended closer to call of
88739         my_usleep.
88740         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88741         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88742         (desirable_utmp_entry): New function.
88743         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88744         using x2nrealloc, to simplify logic.
88745         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88746         size calculation.  Do not assume utmp file is a regular file.
88747         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88748         (READ_UTMP_CHECK_PIDS): New constant.
88749         * lib/save-cwd.c: Include unistd-safer.h.
88750         (save_cwd): Use fd_safer.
88751         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88752         [!_LIBC] Include "stat-macros.h" instead.
88753         * lib/unistd-safer.h (fd_safer): New decl.
88754
88755 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88756
88757         * modules/getloadavg (Depends-on): Add unistd-safer.
88758         * modules/getusershell (Depends-on): Add stdio-safer.
88759         * modules/lstat (Depends-on): Remove xalloc.
88760         * modules/mkstemp (Depends-on): Add stat-macros.
88761         * modules/modechange (Depends-on): Remove xstrtol.
88762         Add stat-macros, xalloc.
88763         * modules/save-cwd (Depends-on): Add unistd-safer.
88764         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88765         * modules/unistd-safer (Files): Add lib/fd-safer.c
88766         (Makefile.am): Remove lib_SOURCES.
88767
88768         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88769         Remove fcntl-safer; unistd-safer supersedes it.
88770
88771 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88772
88773         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88774         AC_HEADER_STAT.
88775         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88776         (gl_PREREQ_CHOWN): Remove.
88777         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88778         it.  Don't require AC_HEADER_STAT.
88779         (gl_PREREQ_LSTAT): Remove.
88780         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88781         Don't require AC_HEADER_STAT.
88782         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88783         (gl_PREREQ_RMDIR): Remove.
88784         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88785         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88786         the stat-macros module a prerequisite.
88787         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88788         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88789         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88790         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88791         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88792         variable names.
88793         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88794         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88795         variable prefixes.
88796         * m4/fcntl-safer.m4: Remove.
88797         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88798         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88799         Invoke gl_PREREQ_FD_SAFER.
88800         (gl_PREREQ_FD_SAFER): New macro.
88801         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88802         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88803         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88804         Remove duplicate call to AC_LIBOBJ(readutmp).
88805         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88806
88807         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88808         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88809
88810 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88811
88812         * MODULES.html.sh (Misc): Add byteswap.
88813
88814 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88815
88816         * modules/getcwd (Depends-on): Add extensions.
88817         * modules/openat (Depends-on): Likewise.
88818
88819 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88820
88821         * modules/byteswap: New file.
88822
88823 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88824
88825         * m4/byteswap.m4: New file.
88826
88827 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88828
88829         * lib/byteswap_.h: New file.
88830
88831 2005-04-25  Karl Berry  <karl@gnu.org>
88832
88833         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88834
88835 2005-04-25  Albert Chin  <china@thewrittenword.com>
88836
88837         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88838         Toolkit C bug.
88839
88840 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88841
88842         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88843         (func_ln_if_changed): Remove forcibly for no error message
88844         in case file does not exist.
88845
88846 2005-04-19  Simon Josefsson  <jas@extundo.com>
88847
88848         * gnulib-tool (Options): Make --symlink mean --symbolic.
88849
88850 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88851
88852         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88853
88854 2005-04-16  Simon Josefsson  <jas@extundo.com>
88855
88856         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88857
88858 2005-04-15  Simon Josefsson  <jas@extundo.com>
88859
88860         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88861
88862 2005-04-15  Simon Josefsson  <jas@extundo.com>
88863
88864         * gnulib-tool: Rename --symlink to --symbolic.
88865
88866 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88867
88868         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88869         symbolic links to files instead of copying/moving.  Add --aux-dir,
88870         specifying directory relative --dir where auxiliary build tools
88871         are placed.
88872
88873 2005-04-14  Bruno Haible  <bruno@clisp.org>
88874
88875         * modules/allocsa (License): Change to LGPL.
88876         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88877
88878 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88879
88880         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88881         that "UTC +1 second" continues to work.  Problem reported
88882         by Dmitry V. Levin.
88883         (relunit_snumber): New rule.
88884         (relunit): Use it.
88885
88886 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88887
88888         * lib/getdate.y (universal_time_zone_table): New constant.
88889         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88890         universal_time_zone_table.
88891         (lookup_zone): Prefer universal_time_zone_table to
88892         local_time_zone_table, so that "GMT" time stamps are allowed in
88893         London during the summer.  Problem reported by Ian Abbott.
88894
88895 2005-04-12  Jim Meyering  <jim@meyering.net>
88896
88897         * lib/human.c (humblock): Set *options even when returning due to
88898         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88899         warning from gcc-4.
88900
88901 2005-04-09  Jim Meyering  <jim@meyering.net>
88902
88903         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88904         -Wuninitialized: initialize tm0.tm_year.
88905
88906 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88907
88908         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88909         count, since there's no maximum.  All uses changed.
88910         Add member dsts_seen.
88911         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88912         not being INT_MAX.
88913         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88914         Use pc_rels_seen to decide whether a date is absolute.
88915
88916         * lib/getdate.y (number): Don't overwrite year.
88917         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88918         check.
88919
88920 2005-04-02  Simon Josefsson  <jas@extundo.com>
88921
88922         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88923         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88924
88925 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88926
88927         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88928         where no absolute path name can be longer than PATH_MAX.
88929
88930 2005-03-27  Jim Meyering  <jim@meyering.net>
88931
88932         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88933
88934 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88935
88936         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88937         "one's complement" -> "ones' complement" in comment, as per Knuth.
88938         "value of type" -> "type or expression" in comment.
88939         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88940
88941 2005-03-26  Jim Meyering  <jim@meyering.net>
88942
88943         Comment nits.
88944         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88945         Correct typos: s/or/of/.
88946
88947 2005-03-26  Jim Meyering  <jim@meyering.net>
88948
88949         * modules/check-include-files: Move to ../ and rename to...
88950         * check-module: ...this.
88951
88952 2005-03-25  Jim Meyering  <jim@meyering.net>
88953
88954         * modules/xvasprintf (Files): Add xalloc.h.
88955
88956 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88957
88958         * modules/gettext (Files): config/config.rpath ->
88959         build-aux/config.rpath
88960         * modules/iconv (Files): Likewise.
88961         Problem reported by Oskar Liljeblad.
88962
88963 2005-03-23  Jim Meyering  <jim@meyering.net>
88964
88965         * modules/check-include-files: New script to check for
88966         missing dependencies, multiple includes, etc.
88967
88968         * modules/c-strtold (Depends-on): Add xalloc.
88969         * modules/c-strtod (Depends-on): Add xalloc.
88970         * modules/hash (Depends-on): Add xalloc.
88971         (Files): Remove lib/xalloc.h.
88972
88973         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88974         * modules/userspec (Files): Add lib/inttostr.h.
88975
88976 2005-03-23  Jim Meyering  <jim@meyering.net>
88977
88978         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88979
88980 2005-03-22  Jim Meyering  <jim@meyering.net>
88981
88982         * modules/stat-macros: New module.
88983         * modules/canonicalize, modules/euidaccess, modules/file-type,
88984         * modules/filemode, modules/lchown, modules/makepath,
88985         * modules/rmdir, modules/stat: Depend on new stat-macros module
88986         rather than listing lib/stat-macros.h manually.
88987         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88988
88989 2005-03-22  Jim Meyering  <jim@meyering.net>
88990
88991         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88992
88993 2005-03-22  Bruno Haible  <bruno@clisp.org>
88994
88995         * config/srclist.txt: Replace target directory 'config' with
88996         'build-aux'.
88997         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88998         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88999         ../build-aux/.
89000
89001 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
89002
89003         * modules/chdir-long (Depends-on): Add mempcpy.
89004
89005         * modules/acl, modules/backupfile, modules/c-strtod,
89006         modules/c-strtold, modules/canon-host, modules/canonicalize,
89007         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
89008         modules/exclude, modules/exitfail, modules/file-type,
89009         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
89010         modules/getdate, modules/getline, modules/getpagesize,
89011         modules/getpass, modules/getugroups, modules/group-member,
89012         modules/hard-locale, modules/hash, modules/human, modules/idcache,
89013         modules/inttostr, modules/long-options, modules/makepath,
89014         modules/md5, modules/memcasecmp, modules/memcoll,
89015         modules/modechange, modules/mountlist, modules/path-concat,
89016         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
89017         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
89018         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
89019         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
89020         modules/strftime, modules/strndup, modules/strverscmp,
89021         modules/timespec, modules/unlocked-io, modules/userspec,
89022         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
89023         modules/yesno:
89024         Remove lib_SOURCES line from Makefile.am section, as this is now
89025         done automatically by the corresponding Autoconf macro.
89026
89027 2005-03-21  Jim Meyering  <jim@meyering.net>
89028
89029         Changes imported from coreutils.
89030
89031         * lib/cycle-check.c: Don't include xalloc.h.
89032
89033         * lib/path-concat.c: Don't include assert.h.
89034         (path_concat): Remove assertion that would have triggered
89035         for ABASE starting with more than one slash.
89036         Reported by Andreas Schwab.
89037
89038         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
89039         properly when ABASE is an absolute file name.
89040         Correct the description of this function.
89041         Include <assert.h>.
89042         Add an assertion and a test driver.
89043         This fixes a bug introduced on 2004-07-02.
89044         Andreas Schwab reported the resulting failure of cp --parents:
89045         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
89046
89047 2005-03-21  Jim Meyering  <jim@meyering.net>
89048
89049         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
89050         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
89051
89052 2005-03-21  Jim Meyering  <jim@meyering.net>
89053         and  Paul Eggert  <eggert@cs.ucla.edu>
89054
89055         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
89056         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
89057         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
89058         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
89059         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
89060         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
89061         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
89062         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
89063         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
89064         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
89065         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
89066         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
89067         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
89068         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
89069         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
89070         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
89071         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
89072         for these modules.
89073
89074 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
89075
89076         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
89077         (which shouldn't happen), generate nothing instead of returning 0
89078         immediately, so that nstrftime (NULL, ...) doesn't return 0.
89079
89080 2005-03-16  Bruno Haible  <bruno@clisp.org>
89081
89082         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
89083         HAVE_LONGLONG_64BIT.
89084
89085 2005-03-16  Bruno Haible  <bruno@clisp.org>
89086
89087         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
89088         HAVE_LONGLONG_64BIT.
89089
89090 2005-03-16  Bruno Haible  <bruno@clisp.org>
89091
89092         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
89093         HAVE_LONGLONG_64BIT.
89094
89095 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
89096
89097         * lib/strftime.c (my_strftime): Prepend space to format so that we can
89098         reliably distinguish strftime failure from empty output on POSIX
89099         hosts.
89100
89101 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
89102
89103         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
89104         (iconv_string): Don't guess a size-zero buffer, as that might cause
89105         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
89106         result would be 'too large', where 'too large' is (heuristically)
89107         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
89108         overflow concerns.  This will prevent some unwanted malloc failures
89109         when the inputs are very large.
89110
89111 2005-03-15  Karl Berry  <karl@gnu.org>
89112
89113         * config/srclist.txt (config.rpath): from gettext.
89114         * config/config.rpath: update.
89115
89116 2005-03-15  Bruno Haible  <bruno@clisp.org>
89117
89118         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
89119         to 'negate'.
89120
89121         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
89122         variable.
89123
89124         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
89125         results.
89126
89127 2005-03-14  Simon Josefsson  <jas@extundo.com>
89128
89129         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
89130         <fx@gnu.org>.
89131
89132 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
89133
89134         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
89135         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
89136         intprops.h.
89137         * lib/strtol.c: Likewise.
89138
89139 2005-03-14  Jim Meyering  <jim@meyering.net>
89140
89141         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
89142         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
89143         to be nonzero so that we (and caller) can detect the difference
89144         between a valid zero-length expansion and an error return, even
89145         when the underlying strftime fails before writing anything into
89146         that location.
89147
89148 2005-03-14  Bruno Haible  <bruno@clisp.org>
89149
89150         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89151         Update from GNU gettext 0.14.3.
89152
89153 2005-03-10  Jim Meyering  <jim@meyering.net>
89154
89155         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89156
89157 2005-03-10  Jim Meyering  <jim@meyering.net>
89158
89159         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89160         so that this module works on systems without fchdir.
89161
89162 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89163
89164         Factor int-properties macros into a single file, except for
89165         glibc-related files.
89166         * lib/intprops.h: New file.
89167         * lib/getloadavg.c: Include it instead of limits.h.
89168         (INT_STRLEN_BOUND): Remove.
89169         * lib/human.c: Include intprops.h.
89170         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89171         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89172         302/1000.
89173         * lib/inttostr.h: Include intprops.h instead of limits.h.
89174         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89175         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89176         for consistency with intprops.h.
89177         (time_t_is_integer, twos_complement_arithmetic): Use them.
89178         * lib/sig2str.h: Include <signal.h>, intprops.h.
89179         (INT_STRLEN_BOUND): Remove.
89180         * lib/strftime.c (TYPE_SIGNED): Remove.
89181         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89182         * lib/strtol.c: Adjust comments to match intprops.h.
89183         * lib/userspec.c: Include intprops.h.
89184         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89185         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89186         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89187         instead of rolling our own expressions.
89188         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89189
89190         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89191         instead of int.
89192         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89193         the right thing even if adding 1900 would overflow.  Similarly
89194         for tm_mon + 1 and tm_yday + 1.
89195         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89196         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89197         (DO_SIGNED_NUMBER): New macro.
89198         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89199
89200 2005-03-07  Bruno Haible  <bruno@clisp.org>
89201
89202         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89203
89204 2005-03-07  Bruno Haible  <bruno@clisp.org>
89205
89206         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89207
89208 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89209
89210         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89211         (func_import): Only replace files via --import when they have actually
89212         changed.
89213
89214 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89215
89216         * m4/mmap-anon.m4: New file.
89217         * m4/pagealign_alloc.m4: New file.
89218
89219 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89220             Bruno Haible  <bruno@clisp.org>
89221
89222         * modules/pagealign_alloc: New file.
89223         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89224
89225 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89226             Bruno Haible  <bruno@clisp.org>
89227
89228         * lib/pagealign_alloc.h: New file.
89229         * lib/pagealign_alloc.c: New file.
89230
89231 2005-03-03  Bruno Haible  <bruno@clisp.org>
89232
89233         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89234         Use an all-permissive copyright notice, recommended by RMS.
89235
89236 2005-03-02  Bruno Haible  <bruno@clisp.org>
89237
89238         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89239         of AIX, the replacement has to be done only after <string.h> is
89240         included, therefore not in config.h. stpncpy.h does the replacement,
89241         and stpncpy.c uses it.
89242
89243 2005-03-02  Bruno Haible  <bruno@clisp.org>
89244
89245         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89246         stpncpy.c uses it.
89247
89248 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89249
89250         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89251         The workaround isn't strictly needed for POSIX conformance, and
89252         it's too much of a pain to configure and maintain.  We'll ask
89253         people to fix their kernels instead.
89254         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89255         (NANOSLEEP_BUG_WORKAROUND): Remove.
89256         (xnanosleep): Remove the workaround.
89257
89258 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89259
89260         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89261         Reported by Derek Price.
89262         (Include): Add "timespec.h".
89263
89264         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89265
89266 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89267
89268         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89269         to detect nanosleep bug.
89270
89271 2005-03-01  Bruno Haible  <bruno@clisp.org>
89272
89273         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89274
89275 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89276
89277         * modules/gethrxtime: New file.
89278         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89279         (Depends-on): Add gethrxtime.
89280         (configure.ac): Add gl_XNANOSLEEP.
89281         (Makefile.am): Remove lib_SOURCES line.
89282
89283 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89284
89285         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89286         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89287
89288 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89289
89290         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89291         * lib/timespec.h (gettime): Return void, since it always
89292         succeeds now.  All uses changed.
89293         * lib/gettime.c (gettime): Likewise.
89294         [HAVE_NANOTIME]: Prefer nanotime.
89295         Assume gettimeofday succeeds, as POSIX requires.
89296         Assime time () succeeds, since other code already does.
89297         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89298         (timespec_subtract): Remove.
89299         (NANOSLEEP_BUG_WORKAROUND): New constant.
89300         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89301         things considerably.  Use it only on GNU/Linux hosts, since the
89302         workaround shouldn't be needed elsewhere.
89303
89304 2005-02-24  Bruno Haible  <bruno@clisp.org>
89305
89306         * modules/gettext (Files): Add m4/glibc2.m4.
89307
89308 2005-02-24  Bruno Haible  <bruno@clisp.org>
89309
89310         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89311         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89312         * m4/progtest.m4:
89313         Update from GNU gettext 0.14.2.
89314         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89315
89316 2005-02-24  Bruno Haible  <bruno@clisp.org>
89317
89318         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89319         * lib/config.charset: Update from GNU gettext 0.14.2.
89320
89321 2005-02-24  Bruno Haible  <bruno@clisp.org>
89322
89323         * lib/gettext.h: Update from GNU gettext 0.14.2.
89324
89325 2005-02-23  Simon Josefsson  <jas@extundo.com>
89326
89327         * m4/iconvme.m4: New file.
89328
89329 2005-02-23  Jim Meyering  <jim@meyering.net>
89330
89331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89332         change.
89333         Thanks to Bruno Haible for catching it.
89334
89335 2005-02-22  Simon Josefsson  <jas@extundo.com>
89336
89337         * modules/iconvme: New file.
89338
89339         * MODULES.html.sh: Add iconvme.
89340
89341 2005-02-22  Simon Josefsson  <jas@extundo.com>
89342
89343         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89344
89345 2005-02-22  Simon Josefsson  <jas@extundo.com>
89346
89347         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89348
89349 2005-02-22  Jim Meyering  <jim@meyering.net>
89350
89351         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89352         s/ifndef/ifdef/.
89353
89354 2005-02-20  Neil Conway  <neilc@samurai.com>
89355
89356         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89357         returned by OSX/Darwin if the specified buffer is not large
89358         enough for the hostname.
89359
89360 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89361
89362         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89363         pass it to _help, otherwise the latter coredumps trying to
89364         dereference state.root_argp.
89365
89366 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89367
89368         * modules/chdir-long (Depends-on): Add memrchr.
89369         * modules/memrchr (Files): Add lib/memrchr.h.
89370         (Include): "memrchr.h".
89371
89372 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89373
89374         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89375
89376 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89377
89378         * lib/memrchr.h: New file.
89379         * lib/chdir-long.c: Include it.
89380         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89381         Don't bother including stddef.h.
89382
89383 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89384
89385         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89386         inclusion.
89387         Include <sys/types.h>, for dev_t.
89388         (ME_DUMMY, ME_REMOTE): Move from here....
89389         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89390         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89391         Dmitry V. Levin.
89392         Include mountlist.h first, to test the interface.
89393
89394 2005-01-29  Bruno Haible  <bruno@clisp.org>
89395
89396         * lib/progname.c (program_name): Initialize.
89397         Needed when linking statically on MacOS X.
89398
89399 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89400
89401         Sync from coreutils.
89402         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89403         (Depends-on): Add c-strtod.
89404         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89405
89406 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89407
89408         Sync from coreutils.
89409         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89410
89411         Remove files that are specific to coreutils.
89412         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89413
89414 2005-01-28  Bruno Haible  <bruno@clisp.org>
89415
89416         * modules/javacomp: New file.
89417         * MODULES.html.sh (Java): Add javacomp.
89418
89419 2005-01-28  Bruno Haible  <bruno@clisp.org>
89420
89421         * m4/javacomp.m4: New file, from GNU gettext.
89422
89423 2005-01-28  Bruno Haible  <bruno@clisp.org>
89424
89425         * lib/javacomp.sh.in: New file, from GNU gettext.
89426         * lib/javacomp.h: New file, from GNU gettext.
89427         * lib/javacomp.c: New file, from GNU gettext.
89428
89429 2005-01-26  Simon Josefsson  <jas@extundo.com>
89430
89431         * lib/gai_strerror.c: Use GPL in header.
89432
89433 2005-01-26  Bruno Haible  <bruno@clisp.org>
89434
89435         * modules/javaexec: New file.
89436         * MODULES.html.sh (Java): Add javaexec.
89437
89438 2005-01-26  Bruno Haible  <bruno@clisp.org>
89439
89440         * m4/javaexec.m4: New file, from GNU gettext.
89441
89442 2005-01-26  Bruno Haible  <bruno@clisp.org>
89443
89444         * lib/javaexec.sh.in: New file, from GNU gettext.
89445         * lib/javaexec.h: New file, from GNU gettext.
89446         * lib/javaexec.c: New file, from GNU gettext.
89447
89448 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89449
89450         * modules/lchown (Depends-on): Remove lchown.h
89451
89452 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89453
89454         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89455         must be defined if the header file was not found, in order
89456         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89457
89458 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89459
89460         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89461         initializers for struct pentry_state.
89462         (__argp_error): Check return value of __asprintf
89463         (__argp_failure): Translate error message
89464
89465         * lib/argp-parse.c: Removed braces around the expansion of N_()
89466
89467 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89468
89469         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89470         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89471         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89472         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89473         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89474         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89475         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89476         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89477         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89478         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89479         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89480         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89481         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89482         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89483         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89484         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89485         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89486         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89487         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89488         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89489         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89490         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89491         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89492         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89493         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89494         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89495         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89496         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89497         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89498         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89499         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89500         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89501         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89502         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89503         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89504         Use an all-permissive copyright notice, recommended by RMS.
89505
89506 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89507
89508         * modules/chdir-long (Depends-on): Remove mempcpy.
89509
89510 2005-01-21  Jim Meyering  <jim@meyering.net>
89511
89512         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89513         same value as for Solaris 9.
89514
89515         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89516         component length.  This included changing the parameter to be
89517         of type `char *' rather than `char const *'.
89518         * lib/chdir-long.h (chdir_long): Update prototype.
89519
89520         * lib/openat.c (fdopendir, fstatat): New functions.
89521         * lib/openat.h: Include headers required for use of DIR and struct
89522         stat.
89523         [AT_SYMLINK_NOFOLLOW]: Define.
89524         (fdopendir, fstatat): Add prototypes.
89525
89526 2005-01-21  Bruno Haible  <bruno@clisp.org>
89527
89528         * modules/classpath: New file.
89529         * MODULES.html.sh (Java): Add classpath.
89530
89531 2005-01-21  Bruno Haible  <bruno@clisp.org>
89532
89533         * lib/classpath.h: New file, from GNU gettext.
89534         * lib/classpath.c: New file, from GNU gettext.
89535
89536 2005-01-20  Simon Josefsson  <jas@extundo.com>
89537
89538         * modules/version-etc-fsf: New file.
89539
89540 2005-01-20  Simon Josefsson  <jas@extundo.com>
89541
89542         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89543         * lib/version-etc.c: Remove version_etc_copyright.
89544         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89545         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89546
89547 2005-01-20  Simon Josefsson  <jas@extundo.com>
89548
89549         * lib/base64.h (isbase64): Add.
89550
89551         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89552         using a unsigned prototype, don't inline.
89553         (base64_decode): Use it.
89554
89555 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89556
89557         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89558         it.
89559
89560 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89561
89562         * lib/save-cwd.c (save_cwd): Remove code to support the case
89563         where fchdir is missing or flaky.
89564
89565 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89566
89567         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89568
89569 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89570
89571         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89572         AC_LIBSOURCES now does this.
89573         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89574         with new ullong_max module.
89575
89576 2005-01-19  Bruno Haible  <bruno@clisp.org>
89577
89578         * modules/sh-quote: New file.
89579         * MODULES.html.sh (Executing programs): Add sh-quote.
89580
89581 2005-01-19  Bruno Haible  <bruno@clisp.org>
89582
89583         * lib/sh-quote.h: New file, from GNU gettext.
89584         * lib/sh-quote.c: New file, from GNU gettext.
89585
89586 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89587
89588         Merge from coreutils.
89589         * m4/ullong_max.m4: New file.
89590         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89591         (gl_MACROS): Assume localeconv exists.
89592
89593 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89594
89595         Merge changes from coreutils, as described below in several
89596         changelogs dated today.
89597
89598         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89599         (O_DIRECTORY): Remove; not needed here, since "." must be
89600         a directory.  All uses removed.
89601         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89602         universal on Suns, and we also need to test for IRIX.
89603         Revamp code to use 'if' rather than '#if'.
89604         Avoid unnecessary comparison of cwd->desc to 0.
89605
89606         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89607         for known valid error numbers rather than observed invalid ones.
89608
89609 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89610
89611         * modules/ullong_max: New file.
89612
89613         * modules/chdir-long, modules/openat: New files.
89614         * modules/save-cwd (Depends-on): Depend on chdir-long.
89615         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89616
89617 2005-01-18  Jim Meyering  <jim@meyering.net>
89618
89619         Merge from coreutils.
89620         * m4/chdir-long.m4, m4/openat.m4: New files.
89621         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89622         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89623         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89624         is sane and DOES follow symlinks.  Besides, testing 20 different
89625         systems found no broken chown implementations.
89626         Prompted by a change in rsync's copy of this macro.
89627         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89628
89629         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89630
89631         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89632         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89633         NULL-means-set-to-current-time semantics.
89634         Remove temporary file immediately, rather than waiting
89635         for configure's at-exit trap code to do it.
89636
89637 2005-01-18  Jim Meyering  <jim@meyering.net>
89638
89639         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89640
89641         * lib/utimens.c (futimens): Account for the fact that futimes
89642         can also fail with errno == ENOSYS or errno == ENOENT.
89643         Patch from Dmitry V. Levin.
89644
89645         Change the name of the robust chdir function from chdir to chdir_long.
89646         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89647         (restore_cwd): Use chdir_long, not chdir.
89648         * lib/chdir-long.c: Renamed from chdir.c.
89649         * lib/chdir-long.h: Renamed from chdir.h.
89650         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89651         Hurd.
89652
89653 2005-01-18  Bruno Haible  <bruno@clisp.org>
89654
89655         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89656         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89657         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89658         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89659         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89660         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89661         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89662         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89663         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89664         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89665         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89666         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89667         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89668         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89669         Use an all-permissive copyright notice, recommended by RMS.
89670
89671 2005-01-18  Bob Proulx  <bob@proulx.com>
89672
89673         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89674         simplify offsetof() macro construct to avoid compile failure with
89675         native HP-UX 11.0 ANSI C compiler.
89676
89677 2005-01-17  Bruno Haible  <bruno@clisp.org>
89678
89679         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89680         redundant because stpncpy.m4 takes care of it.
89681
89682 2005-01-17  Bruno Haible  <bruno@clisp.org>
89683
89684         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89685
89686 2005-01-17  Bruno Haible  <bruno@clisp.org>
89687
89688         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89689         used.
89690
89691 2005-01-17  Bruno Haible  <bruno@clisp.org>
89692
89693         * lib/fwriteerror.h (fwriteerror): Change specification to include
89694         fclose.
89695         * lib/fwriteerror.c: Include <stdbool.h>.
89696         (fwriteerror): At the end, close the file stream. Record whether
89697         stdout was already closed.
89698
89699 2005-01-17  Bruno Haible  <bruno@clisp.org>
89700
89701         * lib/execute.c (environ): Declare if needed.
89702         * lib/pipe.c (environ): Likewise.
89703         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89704
89705 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89706
89707         * modules/argp: Depend on vsnprintf
89708
89709 2005-01-10  Jim Meyering  <jim@meyering.net>
89710
89711         * modules/closeout (Depends-on): Add atexit.
89712
89713 2005-01-06  Bruno Haible  <bruno@clisp.org>
89714
89715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89716
89717 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89718
89719         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89720         definitions to be after all include files, to avoid collisions.
89721         Problem reported by Bob Proulx.
89722
89723 2005-01-04  Jim Meyering  <jim@meyering.net>
89724
89725         Changes imported from coreutils.
89726         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89727         as the mkstemp template, use a temporary directory and an
89728         8.3-friendly template to avoid trouble on systems like DJGPP.
89729         Reported by Juan M. Guerrero via Stepan Kasal.
89730         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89731         close. Remove the temporary directory right away, rather than waiting
89732         for configure's at-exit trap code to do it.
89733         Suggestion from Stepan Kasal.
89734
89735 2005-01-01  Simon Josefsson  <jas@extundo.com>
89736
89737         * gnulib-tool: Print #include directives when --import'ing.
89738
89739 2004-12-28  Simon Josefsson  <jas@extundo.com>
89740
89741         * tests/test-base64.c: Include required header files.  Remove
89742         unused variables.
89743
89744 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89745
89746         * modules/error (Depends-on): Remove gettext.
89747
89748 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89749
89750         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89751         not needed.  This removes a dependency on the gettext module.
89752         [defined _LIBC]: Do not include <libintl.h>; not needed.
89753
89754 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89755
89756         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89757         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89758
89759 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89760
89761         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89762         HAVE_DECL_STRTOLD.
89763
89764 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89765
89766         * modules/getdate (Depends-on): Remove alloca-opt.
89767
89768 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89769
89770         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89771
89772 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89773
89774         * lib/argp-parse.c: Include <stddef.h>.
89775         (alignof, alignto): New macros.
89776         (parser_init): Don't assume that void * is aligned sufficiently
89777         for struct option.
89778
89779         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89780         need to extend the stack.
89781         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89782         large.
89783
89784 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89785
89786         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89787
89788 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89789
89790         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89791         (2004-10-24) change.  Apparently this was a false alarm.
89792
89793         * modules/getdate: Depend on alloca-opt, not alloca.
89794
89795 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89796
89797         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89798         Remove now-obsolete comment about AIX.
89799         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89800         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89801         (YYMAXDEPTH): New macro.
89802
89803 2004-12-18  Simon Josefsson  <jas@extundo.com>
89804
89805         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89806
89807 2004-12-18  Bruno Haible  <bruno@clisp.org>
89808
89809         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89810
89811 2004-12-18  Bruno Haible  <bruno@clisp.org>
89812
89813         * lib/fatal-signal.c (fatal_signals): Make non-const.
89814         (init_fatal_signals): New function.
89815         (uninstall_handlers, install_handlers): Ignore signals that were set to
89816         SIG_IGN.
89817         (at_fatal_signal): Call init_fatal_signals.
89818         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89819         SIG_IGN.
89820         Reported by Paul Eggert.
89821
89822 2004-12-18  Bruno Haible  <bruno@clisp.org>
89823
89824         * doc/alloca.texi: New file.
89825         * doc/alloca-opt.texi: New file.
89826
89827 2004-12-17  Jim Meyering  <jim@meyering.net>
89828
89829         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89830         Otherwise, install-sh could exit with improper exit status when
89831         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89832
89833 2004-12-16  Simon Josefsson  <jas@extundo.com>
89834
89835         * tests/test-base64.c: Add license.
89836
89837 2004-12-15  Stepan Kasal  <address@hidden>
89838
89839         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89840
89841 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89842
89843         * modules/getcwd (Files): Add m4/d-ino.m4.
89844         Suggested by Mark D. Baushke.
89845
89846 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89847
89848         * lib/getdate.y (textint): New member "negative".
89849         (time_zone_hhmm): New function.
89850         Expect 14 shift-reduce conflicts, not 13.
89851         (o_colon_minutes): New rule.
89852         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89853         (yylex): Set the "negative" member of signed numbers.
89854
89855 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89856
89857         * doc/getdate.texi (Time of day items, Time zone items):
89858         Describe new formats +00:00, UTC+00:00.
89859
89860 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89861
89862         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89863         spurious "-l"s.  Problem reported by Stepan Kasal.
89864
89865 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89866
89867         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89868         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89869
89870 2004-12-04  Simon Josefsson  <jas@extundo.com>
89871
89872         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89873         Vandoorselaere <yoann@prelude-ids.org>.
89874
89875 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89876
89877         Changes imported from coreutils.
89878         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89879         exist.
89880         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89881
89882 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89883
89884         Changes imported from coreutils.
89885         * lib/hard-locale.c: Assume <locale.h> exists.
89886         Include "strdup.h".
89887         (GLIBC_VERSION): New macro.
89888         (hard_locale): Assume setlocale exists.
89889         Rewrite to avoid #ifdef.
89890         Use strdup rather than malloc + strcpy.
89891         * lib/human.c: Assume <locale.h> exists.
89892         (human_readable): Assume localeconv exists.
89893
89894 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89895
89896         * modules/hard-locale (Depends-on): Add strdup.
89897
89898 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89899
89900         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89901         convert T2, not T.  (Imported from libc.)
89902
89903 2004-11-30  Simon Josefsson  <jas@extundo.com>
89904
89905         * modules/restrict (License): Change to LGPL.
89906
89907 2004-11-30  Simon Josefsson  <jas@extundo.com>
89908
89909         * m4/restrict.m4: Add copyright and copying conditions.
89910
89911 2004-11-30  Simon Josefsson  <jas@extundo.com>
89912
89913         * m4/base64.m4: New file.
89914
89915 2004-11-30  Simon Josefsson  <jas@extundo.com>
89916
89917         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89918         base64.
89919
89920         * tests/test-base64.c: New file.
89921
89922         * modules/base64: New file.
89923
89924 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89925
89926         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89927         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89928
89929         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89930
89931 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89932
89933         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89934         (__getcwd.c): Don't restore errno; glibc doesn't.
89935         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89936         first, falling back to our code only if its results look suspicious.
89937         Ensure that the resulting buffer is only as large as necessary.
89938
89939         * lib/readutmp.c: Include readutmp.h first.
89940         Include <errno.h>, since readutmp.h no longer does that.
89941         * lib/readutmp.h: Don't include <errno.h>,
89942         <sys/param.h>, <time.h>; not needed to establish interface.
89943         (errno): Remove decl.
89944         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89945         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89946         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89947
89948 2004-11-28  Simon Josefsson  <jas@extundo.com>
89949
89950         * lib/base64.h, base64.c: New file.
89951
89952 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89953
89954         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89955
89956 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89957
89958         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89959         (Depends-on): Remove pathmax, same.  Add mempcpy.
89960         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89961         (Makefile.am): Append getcwd.h to lib_SOURCES.
89962         (Include): Add getcwd.h.
89963         (Maintainer): Change from Jim Meyering to "all, glibc",
89964         since getdate now uses intended-for-glibc code.
89965         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89966         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89967
89968 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89969
89970         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89971         HP's ANSI C compiler.
89972         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89973         Declaring int functions causes warnings on some modern systems and
89974         shouldn't be needed to compile on ancient ones.
89975         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89976         defined.
89977
89978         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89979         with the following changes.
89980         (__set_errno): Parenthesize properly.
89981         Include <stdbool.h>.
89982         (MIN, MAX, MATCHING_INO): New macros.
89983         (__getcwd): Define with prototype, not K&R form.
89984         Use heuristics to allocate default buffer on stack if possible.
89985         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89986         behavior, and to avoid the PATH_MAX limit when computing
89987         ../../../../...
89988         Use MATCHING_INO to compare inode number to file.
89989         Check for arithmetic overflow in size calculations.
89990         Fix bug in reallocation of dot array that caused getcwd to fail
89991         on directories nested deeper than 75.
89992         Be more careful about saving errno on error.
89993         Do not use realloc; use only free+malloc, as this is a bit
89994         more flexible and avoids a needless copy operation.
89995         Do not inspect st_dev and st_ino for symbolic links; POSIX
89996         doesn't specify the latter.
89997         Check for closedir errors.
89998         Avoid needless casts.
89999         Use "#ifdef weak_alias" around weak_alias, to be like other
90000         glibc code.
90001         The following changes to getcwd.c have effect only when used in
90002         gnulib; they have no effect inside glibc proper.
90003         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
90004         as alloca isn't used.
90005         (alloca, __alloca): Likewise.
90006         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
90007         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90008         unconditionally, as gnulib assumes C89 or better.
90009         Do not include <sys/param.h>.
90010         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
90011         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
90012         better.
90013         (NULL) [!defined NULL]: Remove; we assume C89 or better.
90014         Include <dirent.h> in a way that is compatible with modern Autoconf.
90015         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
90016         New macros, if not already defined.
90017         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
90018         Use "_LIBC", not "defined _LIBC", for consistency.
90019         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
90020         a mempcpy module.
90021         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
90022         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
90023         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
90024         credit only to Jim Meyering and adjust the copyright dates.
90025         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
90026         <stdlib.h>, <unistd.h>, "pathmax.h".
90027         Instead, include "xgetcwd.h" (first) and "getcwd.h".
90028         (INITIAL_BUFFER_SIZE): Remove.
90029         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
90030
90031 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
90032
90033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
90034         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
90035         Use the _ONCE methods, for efficiency.
90036         Check for fcntl.h.  In test program, include <errno.h>
90037         and <fcntl.h> if available.  Remove old K&R cruft from
90038         test program.  Check for common errors in GNU/Linux,
90039         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
90040         don't do AC_LIBOBJ, as that's getcwd.m4's job.
90041         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
90042         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
90043         name accordingly.
90044         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
90045         accommodate new getcwd.c.
90046         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
90047         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
90048         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
90049         that's all we need now.
90050
90051 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90052
90053         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
90054         argp-parse.c depends on getopt internals, that means we should
90055         always use our getopt, to be on the safe side.
90056         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
90057         order not to spoil the result of an eventual previous invocation
90058         of gl_GETOPT_SUBSTITUTE.
90059
90060 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90061
90062         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
90063         redefinition warnings. To avoid them, include the defines
90064         in `#if !defined __need_getopt ... #endif'. The only place
90065         where __getopt_argv_const is used is in definitions
90066         of getopt_long and getopt_long_only below, which are as well
90067         protected by `#ifndef __need_getopt'.
90068         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
90069         __need_getopt after including <stdio.h> and <unistd.h> These
90070         headers might have defined it.
90071
90072 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
90073
90074         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
90075
90076 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
90077
90078         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
90079         (futimens): New function, which uses futimes if available.
90080         (futimens, utimens): Support timespec==NULL, with same semantics
90081         as utime and utimens.
90082         * lib/utimens.h (futimens): New decl.
90083
90084 2004-11-23  Jim Meyering  <jim@meyering.net>
90085
90086         * lib/getopt_.h: Remove trailing blanks.
90087
90088 2004-11-23  Jim Meyering  <jim@meyering.net>
90089
90090         * lib/__fpending.c: Add comment.
90091
90092 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
90093
90094         * modules/canonicalize (Depends-on): Add xreadlink.
90095         Problem reported by James Youngman.
90096
90097 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90098
90099         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
90100         New macros.
90101         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
90102         optopt): Use them instead of invoking ## directly; otherwise, the
90103         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
90104
90105 2004-11-19  Bruno Haible  <bruno@clisp.org>
90106
90107         * lib/strtok_r.c: Move comments from here...
90108         * lib/strtok_r.h: ... to here.
90109
90110 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90111
90112         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
90113         implementations that mishandle size_t overflow.
90114
90115 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90116
90117         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
90118         might fail.  Problem reported by Yoann Vandoorselaere.
90119         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
90120         implementations that mishandle size_t overflow.
90121
90122 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90123
90124         * modules/canon-host (Depends-on): Add strdup.
90125
90126 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90127
90128         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
90129
90130 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90131
90132         * lib/canon-host.c: Include "strdup.h".
90133         (canon_host): Use getaddrinfo if available, so that IPv6 works.
90134         Use strdup instead of malloc/strcpy to duplicate strings.
90135
90136         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
90137         (human_space_before_unit): New constant.
90138         * lib/human.c (human_readable): Support it.
90139
90140         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
90141         (xgetcwd): Set errno correctly when failing.
90142         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
90143         the failure is actually due to a PATH_MAX problem.
90144
90145         Further getopt changes to make it more likely that glibc will
90146         buy the changes back.
90147         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90148         (getopt): Use it, so to preserve glibc semantic
90149         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90150         when compiling for libc.
90151         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90152         (getopt_long, getopt_long_only): Use it.
90153
90154         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90155         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90156         (getopt): Argv is now char * const *, as per standard.
90157         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90158         not char *__getopt_argv_const *.
90159         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90160         _getopt_long_only_r): Likewise.
90161         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90162         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90163         _getopt_long_r, _getopt_long_only_r): Likewise.
90164         * lib/getopt_.h (__getopt_argv_const): Remove.
90165         (getopt): Argv is now char * const *, as per standard.
90166
90167         * lib/getdate.y (tORDINAL): New token.
90168         (day, relunit): Allow it for relative times.
90169         (relative_time_table): Use tORDINAL for ordinals.
90170
90171 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90172
90173         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90174         Document that "second" isn't allowed as an ordinal number.
90175
90176 2004-11-16  Jim Meyering  <jim@meyering.net>
90177
90178         * modules/closeout (Depends-on): Add fpending.
90179
90180 2004-11-15  Jim Meyering  <jim@meyering.net>
90181
90182         * lib/closeout.c: Include "__fpending.h" once again.
90183         Include <stdbool.h>.
90184         (close_stdout): Don't fail just because stdout was closed initially,
90185         since some programs don't write to stdout in the normal course of
90186         operation (other than --version and --help), and we don't want this
90187         function to make e.g. `touch file >&-' fail.
90188         But do fail if it was closed and someone has tried to write to it.
90189         E.g., `printf foo >&-' must fail.
90190
90191 2004-11-13  Jim Meyering  <jim@meyering.net>
90192
90193         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90194
90195 2004-11-12  Simon Josefsson  <jas@extundo.com>
90196
90197         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90198         small doc fix is still pending.
90199
90200 2004-11-11  Simon Josefsson  <jas@extundo.com>
90201
90202         * modules/strtok_r: New file.
90203
90204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90205         strtok_r.
90206
90207 2004-11-11  Simon Josefsson  <jas@extundo.com>
90208
90209         * m4/strtok_r.m4: New file.
90210
90211         * m4/getopt.m4: Replace opterr.
90212
90213 2004-11-11  Simon Josefsson  <jas@extundo.com>
90214
90215         * lib/strtok_r.h, strtok_r.c: New file.
90216
90217 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90218
90219         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90220         of replacing opterr, getopt, etc.  This should handle the
90221         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90222
90223 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90224
90225         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90226         we can stop lying to compilers about the constness of argv when we
90227         are compiled outside glibc.
90228         (getopt, getopt_long, getopt_long_only): Use it.
90229         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90230         _getopt_internal, getopt): Likewise.
90231         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90232         _getopt_long_only_r): Likewise.
90233         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90234         _getopt_long_r, _getopt_long_only_r): Likewise.
90235
90236         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90237         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90238         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90239         the other external symbols.
90240         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90241         declaration, since the above renaming now works around collisions.
90242
90243 2004-11-11  Jim Meyering  <jim@meyering.net>
90244
90245         * lib/linebreak.c: Remove trailing blanks.
90246         * lib/alloca_.h: Likewise.
90247         * lib/acosl.c: Likewise.
90248         * lib/euidaccess.c: Likewise.
90249         * lib/allocsa.h: Likewise.
90250
90251 2004-11-10  Simon Josefsson  <jas@extundo.com>
90252
90253         * m4/getaddrinfo.m4: New file.
90254
90255 2004-11-10  Simon Josefsson  <jas@extundo.com>
90256
90257         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90258
90259 2004-11-10  Simon Josefsson  <jas@extundo.com>
90260
90261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90262         getaddrinfo.
90263
90264         * modules/getaddrinfo: New file.
90265
90266 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90267
90268         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90269
90270 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90271
90272         * lib/mktime.c (SHR): New macro, which is a portable
90273         substitute for >> that should work even on Crays.
90274         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90275         Problem reported by Mark D. Baushke in
90276         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90277         * lib/getdate.y (SHR): Likewise.
90278         (tm_diff): Use it.
90279         * lib/strftime.c (SHR): Likewise.
90280         (tm_diff): Use it.
90281         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90282         quote_these_too, so that right shifts are well defined.  All uses
90283         changed.
90284
90285 2004-11-10  Jim Meyering  <jim@meyering.net>
90286
90287         Ensure that no close failure goes unreported.
90288         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90289         return early when it seems there's nothing to flush.
90290         Don't include __fpending.h.
90291
90292 2004-11-10  Jim Meyering  <jim@meyering.net>
90293
90294         * modules/closeout (Depends-on): Remove fpending.
90295
90296 2004-11-10  Jim Meyering  <jim@meyering.net>
90297
90298         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90299
90300 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90301
90302         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90303         gl_FUNC_STRFTIME.
90304         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90305         and AC_REQUIRE when possible, to avoid duplicate checks.
90306         Check for <wchar.h>.
90307
90308 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90309
90310         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90311
90312 2004-11-09  Bruno Haible  <bruno@clisp.org>
90313
90314         * m4/sockpfaf.m4: New file.
90315
90316 2004-11-05  Bruno Haible  <bruno@clisp.org>
90317
90318         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90319         Reported by Mark D. Baushke <mdb@cvshome.org>.
90320
90321 2004-11-04  Bruno Haible  <bruno@clisp.org>
90322
90323         2004-09-11  Bruno Haible  <bruno@clisp.org>
90324                 * allocsa.valgrind: New file.
90325         2004-02-06  Bruno Haible  <bruno@clisp.org>
90326                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90327                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90328                 Reported by Christopher Seip <chris.seip@hp.com>.
90329
90330 2004-11-04  Bruno Haible  <bruno@clisp.org>
90331
90332         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90333         (Makefile.am): Distribute it.
90334
90335 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90336
90337         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90338         with errno == ERANGE if the buffer is too small.
90339         Problem reported by Mark D. Baushke.
90340
90341 2004-11-03  Albert Chin  <china@thewrittenword.com>
90342             Paul Eggert  <eggert@cs.ucla.edu>
90343
90344         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90345         equivalent, substitute $ac_type for equivalent type rather than
90346         blindly using uint32_t *always* which won't work if uint32_t is not
90347         available.  Define _UINT32_T to work around typedef of uint32_t if
90348         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90349         2.5.1.
90350
90351 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90352
90353         * m4/jm-macros.m4: Sync from coreutils.
90354         (gl_MACROS): Check for mbrlen, for pathchk.
90355         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90356
90357 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90358
90359         * lib/xreadlink.c (MAXSIZE): New macro.
90360         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90361         size does not exceed MAXSIZE.  Avoid cast.
90362         As suggested by Mark D. Baushke in
90363         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90364         if readlink fails with buffer size just under MAXSIZE, try again
90365         with MAXSIZE.
90366
90367 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90368
90369         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90370
90371 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90372         and  Paul Eggert  <eggert@cs.ucla.edu>
90373
90374         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90375         (get_date): Overparenthesize to avoid GCC warning.
90376
90377 2004-11-02  Bruno Haible  <bruno@clisp.org>
90378
90379         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90380         returns void.
90381
90382 2004-11-02  Bruno Haible  <bruno@clisp.org>
90383
90384         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90385         function returns void.
90386
90387 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90388
90389         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90390         fflush_unlocked, flockfile, funlockfile, funlockfile,
90391         fputs_unlocked, putc_unlocked.
90392
90393 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90394
90395         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90396         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90397         already declared.
90398
90399 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90400
90401         * modules/getdate (Files): Add doc/getdate.texi.
90402         (Depends-on): Add setenv, xalloc.
90403
90404 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90405
90406         * lib/getdate.y: Add support for TZ="foo" within a date string.
90407         Fix some bugs near time_t boundaries.  Reject dates with
90408         out-of-range components, e.g., "Sept 31".
90409         Include <stdlib.h>, "setenv.h", "xalloc.h".
90410         (ISDIGIT_LOCALE): Remove; unused.
90411         Note that the TZ and time functions used here are not reentrant.
90412         (mktime_ok, get_tz): New functions.
90413         (TZBUFSIZE): New constant.
90414         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90415         This requires that we sometimes generate our own TZ="XXX..." setting.
90416
90417 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90418
90419         * doc/getdate.texi: New file, from coreutils with modifications for
90420         the new TZ parsing.
90421
90422 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90423
90424         * lib/mktime.c (not_equal_tm): Remove redundant check.
90425
90426 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90427
90428         * modules/regex (lib_SOURCES): Add regex.c.
90429         Reported by James Youngman in
90430         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90431
90432 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90433
90434         * lib/getdate.y: Use Bison 1.875 features, and some minor
90435         code cleanups.  This change does not affect semantics.
90436         Don't include <stdlib.h>; no longer needed.
90437         Don't include unlocked-io.h; only the "#if TEST" code uses
90438         stdio, and performance isn't crucial there.
90439         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90440         Bison 1.875 features as described below.
90441         All uses of "PC." replaced by "pc->".
90442         (YYSTYPE): Add a forward declaration.
90443         (yylex, yyerror): Use full prototypes in forward decls.
90444         Use "%pure-parser" rather than obsolescent "%pure_parser".
90445         Use %parse-param and %lex-param instead of obsolescent
90446         YYPARSE_PARAM and YYLEX_PARAM.
90447         (meridian_table, month_and_day_table, time_units_table,
90448         relative_time_table, time_zone_table, military_table,
90449         lookup_zone, lookup_word, get_date):
90450         Use NULL instead of 0 where appropriate.
90451         (to_hour): Avoid abort (), to avoid a dependency on
90452         stdlib.h.
90453         (yyerror, yylex): Now accepts parser_control * arg.
90454         (main) [TEST]: Use '\0' rather than 0 for char.
90455
90456 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90457
90458         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90459
90460 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90461
90462         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90463         It's now the caller's responsibility to handle the case where
90464         !HAVE_GETPAGESIZE && !defined getpagesize.
90465
90466         * lib/mktime.c (leapyear): Arg is long int, not int.
90467
90468 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90469
90470         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90471
90472 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90473
90474         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90475         missing.  Problem reported by James Youngman.
90476
90477 2004-10-16  Simon Josefsson  <jas@extundo.com>
90478
90479         * gnulib-tool: Fix comments.  Fix parse problem.
90480         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90481
90482 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90483
90484         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90485         implementation of getopt_long.  Problem reported by Alexander Taler in:
90486         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90487
90488 2004-10-15  Bruno Haible  <bruno@clisp.org>
90489
90490         * gnulib-tool: Untabify. Initialize supplied_libname.
90491         (func_usage): More homogenous output.
90492         (func_modules_transitive_closure, func_modules_to_filelist,
90493         func_emit_lib_Makefile_am): New functions.
90494         (func_import): New function, extracted from big case statement. Use
90495         func_get_license, func_modules_transitive_closure,
90496         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90497         opt_lgpl. Don't use test -a, as it's not portable.
90498         (func_create_testdir): Use func_modules_transitive_closure,
90499         func_modules_to_filelist, func_emit_lib_Makefile_am.
90500
90501 2004-10-15  Bruno Haible  <bruno@clisp.org>
90502
90503         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90504
90505 2004-10-15  Bruno Haible  <bruno@clisp.org>
90506
90507         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90508         the portions belonging to each module.
90509         Suggested by Derek Robert Price <derek@ximbiot.com>.
90510
90511 2004-10-12  Simon Josefsson  <jas@extundo.com>
90512
90513         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90514         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90515         to real functions.
90516
90517 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90518
90519         * modules/vsnprintf: New file.
90520
90521 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90522
90523         * m4/vsnprintf.m4: New file.
90524
90525 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90526
90527         * lib/vsnprintf.h: New file.
90528         * lib/vsnprintf.c: New file.
90529
90530 2004-10-11  Bruno Haible  <bruno@clisp.org>
90531
90532         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90533         vsnprintf.
90534
90535 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90536
90537         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90538
90539 2004-10-07  Bruno Haible  <bruno@clisp.org>
90540
90541         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90542         fits into the provided buffer.
90543
90544 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90545
90546         * lib/diacrit.c, diacrit.h: Add GPL notice.
90547
90548         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90549         notice.
90550         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90551         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90552         This avoids a potential constant-folding bug.
90553
90554 2004-10-05  Bruno Haible  <bruno@clisp.org>
90555
90556         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90557         for the declaration of strsep.
90558
90559 2004-10-05  Bruno Haible  <bruno@clisp.org>
90560
90561         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90562
90563 2004-10-04  Simon Josefsson  <jas@extundo.com>
90564
90565         * modules/memmem: New file.
90566         * tests/test-memmem.c: New file.
90567         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90568
90569 2004-10-04  Simon Josefsson  <jas@extundo.com>
90570
90571         * m4/memmem.m4: New file.
90572
90573 2004-10-04  Simon Josefsson  <jas@extundo.com>
90574
90575         * lib/memmem.h: New file.
90576         * lib/memmem.c: New file, taken from glibc.
90577
90578 2004-10-04  Simon Josefsson  <jas@extundo.com>
90579
90580         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90581         '#ifdef USE_UNLOCKED_IO'.
90582
90583 2004-10-04  Simon Josefsson  <jas@extundo.com>
90584
90585         * config/srclist.txt: Add memmem from glibc.
90586
90587 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90588
90589         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90590
90591         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90592         modules/exclude, modules/getdate, modules/getline,
90593         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90594         modules/getusershell, modules/linebuffer, modules/md5,
90595         modules/mountlist, modules/posixtm, modules/readtokens,
90596         modules/readutmp, modules/regex, modules/sha1,
90597         modules/version-etc, modules/yesno:
90598         Remove dependency on unlocked-io.
90599
90600 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90601
90602         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90603
90604         * m4/unlocked-io.m4: Add copyright notice.
90605         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90606
90607 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90608
90609         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90610         * lib/xmalloc.c (xmemdup): Likewise.
90611         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90612         XFREE): Remove these long-obsolescent macros.
90613         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90614         * lib/xstrdup.c: Remove.
90615
90616         * lib/regex.c (re_comp): Cast gettext return value to char *,
90617         Problem reported by Martin Neitzel via Mark D. Baushke.
90618
90619 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90620
90621         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90622         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90623         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90624         regex.c, sha1.c, version-etc.c, yesno.c:
90625         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90626         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90627         the includer's responsibility.
90628
90629         Sync from coreutils.
90630
90631         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90632         points to the start of a string, as the C Standard says the
90633         resulting behavior is undefined.
90634
90635         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90636         simple -> simple_backups, numbered_existing ->
90637         numbered_existing_backups, numbered -> numbered_backups
90638         to avoid shadowing problems.  All uses changed.
90639         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90640         * lib/backupfile.c (check_extension, numbered_backup):
90641         Rename locals to avoid shadowing 'basename'.
90642         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90643         once.
90644
90645         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90646         * lib/.cvsignore: Add getopt.h.
90647
90648 2004-10-04  Bruno Haible  <bruno@clisp.org>
90649
90650         * modules/README: New file.
90651         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90652         not a module.
90653
90654 2004-10-02  Jim Meyering  <jim@meyering.net>
90655
90656         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90657
90658 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90659
90660         * modules/strsep: New file.
90661
90662 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90663
90664         * m4/strsep.m4: New file.
90665
90666 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90667
90668         * lib/strsep.h: New file.
90669         * lib/strsep.c: New file.
90670
90671 2004-10-01  Simon Josefsson  <jas@extundo.com>
90672
90673         * lib/snprintf.c (snprintf): Handle size==0.
90674
90675 2004-10-01  Simon Josefsson  <jas@extundo.com>
90676             Bruno Haible  <bruno@clisp.org>
90677
90678         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90679         (snprintf): Declare 'args'.
90680
90681 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90682
90683         * lib/snprintf.c: Remove comments as to why each header is needed.
90684
90685 2004-10-01  Bruno Haible  <bruno@clisp.org>
90686
90687         * MODULES.html.sh: Add strsep.
90688
90689 2004-09-30  Simon Josefsson  <jas@extundo.com>
90690
90691         * modules/snprintf: New file.
90692
90693 2004-09-30  Simon Josefsson  <jas@extundo.com>
90694
90695         * m4/snprintf.m4: New file.
90696
90697 2004-09-30  Simon Josefsson  <jas@extundo.com>
90698
90699         * lib/snprintf.h, lib/snprintf.c: New files.
90700
90701 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90702
90703         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90704         (hol_entry_help): Never translate an empty string.
90705         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90706         * lib/argp.h (OPTION_NO_TRANS): New option.
90707
90708 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90709
90710         * modules/argp (Maintainer): Replace Simon Josefsson
90711         by Sergey Poznyakoff.
90712
90713 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90714
90715         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90716         changes merged back into glibc.
90717
90718 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90719
90720         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90721
90722 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90723
90724         * lib/xvasprintf.c: Include xalloc.h.
90725         (xvasprintf): Use xalloc_die, not xmalloc_die.
90726
90727 2004-09-29  Bruno Haible  <bruno@clisp.org>
90728
90729         * modules/alloca-opt: New file, derived from modules/alloca.
90730         * modules/allocsa: Depend on alloca-opt instead of alloca.
90731         * modules/setenv: Likewise.
90732         * modules/vasnprintf: Likewise.
90733         * MODULES.html.sh: Add alloca-opt.
90734
90735 2004-09-28  Simon Josefsson  <jas@extundo.com>
90736
90737         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90738         LGPL, and to replace license template from GPL to LGPL.
90739
90740 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90741
90742         * modules/dummy: Change license to LGPL.
90743
90744 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90745
90746         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90747
90748 2004-09-24  Simon Josefsson  <jas@extundo.com>
90749
90750         * modules/minmax (License): Change from GPL to LGPL.
90751
90752 2004-09-23  Simon Josefsson  <jas@extundo.com>
90753
90754         * gnulib-tool (--import): Typo.
90755
90756 2004-09-23  Simon Josefsson  <jas@extundo.com>
90757
90758         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90759
90760 2004-09-22  Bruno Haible  <bruno@clisp.org>
90761
90762         * modules/*: Add 'License' field.
90763         * gnulib-tool: Accept --extract-license option.
90764         (func_get_license): New function.
90765
90766 2004-09-21  Bruno Haible  <bruno@clisp.org>
90767
90768         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90769         Reported by Simon Josefsson.
90770
90771 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90772
90773         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90774         gl_AC_TYPE_LONG_LONG.
90775
90776 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90777
90778         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90779
90780 2004-09-18  Simon Josefsson  <jas@extundo.com>
90781         and  Paul Eggert  <eggert@cs.ucla.edu>
90782
90783         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90784         calls with autoreconf.  Define GL_LIB.
90785
90786 2004-09-14  Karl Berry  <karl@gnu.org>
90787
90788         * config/srclist.txt: unsync setenv.c, sigh.
90789
90790 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90791
90792         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90793         Problem reported by Bruno Haible in:
90794         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90795
90796 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90797
90798         * config/srclist.txt: Comment out argp-pvh.c.
90799
90800 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90801
90802         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90803         in case some system header has #define'd it.  Problem reported by
90804         Soeren D. Schulze in
90805         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90806
90807 2004-09-09  Karl Berry  <karl@gnu.org>
90808
90809         * regex.[ch]: delete from the root.  These were supposed to be
90810                 synced with emacs cvs, but this has not happened for about
90811                 a year, and anyway nothing else uses emacs regex.[ch].
90812                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90813                 lib/regex[.ch] is untouched.
90814
90815 2004-09-09  Bruno Haible  <bruno@clisp.org>
90816
90817         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90818
90819 2004-09-09  Bruno Haible  <bruno@clisp.org>
90820
90821         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90822         modifications.
90823         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90824
90825 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90826
90827         * modules/xvasprintf: New file.
90828         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90829
90830 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90831
90832         * lib/xvasprintf.h: New file.
90833         * lib/xvasprintf.c: New file.
90834         * lib/xasprintf.c: New file.
90835
90836 2004-09-08  Bruno Haible  <bruno@clisp.org>
90837
90838         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90839
90840 2004-09-08  Bruno Haible  <bruno@clisp.org>
90841
90842         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90843         length is > INT_MAX.
90844         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90845         more.
90846
90847 2004-09-08  Bruno Haible  <bruno@clisp.org>
90848
90849         * lib/stdint_.h: New file, taken from GNU clisp.
90850
90851 2004-09-08  Bruno Haible  <bruno@clisp.org>
90852             Oskar Liljeblad  <oskar@osk.mine.nu>
90853
90854         * modules/stdint: New file.
90855         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90856
90857 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90858
90859         Import from coreutils.
90860         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90861         strings on unbounded length.  alloca's performance benefits aren't
90862         that important here.
90863         (V_STRDUP): Remove.
90864         (parse_with_separator): New function, with most of the internals
90865         of the old parse_user_spec.  Allow user to omit both user and group,
90866         for compatibility with FreeBSD.
90867         Clone only the user name, not the entire spec.
90868         Do not set *uid, *gid unless entirely successful.
90869         Avoid memory leak in some failing cases.
90870         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90871         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90872         (parse_user_spec): Rewrite to use parse_with_separator.
90873
90874 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90875
90876         * modules/userspec: Don't depend on alloca.
90877
90878 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90879
90880         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90881
90882 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90883
90884         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90885         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90886         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90887
90888 2004-08-16  Simon Josefsson  <jas@extundo.com>
90889
90890         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90891         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90892         Add --dry-run for --import.
90893         Let user provided command line parameters override configure.ac
90894         settings.
90895
90896 2004-08-12  Simon Josefsson  <jas@extundo.com>
90897
90898         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90899         as discussed with Paul Eggert in threads rooted at
90900         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90901         and
90902         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90903         Before, the test was empty, and relied on ELIDE_CODE in source
90904         code.)
90905         (gl_PREREQ_GETOPT): New macro.
90906         (gl_GETOPT): Use them.
90907
90908 2004-08-12  Simon Josefsson  <jas@extundo.com>
90909
90910         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90911         * lib/getopt_.h: Renamed from getopt.h.
90912
90913 2004-08-12  Simon Josefsson  <jas@extundo.com>
90914
90915         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90916         Change default library name from libfoo to libgnu.
90917         Now, if you have a configure.ac that says:
90918                 gl_SOURCE_BASE(gl)
90919                 gl_M4_BASE(gl/m4)
90920                 gl_MODULES(error getopt etcetera)
90921                 gl_INIT
90922         you can import all you need by running:
90923                 ../gnulib/gnulib-tool --import
90924
90925         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90926         (Makefile.am): Rewrite, use logic from argz.
90927         (Include): Use <getopt.h> instead of "getopt.h".
90928
90929 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90930
90931         * modules/argp (Files): Add m4/unlocked-io.m4.
90932         (Depends-on): Add extensions.
90933
90934 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90935
90936         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90937         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90938         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90939         Check for program_invocation_name, program_invocation_short_name,
90940         flockfile, funlockfile, features.h, _getopt_long_only_r.
90941
90942 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90943
90944         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90945         its complicated substitute.
90946         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90947         and program_invocation_name.
90948         (__argp_basename) [!_LIBC]: Remove; the only use was
90949         replaced by its body.
90950         (__argp_short_program_name): Change condition from
90951         !defined __argp_short_program_name to
90952         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90953         to match argp-namefrob.h.
90954         (__argp_failure): Don't assume strerror_r returns char *.
90955         * lib/argp-parse.c (N_): Define unconditionally.
90956         (argp_default_options): Fill out initializers with 0 to avoid
90957         gcc warnings.
90958
90959 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90960
90961         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90962         getopt1.c.
90963
90964 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90965
90966         Merge from coreutils.
90967
90968         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90969
90970         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90971         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90972
90973 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90974
90975         Merge from coreutils.
90976
90977         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90978         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90979         for Reliant Unix 5.43.
90980
90981         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90982         (union fooround): Use uintmax_t, not long int.
90983         The rest is a merge from libc:
90984         [defined _LIBC]: Include <shlib-compat.h>.
90985         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90986
90987         * lib/settime.c (settime): Recode to avoid warning with
90988         Sun Forte C 6U2.
90989
90990         * lib/strverscmp.c: Convert to UTF-8.
90991
90992 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90993
90994         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90995         m4/uintmax_t.m4.
90996
90997 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90998
90999         * modules/xalloc-die: New file.
91000         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
91001
91002         * modules/md5 (Files): Add m4/uint32_t.m4.
91003         * modules/sha1: Renamed from modules/sha.
91004         (Files):
91005         Rename lib/sha.h to lib/sha1.h.
91006         Rename lib/sha.c to lib/sha1.c.
91007         Rename m4/sha.m4 to m4/sha1.m4.
91008         (lib_SOURCES): Likewise.
91009         (configure.ac): Rename gl_SHA to gl_SHA1.
91010         (Include): sha.h -> sha1.h.
91011
91012 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91013
91014         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
91015         * m4/sha1.m4: Renamed from sha.m4.
91016         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
91017
91018 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91019
91020         * lib/obstack.h (obstack_empty_p):
91021         Don't assume that chunk->contents is suitably aligned.
91022         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
91023         Likewise. Problem reported by Benno in
91024         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
91025
91026         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
91027         readable.  This could be improved further but it'd take some work.
91028
91029 2004-08-08  Simon Josefsson  <jas@extundo.com>
91030
91031         * modules/xgethostname (Depends-on): Remove exit and error (not
91032         used).
91033
91034         * modules/getpass-gnu: Add getpass.h.
91035         (Depends-on): Add stdbool.
91036         * modules/getpass: Add getpass.h.
91037
91038 2004-08-08  Simon Josefsson  <jas@extundo.com>
91039
91040         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
91041         Check getpass declaration.
91042
91043 2004-08-08  Simon Josefsson  <jas@extundo.com>
91044
91045         * lib/xgethostname.c: Don't include error.h (not used).
91046
91047         * lib/getpass.h: Add.
91048         * lib/getpass.c: Include getpass.h first.
91049
91050 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
91051
91052         * lib/xalloc-die.c: New file.
91053         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
91054         All uses removed.
91055         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
91056         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
91057         xalloc-die.c.
91058         (_, N_, xalloc_die): Move to xalloc-die.c.
91059         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
91060         so that we needn't mess with xalloc_msg_memory_exhausted.
91061
91062         * lib/sha1.h: Renamed from sha.h.
91063         (SHA1_H): Renamed from _SHA_H.
91064         (sha1_ctx): Renamed from sha_ctx.
91065         (sha1_init_ctx): Renamed from sha_init_ctx.
91066         (sha1_process_block): Renamed from sha_process_block.
91067         (sha1_process_bytes): Renamed from sha_process_bytes.
91068         (sha1_finish_ctx): Renamed from sha_finish_ctx.
91069         (sha1_read_ctx): Renamed from sha_read_ctx.
91070         (sha1_stream): Renamed from sha_stream.
91071         (sha1_buffer): Renamed from sha_buffer.
91072         * lib/sha1.c: Likewise; renamed from sha.c.
91073         Do not include <sys/types.h>.
91074         Include <stddef.h> rather than <stdlib.h>.
91075
91076 2004-08-08  Bruno Haible  <bruno@clisp.org>
91077
91078         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
91079         FILESYSTEM_PREFIX_LEN.
91080         * lib/progreloc.c: Likewise.
91081         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
91082
91083 2004-08-06  Simon Josefsson  <jas@extundo.com>
91084
91085         * modules/progname (Depends-on): Don't depend on stdbool.
91086
91087 2004-08-06  Simon Josefsson  <jas@extundo.com>
91088
91089         * modules/getsubopt: New file.
91090         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91091         getsubopt.
91092
91093 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91094
91095         More merge from coreutils.
91096
91097         * m4/utimens.m4, m4/utimecmp.m4: New files.
91098         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
91099         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
91100         prereq.m4, sha.m4: Import changes from coreutils.
91101
91102 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91103
91104         More merge from coreutils.
91105         * modules/raise, modules/readtokens0, modules/utimens:
91106         * modules/utimecmp, module/xnanosleep: New files.
91107         * modules/strftime: Add lib/strftime.h.
91108         Change include from <time.h> to "strftime.h".
91109         * modules/yesno: Add lib/yesno.h.
91110         * modules/backupfile: Remove lib/addext.c.
91111         * modules/euidaccess: Add stat-macros.h.
91112         * modules/canonicalize, modules/euidaccess,
91113         modules/filemode, modules/lchown, modules/makepath,
91114         modules/rmdir, modules/stat: Likewise.
91115
91116 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91117
91118         Merge from tar.
91119         * lib/argp-help.c (make_hol, hol_append): Don't assume that
91120         SIZE_MAX is a valid preprocessor constant.
91121         (__argp_basename): Change from "#ifndef _LIBC"
91122         to "#ifndef __argp_short_program_name", so that
91123         we don't compile these functions for tar.
91124
91125         More merges from coreutils.
91126         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
91127         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
91128         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
91129         * lib/addext.c: Remove; no longer needed.
91130         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
91131         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
91132         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
91133         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
91134         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
91135         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
91136         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
91137         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
91138         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
91139         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
91140         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
91141         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
91142         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
91143         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
91144         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91145         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91146         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91147         Import changes from coreutils.
91148
91149 2004-08-05  Simon Josefsson  <jas@extundo.com>
91150
91151         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91152
91153 2004-08-05  Simon Josefsson  <jas@extundo.com>
91154
91155         * m4/getsubopt.m4: New file.
91156
91157 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91158
91159         Merge from coreutils.
91160
91161         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91162         * m4/getcwd-path-max.m4: New files.
91163
91164         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91165         FILESYSTEM_PREFIX_LEN ->
91166         FILE_SYSTEM_PREFIX_LEN.
91167         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91168         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91169         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91170         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91171
91172         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91173         prerequisite modules now handle the DOS stuff.
91174         Don't check for unistd.h.
91175
91176 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91177
91178         Merge from coreutils.
91179
91180         * lib/.gdb-history: Remove; this doesn't belong here.
91181
91182         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91183         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91184         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91185         * lib/getcwd.c: New files.
91186
91187         * lib/dirname.h: Include <stdbool.h>.
91188         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91189         for consistency with POSIX terminology.  All uses changed.
91190         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91191         (strip_trailing_slashes): Use bool for booleans.
91192         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91193
91194         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91195         sometimes returns a positive errno value even when it succeeds.
91196         (print_errno_message) [!LIBC]: Fall back on strerror if
91197         __strerror_r fails.
91198
91199         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91200         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91201         (longest_relative_suffix): New function.
91202         (path_concat): Use it.  Assume first argument is not NULL.
91203         Port to DOS.  Omit redundant separators.
91204         Report an error instead of returning NULL.
91205         Use mempcpy instead of memcpy.
91206         (xpath_concat): Remove: not declared or used.
91207
91208         * lib/same.h: Include <stdbool.h>
91209         (same_name): Return bool, not int.
91210         * lib/same.c (same_name): Likewise.
91211         (errno): Don't declare; we assume C89 or better now.
91212
91213         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91214         if not already defined.
91215
91216         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91217         * lib/dup-safer.c (errno): Likewise.
91218
91219 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91220
91221         Merge from coreutils.
91222         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91223         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91224         * modules/path-concat: Don't depend on strdup.
91225
91226 2004-08-03  Simon Josefsson  <jas@extundo.com>
91227
91228         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91229         * lib/progname.h: Don't include stdbool.h.
91230
91231 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91232
91233         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91234         * MODULES.html.sh (func_all_modules): Remove fatal.
91235
91236 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91237
91238         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91239
91240 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91241
91242         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91243         working.
91244
91245 2004-08-02  Simon Josefsson  <jas@extundo.com>
91246
91247         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91248         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91249         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91250
91251 2004-08-01  Simon Josefsson  <jas@extundo.com>
91252
91253         * lib/xgetdomainname.c: Include stdlib.h, for free().
91254
91255 2004-07-19  Bruno Haible  <bruno@clisp.org>
91256
91257         * MODULES.html.sh (func_all_modules): Add dummy.
91258
91259 2004-07-16  Simon Josefsson  <jas@extundo.com>
91260
91261         * modules/dummy: New file.
91262
91263 2004-07-16  Simon Josefsson  <jas@extundo.com>
91264
91265         * lib/dummy.c: New file.
91266
91267 2004-07-16  Bruno Haible  <bruno@clisp.org>
91268
91269         * lib/backupfile.h: Add extern "C" for C++.
91270         * lib/closeout.h: Likewise.
91271         * lib/copy-file.h: Likewise.
91272         * lib/findprog.h: Likewise.
91273         * lib/full-write.h: Likewise.
91274         * lib/pathname.h: Likewise.
91275         * lib/progname.h: Likewise.
91276         * lib/stpcpy.h: Likewise.
91277         * lib/stpncpy.h: Likewise.
91278         * lib/strcase.h: Likewise.
91279         * lib/strstr.h: Likewise.
91280         * lib/xalloc.h: Likewise.
91281
91282         * lib/mbswidth.h: Add extern "C" for C++.
91283         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91284
91285 2004-07-13  Robert Millan  <robertmh@gnu.org>
91286
91287         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91288
91289 2004-07-09  Simon Josefsson  <jas@extundo.com>
91290
91291         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91292         failed without this.)
91293
91294 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91295
91296         * modules/chown (Files): Add lib/fchown-stub.c, since
91297         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91298
91299 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91300
91301         * lib/fchown-stub.c: New file.
91302
91303 2004-06-24  Jim Meyering  <jim@meyering.net>
91304
91305         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91306
91307 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91308
91309         * modules/argz: Omit "#include".
91310
91311         * MODULES.html.sh (func_all_modules): Add calloc, to match
91312         2004-06-01 addition of calloc module.
91313
91314 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91315
91316         * m4/argz.m4: New file, which is autoupdated from libtool.
91317
91318 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91319
91320         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91321         libtool.
91322
91323 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91324
91325         * config/srclist-update: Don't insist on "USA." before the
91326         close-comment, as libtool omits the period and puts the */ on a
91327         separate line.
91328         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91329         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91330
91331 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91332
91333         * modules/argz: New file.
91334         * MODULES.html.sh (func_all_modules): Add argz.
91335
91336 2004-06-12  Jim Meyering  <jim@meyering.net>
91337         and  Paul Eggert  <eggert@cs.ucla.edu>
91338
91339         * modules/hash (Files): Add lib/xalloc.h.
91340         * modules/pipe (Depends-on): Add wait-process.
91341         * modules/stat (Depends-on): Add xalloc.
91342         * modules/userspec (Files): Add lib/userspec.h.
91343         * modules/xstrto
91344
91345         Upgrade from gettext-0.13.
91346         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91347         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91348         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91349
91350 2004-06-10  Jim Meyering  <jim@meyering.net>
91351
91352         * lib/calloc.c: New file.
91353
91354 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91355
91356         * lib/getdate.y (yylex): Allow space between sign and number.
91357         Problem reported by Dan Jacobson.
91358
91359 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91360
91361         Merge from coreutils CVS.
91362
91363         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91364         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91365         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91366         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91367         xstrtol.m4: Fix copyright date and/or serial number.
91368
91369         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91370         See if we need an fchown replacement.
91371         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91372         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91373         and use the replacement function if we detect either defect.
91374
91375         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91376         gl_UTIMECMP.
91377
91378 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91379         and  Jim Meyering  <jim@meyering.net>
91380
91381         Merge from coreutils CVS.
91382
91383         * lib/stat-macros.h: New file, with contents from file-type.h
91384         and coreutils' system.h.
91385         * lib/file-type.c: Include "stat-macros.h".
91386         * lib/file-type.h (file_type): Move all macro definitions to new file,
91387         stat-macros.h.
91388
91389         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91390         Wrap old code with this conditional.
91391         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91392         function that does not dereference symlinks.
91393         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91394
91395         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91396         dependency problems.
91397         (xreadlink): Accept new arg SIZE, for efficiency.
91398         All decls and uses changed.
91399         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91400
91401         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91402         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91403
91404         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91405         sysexits.h.
91406
91407 2004-06-01  Jim Meyering  <jim@meyering.net>
91408
91409         * m4/calloc.m4: New file.
91410
91411 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91412
91413         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91414         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91415         Also, fix a typo in a diagnostic.
91416
91417 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91418
91419         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91420         or AC_FUNC_REALLOC.
91421
91422 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91423
91424         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91425         macros to be defined.
91426         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91427         the allocator returns NULL because the requested size is zero.
91428
91429 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91430
91431         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91432         var.  Add comment explaining why libc still defines it.  This
91433         merges the following patch from glibc:
91434         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91435
91436 2004-05-20  Andreas Schwab  <schwab@suse.de>
91437
91438         * m4/free.m4: Replace free if it not known to work, not the other
91439         way round.
91440
91441 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91442
91443         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91444         present in glibc since revision 1.1 of this file.
91445         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91446         obstack_alignment_mask, obstack_alloc, obstack_base,
91447         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91448         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91449         obstack_grow0, obstack_init, obstack_int_grow,
91450         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91451         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91452         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91453         nonexistent functions.
91454
91455 2004-05-18  Karl Berry  <karl@gnu.org>
91456
91457         * config/srclist.txt: break link for vasnprintf.c.
91458
91459 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91460
91461         Port obstack to the AS/400, where pointers are 16 bytes wide and
91462         you cannot cast an integer to a valid pointer.  This patch is
91463         currently waiting to be integrated into glibc; see
91464         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91465
91466         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91467         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91468         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91469         (struct obstack): temp member is now a union of a pointer and
91470         an integer, instead of an integer.  All integer uses changed.
91471         This does not affect the physical layout of struct obstack,
91472         except on hosts (like the AS/400) where the size or alignment of
91473         void * is greater than that of ptrdiff_t.
91474         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91475         __STDC__)]: Store temporary in pointer member of union, not
91476         integer member.
91477         * lib/obstack.c: Include <stddef.h>, for offsetof.
91478         (struct fooalign): Remove; it doesn't need a name.
91479         (union fooround): Change double to long double, and add void *.
91480         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91481         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91482         not a macro.  Hence the values are always int; so remove all
91483         casts-to-int in uses.
91484
91485 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91486
91487         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91488         we can get this patch merged into glibc.
91489
91490 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91491             Paul Eggert  <eggert@cs.ucla.edu>
91492
91493         * m4/argp: Depend on alloca.
91494
91495 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91496             Paul Eggert  <eggert@cs.ucla.edu>
91497
91498         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91499         freecoding.
91500
91501 2004-05-17  Bruno Haible  <bruno@clisp.org>
91502
91503         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91504         precision that consists of a '.' followed by an empty digit string.
91505         Patch by Tor Lillqvist <tml@iki.fi>.
91506
91507 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91508
91509         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91510         for backward compatibility with older code.  We need our own
91511         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91512         it under some other name, and our alloca.h will define it.
91513
91514 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91515             Derek Price  <derek@ximbiot.com>
91516
91517         * lib/alloca.c: Include <alloca.h>, to get our interface.
91518         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91519         include <alloca.h> first.  Use C89 prototype for alloca; this
91520         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91521         Use #elif for simplicity, since we can assume C89 now.
91522         Don't try to source the system alloca.h since it will not be found
91523         and to prevent recursively including its replacement.
91524         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91525         * lib/regex.c: Likewise.
91526
91527 2004-05-16  Derek Price  <derek@ximbiot.com>
91528             Paul Eggert  <eggert@cs.ucla.edu>
91529
91530         getline cleanup.  This changes the getndelim2 API: both order of
91531         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91532         no delimiter).
91533
91534         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91535         interface does that.
91536         (getline): Always use getdelim, so that we don't have two
91537         copies of this code.
91538         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91539         if available.
91540         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91541         (GETNDELIM2_MAXIMUM): New macro.
91542         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91543         instead of the old practice of delim2==0.  All callers changed.
91544         Return -1 on overflow, instead of returning junk.
91545         Do not set *linesize unless allocation succeeds.
91546         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91547         that we include sys/types.h.
91548         * lib/getnline.h: Likewise.
91549         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91550         (getndelim2): Reorder arguments.
91551         * lib/getnline.c (getnline, getndelim):
91552         Don't discard the NMAX argument.
91553         (getnline): Invoke getndelim, to avoid code duplication.
91554         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91555         of (size_t) -1 by callers of the getnline family.
91556
91557 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91558
91559         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91560         Check for gettimeofday.
91561         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91562         Check for settimeofday, stime.
91563
91564 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91565
91566         * lib/nanosleep.c (suspended): Change its type from int to
91567         sig_atomic_t volatile.
91568         (first_call): Make it private to rpl_nanosleep, and have it
91569         be zero initially as that's a bit faster.
91570         (my_usleep): Round up fractional times instead of truncating them,
91571         as this is the usual meaning for 'sleep'.
91572
91573         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91574         doesn't work.
91575         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91576         (ENOSYS): Define if not defined.
91577         (settime): Fall back on stime if it exists and settimeofday fails.
91578         But don't bother with fallbacks if a method fails with errno == EPERM.
91579
91580 2004-05-11  Jim Meyering  <jim@meyering.net>
91581
91582         Prior to this change, the save_cwd caller required read access to the
91583         current directory on most systems (ones with the fchdir function).
91584
91585         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91586         fails, try write-only, and finally, resort to using xgetcwd.
91587
91588 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91589
91590         * lib/obstack.c, obstack.h: Import changes from libc.
91591
91592 2004-04-28  Bruno Haible  <bruno@clisp.org>
91593
91594         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91595         also implicitly appends .exe to executables.
91596         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91597         accepts Windows pathnames.
91598         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91599         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91600         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91601         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91602         Reported by Derek Robert Price <derek@ximbiot.com>.
91603
91604 2004-04-21  Karl Berry  <karl@gnu.org>
91605
91606         * config/srclist.txt (localcharset.c): break sync.
91607
91608 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91609
91610         * m4/host-os.m4: Add a copyright notice.
91611
91612 2004-04-20  Jim Meyering  <jim@meyering.net>
91613
91614         Change UTILS_ to gl_ in AC_DEFINE'd names.
91615         Change utils_- and jm_-prefixed variables, too.
91616         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91617         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91618         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91619
91620         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91621         Don't emit trailing blanks.
91622         Also rename jm_-prefixed variables to have gl_ prefix.
91623
91624         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91625         Also rename jm_-prefixed variables to have gl_ prefix.
91626
91627         * m4/jm-macros.m4: Reflect the renamings.
91628         * m4/prereq.m4: Likewise.
91629
91630 2004-04-20  Jim Meyering  <jim@meyering.net>
91631
91632         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91633         memory.
91634
91635 2004-04-20  Jim Meyering  <jim@meyering.net>
91636             Bruno Haible  <bruno@clisp.org>
91637
91638         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91639         memory when realloc fails.
91640
91641 2004-04-19  Jim Meyering  <jim@meyering.net>
91642
91643         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91644         now that readutmp.c may call `free (0)'.
91645
91646 2004-04-19  Bruno Haible  <bruno@clisp.org>
91647
91648         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91649         * m4/inttypes_h.m4: Likewise.
91650         * m4/stdint_h.m4: Likewise.
91651         * m4/intmax_t.m4: Likewise.
91652         * m4/uintmax_t.m4: Likewise.
91653
91654 2004-04-18  Jim Meyering  <jim@meyering.net>
91655
91656         * m4/prereq.m4: Don't forbid jm_ prefix.
91657
91658         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91659         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91660         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91661         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91662         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91663         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91664         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91665         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91666         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91667         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91668         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91669         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91670         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91671         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91672         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91673         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91674         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91675         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91676         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91677
91678 2004-04-18  Jim Meyering  <jim@meyering.net>
91679
91680         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91681         failure, don't leak memory and do call END_UTMP_ENT.
91682
91683 2004-04-16  Jim Meyering  <jim@meyering.net>
91684
91685         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91686         coreutils' stat program.
91687         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91688
91689 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91690
91691         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91692         C89.
91693         (CHAR_BIT): Remove, since we assume C89.
91694         Include <stdint.h> if available, as per current Autoconf CVS advice.
91695
91696 2004-03-31  Jim Meyering  <jim@meyering.net>
91697
91698         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91699         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91700         * m4/xalloc.m4: Likewise.
91701
91702 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91703
91704         Merge from coreutils.
91705
91706         * m4/inttostr.m4: New file.
91707         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91708         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91709         Require gl_CLOCK_TIME.
91710         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91711
91712 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91713
91714         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91715         not bool, to be more consistent with Unix conventions.
91716         Suggested by Bruno Haible.
91717
91718         Merge from coreutils.
91719
91720         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91721         * lib/umaxtostr.c: New files.
91722
91723         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91724         the usual <time.h> dance.
91725         (get_date): Change signature to support fractional time stamps.
91726         All callers changed.
91727         * lib/getdate.y: Include "getdate.h" first, as we can now
91728         assume C89 and don't need to worry about 'const'.
91729         Similarly, include "unlocked-io.h" near start, not in middle.
91730         Include <limits.h>.
91731         (textint.value): Use long int rather than int.
91732         (textint.digits): Use size_t rather than int.
91733         (BILLION, LOG10_BILLION): New constants.
91734         (parser_control): New member rel_ns.  Members day_ordinal,
91735         time_zone, month, day, hour, minutes, rel_year, rel_month,
91736         rel_day, rel_hour, rel_minutes, rel_seconds
91737         are now long int, not int.  Member seconds is now struct timespec,
91738         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91739         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91740         not int.
91741         (%union.intval): Now long int, not int.
91742         New member timespec.
91743         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91744         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91745         (spec): Now is a timespec or an item list.
91746         (timespec, items): New nonterminals.
91747         (time, rel, relunit, number, get_date):
91748         Add support for fractional seconds.
91749         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91750         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91751         (to_hour): First arg is now long int, not int.
91752         (to_year): Returns long int, not int.
91753         Don't treat year -70 like 70.
91754         (tm_diff): Returns long int, not int.
91755         (lookup_word): Use bool instead of int when appropriate.
91756         (yylex): Use size_t for count, not int.
91757         Detect overflow when parsing large integer constants.
91758         Add support for fractions.
91759         (get_date): Make pointers 'const' if possible.
91760         Use more-portable code to detect integer overflow.
91761         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91762         Don't use ctime; it's not reliable if the year has >4 digits.
91763
91764         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91765         This is for compatibility with BSD.
91766
91767         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91768         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91769         From coreutils' system.h.
91770
91771         * lib/userspec.c: Don't include "posixver.h".
91772         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91773         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91774         compatible extension.  Simplify code by removing a boolean int
91775         that was always nonzero if a string was nonnull.
91776
91777 2004-03-30  Jim Meyering  <jim@meyering.net>
91778
91779         Merge from coreutils.
91780
91781         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91782         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91783         on some systems one must include <grp.h> before it.
91784         Reported by Christian Krackowizer.
91785
91786 2004-03-30  Jim Meyering  <jim@meyering.net>
91787
91788         Merge from coreutils.
91789
91790         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91791
91792         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91793         an empty input stream.
91794
91795         * lib/readtokens.c: Include <stdbool.h>.
91796         (readtoken): Use `size_t' rather than int/long.
91797         All callers adjusted.
91798         Use `bool' rather than `int' where appropriate.
91799         Use memset rather than an explicit loop.
91800         Use x2nrealloc rather than xrealloc.
91801         Allow the use of `\0' as a delimiter.
91802         (readtokens): Likewise.
91803         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91804
91805 2004-03-30  Jim Meyering  <jim@meyering.net>
91806
91807         * m4/realloc.m4: Remove file, since now it does no more than
91808         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91809         the `configure.ac' section of module/realloc.
91810         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91811
91812 2004-03-30  Bruno Haible  <bruno@clisp.org>
91813
91814         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91815         nonnull.
91816
91817 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91818
91819         Merge changes to getloadavg.c from coreutils and Emacs.
91820
91821         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91822         Define to an expression, not to the empty string.
91823         Include cloexec.h and xalloc.h.
91824         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91825         Use set_cloexec_flag rather than rolling our own.
91826         * lib/cloexec.c, lib/cloexec.h: New files.
91827
91828 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91829
91830         * m4/cloexec.m4: New file.
91831
91832 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91833
91834         * lib/getopt.h: Sync with libc CVS.
91835
91836 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91837             Bruno Haible  <bruno@clisp.org>
91838
91839         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91840         mbswidth.
91841
91842 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91843             Bruno Haible  <bruno@clisp.org>
91844
91845         * lib/mbswidth.h: Include <wchar.h> only if
91846         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91847         <wchar.h>.
91848         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91849
91850 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91851
91852         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91853         Sync with libc CVS.
91854         * lib/getopt_int.h: New file, also synced from libc.
91855
91856 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91857
91858         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91859         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91860         Bring back getopt.c, getopt.h, getopt1.c.
91861
91862 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91863
91864         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91865         All uses changed.  Check for sa_sigaction member; this fixes
91866         a bug first reported by Jason Andrade in
91867         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91868
91869 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91870
91871         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91872         '#if' expressions.  Unlike the code it replaces, it does not
91873         depend on (defined _SC_PAGESIZE).  However, it does depend on
91874         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91875         first reported by Jason Andrade in
91876         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91877
91878 2004-02-25  Simon Josefsson  <jas@extundo.com>
91879
91880         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91881
91882 2004-02-25  Simon Josefsson  <jas@extundo.com>
91883
91884         * lib/strdup.h: New file.
91885         * lib/strdup.c: Include it.
91886         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91887         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91888
91889 2004-02-23  Karl Berry  <karl@gnu.org>
91890
91891         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91892         (from fencepost.gnu.org:/gd/gnuorg).
91893
91894 2004-02-23  Karl Berry  <karl@gnu.org>
91895
91896         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91897         * config/srclist.txt: add maintain/standards documents.
91898
91899 2004-02-18  Bruno Haible  <bruno@clisp.org>
91900
91901         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91902         Reported by Derek Robert Price <derek@ximbiot.com>.
91903
91904 2004-02-16  Karl Berry  <karl@gnu.org>
91905
91906         * config/mkinstalldirs, install-sh: update from automake.
91907
91908 2004-02-06  Karl Berry  <karl@gnu.org>
91909
91910         * m4/po.m4: update from gettext 0.14.1.
91911
91912 2004-02-06  Karl Berry  <karl@gnu.org>
91913
91914         * lib/config.charset: update from gettext 0.14.1.
91915
91916 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91917
91918         Add comments and code, prompted by suggestions from Bruno Haible
91919         for sh-quote.
91920         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91921         describing the enum quoting_style values.
91922         * lib/quotearg.c (quotearg_alloc): New function.
91923         (quotearg_buffer_restyled): Treat lone { and } as special.
91924         Treat = as special.  Work around bug with older shells
91925         that "see" a '\' that is really the 2nd byte of a multibyte char.
91926         Quote empty string with shell_quoting_style.
91927
91928 2004-02-03  Bruno Haible  <bruno@clisp.org>
91929
91930         * m4/pipe.m4: New file, from GNU gettext.
91931
91932 2004-02-03  Bruno Haible  <bruno@clisp.org>
91933
91934         * lib/pipe.h: New file, from GNU gettext.
91935         * lib/pipe.c: New file, from GNU gettext.
91936
91937 2004-01-27  Bruno Haible  <bruno@clisp.org>
91938
91939         * m4/execute.m4: New file, from GNU gettext.
91940
91941 2004-01-27  Bruno Haible  <bruno@clisp.org>
91942
91943         * lib/execute.h: New file, from GNU gettext.
91944         * lib/execute.c: New file, from GNU gettext.
91945         * lib/w32spawn.h: New file, from GNU gettext.
91946
91947 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91948
91949         Merge from diffutils.
91950
91951         * lib/file-type.c (file_type): Add typed memory objects.
91952         * lib/file-type.h (S_TYPEISTMO): New macro.
91953
91954         * lib/c-stack.h (c_stack_action): Remove argv argument.
91955         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91956         (die): Don't calculate message unless segv_action returns.
91957         (get_stack_location, min_address_from_argv, max_address_from_argv,
91958         volatile stack_base, volatile_stack_size): Remove.
91959         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91960         that every segmentation violation is a stack overflow.  (Ouch!)
91961         See Debian bug 136249 (still outstanding) for more info about why
91962         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91963
91964 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91965
91966         Exit-status fix from coreutils.
91967
91968         Use exit_failure consistently in place of EXIT_FAILURE,
91969         so that program exit statuses are consistent on failure.
91970
91971         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91972         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91973         * lib/argmatch.h: Comment fix to match the above.
91974         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91975         Now a macro referring to exit_failure, instead of a separate
91976         variable.  Include "exitfail.h" to get it.
91977         * lib/xstrtol.h: Include "exitfail.h".
91978         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91979
91980         * lib/long-options.c (parse_long_options): Use prototype
91981         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91982         for clarity.
91983
91984 2004-01-21  Jim Meyering  <jim@meyering.net>
91985
91986         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91987         so as not to conflict with a different-sized __mktime_internal
91988         function in GNU libc.
91989         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91990         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91991
91992 2004-01-20  Karl Berry  <karl@gnu.org>
91993
91994         * config/config.guess: update from config.
91995
91996         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91997
91998 2004-01-20  Bruno Haible  <bruno@clisp.org>
91999
92000         Safer stack allocation.
92001         * lib/setenv.c: Include allocsa.h.
92002         (alloca): Remove fallback definition.
92003         (freea): Remove macro.
92004         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
92005         instead of freea.
92006
92007 2004-01-20  Bruno Haible  <bruno@clisp.org>
92008
92009         * m4/eealloc.m4: New file, from GNU gettext.
92010
92011 2004-01-20  Bruno Haible  <bruno@clisp.org>
92012
92013         * m4/allocsa.m4: New file, from GNU gettext.
92014
92015 2004-01-20  Bruno Haible  <bruno@clisp.org>
92016
92017         * lib/xallocsa.h: New file, from GNU gettext.
92018         * lib/xallocsa.c: New file, from GNU gettext.
92019
92020 2004-01-20  Bruno Haible  <bruno@clisp.org>
92021
92022         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
92023
92024 2004-01-20  Bruno Haible  <bruno@clisp.org>
92025
92026         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
92027         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
92028         specially.
92029
92030 2004-01-20  Bruno Haible  <bruno@clisp.org>
92031
92032         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
92033         patch.
92034
92035 2004-01-20  Bruno Haible  <bruno@clisp.org>
92036
92037         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
92038
92039 2004-01-20  Bruno Haible  <bruno@clisp.org>
92040
92041         * lib/eealloc.h: New file.
92042
92043 2004-01-20  Bruno Haible  <bruno@clisp.org>
92044
92045         * lib/binary-io.h: Avoid warnings on Cygwin.
92046
92047 2004-01-20  Bruno Haible  <bruno@clisp.org>
92048
92049         * lib/allocsa.h: New file, from GNU gettext.
92050         * lib/allocsa.c: New file, from GNU gettext.
92051
92052 2004-01-18  Karl Berry  <karl@gnu.org>
92053
92054         * doc/gpl.texi, doc/lgpl.texi: new files.
92055
92056 2004-01-18  Karl Berry  <karl@gnu.org>
92057
92058         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
92059         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
92060
92061 2004-01-15  Paul Eggert  <eggert@twinsun.com>
92062
92063         Merge from coreutils.
92064
92065         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
92066         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
92067         (gl_DEFAULT_POSIX2_VERSION): Move
92068         the documentation from 'configure' into 'config.hin',
92069         so that 'configure --help' isn't burdened by it and
92070         we don't have to worry about its formatting there.
92071         Reword the documentation so that it's more succinct
92072         and can be run together into a single paragraph.
92073         * m4/same.m4 (gl_SAME): Check for pathconf.
92074
92075 2004-01-15  Paul Eggert  <eggert@twinsun.com>
92076
92077         Merge from coreutils.
92078
92079         * lib/posixver.c: Include posixver.h.
92080
92081         * lib/same.c: Include <stdbool.h>, <limits.h>.
92082         (_POSIX_NAME_MAX): Define if not defined.
92083         (MIN): New macro.
92084         (same_name): If file names are silently truncated, report
92085         that the file names are the same if they are the same after
92086         the silent truncation.
92087
92088         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
92089         conversion function.
92090         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
92091         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
92092         longer needed.
92093
92094 2004-01-15  Jim Meyering  <jim@meyering.net>
92095
92096         Merge from coreutils.
92097
92098         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
92099         if no library is required.
92100         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
92101         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
92102         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
92103         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
92104         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
92105         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
92106         value, $ac_cv_search_crypt, if it's "none required".
92107         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
92108         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
92109         not gl_FUNC_GETLOADAVG.
92110         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
92111         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
92112
92113 2004-01-15  Jim Meyering  <jim@meyering.net>
92114
92115         Merge from coreutils.
92116
92117         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
92118         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
92119         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
92120
92121         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
92122         optional configure-time default.
92123
92124         * lib/version-etc.c (version_etc_copyright): Update copyright date.
92125
92126         * lib/xreadlink.c (xreadlink): Correct outdated comment.
92127
92128 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
92129
92130         Merge from coreutils.
92131
92132         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
92133         value, $ac_cv_search_nanosleep, if it's "none required".
92134
92135 2004-01-14  Paul Eggert  <eggert@twinsun.com>
92136
92137         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
92138         with like-named macro in fnmatch.c.
92139         (EXT): Use an internal constant instead.
92140
92141         Merge fnmatch patches from glibc.
92142         * lib/fnmatch.c (mbsinit): Remove define.
92143         Add libc_hidden_ver (__fnmatch, fnmatch).
92144         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92145         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92146
92147 2004-01-14  Karl Berry  <karl@gnu.org>
92148
92149         * config/install-sh: update from automake.
92150
92151 2004-01-13  Karl Berry  <karl@gnu.org>
92152
92153         * config/install-sh: update from automake.
92154
92155 2004-01-09  Karl Berry  <karl@gnu.org>
92156
92157         * config/install-sh: update from automake.
92158
92159 2004-01-05  Karl Berry  <karl@gnu.org>
92160
92161         * config/config.{sub,guess}: update from config.
92162
92163 2003-12-31  Karl Berry  <karl@gnu.org>
92164
92165         * config/depcomp: update from automake.
92166
92167 2003-12-14  Karl Berry  <karl@gnu.org>
92168
92169         * lib/config.charset: update from gettext-runtime.
92170
92171 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92172
92173         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92174         Bug reported by Alfred M. Szmidt.
92175
92176 2003-12-03  Bruno Haible  <bruno@clisp.org>
92177
92178         * m4/gettext.m4: Upgrade from gettext-0.13.
92179         * m4/po.m4: Upgrade from gettext-0.13.
92180         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92181         * m4/intmax.m4: New file, from gettext-0.13.
92182         * m4/printf-posix.m4: New file, from gettext-0.13.
92183
92184 2003-11-29  Karl Berry  <karl@gnu.org>
92185
92186         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92187
92188 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92189             Bruno Haible  <bruno@clisp.org>
92190
92191         * lib/printf-parse.h: Don't include sys/types.h.
92192         (ARG_NONE): New macro.
92193         (char_directive): Change type of *arg_index fields to size_t.
92194         * lib/printf-parse.c: Don't include sys/types.h.
92195         (SSIZE_MAX): Remove macro.
92196         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92197         Remove unnecessary overflow check.
92198         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92199         fields.
92200
92201 2003-11-25  Bruno Haible  <bruno@clisp.org>
92202
92203         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92204
92205 2003-11-25  Bruno Haible  <bruno@clisp.org>
92206
92207         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92208         gt_TYPE_SSIZE_T.
92209
92210 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92211
92212         * modules/alloca: Remove dependency on xalloc.
92213
92214 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92215
92216         * lib/alloca.c: Remove dependency on xalloc module.
92217         (xalloc_die): Remove.
92218         (memory_full) [!defined emacs]: New macro.
92219         [!defined emacs]: Don't include xalloc.h.
92220         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92221         address arithmetic overflows.  Change datatypes a bit to avoid
92222         unnecessary casts.
92223
92224 2003-11-22  Jim Meyering  <jim@meyering.net>
92225
92226         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92227         s/size/size_t/.
92228
92229 2003-11-21  Karl Berry  <karl@gnu.org>
92230
92231         * config/config.{sub,guess}: update from config.
92232
92233 2003-11-18  Karl Berry  <karl@gnu.org>
92234
92235         * config/config.{sub,guess}: update from config.
92236
92237         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92238
92239 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92240
92241         * README: Mention that S+T cannot overflow if S is the size of
92242         an existing object and T is sufficiently small.
92243
92244 2003-11-17  Jim Meyering  <jim@meyering.net>
92245
92246         On systems without utime and without a utimes function capable of
92247         dealing with a NULL struct utimbuf* argument, this utime replacement
92248         could -- in unusual circumstances -- leak a file descriptor.
92249         * lib/utime.c: Include <unistd.h> and <errno.h>.
92250         (utime_null): Be sure to close `fd' and to preserve errno.
92251         Reported by Geoff Collyer via Arnold Robbins.
92252
92253 2003-11-17  Bruno Haible  <bruno@clisp.org>
92254
92255         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92256         (Depends-on): Add xsize.
92257
92258 2003-11-17  Bruno Haible  <bruno@clisp.org>
92259
92260         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92261
92262 2003-11-17  Bruno Haible  <bruno@clisp.org>
92263
92264         * lib/vasnprintf.c (alloca): Remove fallback definition.
92265         (freea): Remove definition.
92266         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92267         Reported by Paul Eggert.
92268
92269 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92270             Bruno Haible  <bruno@clisp.org>
92271
92272         Protect against address arithmetic overflow.
92273         * lib/printf-args.h: Include stddef.h.
92274         (arguments): Change type of field 'count' to size_t.
92275         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92276         'unsigned int' where appropriate.
92277         * lib/printf-parse.h: Include sys/types.h.
92278         (char_directive): Change type of *arg_index fields to ssize_t.
92279         (char_directives): Change type of fields 'count', max_*_length to
92280         size_t.
92281         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92282         (SSIZE_MAX): Define fallback value.
92283         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92284         instead of 'int' where appropriate. Check a_allocated, d_allocated
92285         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92286         * lib/vasnprintf.c: Include xsize.h.
92287         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92288         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92289         overflow. Avoid wraparound when converting a width or precision from
92290         decimal to binary.
92291
92292 2003-11-16  Bruno Haible  <bruno@clisp.org>
92293
92294         Update from GNU gettext.
92295         * lib/printf-parse.c: Generalize to it can be compiled for wide
92296         strings.
92297         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92298         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92299         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92300         SNPRINTF): New macros.
92301         Don't include <alloca.h> if the file is used inside libintl.
92302         (local_wcslen): New function, for Solaris 2.5.1.
92303         (VASNPRINTF): Use it instead of wcslen.
92304
92305 2003-11-16  Bruno Haible  <bruno@clisp.org>
92306
92307         * lib/xsize.h (xmax): New function.
92308         (xsum, xsum3, xsum4): Declare as "pure" functions.
92309
92310 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92311
92312         * modules/xalloc (Files): Undo latest change, since xalloc.h
92313         no longer needs SIZE_MAX or PTRDIFF_MAX.
92314
92315 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92316
92317         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92318         gl_PTRDIFF_MAX.
92319
92320 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92321
92322         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92323         "return", to pacify some unknown compiler.  Problem reported
92324         by Joerg Schilling.
92325
92326 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92327
92328         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92329         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92330         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92331         heuristic is just as accurate as far as we know, and it removes a
92332         dependency on size_max.m4 and ptrdiff_max.m4.
92333
92334 2003-11-11  Bruno Haible  <bruno@clisp.org>
92335
92336         * modules/xsize (Files): Add m4/size_max.m4.
92337         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92338
92339 2003-11-11  Bruno Haible  <bruno@clisp.org>
92340
92341         * m4/size_max.m4: New file.
92342         * m4/ptrdiff_max.m4: New file.
92343         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92344         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92345         (gl_XALLOC): Invoke it.
92346
92347 2003-11-11  Bruno Haible  <bruno@clisp.org>
92348
92349         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92350         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92351         defined.
92352
92353 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92354
92355         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92356         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92357         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92358         From Bruno Haible.
92359         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92360         not (size_t) -1, since it's defined here.
92361
92362 2003-11-09  Karl Berry  <karl@gnu.org>
92363
92364         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92365
92366 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92367
92368         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92369         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92370         Reject sizes of exactly SIZE_MAX bytes.
92371         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92372         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92373
92374 2003-11-05  Bruno Haible  <bruno@clisp.org>
92375
92376         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92377         SIZE_MAX defined in <limits.h> on Solaris.
92378
92379 2003-11-04  Jim Meyering  <jim@meyering.net>
92380
92381         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92382         variable names, rather than @VAR@.
92383         * modules/poll: Likewise.
92384
92385 2003-11-04  Bruno Haible  <bruno@clisp.org>
92386
92387         * modules/xsize: New file.
92388         * modules/linebreak: Depend on xsize.
92389         * MODULES.html.sh (func_all_modules): Add xsize.
92390
92391 2003-11-04  Bruno Haible  <bruno@clisp.org>
92392
92393         * m4/xsize.m4: New file.
92394
92395 2003-11-04  Bruno Haible  <bruno@clisp.org>
92396
92397         * lib/xsize.h: New file.
92398         * lib/linebreak.c: Include xsize.h.
92399         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92400         argument for overflow.
92401         Suggested by Paul Eggert.
92402
92403 2003-11-03  Karl Berry  <karl@gnu.org>
92404
92405         * config/config.{guess,sub}: update from config.
92406
92407 2003-11-03  Jim Meyering  <jim@meyering.net>
92408
92409         * modules/userspec (lib_SOURCES): Add userspec.h.
92410         (Include): Add "userspec.h".
92411         Improve description.
92412
92413 2003-11-03  Jim Meyering  <jim@meyering.net>
92414
92415         * lib/userspec.c: Include "userspec.h".
92416         * lib/userspec.h: New file.
92417
92418 2003-11-03  Bruno Haible  <bruno@clisp.org>
92419
92420         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92421
92422 2003-11-03  Bruno Haible  <bruno@clisp.org>
92423
92424         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92425         available, to avoid (extremely rare) race condition.
92426         Suggested by Paul Eggert.
92427
92428 2003-11-02  Karl Berry  <karl@gnu.org>
92429
92430         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92431
92432 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92433
92434         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92435         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92436         (read_filesystem_list): Set and use me_type_malloced.
92437         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92438         whatever the type happens to be), for brevity and consistency.
92439         Check for size calculation overflow on Alphas running OSF/1.
92440
92441 2003-10-31  Jim Meyering  <jim@meyering.net>
92442
92443         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92444
92445         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92446
92447 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92448             Bruno Haible  <bruno@clisp.org>
92449
92450         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92451         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92452
92453 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92454
92455         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92456         netbsd*-gnu*.  Suggested by Robert Millan.
92457
92458 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92459
92460         * modules/group-member: Depend on stdbool.
92461
92462 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92463
92464         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92465
92466 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92467
92468         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92469         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92470         after the 'gnu' in these cases.  This fixes some bugs in the
92471         previous change, and is based on suggestions by Robert Millan.
92472
92473 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92474
92475         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92476         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92477         no longer needed.
92478         * lib/quotearg.c (quotearg_n_options): Use it.
92479         * lib/group-member.c: Include <stdbool.h>.
92480         (free_group_info): Arg is now const *; don't free arg.
92481         (get_group_info): Now returns bool and accepts struct group_info *,
92482         rather than returning a malloc'ed struct group_info *.
92483         All uses changed.  Check for overflow in internal size calculation.
92484
92485         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92486         rather than xmalloc/xrealloc.
92487         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92488         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92489         conformance bug: the old code used a pointer after freeing the
92490         storage that it addressed.
92491         * lib/hash.c (hash_initialize): Simplify the code by using
92492         xalloc_oversized rather than doing it by hand.
92493         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92494         the buffer preserved.  Use free and xmalloc instead.
92495         * lib/quotearg.c (quotearg_n_options): Likewise.
92496         Use a simpler test for size overflow.  Don't use xalloc_oversized
92497         because unsigned int might be wider than size_t (!); this suggests
92498         that we should switch from unsigned int to size_t for slot numbers.
92499
92500 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92501
92502         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92503         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92504         NetBSD kernels.  Requested by Richard Stallman.
92505
92506 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92507
92508         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92509         to allocate the returned structure.  Do not allocate a subarray,
92510         as x2nrealloc will do that.
92511         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92512         instead of xnrealloc.
92513         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92514
92515 2003-10-27  Bruno Haible  <bruno@clisp.org>
92516
92517         * lib/stdbool_.h: Better support for BeOS.
92518
92519 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92520
92521         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92522         now uses inline.
92523
92524 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92525
92526         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92527         callers that want to do their own size-overflow checking.  Include
92528         <stdbool.h>, since xalloc_oversized returns bool.
92529         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92530         to use xalloc_oversized.
92531
92532         Add two functions x2realloc, x2nrealloc, for programs that grow
92533         arrays dynamically by doubling their sizes.
92534         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92535         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92536         New functions.
92537
92538         Port to C99 semantics for 'inline' of external functions.
92539         Bug reported by Bruno Haible.
92540         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92541         with the old contents of xnmalloc.
92542         (xnmalloc, xmalloc): Use it.
92543         (xnrealloc_inline): New static inline function,
92544         with the old contents of xnrealloc.
92545         (xnrealloc, xrealloc): Use it.
92546
92547         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92548         that.
92549
92550 2003-10-26  Karl Berry  <karl@gnu.org>
92551
92552         * config/srclist.txt (COPYING.DOC): no longer available from
92553         /gd/gnuorg; don't know where the ultimate source is.
92554
92555 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92556
92557         Fix several address-calculation bugs in the hash modules,
92558         plus some minor code cleanup.
92559
92560         * lib/hash.h: Include <stdbool.h>, for bool.
92561         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92562         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92563         hash_get_n_entries, hash_get_max_bucket_length,
92564         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92565         hash_rehash): Use size_t rather than unsigned.
92566         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92567         hash_get_n_buckets_used, hash_get_n_entries,
92568         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92569         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92570         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92571         Likewise.
92572         (SIZE_MAX): Define if not defined.
92573         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92574         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92575         hash_print):
92576         Use const * when possible.
92577         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92578         (check_tuning): Fix bug: if tuning parameters were very close to
92579         0 or 1, rounding errors could have caused subscript violations.
92580         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92581         (hash_initialize): Add 'fail:' label
92582         to free table and return NULL, and use it to simplify code.
92583         Use calloc rather than clearing the storage ourself.
92584         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92585         buffer size calculations.
92586         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92587         Include <stddef.h>, for size_t.
92588         * lib/hash-pjw.c (hash_pjw): Likewise.
92589         Switch to method described by Bruno Haible.
92590         Include <limits.h>, for CHAR_BIT.
92591         (SIZE_BITS): New macro.
92592
92593 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92594
92595         * m4/getline.m4 (AM_FUNC_GETLINE):
92596         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92597         hosts.  Problem reported by Derek Robert Price in
92598         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92599         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92600         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92601
92602 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92603
92604         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92605         ceiling the allocation at NMAX bytes rather than silently
92606         discarding input bytes before NMAX is reached.  This makes
92607         a difference only if NMAX exceeds SIZE_MAX / 2.
92608
92609         * lib/obstack.c: Merge from glibc.
92610         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92611         Add libc_hidden_def (_obstack_newchunk).
92612         (_obstack_free) [! defined _LIBC]: Remove.
92613         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92614         a clone of the function body.
92615         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92616         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92617
92618         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92619         glibc.
92620         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92621         arg to memcpy.
92622
92623         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92624         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92625         Don't use lvalue casts, as GCC plans to remove support for them
92626         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92627         was also present in the non-GCC version, indicating that this
92628         code had always been buggy and had never been widely used.
92629         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92630         Use the fast variant of each macro, rather than copying the
92631         definiens of the fast variant; that way, we'll be more likely to
92632         catch future bugs in the fast variants.
92633
92634 2003-10-20  Bruno Haible  <bruno@clisp.org>
92635
92636         * modules/wait-process: New file.
92637         * MODULES.html.sh (func_all_modules): Add wait-process.
92638
92639 2003-10-20  Bruno Haible  <bruno@clisp.org>
92640
92641         * m4/wait-process.m4: New file.
92642
92643 2003-10-20  Bruno Haible  <bruno@clisp.org>
92644
92645         * lib/wait-process.h: New file, from GNU gettext.
92646         * lib/wait-process.c: New file, from GNU gettext.
92647
92648 2003-10-19  Jim Meyering  <jim@meyering.net>
92649
92650         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92651         HPUX 10.20.
92652
92653 2003-10-18  Karl Berry  <karl@gnu.org>
92654
92655         * config/config.guess: update from config.
92656
92657 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92658
92659         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92660         (getgroups): First arg is int, not size_t.
92661         Don't let 'free' mangle errno.
92662
92663 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92664
92665         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92666
92667 2003-10-16  Karl Berry  <karl@gnu.org>
92668
92669         * config/config.{guess,sub}: update from config.
92670
92671 2003-10-16  Jim Meyering  <jim@meyering.net>
92672
92673         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92674         memcpy.
92675
92676 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92677
92678         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92679         (SIZE_MAX): Remove.
92680         (new_exclude, add_exclude_file): Initial size no longer needs to
92681         be a power of 2.
92682         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92683         our own address arithmetic overflow checking.
92684
92685         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92686         (fnmatch): Do not alloca more than 2000 wide characters;
92687         instead, use malloc for large buffers.
92688         Check for address arithmetic overflow, and return -1
92689         with errno set to ENOMEM in that case.
92690         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92691         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92692         instead, return -1.  Check for address arithmetic overflow.
92693
92694 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92695
92696         Handle invalid suffixes and overflow independently, so that
92697         callers can treat them independently as needed.  Fix some bugs in
92698         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92699         suffix for a human-readable blocksize.  The major caller-visible
92700         change is the addition of a new
92701         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92702         that both overflow and suffix chars were found.
92703
92704         * lib/human.c (humblock): Don't check separately for invalid suffix
92705         char; that is xstrtoumax's job (now that its bug is fixed).
92706         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92707         INTMAX_MAX]: New macros.
92708         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92709         TYPE_MAXIMUM): New macros.
92710         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92711         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92712         if overflow occurs, as it's what __strtol does and it's more useful
92713         in practice.
92714         (__xstrtol): If __strtol reports some error other than ERANGE,
92715         reflect it to the caller as LONGINT_INVALID.  If it reports
92716         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92717         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92718         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92719         value.
92720         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92721         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92722         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92723         [defined UINTMAX_MAX]: New macros.
92724
92725 2003-10-14  Bruno Haible  <bruno@clisp.org>
92726
92727         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92728
92729 2003-10-14  Bruno Haible  <bruno@clisp.org>
92730
92731         * m4/sig_atomic_t: New file, from GNU gettext.
92732         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92733
92734 2003-10-14  Bruno Haible  <bruno@clisp.org>
92735
92736         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92737         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92738         Also use volatile where needed.
92739
92740 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92741
92742         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92743         Change maintainer from Bruno Haible to 'all'.
92744
92745 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92746
92747         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92748
92749 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92752         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92753         and define in terms of the other primitives.
92754         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92755         (SIZE_MAX): Define if not already defined.
92756         (array_size_overflow): New function.
92757         (xalloc_die): Abort instead of exiting if 'error' returns.
92758         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92759         (xmalloc, xrealloc): Use them.
92760         (xcalloc): Check for address arithmetic overflow.
92761         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92762         a bit faster than strcpy.
92763
92764 2003-10-10  Simon Josefsson  <jas@extundo.com>
92765
92766         * modules/argp (Depends-on): Add restrict and strcase.
92767
92768 2003-10-10  Simon Josefsson  <jas@extundo.com>
92769
92770         * m4/argp.m4: Add AC_C_INLINE.
92771
92772 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92773
92774         Merge getpass from libc, plus a few fixes.
92775
92776         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92777         Include <stdbool.h>.
92778         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92779         __fsetlocking to empty.
92780         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92781         do include <bits/libc-lock.h>.
92782         Do not include <fcntl.h>; not needed.
92783         [_LIBC]: Include <wchar.h>.
92784         (NOTCANCEL_MODE): New macro.
92785         (flockfile, funlockfile) [_LIBC]: New macros.
92786         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92787         [!_LIBC]: New macros.
92788         (call_fclose): New function.
92789         (getpass): Use it.  Save tty stream separately; this simplifies the
92790         code and makes it more reliable if stdin happens to equal stdout.
92791         Invoke __fsetlocking on tty.
92792         Handle thread cancellation if needed.
92793         Namespace cleanup (use __tcgetattr, __getline).
92794         Use bool for Booleans.
92795         [USE_IN_LIBIO]: Handle wide streams.
92796         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92797         stream might go where.
92798
92799         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92800         doesn't have to include <stdio.h> before us.
92801         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92802         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92803         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92804         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92805         if not declared, so that we can use getpass.c code from libc without
92806         rewriting it.
92807         (flockfile, ftrylockfile, funlockfile): New macros.
92808
92809 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92810
92811         * modules/getpass: Depend on stdbool.
92812
92813 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92814
92815         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92816
92817 2003-10-07  Karl Berry  <karl@gnu.org>
92818
92819         * config/config.{guess,sub}: update from config.
92820
92821 2003-10-06  Jim Meyering  <jim@meyering.net>
92822             Bruno Haible  <bruno@clisp.org>
92823
92824         This lets translators provide better translations for the
92825         "Written by ..." part of --version output.
92826         * lib/version-etc.h: Include stdarg.h.
92827         (version_etc_copyright): Declare as readonly.
92828         (version_etc): Make this function variadic with a NULL-terminated list
92829         of author name strings.
92830         (version_etc_va): New declaration.
92831         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92832         (version_etc_copyright): Declare as readonly.
92833         (version_etc_va): New function. Provide a different translatable string
92834         for each possible number of authors < 10. Abbreviate when there are 10
92835         authors or more.
92836         (version_etc): Make this function variadic. Call version_etc_va.
92837         Suggestion from Gary V. Vaughan.
92838
92839         * lib/long-options.h (parse_long_options): Change prototype: the
92840         authors string is moved to the end and becomes variadic.
92841         * lib/long-options.c: Include stdarg.h.
92842         (parse_long_options): Make this function variadic, too.
92843         Call version_etc_va, not version_etc.
92844
92845 2003-10-06  Bruno Haible  <bruno@clisp.org>
92846
92847         * modules/version-etc-2: Remove file.
92848         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92849
92850 2003-10-06  Bruno Haible  <bruno@clisp.org>
92851
92852         * modules/fatal-signal: New file.
92853         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92854
92855 2003-10-06  Bruno Haible  <bruno@clisp.org>
92856
92857         * m4/fatal-signal.m4: New file.
92858         * m4/signalblocking.m4: New file, from GNU gettext.
92859
92860 2003-10-06  Bruno Haible  <bruno@clisp.org>
92861
92862         * lib/version-etc-2.h: Remove file.
92863         * lib/version-etc-2.c: Remove file.
92864
92865 2003-10-06  Bruno Haible  <bruno@clisp.org>
92866
92867         * lib/fatal-signal.h: New file, from GNU gettext.
92868         * lib/fatal-signal.c: New file, from GNU gettext.
92869
92870 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92871
92872         * README: Rework advice for preventing empty .o files.
92873         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92874         not <sys/types.h>.
92875
92876 2003-10-04  Karl Berry  <karl@gnu.org>
92877
92878         * lib/argp*: update from libc.
92879
92880 2003-10-04  Karl Berry  <karl@gnu.org>
92881
92882         * config/config.{guess,sub}: update from config.
92883
92884 2003-10-02  Bruno Haible  <bruno@clisp.org>
92885
92886         * modules/lchown (Include): Add lchown.h.
92887         * modules/time_r (Include): Use "..." syntax.
92888         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92889
92890 2003-10-01  Simon Josefsson  <jas@extundo.com>
92891
92892         * MODULES.html.sh (func_all_modules): Move gethostname from section
92893         'based on' to section 'lacking' POSIX:2001.
92894
92895 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92896
92897         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92898         to output mode on the same stream.
92899
92900 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92901
92902         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92903         Fix arg typo in previous patch.
92904
92905 2003-09-28  Jim Meyering  <jim@meyering.net>
92906
92907         * lib/error.c: Correct cpp indentation.
92908
92909 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92910
92911         * modules/free: New file.
92912
92913 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92914
92915         * m4/free.m4: New file.
92916
92917 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92918
92919         * lib/minmax.h (MIN, MAX)
92920         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92921         Omit the special code that used __typeof__, since we worry that
92922         it could be more trouble than it's worth.  See:
92923         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92924         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92925
92926         * lib/free.c: New file.
92927
92928 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92929
92930         Trivial fixes to Makefile.am parts of module listings.
92931         * modules/strstr: Append strstr.h to lib_SOURCES.
92932         * modules/strcase: Likewise, for strcase.h.
92933
92934 2003-09-27  Karl Berry  <karl@gnu.org>
92935
92936         * config/mkinstalldirs: update from automake.
92937
92938 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92939
92940         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92941         (error_tail): Do not loop, reallocating temporary buffer, since
92942         the output cannot contain more wide characters than the input
92943         contains bytes, the size must be big enough already.  This avoids
92944         one potential size overflow calculation.  Check for size overflow
92945         when calculating temporary buffer size.  Free temporary buffer
92946         when done, if it was allocated with malloc; this plugs a memory
92947         leak.  Remove casts from void * to pointers, that are no longer
92948         needed now that we're assuming C89 or better.
92949
92950         Merge error changes from glibc.
92951
92952         * lib/error.c, error.h: Update copyright notice header to match glibc.
92953         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92954         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92955         Disable cancellation while printing error.
92956         * lib/error.h: Prepend __ to parameter names.
92957
92958 2003-09-26  Jim Meyering  <jim@meyering.net>
92959
92960         * lib/error.c (error_tail): Move some declarations
92961         into inner scope where the local variables are used.
92962
92963 2003-09-26  Bruno Haible  <bruno@clisp.org>
92964
92965         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92966         stpncpy().
92967         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92968
92969 2003-09-26  Bruno Haible  <bruno@clisp.org>
92970
92971         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92972         (stpncpy): Define as alias for gnu_stpncpy.
92973         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92974
92975 2003-09-25  Simon Josefsson  <jas@extundo.com>
92976
92977         * lib/xgetdomainname.h: New file.
92978         * lib/xgetdomainname.c: New file.
92979
92980 2003-09-25  Simon Josefsson  <jas@extundo.com>
92981             Bruno Haible  <bruno@clisp.org>
92982
92983         * modules/getdomainname: New file.
92984         * modules/xgetdomainname: New file.
92985         * MODULES.html.sh (func_all_modules): Add getdomainname,
92986         xgetdomainname.
92987
92988 2003-09-25  Simon Josefsson  <jas@extundo.com>
92989             Bruno Haible  <bruno@clisp.org>
92990
92991         * m4/getdomainname.m4: New file.
92992
92993 2003-09-25  Simon Josefsson  <jas@extundo.com>
92994             Bruno Haible  <bruno@clisp.org>
92995
92996         * lib/getdomainname.h: New file.
92997         * lib/getdomainname.c: New file.
92998
92999 2003-09-25  Karl Berry  <karl@gnu.org>
93000
93001         * lib/argp-fmtstream.c, argp-help.c: update from libc.
93002
93003 2003-09-25  Karl Berry  <karl@gnu.org>
93004
93005         * config/install-sh: update from automake.
93006
93007 2003-09-25  Bruno Haible  <bruno@clisp.org>
93008
93009         * modules/version-etc-2: New file, from modules/version-etc with
93010         modifications.
93011         * MODULES.html.sh (func_all_modules): Add version-etc-2.
93012
93013 2003-09-25  Bruno Haible  <bruno@clisp.org>
93014
93015         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
93016         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
93017
93018 2003-09-24  Simon Josefsson  <jas@extundo.com>
93019
93020         * modules/xgethostname: Add xgethostname.h.
93021
93022 2003-09-24  Paul Eggert  <eggert@twinsun.com>
93023
93024         * lib/linebuffer.c (freebuffer): Don't free the argument, just
93025         the buffer associated with the argument.  Bug reported by
93026         Simon Josefsson.
93027
93028 2003-09-24  Paul Eggert  <eggert@twinsun.com>
93029
93030         * README: Document assumptions that 'int' is at least 32 bits
93031         wide, that integer arithmetic is 2's complement without overflow,
93032         that there are no holes in integer values, that adding sizes of
93033         two nonoverlapping objects can't overflow, and that all-bits-zero
93034         yields scalar zero.  Fix spelling and capitalization typos.
93035
93036 2003-09-19  Karl Berry  <karl@gnu.org>
93037
93038         * lib/argp.h: update from libc.
93039
93040 2003-09-17  Paul Eggert  <eggert@twinsun.com>
93041
93042         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
93043         to avoid spurious warnings like "AC_RUN_IFELSE was called before
93044         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
93045
93046 2003-09-17  Paul Eggert  <eggert@twinsun.com>
93047
93048         * gnulib-tool: Use "test -h", not "test -L", for portability
93049         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
93050         (tags_regexp): Remove, since \| doesn't conform to POSIX.
93051         (sed_extract_prog): Issue s commands one-by-one, rather than
93052         using \| in one s command.
93053
93054 2003-09-16  Paul Eggert  <eggert@twinsun.com>
93055
93056         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
93057         input error, instead of returning NULL the next time we are called
93058         (and therefore losing track of errno).
93059
93060 2003-09-16  Bruno Haible  <bruno@clisp.org>
93061
93062         * gnulib-tool (func_create_testdir): Warn about duplicated
93063         dependencies.
93064
93065 2003-09-15  Paul Eggert  <eggert@twinsun.com>
93066
93067         * modules/argmatch, modules/fatal, modules/obstack,
93068         modules/xalloc, modules/xgethostname: Sort dependencies by
93069         importance, not alphabetically.
93070
93071 2003-09-15  Paul Eggert  <eggert@twinsun.com>
93072
93073         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
93074         fails, so that the caller gets the proper errno.
93075
93076         * lib/readutmp.c (read_utmp): Likewise.
93077         Check for fstat error.  Close stream and free storage
93078         when failing.
93079
93080 2003-09-14  Karl Berry  <karl@gnu.org>
93081
93082         * config/srclist.txt (strdup.c): disable for c89 changes.
93083
93084 2003-09-14  Jim Meyering  <jim@meyering.net>
93085
93086         * lib/getloadavg.c: Correct cpp indentation.
93087         * lib/strdup.c: Likewise.
93088         * lib/vasnprintf.c: Likewise.
93089
93090 2003-09-14  Bruno Haible  <bruno@clisp.org>
93091
93092         * modules/fwriteerror: New file.
93093         * MODULES.html.sh (func_all_modules): Add fwriteerror.
93094
93095 2003-09-14  Bruno Haible  <bruno@clisp.org>
93096
93097         * lib/fwriteerror.h: New file.
93098         * lib/fwriteerror.c: New file.
93099
93100 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93101
93102         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
93103         modules/xgethostname, modules/xalloc: Depend on exit.
93104
93105 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93106
93107         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
93108
93109         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
93110         and AC_MINIX, too, so that their extensions are available.
93111
93112         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
93113         This macro has been superseded by gl_BACKUPFILE.
93114
93115         More patches to assume C89 or better.
93116
93117         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
93118
93119         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
93120         unconditionally.
93121         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
93122         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
93123         Include <string.h>, <stdlib.h> unconditionally.
93124         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
93125         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
93126         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
93127         headers or for string.h.
93128         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
93129         or strtoul.
93130
93131         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
93132         headers.
93133         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
93134         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93135         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
93136         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
93137         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93138         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
93139         memcpy, memset.
93140         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
93141         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
93142         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
93143         strtol.
93144         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93145         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93146         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93147         strtoul.
93148
93149 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93150
93151         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93152         * lib/obstack.c [!defined _LIBC]: Likewise.
93153         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93154         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93155         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93156
93157         More changes to assume C89 or better.
93158
93159         * lib/error.c (error_tail): Assume vprintf.
93160
93161         * lib/argmatch.c (getenv): Remove decl.
93162         * lib/progreloc.c (get_full_program_name): Define via prototype.
93163         * lib/setenv.c (clearenv): Likewise.
93164         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93165         needed.
93166         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93167         (malloc, memcpy): Remove decls.
93168         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93169         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93170         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93171         (memcpy): Remove macro.
93172         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93173         (__P): Remove.  All uses removed.
93174         (PTR): Remove.  All uses changed to void *.
93175         (CHAR_BIT, NULL): Remove.
93176         (spaces, zeros, memset_space, memset_zero)
93177         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93178         Remove.
93179         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93180         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93181         Define with prototype.
93182         Remove now-unnecessary prototype decl.
93183         (extra_args_spec): Assume ANSI C.  All uses changed.
93184         (extra_args_spec_iso): Remove.
93185         (my_strftime, emacs_strftimeu): Define via prototype.
93186         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93187         unconditionally.
93188         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93189         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93190         (strtoul, strtol): Remove decls.
93191         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93192         LONG_MAX): Remove.
93193         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93194         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93195         (LOCALE_PARAM_PROTO): New macro.
93196         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93197         (INTERNAL (strtol), strtol): Define with a prototype.
93198         (PARAMS): Remove.  All uses removed.
93199         * lib/tempname.c: Include <string.h> unconditionally.
93200         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93201         * lib/xgethostname.c (main): Define with a prototype.
93202         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93203         Include <stdlib.h> unconditionally.
93204         (calloc, malloc, realloc, free): Remove decls.
93205         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93206         Include <stdlib.h> unconditionally.  Sort include file names.
93207         (strtod): Remove.
93208         (xstrtod): Define with a prototype.
93209         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93210         (strtol, strtoul): Remove decls.
93211
93212 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93213
93214         More patches to assume C89 or better.
93215         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93216         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93217         string.h, memchr, STDC_HEADERS.
93218
93219 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93220
93221         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93222         Include <stdlib.h>, <string.h> unconditionally.
93223         Remove now-unnecessary cast to char *.
93224         * lib/strnlen.c: Include <string.h> unconditionally.
93225         * lib/yesno.c (yesno): Define with a prototype.
93226
93227 2003-09-11  Bruno Haible  <bruno@clisp.org>
93228
93229         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93230
93231 2003-09-10  Jim Meyering  <jim@meyering.net>
93232
93233         * lib/error.c: Correct indentation of cpp directives.
93234
93235 2003-09-10  Bruno Haible  <bruno@clisp.org>
93236
93237         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93238         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93239         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93240         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93241         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93242         <stdlib.h> and <string.h> checks.
93243         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93244         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93245
93246 2003-09-10  Bruno Haible  <bruno@clisp.org>
93247
93248         * lib/strcspn.c: Include <string.h> unconditionally.
93249         * lib/strpbrk.c: Include <string.h> unconditionally.
93250         * lib/strstr.c: Include <string.h> unconditionally.
93251         * lib/unicodeio.c: Include <string.h> unconditionally.
93252         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93253         * lib/unsetenv.c: Likewise.
93254         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93255         * lib/yesno.c: Include <stdlib.h> unconditionally.
93256         (rpmatch): Add prototype.
93257
93258 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93259
93260         More patches to assume C89 or better.
93261         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93262         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93263         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93264         or for string.h.
93265         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93266         stdlib.h.
93267         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93268         C headers.
93269         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93270         string.h.
93271         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93272         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93273         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93274         or for string.h.
93275         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93276         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93277         C headers.
93278         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93279         memcpy.
93280         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93281         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93282         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93283         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93284         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93285         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93286         string.h, free.
93287         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93288         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93289         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93290         C headers, or for string.h.
93291         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93292         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93293         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93294         headers, memory.h, stdlib.h, string.h, strings.h.
93295         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93296         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93297         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93298         strchr.
93299         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93300         headers, memory.h, string.h.
93301         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93302         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93303         free.
93304         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93305         headers.
93306         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93307         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93308         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93309         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93310         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93311
93312 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93313
93314         More K&R removal.
93315
93316         * lib/acosl.c (main): Use a prototype.
93317         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93318         tanl.c: Likewise.
93319
93320         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93321
93322         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93323         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93324         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93325         with a prototype.
93326         * lib/getopt.c (const): Remove macro.
93327         Include <string.h> unconditionally.
93328         (my_index): Remove; all uses changed to strchr.
93329         (strlen): Remove decl.
93330         (exchange): Remove forward decl; no longer needed.
93331         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93332         Define with prototype.
93333         * lib/getopt1.c (const): Remove macro.
93334         (getopt_long, getopt_long_only, main): Define with prototype.
93335
93336         * lib/getugroups.c: Include <string.h> unconditionally.
93337
93338         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93339         (getusershell, setusershell, endusershell, readname, main):
93340         Define with prototypes.
93341
93342         * lib/group-member.c: Include group-member.h first.
93343         Include <stdlib.h> unconditionally.
93344
93345         * lib/hard-locale.c: Include hard-locale.h first.
93346         Include <stdlib.h>, <string.h> unconditionally.
93347
93348         * lib/hash.c (free, malloc): Remove decls.
93349         Include <stdlib.h> unconditionally.
93350
93351         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93352         (getenv): Do not declare.
93353
93354         * lib/idcache.c: Include <string.h> unconditionally.
93355
93356         * lib/long-options.c: Include long-options.h first, to test interface.
93357         Include <stdlib.h> unconditionally.
93358
93359         * lib/makepath.c: Include makepath.h first, to test interface.
93360         Include <stdlib.h> and <string.h> unconditionally.
93361
93362         * lib/linebuffer.c: Include <stdlib.h>.
93363         (free): Remove decl.
93364
93365         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93366         stddef.h. rpl_malloc returns void *, not char *.
93367         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93368         prototype.
93369
93370         * lib/md5.h: Include <limits.h> unconditionally.
93371         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93372         (__P): Remove; all uses removed.
93373         * lib/md5.c: Include "md5.h" first.
93374         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93375         md5_buffer, md5_process_bytes, md5_process_block):
93376         Define with prototypes.
93377         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93378         * lib/sha.c: Include "sha.h" first.
93379         Include <stdlib.h>, <string.h> unconditionally.
93380
93381         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93382         * lib/memcmp.c (__ptr_t): Likewise.
93383         * lib/memrchr.c (__ptr_t): Likewise.
93384         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93385         Include <string.h> unconditionally.
93386         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93387         * lib/memchr.c: Include <stdlib.h> unconditionally.
93388         * lib/memchr.c (LONG_MAX): Remove.
93389         * lib/memrchr.c (LONG_MAX): Likewise.
93390         * lib/memchr.c (__memchr): Define via a prototype.
93391         * lib/memrchr.c (__memrchr): Likewise.
93392         * lib/memcmp.c (__P): Remove, and remove all uses.
93393         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93394         Remove forward decls; no longer needed.
93395         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93396         Use types required by C89 in prototype.
93397
93398         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93399         * lib/savedir.c: Likewise.
93400         * lib/mkdir.c (free): Remove decl.
93401         * lib/rmdir.c (rmdir): Define with a prototype.
93402         * lib/savedir.c: Include savedir.h first, to test interface.
93403
93404         * lib/mktime.c (STDC_HEADERS): Remove.
93405         Include <stdlib.h>, <string.h> unconditionally.
93406
93407         * lib/modechange.c: Include <stdlib.h> unconditionally.
93408         (malloc): Remove decl.
93409
93410         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93411         (free): Remove decl.
93412
93413         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93414         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93415         (This type really should be intptr_t, but that's a C99ism.)
93416         (_obstack_memcpy): Remove: all uses changed to memcpy.
93417         Include <string.h> unconditionally.
93418         (struct obstack): Assume __STDC__ for types of members
93419         chunkfun, freefun, extra_arg.
93420         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93421         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93422         obstack_begin, obstack_specify_allocation,
93423         obstack_specify_allocation_with_arg, obstack_chunkfun,
93424         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93425         Remove unprototyped decls and the macros that use them.
93426         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93427         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93428         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93429         (defined __STDC__ && __STDC__)]:
93430         Remove nonprototyped code.
93431         Include <stdlib.h> unconditionally.
93432         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93433         _obstack_allocated_p, _obstack_free, obstack_free,
93434         _obstack_memory_used, print_and_abort):
93435         Define using prototypes.
93436         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93437         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93438         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93439         obstack_next_free, obstack_object_size, obstack_room) [0]:
93440         Remove unused, unprototyped code.
93441
93442         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93443
93444         * lib/physmem.c (physmem_total, physmem_available, main): Define
93445         with prototypes.
93446
93447         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93448         (main): Define with a prototype.
93449
93450         * lib/posixver.c (getenv): Remove decl.
93451
93452         * lib/putenv.c (malloc): Returns void *, not char *.
93453         Include <string.h> unconditionally.
93454         (strchr, memcpy, NULL): Do not define.
93455
93456         * lib/readtokens.c: Include readtokens.h first, to test interface.
93457         Include <stdlib.h>, <string.h> unconditionally.
93458         (init_tokenbuffer): Define with a prototype.
93459
93460         * lib/regex.c (PARAMS): Remove.  All uses removed.
93461         All uses of _RE_ARGS removed, too.
93462         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93463         unconditionally.
93464         (bzero): Assume memset exists.
93465         (memcmp, memcpy, NULL): Remove.
93466         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93467         char, or assignments to local vars of type signed char.
93468         (init_syntax_once, PREFIX(extract_number_and_incr),
93469         PREFIX(print_partial_compiled_pattern),
93470         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93471         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93472         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93473         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93474         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93475         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93476         wcs_compile_range, byte_compile_range, truncate_wchar,
93477         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93478         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93479         count_mbs_length, wcs_re_match_2_internal,
93480         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93481         PREFIX(alt_match_null_string_p),
93482         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93483         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93484         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93485         now-unnecessary declaration, if any.
93486         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93487         regcomp, regexec):
93488         Remove now-unnecessary casts among pointer types.
93489         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93490
93491         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93492         (free): Remove decl.
93493
93494         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93495
93496         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93497         (free): Remove decl.
93498
93499         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93500         * lib/xgetcwd.c: Likewise.
93501
93502         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93503         (free): Remove decl.
93504
93505         * lib/strchrnul.c (strchrnul): Define with a prototype.
93506         Fix bug: c_in was not converted to char before searching.
93507
93508         The following changes are not K&R related:
93509
93510         * lib/group-member.h: Include <sys/types.h>, so that this file is
93511         self-contained.
93512         * lib/makepath.h: Likewise.
93513
93514         * lib/getusershell.c (readname, default_index, line_size, readname):
93515         Use size_t, not int, for sizes.
93516         (readname): If the size overflows, report an error instead of
93517         looping forever.
93518
93519 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93520
93521         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93522         libc.
93523
93524 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93525
93526         * README: New section: portability guidelines.
93527
93528 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93529
93530         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93531         C89 spec.
93532
93533 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93534
93535         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93536
93537 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93538
93539         Assume C89 or better; remove K&R cruft.
93540         A few of these changes were first proposed by Derek Robert Price
93541         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93542
93543         * lib/addext.c: Include <string.h> unconditionally.
93544         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93545         Don't declare getenv or malloc.
93546
93547         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93548         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93549         (NULL): Remove.
93550         (find_stack_direction, alloca): Use prototypes.
93551
93552         * lib/atexit.c (atexit): Define using a prototype.
93553
93554         * lib/basename.c, dirname.c, stripslash.c:
93555         Include <string.h> unconditionally.
93556
93557         * lib/bcopy.c: Include <stddef.h>.
93558         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93559
93560         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93561
93562         * lib/error.h (error, error_at_line, error_print_progname)
93563         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93564         * lib/error.c: Include error.h first, to check interface.
93565         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93566         (VA_START): Remove; all uses changeed to va_start.
93567         (exit, strerror): Remove decls.
93568         (error_print_progname): Prototype uncondionally.
93569         Don't include <errno.h>; no longer needed.
93570         (private_strerror): Remove.
93571         (error_tail): Always define.
93572         (error, error_at_line): Assume C89 or better; always use prototypes.
93573         * lib/fatal.c: Include "fatal.h" first, to test interface.
93574         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93575         (VA_START): Remove; all uses changed to va_start.
93576         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93577         this case.
93578         (exit): Remove decl.
93579         (fatal): Prototype unconditionally.  Assume va_start works.
93580         Abort at end, to pacify gcc.
93581
93582         * lib/euidaccess.c (main): Define with a prototype.
93583
93584         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93585
93586         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93587
93588         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93589         prototypes.
93590         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93591         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93592         (getenv): Remove decl.
93593         (fnmatch): Define using a prototype.
93594         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93595         (FCT): Define using a prototype.
93596
93597         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93598
93599         * lib/gethostname.c: Include <stddef.h>.
93600         (gethostname): Define with prototype.  Length is size_t, not int.
93601
93602 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93603
93604         Assume C89 or better; remove K&R cruft.
93605         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93606         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93607         string.h, getenv, malloc.
93608         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93609         headers.
93610         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93611         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93612         do not check for strerror.
93613         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93614         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93615         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93616         do not check for doprnt or vprintf.
93617         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93618         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93619
93620 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93621
93622         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93623         getversion.c should have been removed then, but was accidentally
93624         preserved.
93625
93626         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93627         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93628
93629 2003-09-08  Karl Berry  <karl@gnu.org>
93630
93631         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93632                 config, forget about prep.
93633
93634         * config/depcomp, missing: update from automake.
93635
93636 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93637
93638         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93639         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93640
93641 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93642
93643         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93644         copy_tm_result.  Bug reported by Simon Josefsson in
93645         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93646
93647 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93648
93649         * m4/time_r.m4: New file.
93650         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93651         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93652         is. Check for timegm declaration.
93653         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93654         Do not check for gmtime_r.
93655         Replace mktime if __mktime_internal does not exist and if mktime
93656         hasn't been replaced already.
93657
93658 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93659
93660         * lib/time_r.c, lib/time_r.h: New files.
93661
93662         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93663         __localtime_r.
93664         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93665         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93666
93667         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93668         __gmtime_r.
93669         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93670         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93671         Include <time_r.h>.
93672
93673         * lib/timegm.c: Switch to glibc implementation, with the following
93674         changes:
93675         [defined HAVE_CONFIG_H]: Include <config.h>.
93676         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93677         (__mktime_internal) [!defined _LIBC]: New decl.
93678         (__gmtime_r) [!defined _LIBC]: New macro and function.
93679         (timegm): Use a prototype, since gnulib assumes C89.
93680         Do not bother declaring tmp to be const, as it's not really usefu.
93681         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93682         (timegm): Declare only if HAVE_DECL_TIMEGM.
93683
93684 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93685
93686         * MODULES.html.sh (func_all_modules): Add time_r.
93687         * modules/time_r: New file.
93688         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93689         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93690
93691 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93692
93693         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93694         Bug reported by Lute Kamstra in
93695         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93696
93697         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93698         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93699         course with correspondingly smaller numbers for tomorrow and
93700         yesterday.  From Tadayoshi Funaba.  Originally installed into
93701         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93702         coreutils merge?).
93703
93704 2003-08-31  Simon Josefsson  <jas@extundo.com>
93705
93706         * modules/timegm: New file.
93707         * MODULES.html.sh (func_all_modules): Add timegm.
93708
93709 2003-08-31  Simon Josefsson  <jas@extundo.com>
93710
93711         * m4/timegm.m4: New file.
93712
93713 2003-08-31  Simon Josefsson  <jas@extundo.com>
93714
93715         * lib/timegm.h: New file.
93716         * lib/timegm.c: New file.  Based on
93717         wget-1.8.2/src/http.c:mktime_from_utc.
93718
93719 2003-08-31  Karl Berry  <karl@gnu.org>
93720
93721         * lib/argp.h: update from libc.
93722
93723 2003-08-28  Bruno Haible  <bruno@clisp.org>
93724
93725         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93726         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93727         followed by '#define fnmatch fnmatch_posix' gives an error.
93728
93729 2003-08-28  Bruno Haible  <bruno@clisp.org>
93730
93731         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93732         warning on QNX, which defines O_BINARY to 000000.
93733
93734 2003-08-27  Jim Meyering  <jim@meyering.net>
93735
93736         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93737         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93738         would fail after 32.  Reported by Danny Levinson.  Details here:
93739         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93740
93741 2003-08-24  Bruno Haible  <bruno@clisp.org>
93742
93743         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93744         MSVC7 <stdio.h> is included later.
93745
93746 2003-08-22  Simon Josefsson  <jas@extundo.com>
93747
93748         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93749
93750 2003-08-20  Karl Berry  <karl@gnu.org>
93751
93752         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93753
93754 2003-08-20  Bruno Haible  <bruno@clisp.org>
93755
93756         * modules/progname: New file.
93757         * MODULES.html.sh (func_all_modules): Add progname.
93758
93759 2003-08-20  Bruno Haible  <bruno@clisp.org>
93760
93761         * lib/progname.h: New file, from GNU gettext.
93762         * lib/progname.c: New file, from GNU gettext.
93763         * lib/progreloc.c: New file, from GNU gettext.
93764
93765 2003-08-19  Jim Meyering  <jim@meyering.net>
93766
93767         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93768         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93769
93770 2003-08-19  Bruno Haible  <bruno@clisp.org>
93771
93772         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93773         more.
93774
93775 2003-08-19  Bruno Haible  <bruno@clisp.org>
93776
93777         * lib/xstrdup.c: Assume <string.h> exists.
93778
93779 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93780
93781         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93782         in makefile rules.
93783
93784 2003-08-18  Jim Meyering  <jim@meyering.net>
93785
93786         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93787         * m4/lib-ld.m4: Likewise.
93788
93789 2003-08-18  Jim Meyering  <jim@meyering.net>
93790
93791         * lib/setenv.h: Indent nested cpp directive.
93792         * lib/vasnprintf.c: Remove trailing blanks.
93793
93794 2003-08-17  Simon Josefsson  <jas@extundo.com>
93795
93796         * modules/xstrndup: New file.
93797         * MODULES.html.sh (func_all_modules): Add xstrndup.
93798
93799 2003-08-17  Simon Josefsson  <jas@extundo.com>
93800
93801         * modules/argp: Fix autoconf macro name. Add more dependencies.
93802
93803 2003-08-17  Simon Josefsson  <jas@extundo.com>
93804
93805         * m4/xstrndup.m4: New file.
93806
93807 2003-08-17  Simon Josefsson  <jas@extundo.com>
93808
93809         * m4/argp.m4: New file.
93810
93811 2003-08-17  Simon Josefsson  <jas@extundo.com>
93812             Bruno Haible  <bruno@clisp.org>
93813
93814         * lib/xstrndup.h: New file.
93815         * lib/xstrndup.c: New file.
93816
93817 2003-08-17  Bruno Haible  <bruno@clisp.org>
93818
93819         * modules/strndup (Files, Include): Add lib/strndup.h.
93820
93821 2003-08-17  Bruno Haible  <bruno@clisp.org>
93822
93823         * modules/euidaccess (Files): Add lib/euidaccess.h.
93824
93825 2003-08-17  Bruno Haible  <bruno@clisp.org>
93826
93827         * lib/strndup.h: New file.
93828
93829 2003-08-17  Bruno Haible  <bruno@clisp.org>
93830
93831         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93832         like AC_GNU_SOURCE.
93833         * modules/extensions (configure.ac): Comment out the invocation of
93834         gl_USE_SYSTEM_EXTENSIONS.
93835
93836 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93837
93838         Merges from coreutils, etc.
93839         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93840         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93841         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93842         fixing a typo.
93843         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93844         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93845
93846 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93847
93848         Document merge from coreutils.
93849         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93850         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93851         * modules/utime: Add m4/utimes-null.m4.
93852
93853 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93854
93855         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93856         space, undoing this 2003-08-12 change:
93857         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93858
93859 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93860
93861         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93862         strtoul.c from libc, undoing this 2003-08-12 change:
93863         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93864
93865 2003-08-16  Jim Meyering  <jim@meyering.net>
93866
93867         Merges from coreutils.
93868         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93869         prefix.  Adjust cache variables similarly.  Create 500 rather than
93870         just 300 files, to exercise bug on Darwin6.5, too.
93871         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93872         $missing_dir.
93873         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93874         AM_SYS_POSIX_TERMIOS.
93875         Reported by mkc@mathdogs.com.
93876         Also change use of $am_cv_sys_posix_termios
93877         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93878         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93879         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93880         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93881         in /proc/mounts until it finds one with matching device number.  This
93882         is unnecessary when the FILE argument *is* a mount point.  No stat call
93883         is necessary in that case.  So, disable the statvfs-testing code on
93884         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93885         as RedHat bug# 84846.
93886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93887         to 1MB, so as not to render systems with no stack size limit (e.g.,
93888         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93889         Include <unistd.h>.  On some systems,
93890         it is required for the definition of _SC_PAGESIZE.
93891
93892 2003-08-16  Jim Meyering  <jim@meyering.net>
93893
93894         Merge from coreutils.
93895         * lib/xstrtoimax.c: #else #if -> #elif.
93896         * lib/xstrtoumax.c: Likewise.
93897
93898 2003-08-16  Jim Meyering  <jim@meyering.net>
93899
93900         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93901         * m4/utimes.m4: Removed.
93902         * m4/utimes-null.m4: Renamed from utimes.m4.
93903
93904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93905         to 1MB, so as not to render systems with no stack size limit (e.g.,
93906         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93907         Include <unistd.h>.  On some systems,
93908         it is required for the definition of _SC_PAGESIZE.
93909
93910 2003-08-16  Jim Meyering  <jim@meyering.net>
93911         and Paul Eggert  <eggert@cs.ucla.edu>
93912
93913         Merges from coreutils, etc.
93914
93915         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93916         using the latest version from cvs.  This avoids problems with #line
93917         directives using a vendor (Sun) compiler.
93918         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93919         Don't set GETGROUPS_LIB here; now it's
93920         done via getgroups.m4's wrapper function.
93921         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93922         rather than just in sh-util/configure.in, so that the
93923         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93924         same.
93925         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93926         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93927         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93928         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93929         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93930         Remove code that is now done by the newly-required macros.
93931         Append $(EXEEXT) to DF_PROG.
93932         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93933         Do not invoke or require the following here,
93934         since prereq.m4 or some gnulib .m4 now does this for us:
93935         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93936         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93937         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93938         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93939         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93940         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93941         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93942         AC_FUNC_OBSTACK.
93943         Do not replace the following functions, as this is now the job
93944         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93945         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93946         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93947         atexit getpass, strdup, getpagesize.
93948         Replace 'raise'.
93949         Do not check for the following functions, as this is now the job
93950         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93951         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93952         setregid.
93953         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93954         Check for sys/sysctl.h.
93955         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93956         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93957         of checking for ssize_t ourselves.
93958
93959         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93960         Require every macro that gnulib/modules/* suggests for us.
93961         (jm_PREREQ_ADDEXT): New macro.
93962         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93963         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93964
93965         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93966         (gl_PHYSMEM): Use it.
93967         Also check for `table' function.
93968         Check for new headers and functions.
93969         Add check for sys/sysmp.h.
93970         With suggestions from Kaveh Ghazi.
93971         Ignore headers that are present but cannot be compiled.  This
93972         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93973         C 5.4.
93974
93975 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93976
93977         Document merge from coreutils.
93978         * modules/userspec: Depend on posixver.
93979         * modules/strftime: Depend on tzset.
93980
93981 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93982
93983         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93984         rather than tab, after '#' in shell-script copyright notices.
93985         Suggested by Bruno Haible.
93986
93987 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93988
93989         * config/srclist-update: Use three spaces, rather than tab, after '#'
93990         in shell-script copyright notices.  Suggested by Bruno Haible.
93991         Remove unnecessary parenthesization in regular expression.
93992
93993 2003-08-15  Jim Meyering  <jim@meyering.net>
93994
93995         Merge from coreutils.
93996         * lib/xgethostname.c: Include <stdlib.h>.
93997         (xghostname): Don't exit for anything other than memory-related
93998         failure; just return NULL.
93999         * lib/userspec.c: Include "posixver.h".
94000         (parse_user_spec): Accept `.' as a separator only
94001         in pre-POSIX-200112 mode.
94002         * lib/strtoimax.c: Use #elif rather than #else #if.
94003         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
94004         Remove function, now that we can rely on a working tzset function.
94005         [!_LIBC]: Ensure that the required autoconf test has been run.
94006         [!defined _NL_CURRENT && HAVE_STRFTIME]:
94007         Use underlying_strftime for %r.
94008         * lib/sha.c: Merge in some clean-up and optimization changes from
94009         glibc.
94010         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
94011         Ensure that it is a multiple of 64.
94012         Rearrange loop exit tests so as to avoid performing an
94013         additional fread after encountering an error or EOF.
94014         * lib/realloc.c: Update copyright date.
94015
94016 2003-08-15  Jim Meyering  <jim@meyering.net>
94017         and Paul Eggert  <eggert@twinsun.com>
94018
94019         Merge from coreutils.
94020         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
94021         member but strut utmpx does not.  Needed for AIX 4.3.3.
94022         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
94023
94024 2003-08-15  Jim Meyering  <jim@meyering.net>
94025         and Paul Eggert  <eggert@cs.ucla.edu>
94026
94027         Merges from coreutils, etc.
94028         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
94029         Require gl_FUNC_TZSET_CLOBBER.
94030         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
94031         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
94032         members.
94033
94034 2003-08-14  Paul Eggert  <eggert@twinsun.com>
94035
94036         Help the merge from coreutils.
94037         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
94038         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
94039         * m4/tzset.m4: Use it too.
94040
94041 2003-08-14  Paul Eggert  <eggert@twinsun.com>
94042
94043         * modules/tzset: New file.
94044
94045 2003-08-14  Jim Meyering  <jim@meyering.net>
94046
94047         Merges from coreutils.
94048         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
94049         variable names, rather than @FNMATCH_H@.
94050         * modules/alloca: Likewise for $(ALLOCA_H).
94051
94052         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
94053         the three copies of the literal target, `fnmatch.h'.
94054         * modules/alloca (alloca.h): Likewise.
94055
94056 2003-08-14  Jim Meyering  <jim@meyering.net>
94057
94058         Merge from coreutils.
94059         * m4/tzset.m4: New file.
94060         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
94061         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
94062         otherwise, AIX 5.1 systems would end up using the latter.
94063         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
94064         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
94065         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
94066         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
94067
94068 2003-08-14  Jim Meyering  <jim@meyering.net>
94069
94070         Merge from coreutils.
94071         * lib/obstack.h: Whitespace changes.
94072         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
94073         and xcalloc return values.
94074         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
94075         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
94076         hang on OSF/1 5.1 for DIR on both local and remote file systems.
94077         Reported by (and fix confirmed by) Nelson H. F. Beebe.
94078         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94079         error from mntctl.
94080         Use mntctl's return value to drive the entry-processing loop, since
94081         we can't rely on the value of the vmt_length member in the last
94082         entry.  On some systems doing so could result in exhausting
94083         virtual memory.  Based in part on a patch from Mike Jetzer.
94084
94085 2003-08-14  Jim Meyering  <jim@meyering.net>
94086         and Paul Eggert  <eggert@twinsun.com>
94087
94088         Merges from coreutils, plus other fixes.
94089         * lib/physmem.c: Merge in portability changes from gcc/libiberty
94090         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
94091         for credits and details.  Thanks to Kaveh Ghazi for helping
94092         to keep these files in sync.
94093         (ARRAY_SIZE): Define it.
94094         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
94095         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
94096         (memcasecmp): Don't assume size_t fits in unsigned int.
94097         Remove casts and duplicate code.
94098         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
94099         (memcpy): Remove definition.
94100         Merge in some clean-up and optimization changes from glibc.
94101         [BLOCKSIZE]: Move definition to top of file.
94102         Ensure that it is a multiple of 64.
94103         Rearrange loop exit tests so as to avoid performing an
94104         additional fread after encountering an error or EOF.
94105         * lib/md5.h (md5_uintptr): Define.
94106         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
94107         return to the initial working directory.  Preserve errno
94108         for caller.
94109         * lib/idcache.c: Include "xalloc.h".
94110         (xmalloc, xrealloc): Remove decls.
94111         (getuser): Remove casts no longer required in C89.
94112         * lib/human.c: Include stdio.h, for sprintf.
94113         * lib/group-member.c: Include "xalloc.h".
94114         (xmalloc, xrealloc): Remove decls.
94115         (get_group_info): Remove casts no longer required in C89.
94116         * lib/getusershell.c (readname): Remove casts no longer required in
94117         C89.
94118         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
94119         * lib/getline.c: Whitespace fix, from coreutils.
94120
94121 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94122
94123         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
94124         Check for isascii.
94125
94126         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94127         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94128         Undo previous (whitespace-only) change.
94129
94130 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94131
94132         * lib/exclude.c: Include <ctype.h>
94133         (IN_CTYPE_DOMAIN): New macro.
94134         (is_space): New fn.
94135         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
94136         and empty lines.
94137
94138         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94139         Undo previous (whitespace-only) change.
94140
94141 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94142
94143         * config/srclist-update: Change update back to the old behavior,
94144         leaving whitespace alone.  Use one 'sed' command rather than a
94145         pipeline.
94146         (fixlicense): Now a variable, not a function.
94147         (remove_trailing_blanks): Remove.
94148         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94149         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94150         Undo previous (whitespace-only) change.
94151
94152 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94153
94154         Merge from coreutils.
94155         * modules/euidaccess: Add lib_SOURCES, include for new
94156         file euidaccess.h
94157
94158 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94159
94160         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94161         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94162         Normalize leading white space and remove trailing white space.
94163
94164         Merge from coreutils
94165         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94166
94167         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94168         0.12.1.  These files are now being upgraded automatically by
94169         ../config/srclist-update.
94170
94171 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94172
94173         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94174         Normalize leading white space and remove trailing white space.
94175         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94176         notice, as per ../config/srclist-update.
94177
94178         Merge from coreutils.
94179         * lib/euidaccess.h: New file.
94180         * lib/euidaccess.c: Include it.
94181         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94182         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94183         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94184
94185 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94186
94187         * config/srclist-update: Add copyright notice.
94188         (remove_id_lines, remove_trailing_blanks): New constants.
94189         (fixfile): Use them to normalize spacing a bit in copied files.
94190         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94191         Normalize leading white space and remove trailing white space.
94192
94193         * config/texinfo.tex: Sync with texinfo.
94194
94195         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94196         strtoul.c from libc, to merge coreutils whitespace changes.
94197
94198         * config/srclist.txt: Get the following m4 files from gettext:
94199         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94200         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94201         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94202         wint_t.m4.
94203
94204 2003-08-12  Karl Berry  <karl@gnu.org>
94205
94206         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94207         been made.
94208
94209 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94210
94211         * modules/gnu-source, m4/gnu-source.m4:
94212         Remove; we're assuming Autoconf 2.54 or later now.
94213         Suggested by Bruno Haible.
94214         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94215
94216 2003-08-11  Bruno Haible  <bruno@clisp.org>
94217
94218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94219
94220 2003-08-11  Bruno Haible  <bruno@clisp.org>
94221
94222         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94223         (vasnprintf): Use it instead of wcslen.
94224
94225 2003-08-11  Bruno Haible  <bruno@clisp.org>
94226
94227         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94228         value to ensure that _Bool promotes to int. Use #define for _Bool when
94229         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94230
94231 2003-08-10  Karl Berry  <karl@gnu.org>
94232
94233         * lib/regex.h: update from libc (whitespace fix).
94234
94235 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94236
94237         Merge some files from coreutils.  These changes were
94238         originally made by Jim Meyering.
94239         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94240         many older Unixes require this.
94241         * lib/alloca.c (alloca): Remove cast to argument of free;
94242         no longer needed in C89.
94243         * lib/alloca_.h, regex.h: Fix white space to match
94244         what GNU indent does.
94245
94246 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94247
94248         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94249         apparently Emacs's Unicode mode got confused before my 2003-08-05
94250         checkin.
94251
94252 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94253
94254         * m4/extensions.m4: New file.
94255         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94256         Require gl_USE_SYSTEM_EXTENSIONS.
94257         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94258         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94259
94260 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94261
94262         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94263         * modules/extensions, modules/gnu-source: New files.
94264         * modules/timespec, modules/unlocked-io: Depend on extensions.
94265
94266 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94267
94268         * modules/restrict: New file.
94269         * MODULES.html.sh (func_all_modules): Add restrict.
94270         * modules/regex: Depend on restrict.
94271
94272 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94273
94274         * m4/restrict.m4: New file.
94275         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94276
94277 2003-08-07  Bruno Haible  <bruno@clisp.org>
94278
94279         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94280         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94281
94282 2003-08-07  Bruno Haible  <bruno@clisp.org>
94283
94284         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94285         makes the module 'getndelim2' compatible with the module 'getline'.
94286
94287 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94288
94289         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94290         byte with "\201" to avoid glitches when editing that source file
94291         with multi-gnome-terminal.
94292
94293 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/bumpalloc.h: Remove.
94296
94297 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94298
94299         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94300         * modules/bumpalloc: Remove.
94301
94302 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94303
94304         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94305         GNU coding style.
94306
94307         Merge from coreutils.
94308         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94309         1. From glibc.
94310         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94311         from Karl Berry, implemented by Jim Meyering.
94312         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94313         from Dmitry V. Levin.
94314         Remove anachronistic cast of xrealloc.
94315         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94316         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94317         type. Otherwise, it wouldn't compile with at least /bin/cc on
94318         ymp-cray-unicos9.0.2.X.
94319         Combine two mostly-identical uses of alloca into one.
94320         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94321
94322 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94323
94324         [From Emacs.]
94325
94326         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94327         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94328         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94329         obsolete NLIST_NAME_UNION.
94330         [__GNU__]: Undef BSD and FSCALE.
94331         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94332
94333 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94334
94335         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94336         an enum type, so that it's guaranteed to promote to int.  See:
94337         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94338
94339 2003-08-03  Karl Berry  <karl@gnu.org>
94340
94341         * config/depcomp: update from automake.
94342
94343 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94344
94345         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94346         (strerror): Don't assume that a printable int fits in 14 bytes.
94347
94348 2003-07-31  Bruno Haible  <bruno@clisp.org>
94349
94350         * modules/getpass-gnu: New file.
94351         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94352
94353 2003-07-31  Bruno Haible  <bruno@clisp.org>
94354
94355         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94356
94357 2003-07-24  Karl Berry  <karl@gnu.org>
94358
94359         * config/missing: update from automake.
94360
94361 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94362             Bruno Haible  <bruno@clisp.org>
94363
94364         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94365         * lib/getline.c (getline, getdelim): Likewise.
94366         Remove _GNU_SOURCE define; now it's defined in config.h through
94367         m4/getline.m4.
94368
94369 2003-07-23  Karl Berry  <karl@gnu.org>
94370
94371         * config/config.sub: update from prep.
94372
94373 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94374
94375         * modules/xalloc (Depends-on): Add exitfail.
94376         * modules/xmemcoll: Likewise.
94377
94378 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94379
94380         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94381         over-parenthesization in macros.
94382
94383         Sync with coreutils.
94384
94385         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94386         required by C99.
94387
94388         Use `exit_failure' for xalloc and xmemcoll instead of their own
94389         private exit-failure variables.
94390         * lib/xalloc.h (xalloc_exit_failure): Remove.
94391         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94392         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94393         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94394         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94395         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94396
94397 2003-07-20  Jim Meyering  <jim@meyering.net>
94398
94399         * modules/closeout (Depends-on): Add exitfail.
94400         Suggestion from Bruno Haible.
94401
94402 2003-07-19  Karl Berry  <karl@gnu.org>
94403
94404         * config/config.sub: update from prep.
94405
94406 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94407
94408         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94409         Remove.
94410         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94411         to test that it can stand by itself.  Include "exitfail.h".
94412         Clients should set exit_failure instead.
94413         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94414
94415 2003-07-18  Bruno Haible  <bruno@clisp.org>
94416
94417         * modules/getndelim2: New file.
94418         * modules/getline: Share files with module getndelim2.
94419         * modules/getnline: Depend on getndelim2 instead of sharing files with
94420         it. Add getnline.c to lib_SOURCES.
94421         * MODULES.html.sh (func_all_modules): Add getndelim2.
94422
94423 2003-07-18  Bruno Haible  <bruno@clisp.org>
94424
94425         * m4/getndelim2.m4: New file.
94426         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94427         invoke gl_PREREQ_GETNDELIM2.
94428         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94429         gl_PREREQ_GETNDELIM2.
94430         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94431         gl_GETNDELIM2.
94432
94433 2003-07-18  Bruno Haible  <bruno@clisp.org>
94434
94435         * lib/getndelim2.h: New file.
94436         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94437         getndelim2.h.
94438         (getndelim2): Make non-static. Change return type to ssize_t.
94439         * lib/getline.h: Change argument names.
94440         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94441         * lib/getnline.c: Include getndelim2.h.
94442
94443 2003-07-18  Andreas Schwab  <schwab@suse.de>
94444
94445         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94446
94447 2003-07-17  Karl Berry  <karl@gnu.org>
94448
94449         * config/config.sub: update from prep.
94450
94451 2003-07-17  Bruno Haible  <bruno@clisp.org>
94452
94453         * modules/getnline: New file.
94454         * modules/getline: Add lib/getndelim2.c to source file list.
94455         * MODULES.html.sh (func_all_modules): Add getnline.
94456
94457 2003-07-17  Bruno Haible  <bruno@clisp.org>
94458
94459         * m4/getnline.m4: New file.
94460
94461 2003-07-17  Bruno Haible  <bruno@clisp.org>
94462
94463         * m4/Makefile.am.in: Remove file.
94464         * m4/Makefile.am: Remove file.
94465         * m4/Makefile.in: Remove file.
94466
94467 2003-07-17  Bruno Haible  <bruno@clisp.org>
94468
94469         * lib/getnline.h: New file.
94470         * lib/getnline.c: New file.
94471         * lib/getndelim2.c: New file, extracted from getline.c.
94472         (getndelim2): Renamed from getdelim2, with added nmax argument.
94473         * lib/getline.c: Include getndelim2.c.
94474         (getdelim2): Moved out to getndelim2.c.
94475         (getline, getdelim): Update.
94476
94477 2003-07-17  Bruno Haible  <bruno@clisp.org>
94478
94479         * lib/Makefile.am: Remove file.
94480         * lib/Makefile.in: Remove file.
94481
94482 2003-07-17  Bruno Haible  <bruno@clisp.org>
94483
94484         * configure.in: Remove file.
94485         * Makefile.in: Remove file.
94486
94487 2003-07-17  Bruno Haible  <bruno@clisp.org>
94488
94489         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94490
94491 2003-07-16  Karl Berry  <karl@gnu.org>
94492
94493         * config/srclist-update: was running fixlicense twice, which caused
94494                 texinfo.tex to be nullified for some reason.  Simplify,
94495                 $gplsrc is no longer needed as far as I can see?
94496
94497 2003-07-16  Jim Meyering  <jim@meyering.net>
94498
94499         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94500
94501 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94502
94503         * config/srclist.txt: Get the following files from gettext-runtime/intl
94504         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94505         ref-del.sin.  From Bruno Haible.
94506         * config/srclist-update (fixfile): Change grep pattern again, since the
94507         previous fix didn't work (there was another trailing $).  Use
94508         '[$]' to escape the $s.
94509
94510 2003-07-15  Karl Berry  <karl@gnu.org>
94511
94512         * lib/vasnprintf.c: update from gettext.
94513
94514 2003-07-15  Karl Berry  <karl@gnu.org>
94515
94516         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94517         gets expanded when surrounded by '$'.
94518
94519 2003-07-15  Jim Meyering  <jim@meyering.net>
94520
94521         * modules/save-cwd: Don't depend on error.  From Derek Price.
94522
94523 2003-07-15  Jim Meyering  <jim@meyering.net>
94524
94525         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94526
94527 2003-07-14  Simon Josefsson  <jas@extundo.com>
94528
94529         * modules/mempcpy: New file.
94530         * MODULES.html.sh (func_all_modules): Add mempcpy.
94531
94532 2003-07-14  Simon Josefsson  <jas@extundo.com>
94533
94534         * m4/mempcpy.m4: New file.
94535
94536 2003-07-14  Simon Josefsson  <jas@extundo.com>
94537
94538         * lib/mempcpy.h: New file.
94539         * lib/mempcpy.c: New file.
94540
94541 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94542
94543         * modules/getdate, modules/posixtm: Depend on mktime.
94544
94545 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94546
94547         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94548         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94549         unicodeio.c, unicodeio.h, unlocked-io.h:
94550         Switch from LGPL to GPL.
94551
94552 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94553
94554         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94555         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94556         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94557         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94558         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94559         updated automatically by ../config/srclist-update.  This changes
94560         their license from LPGL to GPL.
94561
94562 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94563
94564         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94565         assumed to refer to the root of the most recent stable gettext version.
94566         * config/srclistvars.sh: Add defaults for eggert.
94567         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94568         Match "This program" as well as "The program".  This is needed
94569         for gettext.
94570
94571 2003-07-14  Jim Meyering  <jim@meyering.net>
94572
94573         Don't emit diagnostics.  Let callers do that.
94574         * lib/save-cwd.c: Don't include "error.h".
94575         (save_cwd): Don't call error.  Ensure that errno is valid
94576         when returning nonzero.
94577
94578         * lib/save-cwd.h (restore_cwd): Update prototype.
94579         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94580         Simplify.  Don't call error upon failure.  Let callers do that.
94581         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94582         when auditing is enabled.  But don't bother updating the #if.
94583
94584 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94585
94586         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94587         it breaks C++ compilation.
94588         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94589
94590 2003-07-10  Simon Josefsson  <jas@extundo.com>
94591
94592         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94593
94594 2003-07-10  Jim Meyering  <jim@meyering.net>
94595
94596         * m4/clock_time.m4: Remove trailing blank.
94597         * m4/intmax_t.m4: Likewise.
94598
94599 2003-07-10  Jim Meyering  <jim@meyering.net>
94600
94601         * lib/vasnprintf.c: Remove trailing blanks.
94602         Make cpp indentation consistent.
94603
94604 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94605
94606         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94607         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94608         Switch from LGPL to GPL.
94609
94610 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94611
94612         * config/srclist.txt: Sort sublists.  Add
94613         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94614         that differ from gnulib for one reason or another; we'd like this list
94615         to be smaller but for now let's document what we have.
94616
94617 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94618
94619         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94620         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94621         and sweeter "eval x=$x".
94622         * config/srclist.txt: Get lib/argp* from glibc.
94623
94624 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94625
94626         * lib/mktime.c: Fix some boundary cases and remove need for floating
94627         point.
94628
94629         Issue a compile-time diagnostic if time_t is floating point, or if
94630         two's complement arithmetic is not in effect, or if arithmetic
94631         right shift does not propagate the sign.  These assumptions were
94632         all in the original code but they weren't checked.
94633
94634         (TIME_T_MIDPOINT, verify): New macros.
94635         (__isleap): Remove; it has integer overflow problems.
94636         (leapyear): New function, without those problems.
94637         (ydhms_tm_diff): Remove; splitting into two parts.
94638         (ydhms_diff): New function, containing the arithmetic part of
94639         the old ydhms_tm_diff function.  Issue a compile-time
94640         diagnostic if we are not using C99 integer division.
94641         Avoid casts when possible.
94642         (guess_time_tm): New function, containing the checking part of
94643         the old ydhms_tm_diff function.  Return the new value, rather than
94644         the difference between it and the old.  Accept a new argument T
94645         so that *T specifies the old value.  Check for overflow in the result.
94646
94647         (__mktime_internal): Use a time_t offset, not a long int offset.
94648         This undoes the 2003-06-04 change, which is no longer needed now
94649         that we have better overflow checking.
94650         (localtime_offset): Likewise.
94651
94652         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94653         and long are 64-bit but int is only 32-bit.
94654         (ydhms_diff): Use long int to store year1 and yday1.
94655         Issue a compile-time diagnostic if long int is not wide enough.
94656
94657         (__mktime_internal): Use long int to store adjusted year and yday.
94658         Use plain C rather than preprocessor commands, if that doesn't
94659         affect efficiency.
94660         Check for overflow (and try to repair) after each probe
94661         rather than checking only at the very end.  This avoids some bugs
94662         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94663         does not equal GMT offset at maximum time).
94664         Use integer to check for overflow rather than floating point; this
94665         is more portable to non-IEEE hosts, and is a tad faster.
94666         When we detect that we are oscillating between two values,
94667         don't check whether tm_isdst has the requested value, since
94668         we already know the answer.  When tm_isdst has the wrong value,
94669         use a different heuristic to find the right one, based on the
94670         extreme values actually observed in practice in tz2003a,
94671         rather than the (overly optimistic) "previous 3 calendar quarters".
94672
94673         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94674         "T const" to accommodate glibc style.
94675         (check_result): Use less-confusing report format.  "long" -> "long int.
94676         (main): Likewise.
94677         Don't loop if the iteration overflows time_t.
94678         Allow a negative step in the iteration.
94679
94680 2003-07-06  Karl Berry  <karl@gnu.org>
94681
94682         * config/depcomp: update from automake.
94683         * config/config.sub: update from prep.
94684
94685 2003-07-03  Karl Berry  <karl@gnu.org>
94686
94687         * config/config.guess: update from prep.
94688
94689 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94690
94691         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94692         xreadlink.c now includes it unconditionally.
94693
94694 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94695
94696         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94697         having it depend on HAVE_SYS_TYPES_H.
94698
94699 2003-07-01  Bruno Haible  <bruno@clisp.org>
94700
94701         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94702         <sys/types.h> should be sufficient.
94703         Reported by Paul Eggert.
94704
94705 2003-06-26  Karl Berry  <karl@gnu.org>
94706
94707         * config/depcomp: update from automake.
94708
94709 2003-06-26  Bruno Haible  <bruno@clisp.org>
94710
94711         * modules/human: Depend on module stdbool.
94712
94713 2003-06-25  Bruno Haible  <bruno@clisp.org>
94714
94715         * modules/readlink: New file.
94716         * modules/xreadlink: Depend on it.
94717         * MODULES.html.sh (func_all_modules): Add readlink.
94718
94719 2003-06-25  Bruno Haible  <bruno@clisp.org>
94720
94721         * m4/readlink.m4: New file.
94722
94723 2003-06-25  Bruno Haible  <bruno@clisp.org>
94724
94725         * lib/readlink.c: New file.
94726
94727 2003-06-22  Karl Berry  <karl@gnu.org>
94728
94729         * config/srclist.txt: update mkinstalldirs from automake.
94730         * config/mkinstalldirs: update.
94731
94732 2003-06-22  Bruno Haible  <bruno@clisp.org>
94733
94734         Portability to mingw32.
94735         * m4/ssize_t.m4: New file, from GNU gettext.
94736         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94737         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94738
94739 2003-06-22  Bruno Haible  <bruno@clisp.org>
94740
94741         * modules/safe-read: Add m4/ssize_t.m4.
94742         * modules/xreadlink: Add m4/ssize_t.m4.
94743
94744 2003-06-20  Bruno Haible  <bruno@clisp.org>
94745
94746         Assume C89, so PARAMS isn't needed.
94747         * lib/unicodeio.h (PARAMS): Remove.
94748         * lib/unicodeio.c: Don't use PARAMS.
94749
94750 2003-06-18  Karl Berry  <karl@gnu.org>
94751
94752         * config/config.{guess,sub}: update from prep.
94753
94754 2003-06-18  Jim Meyering  <jim@meyering.net>
94755
94756         Merge changes from coreutils.
94757         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94758         Remove explicit declarations of xmalloc and realloc.
94759         Include xalloc.h.
94760         (read_utmp): Remove anachronistic cast of xmalloc.
94761
94762 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94763
94764         Assume C89, so PARAMS isn't needed.
94765         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94766         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94767         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94768         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94769         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94770         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94771         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94772         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94773         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94774         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94775         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94776         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94777         no longer needed. Anyway, config.h should always be included before any
94778         other file.
94779
94780 2003-06-11  Simon Josefsson  <jas@extundo.com>
94781
94782         * modules/sysexits: New file.
94783         * MODULES.html.sh (func_all_modules): Add sysexits.
94784
94785 2003-06-11  Simon Josefsson  <jas@extundo.com>
94786
94787         * lib/sysexit_.h: New file.
94788
94789 2003-06-11  Derek Price  <derek@ximbiot.com>
94790
94791         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94792         necessary.
94793
94794 2003-06-11  Bruno Haible  <bruno@clisp.org>
94795
94796         * m4/sysexits.m4: New file.
94797
94798 2003-06-10  Simon Josefsson  <jas@extundo.com>
94799
94800         * lib/argp.h: New file, from glibc.
94801         * lib/argp-ba.c: New file, from glibc.
94802         * lib/argp-eexst.c: New file, from glibc.
94803         * lib/argp-fmtstream.c: New file, from glibc.
94804         * lib/argp-fmtstream.h: New file, from glibc.
94805         * lib/argp-fs-xinl.c: New file, from glibc.
94806         * lib/argp-help.c: New file, from glibc.
94807         * lib/argp-namefrob.h: New file, from glibc.
94808         * lib/argp-parse.c: New file, from glibc.
94809         * lib/argp-pv.c: New file, from glibc.
94810         * lib/argp-pvh.c: New file, from glibc.
94811         * lib/argp-xinl.c: New file, from glibc.
94812
94813 2003-06-10  Simon Josefsson  <jas@extundo.com>
94814
94815         * modules/strchrnul: New file.
94816
94817 2003-06-10  Simon Josefsson  <jas@extundo.com>
94818
94819         * modules/argp: New file.
94820
94821 2003-06-10  Simon Josefsson  <jas@extundo.com>
94822
94823         * m4/strchrnul.m4: New file.
94824
94825 2003-06-10  Simon Josefsson  <jas@extundo.com>
94826
94827         * lib/strchrnul.h: New file.
94828         * lib/strchrnul.c: New file.
94829
94830 2003-06-10  Bruno Haible  <bruno@clisp.org>
94831
94832         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94833
94834 2003-06-07  Karl Berry  <karl@gnu.org>
94835
94836         * config/config.{guess,sub}: update from prep.
94837
94838 2003-06-07  Jim Meyering  <jim@meyering.net>
94839
94840         * modules/strtod: Use $(...) notation, not @...@ for
94841         AC_REPLACE'd variables.
94842         * modules/localcharset: Likewise.
94843
94844 2003-06-07  Jim Meyering  <jim@meyering.net>
94845
94846         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94847         in place of my name in the copyright comment.
94848         Remove definition and uses of __P.
94849
94850         From coreutils.
94851         * lib/stat.c: Don't declare xmalloc explicitly.
94852         Instead, include "xalloc.h".
94853         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94854         xrealloc, and xcalloc return values.
94855         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94856         Improve comment.
94857         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94858
94859 2003-06-07  Bruno Haible  <bruno@clisp.org>
94860
94861         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94862         avoid AC_CONFIG_LINKS.
94863         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94864         fnmatch.h, to avoid AC_CONFIG_LINKS.
94865         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94866
94867 2003-06-07  Bruno Haible  <bruno@clisp.org>
94868
94869         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94870         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94871         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94872         directory.
94873         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94874         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94875         directory.
94876
94877 2003-06-06  Jim Meyering  <jim@meyering.net>
94878
94879         Merge from coreutils.
94880         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94881         Consolidate declarations and initializations of *_base* locals.
94882
94883         Merge from coreutils.
94884         This avoids a core dump on systems without GNU putenv,
94885         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94886         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94887         (unsetenv): New static function, from GNU libc.
94888         (rpl_putenv): Use it.
94889
94890         * lib/modechange.c: Remove trailing blanks.
94891
94892         Merge from coreutils.
94893         * lib/fsusage.c: Remove declaration of statfs.
94894         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94895
94896         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94897
94898 2003-06-06  Jim Meyering  <jim@meyering.net>
94899
94900         * lib/stdbool_.h: Renamed from stdbool.h.in.
94901
94902 2003-06-06  Jim Meyering  <jim@meyering.net>
94903             Bruno Haible  <bruno@clisp.org>
94904
94905         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94906         Adjust Makefile.am snippet not to redirect directly to target.
94907         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94908
94909 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94910
94911         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94912         mismatch, look in future quarters as well as past.  This fixes a
94913         bug when processing fall-backwards gaps immediately after a long
94914         period of daylight-saving time.
94915
94916         * lib/mktime.c: Assume freestanding C89 or better.
94917         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94918         (__P): Remove; not used.
94919         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94920         (mktime, not_equal_tm, print_tm, check_result,
94921         main): Use prototypes.  Use const * where appropriate.
94922         (main): Fix typo in testing code that uncovered by above changes.
94923         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94924
94925 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94926
94927         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94928         locale.h, localeconv.  This merges changes from coreutils.
94929
94930         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94931         It can be removed after the next Autoconf is released.
94932         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94933         needed.
94934
94935 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94936
94937         * lib/mktime.c: Fix Debian bug 177940
94938         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94939         (localtime_offset): Now long int, not time_t, because we want it
94940         to be guaranteed to be signed.  All uses changed.
94941         (__mktime_internal): If overflow would occur when adding offset,
94942         don't add it.
94943
94944         Merge 'human' changes from coreutils.  Rewrite to support
94945         locale-specific notations like thousands separators.
94946         * lib/human.c: Simplify authorship notice.
94947         Include human.h immediately after config.h.
94948         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94949         <limits.h>: Do not include, since human.h does.
94950         (SIZE_MAX, UINTMAX_MAX): New macros.
94951         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94952         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94953         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94954         (power_letter): Renamed from suffixes.
94955         (generate_suffix_backwards): Remove.
94956         (adjust_value): Now takes int style (because of human.h changes)
94957         and long double value (for greater precision on some platforms).
94958         (group_number): New function.
94959         (human_readable): Use it.  Use integer options, not enum.
94960         Put the options before the sizes in the arg list.
94961         Support all the new options.
94962         The old human_readable function has been removed;
94963         use inttostr.h instead.
94964         (human_readable, default_block_size, humblock):
94965         Use uintmax_t, not int, for block sizes.
94966         (human_readable_inexact, block_size_types): Remove.
94967         (block_size_opts): New constant.
94968         (human_options): Renamed from human_block_size, with new signature
94969         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94970         * lib/human.h: Add copyright and authorship notice.
94971         Include <limits.h> and <stdbool.h> unconditionally.
94972         (PARAMS): Remove.  All uses removed.
94973         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94974         (enum human_inexact_style): Remove tag; now a nameless enum.
94975         (human_floor, human_ceiling, human_round_to_even): Now have
94976         values 2, 0, 1 rather than -1, 1, 0.
94977         (human_group_digits, human_suppress_point_zero, human_autoscale,
94978         human_base_1024, human_SI, human_B): New constants.
94979         (human_readable_inexact, human_block_size): Remove.
94980         (human_readable): Size args are now uintmax_t, not int.
94981         (human_options): New decl.
94982
94983         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94984         unnecessary now that we assume C89 or better.  This change
94985         imported from coreutils.
94986
94987         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94988         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94989         in the 2003-05-30 sync from glibc.
94990
94991         .h files should stand alone, but we shouldn't include <sys/types.h>
94992         if we can get away with just <stddef.h>.
94993
94994         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94995         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94996         rather than <sys/types.h>, as we merely need size_t.
94997         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94998         to get size_t.
94999         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
95000         Include <stdio.h>, to get FILE.
95001         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
95002         memcasecmp.h has included <stddef.h> and all we need is size_t.
95003         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
95004         our interface, instead of including <sys/types.h>
95005
95006 2003-06-04  Paul Eggert  <eggert@twinsun.com>
95007
95008         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
95009         now, as glibc mktime is buggy on non-glibc systems.
95010
95011 2003-06-03  Karl Berry  <karl@gnu.org>
95012
95013         * config/config.sub: update from prep.
95014
95015 2003-06-02  Paul Eggert  <eggert@twinsun.com>
95016
95017         [from coreutils]
95018         Fix some minor time-related bugs with POSIX time arguments.
95019         Some valid time stamps were being rejected (notably -1, and
95020         time stamps before 1900 on 64-bit hosts).  And some invalid
95021         time stamps were being accepted, e.g. September 31.
95022
95023         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
95024         that we can return (time_t) -1 successfully.
95025         * lib/posixtm.c: Likewise.
95026         [HAVE_STDBOOL_H]: Include <stdbool.h>.
95027         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
95028         (t): Remove static var.
95029         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
95030         of static var.  All uses changed.
95031         (year): Do not reject years before 1900; they can occur with
95032         64-bit time_t.
95033         (posix_time_parse): Do not check for out-of-range components;
95034         that is now the caller's responsibility, since our checks were
95035         only approximations.
95036         (posixtime): Use mktime to check for out-of-range components,
95037         since it knows them exactly.
95038         If mktime returns (time_t) -1, check whether an error actually occurred
95039         by invoking localtime on -1.
95040         (main) [TEST_POSIXTIME]: Check for input data errors, and report
95041         posixtime failures better.
95042         Improve the test data (in comments only).
95043
95044 2003-06-02  Karl Berry  <karl@gnu.org>
95045
95046         * config/mkinstalldirs (version): new variable.
95047         (--version): new option.
95048         (usage): improve message.
95049
95050 2003-05-30  Karl Berry  <karl@gnu.org>
95051
95052         * lib/mktime.c: update from libc.
95053
95054 2003-05-30  Bruno Haible  <bruno@clisp.org>
95055
95056         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
95057         * config/config.rpath: Upgrade to gettext-0.12.1.
95058
95059 2003-05-30  Bruno Haible  <bruno@clisp.org>
95060
95061         * m4/gettext.m4: Upgrade to gettext-0.12.1.
95062         * m4/nls.m4: New file, from gettext-0.12.1.
95063         * m4/po.m4: New file, from gettext-0.12.1.
95064         * m4/progtest.m4: Upgrade to gettext-0.12.1.
95065
95066 2003-05-30  Bruno Haible  <bruno@clisp.org>
95067
95068         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
95069         * lib/localcharset.h: Likewise.
95070         * lib/localcharset.c: Likewise.
95071
95072 2003-05-29  Karl Berry  <karl@gnu.org>
95073
95074         * config/config.rpath: update from gettext.
95075
95076 2003-05-28  Paul Eggert  <eggert@twinsun.com>
95077
95078         Assume the headers required for C89 freestanding compilers.
95079         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
95080         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
95081         * m4/human.m4 (gl_HUMAN): Likewise.
95082         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
95083         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
95084         * m4/userspec.m4 (gl_USERSPEC): Likewise.
95085         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
95086         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95087         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
95088
95089 2003-05-28  Paul Eggert  <eggert@twinsun.com>
95090
95091         Assume the headers required for C89 freestanding compilers.
95092         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
95093         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
95094         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
95095         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
95096         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
95097         define, since <limits.h> is guaranteed to do that.
95098         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
95099         * lib/exclude.c: Include <stdbool.h> unconditionally.
95100         * lib/tempname.c: Include <stddef.h> unconditionally.
95101         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
95102         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
95103         <stddef.h> does that.
95104         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
95105         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
95106         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
95107         needed.
95108         * lib/xstrtol.c: Likewise.
95109         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
95110         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
95111
95112         * lib/addext.c (addext): Use assignment rather than cast, to avoid
95113         warnings on some platforms.
95114
95115         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
95116         arbitrarily.
95117
95118 2003-05-26  Jim Meyering  <jim@meyering.net>
95119
95120         Merge in a change from coreutils:
95121         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
95122         that is guaranteed to be `no'.  Use `no_such_member' to indicate
95123         that condition, rather than `-1' which is slightly misleading.
95124         Change the name of the cache variable to have the gl_ prefix.
95125         Prompted by a patch from Richard Dawe for DJGPP.
95126
95127 2003-05-24  Karl Berry  <karl@gnu.org>
95128
95129         * config/config.guess: update from prep.
95130
95131 2003-05-22  Karl Berry  <karl@gnu.org>
95132
95133         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
95134
95135 2003-05-20  Karl Berry  <karl@gnu.org>
95136
95137         * config/config.guess: update from prep.
95138
95139 2003-05-18  Karl Berry  <karl@gnu.org>
95140
95141         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
95142         might actually be set by the user.
95143
95144         * config/depcomp, install-sh, mdate-sh: update from automake.
95145
95146 2003-05-17  Bruno Haible  <bruno@clisp.org>
95147
95148         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95149         invalid expansion for AC_EGREP_CPP.
95150         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95151         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95152         Suggested by Akim Demaille <akim@epita.fr> in
95153         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95154
95155 2003-05-12  Jim Meyering  <jim@meyering.net>
95156
95157         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95158         the space-padded-by-default conversion specifiers, %e, %k, %l.
95159
95160 2003-05-12  Bruno Haible  <bruno@clisp.org>
95161
95162         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95163         the string is longer than 4 KB.
95164
95165 2003-05-11  Karl Berry  <karl@gnu.org>
95166
95167         * config/config.{guess,sub}: update from prep.
95168
95169 2003-05-09  Bruno Haible  <bruno@clisp.org>
95170
95171         * modules/error: Add m4/strerror_r.m4 to file list.
95172
95173 2003-05-03  Bruno Haible  <bruno@clisp.org>
95174
95175         Upgrade to Unicode-4.0.
95176         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95177         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95178         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95179         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95180         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95181         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95182         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95183         Change width of U+E0100..U+E01EF from 1 to 0.
95184
95185 2003-04-25  Jim Meyering  <jim@meyering.net>
95186
95187         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95188         of type size_t, not int.
95189
95190 2003-04-25  Bruno Haible  <bruno@clisp.org>
95191
95192         * lib/copy-file.c: Include <stddef.h>, for size_t.
95193
95194 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95195
95196         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95197         code which expansion is under static control.  Patch imported from
95198         Akim Demaille's patch to Bison; see
95199         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95200
95201 2003-04-14  Bruno Haible  <bruno@clisp.org>
95202
95203         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95204
95205 2003-04-11  Jim Meyering  <jim@meyering.net>
95206
95207         Merge changes from Coreutils.
95208
95209         2003-03-22  Jim Meyering  <jim@meyering.net>
95210
95211         * lib/strftime.c (widen): Cast alloca return value to proper type.
95212
95213         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95214
95215         From GNU libc.
95216         * lib/strftime.c (my_strftime): Handle very large width
95217         specifications for numeric values correctly.  Improve checks for
95218         overflow.
95219
95220         2003-01-19  Jim Meyering  <jim@meyering.net>
95221
95222         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95223         definitions.
95224         (nl_get_alt_digit) [! defined my_strftime]: Define.
95225         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95226         _nl_get_alt_digit and _nl_get_walt_digit.
95227
95228         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95229         libc. These changes have no effect outside of _LIBC.
95230
95231 2003-04-10  Bruno Haible  <bruno@clisp.org>
95232
95233         * modules/findprog: New file.
95234         * MODULES.html.sh (func_all_modules): Add it.
95235
95236 2003-04-10  Bruno Haible  <bruno@clisp.org>
95237
95238         * m4/findprog.m4: New file.
95239         * m4/eaccess.m4: New file.
95240
95241 2003-04-10  Bruno Haible  <bruno@clisp.org>
95242
95243         * lib/findprog.h: New file, from GNU gettext.
95244         * lib/findprog.c: New file, from GNU gettext.
95245
95246 2003-04-05  Jim Meyering  <jim@meyering.net>
95247
95248         Merge changes from Coreutils.
95249
95250         * lib/exclude.h (PARAMS): Remove definition and uses.
95251         * lib/exclude.c: Remove uses of `PARAMS'.
95252
95253         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95254         Add test-cases for DOS filenames. Declare program_name.
95255         (main): Set up program_name.  Patch by Rich Dawe.
95256
95257         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95258         error from mntctl.
95259         Use mntctl's return value to drive the entry-processing loop, since
95260         we can't rely on the value of the vmt_length member in the last
95261         entry.  On some systems doing so could result in exhausting
95262         virtual memory.  Based in part on a patch from Mike Jetzer.
95263
95264 2003-04-04  Bruno Haible  <bruno@clisp.org>
95265
95266         * modules/linebreak: New file.
95267         * MODULES.html.sh (func_all_modules): Add it.
95268
95269 2003-04-04  Bruno Haible  <bruno@clisp.org>
95270
95271         * m4/linebreak.m4: New file.
95272
95273 2003-04-04  Bruno Haible  <bruno@clisp.org>
95274
95275         * lib/linebreak.h: New file, from GNU gettext.
95276         * lib/linebreak.c: New file, from GNU gettext with slight
95277         modifications.
95278         * lib/lbrkprop.h: New file, from GNU gettext.
95279
95280 2003-04-03  Bruno Haible  <bruno@clisp.org>
95281
95282         * modules/utf8-ucs4: New file.
95283         * modules/utf16-ucs4: New file.
95284         * modules/ucs4-utf8: New file.
95285         * modules/ucs4-utf16: New file.
95286         * MODULES.html.sh (func_all_modules): Add them.
95287
95288 2003-04-03  Bruno Haible  <bruno@clisp.org>
95289
95290         * m4/utf-ucs4.m4: New file.
95291         * m4/ucs4-utf.m4: New file.
95292
95293 2003-04-03  Bruno Haible  <bruno@clisp.org>
95294
95295         * lib/utf8-ucs4.h: New file, from GNU gettext.
95296         * lib/utf16-ucs4.h: New file, from GNU gettext.
95297         * lib/ucs4-utf8.h: New file, from GNU gettext.
95298         * lib/ucs4-utf16.h: New file, from GNU gettext.
95299
95300 2003-04-02  Bruno Haible  <bruno@clisp.org>
95301
95302         * modules/binary-io: New file.
95303         * MODULES.html.sh (func_all_modules): Add it.
95304
95305 2003-04-02  Bruno Haible  <bruno@clisp.org>
95306
95307         * lib/binary-io.h: New file, from GNU gettext.
95308
95309 2003-04-01  Bruno Haible  <bruno@clisp.org>
95310
95311         * modules/pathname: New file.
95312         * MODULES.html.sh (func_all_modules): Add it.
95313
95314 2003-04-01  Bruno Haible  <bruno@clisp.org>
95315
95316         * lib/pathname.h: New file, from GNU gettext.
95317         * lib/concatpath.c: New file, from GNU gettext.
95318
95319 2003-03-30  Bruno Haible  <bruno@clisp.org>
95320
95321         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95322
95323 2003-03-30  Bruno Haible  <bruno@clisp.org>
95324
95325         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95326         function chown() doesn't exist.
95327
95328 2003-03-28  Bruno Haible  <bruno@clisp.org>
95329
95330         * modules/copy-file: New file.
95331         * MODULES.html.sh (func_all_modules): Add it.
95332
95333 2003-03-28  Bruno Haible  <bruno@clisp.org>
95334
95335         * m4/copy-file.m4: New file.
95336
95337 2003-03-28  Bruno Haible  <bruno@clisp.org>
95338
95339         * lib/copy-file.h: New file, from GNU gettext.
95340         * lib/copy-file.c: New file, from GNU gettext.
95341
95342 2003-03-18  Jim Meyering  <jim@meyering.net>
95343
95344         * lib/quote.c (quote_n): Fix typo in comment.
95345
95346 2003-03-18  Bruno Haible  <bruno@clisp.org>
95347
95348         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95349         checking.
95350         * m4/onceonly_2_57.m4: Likewise.
95351
95352 2003-03-17  Bruno Haible  <bruno@clisp.org>
95353
95354         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95355         (m4_quote): Remove macro.
95356         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95357
95358 2003-03-14  Jim Meyering  <jim@meyering.net>
95359
95360         Merge changes from Coreutils.
95361         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95362         to be const, in order to avoid warnings.
95363         (obstack_room): Likewise.
95364         (obstack_empty_p): Likewise.
95365
95366 2003-03-14  Bruno Haible  <bruno@clisp.org>
95367
95368         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95369         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95370
95371 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95372
95373         Merge changes from Bison.
95374         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95375         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95376         when compiling Bison 1.875's `bitset bset = obstack_alloc
95377         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95378         * lib/hash.c: Include <stdbool.h> unconditionally.
95379
95380 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95381
95382         * m4/onceonly.m4 (m4_quote): New macro.
95383         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95384         Quote AC_FOREACH variable-expansions properly.
95385
95386 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95387
95388         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95389
95390 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95391
95392         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95393         Reported by Bruce Becker; see:
95394         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95395
95396 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95397             Bruno Haible  <bruno@clisp.org>
95398
95399         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95400         Reported by John Hughes, see
95401         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95402
95403 2003-02-20  Bruno Haible  <bruno@clisp.org>
95404
95405         * MODULES.html.sh (func_all_modules): Add poll.
95406
95407 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95408
95409         * modules/poll: New file.
95410
95411 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95412
95413         * lib/poll_.h: New file.
95414         * lib/poll.c: New file.
95415
95416 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95417
95418         * m4/poll.m4: New file.
95419
95420 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95421
95422         * modules/mathl: New file.
95423
95424 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95425
95426         * lib/mathl.h: New file.
95427         * lib/acosl.c: New file.
95428         * lib/asinl.c: New file.
95429         * lib/atanl.c: New file.
95430         * lib/ceill.c: New file.
95431         * lib/cosl.c: New file.
95432         * lib/expl.c: New file.
95433         * lib/floorl.c: New file.
95434         * lib/frexpl.c: New file.
95435         * lib/ldexpl.c: New file.
95436         * lib/logl.c: New file.
95437         * lib/sincosl.c: New file.
95438         * lib/sinl.c: New file.
95439         * lib/sqrtl.c: New file.
95440         * lib/tanl.c: New file.
95441         * lib/trigl.c: New file.
95442         * lib/trigl.h: New file.
95443
95444 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95445
95446         * m4/mathl.m4: New file.
95447
95448 2003-02-18  Bruno Haible  <bruno@clisp.org>
95449
95450         * MODULES.html.sh (func_all_modules): Add mathl.
95451
95452 2003-02-17  Bruno Haible  <bruno@clisp.org>
95453
95454         * modules/mkdtemp: New module.
95455         * MODULES.html.sh (func_all_modules): Add it.
95456
95457 2003-02-17  Bruno Haible  <bruno@clisp.org>
95458
95459         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95460
95461 2003-02-17  Bruno Haible  <bruno@clisp.org>
95462
95463         * lib/mkdtemp.h: New file, from GNU gettext.
95464         * lib/mkdtemp.c: New file, from GNU gettext.
95465
95466 2003-02-02  Jim Meyering  <jim@meyering.net>
95467
95468         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95469         e.g. glibc-2.2.93.
95470
95471 2003-01-31  Bruno Haible  <bruno@clisp.org>
95472
95473         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95474         'rpl_rename'.
95475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95476         'rpl_strnlen'.
95477         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95478         'rpl_strtod'.
95479         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95480         'rpl_utime'.
95481
95482 2003-01-31  Bruno Haible  <bruno@clisp.org>
95483
95484         * lib/rename.c: #undef rename before defining rpl_rename.
95485         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95486
95487 2003-01-30  Bruno Haible  <bruno@clisp.org>
95488
95489         * modules/vasnprintf, modules/vasprintf: New modules.
95490         * MODULES.html.sh (func_all_modules): Add them.
95491
95492 2003-01-30  Bruno Haible  <bruno@clisp.org>
95493
95494         * m4/signed.m4: New file, from GNU gettext.
95495         * m4/longdouble.m4: New file, from GNU gettext.
95496         * m4/wchar_t.m4: New file, from GNU gettext.
95497         * m4/wint_t.m4: New file, from GNU gettext.
95498         * m4/vasnprintf.m4: New file.
95499         * m4/vasprintf.m4: New file.
95500
95501 2003-01-30  Bruno Haible  <bruno@clisp.org>
95502
95503         * lib/printf-args.h: New file, from GNU gettext.
95504         * lib/printf-args.c: New file, from GNU gettext.
95505         * lib/printf-parse.h: New file, from GNU gettext.
95506         * lib/printf-parse.c: New file, from GNU gettext.
95507         * lib/vasnprintf.h: New file, from GNU gettext.
95508         * lib/vasnprintf.c: New file, from GNU gettext.
95509         * lib/asnprintf.c: New file, from GNU gettext.
95510         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95511         * lib/vasprintf.c: New file, from GNU gettext.
95512         * lib/asprintf.c: New file, from GNU gettext.
95513
95514 2003-01-29  Bruno Haible  <bruno@clisp.org>
95515
95516         * modules/stpncpy: New module.
95517         * MODULES.html.sh (func_all_modules): Add it.
95518
95519 2003-01-29  Bruno Haible  <bruno@clisp.org>
95520
95521         * m4/stpncpy.m4: New file.
95522
95523 2003-01-29  Bruno Haible  <bruno@clisp.org>
95524
95525         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95526         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95527
95528 2003-01-28  Bruno Haible  <bruno@clisp.org>
95529
95530         * modules/c-ctype: New module.
95531         * MODULES.html.sh (func_all_modules): Add it.
95532
95533 2003-01-28  Bruno Haible  <bruno@clisp.org>
95534
95535         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95536         Paul Eggert.
95537         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95538         Paul Eggert.
95539
95540 2003-01-27  Bruno Haible  <bruno@clisp.org>
95541
95542         * modules/xsetenv: New module.
95543         * MODULES.html.sh (func_all_modules): Add it.
95544
95545 2003-01-27  Bruno Haible  <bruno@clisp.org>
95546
95547         * lib/xsetenv.h: New file, from GNU gettext.
95548         * lib/xsetenv.c: New file, from GNU gettext.
95549
95550 2003-01-23  Jim Meyering  <jim@meyering.net>
95551
95552         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95553         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95554
95555 2003-01-23  Bruno Haible  <bruno@clisp.org>
95556
95557         * modules/minmax: New module.
95558         * MODULES.html.sh (func_all_modules): Add it.
95559
95560 2003-01-23  Bruno Haible  <bruno@clisp.org>
95561
95562         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95563         Eggert.
95564
95565 2003-01-22  Bruno Haible  <bruno@clisp.org>
95566
95567         * modules/exit: New module.
95568         * MODULES.html.sh (func_all_modules): Add it.
95569
95570 2003-01-22  Bruno Haible  <bruno@clisp.org>
95571
95572         * lib/exit.h: New file, from GNU gettext.
95573
95574 2003-01-19  Bruno Haible  <bruno@clisp.org>
95575
95576         * gnulib-tool: Recognize option --extract-maintainer.
95577         (func_get_maintainer): New function.
95578         * modules/*: Add Maintainer entry.
95579
95580 2003-01-16  Jim Meyering  <jim@meyering.net>
95581
95582         * m4/regex.m4: The `regex' struct is both input and output.
95583         Initialize it before each use.  Patch by Tim Waugh.
95584
95585 2003-01-16  Bruno Haible  <bruno@clisp.org>
95586
95587         * MODULES.html.sh: Add a table of contents. Add the module name as
95588         leftmost column. Add hyperlinks.
95589
95590 2003-01-15  Bruno Haible  <bruno@clisp.org>
95591
95592         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95593
95594 2003-01-15  Bruno Haible  <bruno@clisp.org>
95595
95596         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95597         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95598         suffix.
95599
95600 2003-01-15  Bruno Haible  <bruno@clisp.org>
95601
95602         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95603
95604 2003-01-15  Bruno Haible  <bruno@clisp.org>
95605
95606         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95607         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95608
95609 2003-01-14  Jim Meyering  <jim@meyering.net>
95610
95611         * lib/same.c (same_name): Tweak a comment.
95612
95613 2003-01-14  Bruno Haible  <bruno@clisp.org>
95614
95615         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95616         when a string comparison is sufficient.
95617
95618 2003-01-14  Bruno Haible  <bruno@clisp.org>
95619
95620         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95621         'unsigned int'.
95622
95623 2003-01-14  Bruno Haible  <bruno@clisp.org>
95624
95625         * lib/hash-pjw.c: Add comment about low quality of this function.
95626
95627 2003-01-13  Bruno Haible  <bruno@clisp.org>
95628
95629         * modules/stpcpy: Distribute lib/stpcpy.h.
95630         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95631
95632 2003-01-13  Bruno Haible  <bruno@clisp.org>
95633
95634         * modules/*: Add a description.
95635         * modules/strpbrk: Fix Makefile.am snippet.
95636         * modules/strtoimax: Fix dependencies.
95637         * modules/strtoumax: Likewise.
95638
95639 2003-01-13  Bruno Haible  <bruno@clisp.org>
95640
95641         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95642         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95643         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95644
95645 2003-01-13  Bruno Haible  <bruno@clisp.org>
95646
95647         * gnulib-tool (func_create_testdir): Store config/* files in the main
95648         directory.
95649         * config.rpath: Move to ...
95650         * config/config.rpath: ... here.
95651         * modules/gettext: Contains config/config.rpath, not config.rpath.
95652         * modules/iconv: Likewise.
95653
95654 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95655
95656         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95657         to avoid collisions with libcurses and libreadline.
95658
95659         * m4/getstr.m4: Remove.
95660         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95661
95662 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95663
95664         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95665         to avoid collisions with libcurses and libreadline.
95666
95667         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95668         * lib/getstr.h, getstr.c: Remove.
95669         * lib/getline.c: Include "getline.h", to check interface.
95670         Move body of old getstr.c here: this defines MIN_CHUNK and
95671         declares getdelim2, which is renamed from getstr.
95672         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95673
95674         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95675         All uses changed.
95676         * lib/linebuffer.h: Likewise.
95677         (readline): Remove backward-compatibility macro.
95678
95679 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95680
95681         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95682         to avoid collisions with libcurses and libreadline.
95683         * getstr: Remove.
95684         * MODULES.html.sh: Remove getstr.
95685         * modules/getline: Depend on unlocked-io, not getstr.
95686
95687 2003-01-12  Jim Meyering  <jim@meyering.net>
95688
95689         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95690
95691 2003-01-10  Bruno Haible  <bruno@clisp.org>
95692
95693         * modules/alloca: Change Makefile.am requirements. Simplify Include
95694         requirements. Add lib/alloca_.h to file list.
95695
95696 2003-01-10  Bruno Haible  <bruno@clisp.org>
95697
95698         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95699
95700 2003-01-10  Bruno Haible  <bruno@clisp.org>
95701
95702         * lib/alloca_.h: New file.
95703         * lib/getdate.y: Unconditionally include alloca.h.
95704         * lib/makepath.c: Likewise.
95705         * lib/setenv.c: Likewise.
95706         * lib/userspec.c: Likewise.
95707
95708 2003-01-09  Karl Berry  <karl@gnu.org>
95709
95710         * MODULES.html.sh: include `dirname $0` in PATH, to find
95711         gnulib-tool.
95712
95713 2003-01-09  Bruno Haible  <bruno@clisp.org>
95714
95715         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95716         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95717
95718 2003-01-09  Bruno Haible  <bruno@clisp.org>
95719
95720         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95721
95722 2003-01-09  Bruno Haible  <bruno@clisp.org>
95723
95724         * lib/stdbool.h.in: New file.
95725
95726 2003-01-09  Bruno Haible  <bruno@clisp.org>
95727
95728         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95729         * MODULES.html.sh: Likewise.
95730
95731 2003-01-08  Jim Meyering  <jim@meyering.net>
95732
95733         * lib/full-write.c: Undefine and define-away `const' after inclusion
95734         of errno.h, not before.  Suggestion from Bruno Haible.
95735
95736 2003-01-08  Bruno Haible  <bruno@clisp.org>
95737
95738         * modules/full-read: Depend on full-write.
95739
95740 2003-01-08  Bruno Haible  <bruno@clisp.org>
95741
95742         * lib/safe-read.c: Include specification header first, to ensure its
95743         selfcontainedness.
95744         * lib/full-write.c: Likewise.
95745
95746 2003-01-07  Jim Meyering  <jim@meyering.net>
95747
95748         * lib/full-write.c: Rework so that it may serve to define full_read,
95749         too.
95750         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95751
95752 2003-01-07  Bruno Haible  <bruno@clisp.org>
95753
95754         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95755         <inttypes.h>.
95756         * lib/xstrtol.h: Likewise.
95757         * lib/xstrtoimax.c: Likewise.
95758         * lib/xstrtoumax.c: Likewise.
95759         * lib/human.h: Likewise.
95760
95761         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95762         on systems that have <inttypes.h> but not <stdint.h>.
95763
95764 2003-01-07  Bruno Haible  <bruno@clisp.org>
95765
95766         * MODULES.html.sh: Add copyright notice.
95767         (missed_files): Omit CVS directory entries.
95768         (func_module): Make it work with sed-3.02.
95769         * MODULES.txt: Remove file.
95770
95771 2003-01-06  Jim Meyering  <jim@meyering.net>
95772
95773         * lib/version-etc.c: Update year in translatable copyright string.
95774
95775 2003-01-03  Karl Berry  <karl@gnu.org>
95776
95777         * config/config.{guess,sub}: update from prep.
95778
95779 2003-01-02  Karl Berry  <karl@gnu.org>
95780
95781         * doc/COPYING.DOC: belatedly updated to 1.2.
95782
95783 2003-01-01  Karl Berry  <karl@gnu.org>
95784
95785         * gnulib-tool (func_verify_module): report module name $module in
95786         error message, not $1.
95787         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95788         be created, only if it doesn't exist.
95789         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95790
95791 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95792
95793         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95794
95795 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95796
95797         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95798         memcmp if strcoll doesn't work.
95799
95800 2002-12-31  Bruno Haible  <bruno@clisp.org>
95801
95802         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95803         nonempty.
95804
95805 2002-12-31  Bruno Haible  <bruno@clisp.org>
95806
95807         * lib/memcoll.c (STRCOLL): New macro.
95808         (memcoll): Use it.
95809
95810 2002-12-31  Bruno Haible  <bruno@clisp.org>
95811
95812         * lib/localcharset.h: New file.
95813         * lib/localcharset.c: Include it.
95814         * lib/unicodeio.c: Likewise.
95815
95816 2002-12-31  Bruno Haible  <bruno@clisp.org>
95817
95818         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95819         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95820
95821 2002-12-31  Bruno Haible  <bruno@clisp.org>
95822
95823         * lib/getline.h: Include <stddef.h>, for size_t.
95824
95825         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95826         * lib/unicodeio.c: Don't include <stddef.h>.
95827
95828 2002-12-31  Bruno Haible  <bruno@clisp.org>
95829
95830         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95831         HAVE_TM_ZONE.
95832
95833 2002-12-24  Karl Berry  <karl@gnu.org>
95834
95835         * config/config.guess: update from prep.
95836
95837 2002-12-24  Bruno Haible  <bruno@clisp.org>
95838
95839         General infrasructure.
95840         * m4/README: Rewritten.
95841         * m4/onceonly.m4: New file.
95842         * m4/onceonly_2_57.m4: New file.
95843
95844         Module atexit.
95845         * m4/atexit.m4: New file.
95846
95847         Module strtod.
95848         * m4/strtod.m4: New file.
95849
95850         Module strtol.
95851         * m4/strtol.m4: New file.
95852
95853         Module strtoul.
95854         * m4/strtoul.m4: New file.
95855
95856         Module memchr.
95857         * m4/memchr.m4: New file.
95858
95859         Module memcmp.
95860         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95861         (jm_FUNC_MEMCMP): Invoke it.
95862
95863         Module memcpy.
95864         * m4/memcpy.m4: New file.
95865
95866         Module memmove.
95867         * m4/memmove.m4: New file.
95868
95869         Module memset.
95870         * m4/memset.m4: New file.
95871
95872         Module strcspn.
95873         * m4/strcspn.m4: New file.
95874
95875         Module strpbrk.
95876         * m4/strpbrk.m4: New file.
95877
95878         Module strstr.
95879         * m4/strstr.m4: New file.
95880
95881         Module strerror.
95882         * m4/strerror.m4: New file.
95883
95884         Module mktime.
95885         * m4/mktime.m4: Renamed from jm-mktime.m4.
95886         (gl_PREREQ_MKTIME): New macro.
95887         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95888
95889         Module malloc.
95890         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95891         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95892         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95893
95894         Module realloc.
95895         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95896         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95897         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95898
95899         Module strftime.
95900         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95901         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95902         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95903         gl_TM_GMTOFF.
95904         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95905
95906         Module xalloc.
95907         * m4/xalloc.m4: New file.
95908
95909         Module alloca.
95910         * m4/alloca.m4: New file.
95911
95912         Module putenv.
95913         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95914         (jm_FUNC_PUTENV): Invoke it.
95915
95916         Module setenv.
95917         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95918         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95919         when invoked twice.
95920         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95921         gt_FUNC_SETENV.
95922
95923         Module memrchr.
95924         * m4/memrchr.m4: New file.
95925
95926         Module stpcpy.
95927         * m4/stpcpy.m4: New file.
95928
95929         Module strcase.
95930         * m4/strcase.m4: New file.
95931
95932         Module strdup.
95933         * m4/strdup.m4: New file.
95934
95935         Module strnlen.
95936         * m4/strnlen.m4: New file.
95937
95938         Module strndup.
95939         * m4/strndup.m4: New file.
95940
95941         Module xstrtod.
95942         * m4/xstrtod.m4: New file.
95943
95944         Module xstrtol.
95945         * m4/xstrtol.m4: New file.
95946
95947         Module getdate.
95948         * m4/getdate.m4: New file.
95949
95950         Module unlocked-io.
95951         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95952         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95953         * m4/jm-glibc-io.m4n: Remove file.
95954
95955         Module long-options.
95956         * m4/long-options.m4: New file.
95957
95958         Module md5.
95959         * m4/md5.m4: New file.
95960
95961         Module sha.
95962         * m4/sha.m4: New file.
95963
95964         Module getstr.
95965         * m4/getstr.m4: New file.
95966
95967         Module getline.
95968         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95969         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95970         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95971         simply getline. Infoke gl_PREREQ_GETLINE.
95972
95973         Module obstack.
95974         * m4/obstack.m4: New file.
95975
95976         Module hash.
95977         * m4/hash.m4: New file.
95978
95979         Module readtokens.
95980         * m4/readtokens.m4: New file.
95981
95982         Module strverscmp.
95983         * m4/strverscmp.m4: New file.
95984
95985         Module stdbool.
95986         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95987         OSF/1.
95988
95989         Module strtoll.
95990         * m4/strtoll.m4: New file.
95991
95992         Module strtoull.
95993         * m4/strtoull.m4: New file.
95994
95995         Module strtoimax.
95996         * m4/strtoimax.m4: New file.
95997
95998         Module strtoumax.
95999         * m4/strtoumax.m4: New file.
96000
96001         Module xstrtoimax.
96002         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
96003         jm_AC_PREREQ_XSTRTOIMAX.
96004         Moved the strtol prerequisites to strtol.m4.
96005         Moved the strtoll prerequisites to strtoll.m4.
96006         Moved the strtoimax prerequisites to strtoimax.m4.
96007
96008         Module xstrtoumax.
96009         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
96010         jm_AC_PREREQ_XSTRTOUMAX.
96011         Moved the strtoul prerequisites to strtoul.m4.
96012         Moved the strtoull prerequisites to strtoull.m4.
96013         Moved the strtoumax prerequisites to strtoumax.m4.
96014
96015         Module chown.
96016         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
96017         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
96018
96019         Module dup2.
96020         * m4/dup2.m4: New file.
96021
96022         Module ftruncate.
96023         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
96024         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
96025
96026         Module getgroups.
96027         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
96028         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
96029
96030         Module gettimeofday.
96031         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
96032         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
96033         gl_PREREQ_GETTIMEOFDAY.
96034
96035         Module mkdir.
96036         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
96037         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
96038
96039         Module mkstemp.
96040         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
96041         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
96042         jm_AC_TYPE_UINTMAX_T.
96043         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
96044
96045         Module stat.
96046         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
96047         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
96048
96049         Module lstat.
96050         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
96051         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
96052
96053         Module timespec.
96054         * m4/timespec.m4 (gl_TIMESPEC): New macro.
96055         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
96056         * m4/st_mtim.m4: Indentation.
96057
96058         Module nanosleep.
96059         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
96060         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
96061         gl_PREREQ_NANOSLEEP.
96062
96063         Module regex.
96064         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
96065         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
96066         (gl_REGEX): New macro.
96067
96068         Module rename.
96069         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
96070         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
96071
96072         Module rmdir.
96073         * m4/rmdir.m4: New file.
96074
96075         Module utime.
96076         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
96077         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
96078         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
96079
96080         Module dirname.
96081         * m4/dirname.m4: New file.
96082
96083         Module getopt.
96084         * m4/getopt.m4: New file.
96085
96086         Module unistd-safer.
96087         * m4/unistd-safer.m4: New file.
96088
96089         Module fnmatch.
96090         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
96091         declaration.
96092         (gl_PREREQ_FNMATCH_EXTRA): New macro.
96093         (gl_FUNC_FNMATCH_POSIX): New macro.
96094         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
96095         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
96096         simply fnmatch.
96097
96098         Module exclude.
96099         * m4/exclude.m4: New file.
96100
96101         Module human.
96102         * m4/human.m4: New file.
96103
96104         Module acl.
96105         * m4/acl.m4: Nop.
96106
96107         Module backupfile.
96108         * m4/backupfile.m4: New file.
96109         * m4/d-ino.m4: Indentation.
96110
96111         Module fsusage.
96112         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
96113         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
96114         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
96115
96116         Module dirfd.
96117         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
96118         requirements.
96119
96120         Module euidaccess.
96121         * m4/euidaccess.m4: New file.
96122
96123         Module file-type.
96124         * m4/file-type.m4: New file.
96125
96126         Module fileblocks.
96127         * m4/fileblocks.m4: New file.
96128
96129         Module filemode.
96130         * m4/filemode.m4: New file.
96131
96132         Module isdir.
96133         * m4/isdir.m4: New file.
96134
96135         Module lchown.
96136         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
96137         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
96138
96139         Module makepath.
96140         * m4/makepath.m4: New file.
96141
96142         Module modechange.
96143         * m4/modechange.m4: New file.
96144
96145         Module mountlist.
96146         * m4/mountlist.m4: New file.
96147         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96148         Indentation.
96149
96150         Module path-concat.
96151         * m4/path-concat.m4: New file.
96152
96153         Module pathmax.
96154         * m4/pathmax.m4: New file.
96155
96156         Module same.
96157         * m4/same.m4: New file.
96158
96159         Module save-cwd.
96160         * m4/save-cwd.m4: New file.
96161
96162         Module savedir.
96163         * m4/savedir.m4: New file.
96164
96165         Module xgetcwd.
96166         * m4/xgetcwd.m4: New file.
96167         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96168
96169         Module xreadlink.
96170         * m4/xreadlink.m4: New file.
96171
96172         Module safe-read.
96173         * m4/safe-read.m4: New file.
96174
96175         Module safe-write.
96176         * m4/safe-write.m4: New file.
96177
96178         Module closeout.
96179         * m4/closeout.m4: New file.
96180
96181         Module stdio-safer.
96182         * m4/stdio-safer.m4: New file.
96183
96184         Module getpass.
96185         * m4/getpass.m4: New file.
96186
96187         Module getugroups.
96188         * m4/getugroups.m4: New file.
96189
96190         Module group-member.
96191         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96192         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96193
96194         Module idcache.
96195         * m4/idcache.m4: New file.
96196
96197         Module userspec.
96198         * m4/userspec.m4: New file.
96199
96200         Module gettime.
96201         * m4/clock_time.m4: New file.
96202         * m4/gettime.m4: New file.
96203
96204         Module settime.
96205         * m4/settime.m4: New file.
96206
96207         Module posixtm.
96208         * m4/posixtm.m4: New file.
96209
96210         Module gethostname.
96211         * m4/gethostname.m4: New file.
96212
96213         Module canon-host.
96214         * m4/canon-host.m4: New file.
96215
96216         Module gettext.
96217         * m4/codeset.m4: New file, from gettext-0.11.5.
96218         * m4/gettext.m4: New file, from gettext-0.11.5.
96219         * m4/glibc21.m4: New file, from gettext-0.11.5.
96220         * m4/iconv.m4: New file, from gettext-0.11.5.
96221         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96222         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96223         * m4/inttypes.m4: New file, from gettext-0.11.5.
96224         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96225         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96226         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96227         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96228         * m4/lib-link.m4: New file, from gettext-0.11.5.
96229         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96230         * m4/progtest.m4: New file, from gettext-0.11.5.
96231         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96232         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96233         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96234
96235         Module localcharset.
96236         * m4/localcharset.m4: New file.
96237
96238         Module hard-locale.
96239         * m4/hard-locale.m4: New file.
96240
96241         Module mbswidth.
96242         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96243         onceonly macros.
96244         * m4/mbrtowc.m4: Add comment.
96245
96246         Module memcasecmp.
96247         * m4/memcasecmp.m4: New file.
96248
96249         Module memcoll.
96250         * m4/memcoll.m4: New file.
96251
96252         Module unicodeio.
96253         * m4/unicodeio.m4: New file.
96254
96255         Module rpmatch.
96256         * m4/rpmatch.m4: New file.
96257
96258         Module yesno.
96259         * m4/yesno.m4: New file.
96260
96261         Module exitfail.
96262         * m4/exitfail.m4: New file.
96263
96264         Module c-stack.
96265         * m4/c-stack.m4 (gl_C_STACK): New macro.
96266         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96267
96268         Module error.
96269         * m4/error.m4 (gl_ERROR): New macro.
96270         (jm_PREREQ_ERROR): Use onceonly macros.
96271
96272         Module fatal.
96273         * m4/fatal.m4: New file.
96274
96275         Module getloadavg.
96276         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96277         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96278
96279         Module getpagesize.
96280         * m4/getpagesize.m4: New file.
96281
96282         Module getusershell.
96283         * m4/getusershell.m4: New file.
96284
96285         Module physmem.
96286         * m4/physmem.m4: New file.
96287
96288         Module posixver.
96289         * m4/posixver.m4: New file.
96290
96291         Module quotearg.
96292         * m4/quotearg.m4: New file.
96293
96294         Module quote.
96295         * m4/quote.m4: New file.
96296
96297         Module readutmp.
96298         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96299
96300         Module sig2str.
96301         * m4/sig2str.m4: New file.
96302
96303         Other.
96304         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96305         ulonglong.m4.
96306         * m4/intmax_t.m4: New file.
96307         * m4/d-type.m4: Indentation.
96308         * m4/jm-macros.m4: Update.
96309         * m4/prereq.m4 (jm_PREREQ): Update.
96310         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96311         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96312         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96313         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96314         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96315         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96316         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96317         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96318         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96319         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96320         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96321         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96322         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96323         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96324         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96325         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96326         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96327         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96328         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96329
96330 2002-12-24  Bruno Haible  <bruno@clisp.org>
96331
96332         * MODULES.txt: Update according to m4/ changes.
96333
96334         Module gettext.
96335         * config.rpath: New file, from gettext-0.11.5.
96336
96337         * modules/*: New module descriptions.
96338         * gnulib-tool: New file.
96339         * MODULES.html.sh: New file.
96340
96341 2002-12-21  Karl Berry  <karl@gnu.org>
96342
96343         * doc/fdl.texi: update to version 1.2.
96344
96345 2002-12-19  Karl Berry  <karl@gnu.org>
96346
96347         * config/config.guess: update from prep.
96348
96349 2002-12-18  Bruno Haible  <bruno@clisp.org>
96350
96351         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96352         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96353
96354 2002-12-17  Bruno Haible  <bruno@clisp.org>
96355
96356         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96357         stdlib.h, string.h.
96358
96359 2002-12-17  Bruno Haible  <bruno@clisp.org>
96360
96361         * lib/canon-host.c (strdup): Remove unused declaration.
96362
96363         * lib/fsusage.c: Include full_read.h.
96364         (get_fs_usage): Use full_read instead of safe_read.
96365
96366         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96367
96368 2002-12-12  Karl Berry  <karl@gnu.org>
96369
96370         * config/config.guess: update from prep.
96371
96372 2002-12-11  Bruno Haible  <bruno@clisp.org>
96373
96374         * m4/setenv.m4: New file, from gettext-0.11.5.
96375
96376 2002-12-11  Bruno Haible  <bruno@clisp.org>
96377
96378         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96379         not unsetenv().
96380         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96381         modifications:
96382
96383         2002-12-11  Bruno Haible  <bruno@clisp.org>
96384
96385                 * setenv.c (alloca): Fall back to malloc.
96386                 (freea): New macro.
96387                 (setenv): Use freea() to free memory allocated with alloca().
96388
96389         2002-11-13  Bruno Haible  <bruno@clisp.org>
96390
96391                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96392                 function declarations.
96393                 * unsetenv.c (unsetenv): Likewise.
96394
96395         2002-03-04  Bruno Haible  <bruno@clisp.org>
96396
96397                 Portability to AIX 4.3.3.
96398                 * unsetenv.c: New file, extracted from setenv.c.
96399                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96400
96401         2001-12-20  Bruno Haible  <bruno@clisp.org>
96402
96403                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96404                 use malloc instead. For SunOS 4.
96405
96406         2001-12-11  Bruno Haible  <bruno@clisp.org>
96407
96408                 * setenv.c: Declare alloca.
96409                 (compar_fn_t): New typedef.
96410                 (KNOWN_VALUE, STORE_VALUE): Use it.
96411
96412         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96413         setenv.h.
96414
96415 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96416
96417         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96418         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96419         Choose values that are less likely to collide with system fnmatch
96420         options.
96421         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96422         defined (e.g., a pure POSIX system).
96423         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96424         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96425
96426 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96427
96428         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96429         a pain in practice to deal with generated m4 files.  This change
96430         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96431
96432         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96433         and jm-glibc-io.m4, as they are no longer a special case.
96434         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96435         kludge and the auto-generation stuff.  Check only whether the
96436         functions are declared, not whether they exist, since older hosts
96437         that don't declare the functions can't use the optimization anyway.
96438
96439 2002-12-06  Jim Meyering  <jim@meyering.net>
96440
96441         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96442
96443         Merge in changes from libc's misc/error.c, in preparation
96444         for the merge of gnulib's changes back into libc.
96445
96446         * lib/error.c (_): Define only if not already defined.
96447         Move definition to follow all #include directives.
96448         Include unlocked-io.h only if !_LIBC.
96449         [_LIBC]: Include <libio/libioP.h>.
96450         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96451         (fflush): Tweak definition to use INTUSE.
96452         (putc): Define.
96453
96454 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96455
96456         * lib/alloca.c [defined emacs]: Include "lisp.h".
96457         (xalloc_die) [defined emacs]: New macro.
96458         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96459         [! defined emacs]: Include <xalloc.h>.
96460         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96461         (pointer): Typedef to POINTER_TYPE *.
96462         (malloc): Remove decl; we now always use xmalloc.
96463         (alloca): Use old-style definition, since Emacs needs this.
96464         Check for arithmetic overflow when computing combined size.
96465
96466 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96467
96468         Do not generate unlocked-io.h automatically, since it's easier to
96469         maintain it by hand.
96470
96471         * lib/unlocked-io.h: New file, from GNU diffutils,
96472         but with proper copyright notice and attribution.
96473         * lib/gen-uio: Remove.
96474         * lib/Makefile.am: Add copyright notice.
96475         (libfetish_a_SOURCES): Add unlocked-io.h.
96476         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96477         (DISTCLEANFILES, io_functions): Remove macros.
96478         (EXTRA_DIST): Remove gen_uio.
96479         (unlocked-io.h): Remove rule.
96480
96481 2002-12-04  Jim Meyering  <jim@meyering.net>
96482
96483         Reflect the fact that stat.c and lstat.c are no longer generated.
96484         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96485         (DISTCLEANFILES): Likewise.
96486         (EXTRA_DIST): Likewise.
96487         (all_local): Don't depend on stat.c or lstat.c.
96488         (stat.c, lstat.c): Remove rules.
96489         (EXTRA_DIST): Remove xstat.in.
96490
96491         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96492         * lib/stat.c: New file.  Contents mostly from xstat.in.
96493         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96494         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96495
96496         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96497         too.
96498         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96499
96500 2002-12-03  Jim Meyering  <jim@meyering.net>
96501
96502         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96503         but not semantics, to minimize the differences between these two files.
96504         (safe_read): Change comment to mention SAFE_READ_ERROR.
96505
96506         * lib/safe-read.c (IS_EINTR): Define.
96507         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96508
96509 2002-12-02  Jim Meyering  <jim@meyering.net>
96510
96511         * lib/safe-read.c (EINTR): Define.
96512         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96513         (INT_MAX): Provide fallback.
96514         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96515
96516         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96517
96518 2002-12-02  Bruno Haible  <bruno@clisp.org>
96519
96520         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96521         Define, taken from safe-read.c.
96522         (INT_MAX): Provide fallback.
96523         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96524         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96525
96526         * lib/safe-read.c (EINTR): Remove definition.
96527         (safe_read): Don't use EINTR if it is absent.
96528
96529 2002-12-01  Jim Meyering  <jim@meyering.net>
96530
96531         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96532         zero.
96533         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96534
96535 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96536
96537         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96538         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96539         with `if (! (value < limit)) abort ();', for readability.
96540
96541 2002-11-26  Karl Berry  <karl@gnu.org>
96542
96543         * lib/strdup.c: copy from libc again, with jim's ok.
96544         * lib/.cppi-disable: re-add strdup.c
96545
96546 2002-11-25  Karl Berry  <karl@gnu.org>
96547
96548         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96549         instead of "strtol.c".
96550
96551 2002-11-25  Karl Berry  <karl@gnu.org>
96552
96553         * config/install-sh: update from automake for variable quoting, $0 in
96554         error msgs, etc.
96555
96556         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96557         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96558         entry.
96559
96560 2002-11-25  Jim Meyering  <jim@meyering.net>
96561
96562         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96563
96564 2002-11-24  Karl Berry  <karl@gnu.org>
96565
96566         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96567         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96568
96569 2002-11-24  Jim Meyering  <jim@meyering.net>
96570
96571         Update from coreutils:
96572
96573         * lib/mktime.c: Merge in changes from libc.
96574
96575         Avoid a link-time failure on some Linux systems.
96576         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96577         (otherwise).
96578         (__mon_yday): Declare with the STATIC attribute.
96579         (__mktime_internal): Likewise.
96580         Based on a report from Greg Schafer.
96581
96582 2002-11-23  Jim Meyering  <jim@meyering.net>
96583
96584         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96585         Use `unsigned', not `int', as type of index.
96586
96587         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96588
96589         * lib/fsusage.c: Remove unneeded parentheses around operands of
96590         `defined'.
96591
96592 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96593
96594         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96595         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96596         so that we can be included first.
96597         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96598         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96599         No need to include stddef.h or sys/types.h any more.
96600         Surround local include files with "", not "<>".
96601         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96602         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96603         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96604         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96605         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96606         (ISPRINT): Remove; no longer needed now that we assume C89.
96607
96608         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96609         Preserve errno.
96610
96611         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96612         quotearg_char): Use SIZE_MAX rather than
96613         (size_t) -1 when we are talking about "infinity".
96614
96615         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96616
96617 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96618
96619         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96620         hint that one should use `if (! x) abort ();' rather than `assert
96621         (x);', and anyway it's one less thing to worry about configuring.
96622         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96623         hash_rehash, hash_insert): Use abort rather than assert.
96624
96625 2002-11-22  Bruno Haible  <bruno@clisp.org>
96626
96627         * lib/safe-read.h: Assume C89. Add comments.
96628         (safe_read): Change return type to size_t.
96629         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96630         byte counts > SSIZE_MAX correctly.
96631         * lib/safe-write.h: New file.
96632         * lib/safe-write.c: New file.
96633         * lib/full-read.h: New file.
96634         * lib/full-read.c: New file.
96635         * lib/full-write.h: Assume C89. Add comments.
96636         * lib/full-write.c: Include safe-write.h.
96637         (full_write): Rewritten to use safe_write.
96638         Suggested by Jim Meyering and Paul Eggert.
96639
96640 2002-11-21  Jim Meyering  <jim@meyering.net>
96641
96642         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96643
96644         Merge in changes from the coreutils.
96645
96646         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96647         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96648         <stdint.h>.
96649         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96650         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96651         int.  Work more efficiently if X is the same width as uintmax_t.
96652         Do not compare X to -1, to avoid bogus compiler warning.
96653         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96654         Don't assume that f_frsize and f_bsize are the same type.
96655
96656         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96657         warning on FreeBSD.
96658
96659         * lib/makepath.c (make_path): Restore umask *before* creating the final
96660         component.
96661         (make_path): Minor reformatting.
96662
96663         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96664         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96665         HAVE_MALLOC/HAVE_REALLOC.
96666
96667         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96668         dummy ones.  At least on GNU/Linux systems, `auto' means something
96669         else.
96670         From Michael Stone.
96671
96672 2002-11-21  Bruno Haible  <bruno@clisp.org>
96673
96674         Remove case insensitive option matching.
96675         * lib/argmatch.h (argcasematch): Remove declaration.
96676         (ARGCASEMATCH): Remove macro.
96677         (__xargmatch_internal): Remove case_sensitive argument.
96678         (XARGMATCH): Update.
96679         (XARGCASEMATCH): Remove macro.
96680         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96681         case_sensitive argument.
96682         (argcasematch): Remove function.
96683         (__xargmatch_internal): Remove case_sensitive argument.
96684         (main): Use XARGMATCH instead of XARGCASEMATCH.
96685
96686         * lib/xmalloc.c: Change compile-time error message. Add comment about
96687         required autoconf version.
96688
96689 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96690
96691         Merge argmatch cleanups from Bison.  Assume C89.
96692
96693         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96694         Include stdlib.h, for EXIT_FAILURE.
96695         Always include <string.h>, since we assume C89.
96696         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96697         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96698         Include <stddef.h> instead, since it's all we need for size_t.
96699         (PARAMS): Remove.  All uses removed.
96700         (ARRAY_CARDINALITY): Do not bother to #undef.
96701         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96702         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96703         Remove unnecessary parentheses.
96704         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96705         Insert necessary parentheses.
96706         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96707         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96708
96709 2002-11-19  Bruno Haible  <bruno@clisp.org>
96710
96711         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96712         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96713
96714         * lib/mbswidth.h (PARAMS): Remove macro.
96715         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96716         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96717
96718         * lib/gcd.h (PARAMS): Remove macro.
96719         (gcd): Use ANSI C function declarations.
96720         * lib/gcd.c (gcd): Likewise.
96721
96722 2002-11-15  Bruno Haible  <bruno@clisp.org>
96723
96724         * lib/strcspn.c: Include <stddef.h>.
96725         (strcspn): Use ANSI C function declaration. Change return type to
96726         size_t. Use NULL.
96727         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96728         (strpbrk): Use NULL.
96729         * lib/strpbrk.h (PARAMS): Remove macro.
96730         (strpbrk): Use ANSI C function declaration.
96731         * lib/strstr.c: Don't include <sys/types.h>.
96732         * lib/strstr.h (PARAMS): Remove macro.
96733         (strstr): Use ANSI C function declarations.
96734
96735 2002-11-14  Karl Berry  <karl@gnu.org>
96736
96737         * config/mkinstalldirs: `do' on separate line, instead of
96738         `for var; do'.
96739
96740 2002-11-06  Bruno Haible  <bruno@clisp.org>
96741
96742         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96743         * lib/gcd.c (gcd): Likewise.
96744
96745 2002-11-05  Bruno Haible  <bruno@clisp.org>
96746
96747         * lib/gcd.h: New file, from gettext-0.11.5.
96748         * lib/gcd.c: New file, from gettext-0.11.5.
96749
96750 2002-11-05  Bruno Haible  <bruno@clisp.org>
96751
96752         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96753         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96754         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96755         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96756
96757         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96758         <libintl.h>.
96759         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96760         <libintl.h>.
96761
96762         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96763         * lib/human.c: Include gettext.h instead of <libintl.h>.
96764         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96765         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96766         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96767         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96768         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96769         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96770         (textdomain): Remove definition.
96771         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96772
96773         * lib/long-options.c: Remove include of <libintl.h> and definition of
96774         _.
96775         * lib/same.c: Remove include of <libintl.h> and definition of _.
96776
96777 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96778
96779         * lib/config.charset: A few additions for Solaris.
96780
96781 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96782
96783         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96784         * lib/localcharset.c (locale_charset): Declare as extern "C".
96785
96786 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96787
96788         * lib/config.charset: msdos in uk_UA uses CP1125.
96789
96790 2002-11-04  Bruno Haible  <bruno@clisp.org>
96791
96792         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96793         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96794         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96795         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96796         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96797
96798 2002-11-04  Bruno Haible  <bruno@clisp.org>
96799
96800         * lib/localcharset.c (locale_charset): Don't return an empty string.
96801
96802 2002-11-04  Bruno Haible  <bruno@clisp.org>
96803
96804         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96805         aliases.
96806
96807 2002-11-04  Bruno Haible  <bruno@clisp.org>
96808
96809         * lib/config.charset: Update for newest glibc. Add canonical names
96810         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96811
96812 2002-11-04  Bruno Haible  <bruno@clisp.org>
96813
96814         * lib/config.charset: Add support for NetBSD.
96815
96816 2002-11-04  Bruno Haible  <bruno@clisp.org>
96817
96818         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96819
96820 2002-11-01  Bruno Haible  <bruno@clisp.org>
96821
96822         * configure.in: Add AC_CONFIG_AUX_DIR call.
96823         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96824         test/Makefile.
96825         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96826
96827 2002-09-28  Karl Berry  <karl@gnu.org>
96828
96829         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96830         installed automake until the next release, since changes have been
96831         made.
96832
96833 2002-09-25  Karl Berry  <karl@gnu.org>
96834
96835         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96836         * lib/getopt*: copy from libc/posix.
96837         * lib/gettext.h: copy from gettext.
96838         * lib/.cppi-disable: add strdup.c, gettext.h.
96839
96840 2002-09-25  Karl Berry  <karl@gnu.org>
96841
96842         * config/srclist.txt: enable gettext.h check.
96843         * config/config.{guess,sub}: update from prep.
96844         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96845                 from automake 1.6.3.
96846         See srclist*.
96847
96848 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96849
96850         * regex.c (PATFETCH): Remove the translating fetch.
96851         (PATFETCH_RAW): Rename to PATFETCH.
96852         (set_image_of_range): New fun.
96853         (SET_RANGE_TABLE_WORK_AREA): Use it.
96854         (regex_compile): Don't translate the pattern chars so eagerly.
96855         Only do it when inserting an `exactn' bytecode or when handling
96856         a char-range.
96857         (mutually_exclusive_p): Avoid empty statement.
96858
96859 2002-07-06  Jim Meyering  <meyering@lucent.com>
96860
96861         * m4/README: Don't mention Makefile.am.in.
96862         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96863
96864 2002-07-01  Jim Meyering  <meyering@lucent.com>
96865
96866         * lib/c-stack.c: Include sys/time.h.
96867         From Volker Borchert.
96868
96869 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96870
96871         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96872
96873 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96874
96875         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96876         New macro.  Use it uniformly instead of
96877         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96878         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96879         reported by Vin Shelton.
96880
96881 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96882
96883         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96884         Do not assume SA_SIGINFO behavior.
96885         Bug reported by Jim Meyering on NetBSD 1.5.2.
96886
96887 2002-06-22  Jim Meyering  <meyering@lucent.com>
96888
96889         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96891
96892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96893         now that configure.ac uses AC_GNU_SOURCE.
96894         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96895         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96896
96897         Update to latest tools.  Suggestions from Paul Eggert.
96898         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96899         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96900         * m4/fnmatch.m4: Likewise.
96901         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96902         to AC_HEADER_STDBOOL
96903
96904 2002-06-22  Jim Meyering  <meyering@lucent.com>
96905
96906         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96907         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96908
96909 2002-06-22  Jim Meyering  <meyering@lucent.com>
96910
96911         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96912
96913         * lib/exitfail.c, exitfail.h: Likewise.
96914         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96915
96916         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96917         of fnmatch.h.
96918         (EXTRA_DIST): Add fnmatch_loop.c.
96919         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96920
96921         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96922         * lib/fnmatch.c: Update from diffutils-2.8.2.
96923         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96924         * lib/fnmatch.h: Remove file.
96925
96926 2002-06-21  Jim Meyering  <meyering@lucent.com>
96927
96928         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96929         * m4/mbrtowc.m4: Likewise.
96930
96931         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96932         * m4/mbswidth.m4: Reflect name change:
96933         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96935
96936         * m4/lib-link.m4: Update from gettext-0.11.2.
96937         * m4/gettext.m4: Likewise.
96938
96939         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96940         From Alfred M. Szmidt.
96941
96942 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96943
96944         * lib/file-type.h: Report an error if neither S_ISREG nor
96945         S_IFREG is defined, instead of using a test specific to glibc
96946         2.2.  This should be safe, since POSIX requires S_ISREG and
96947         Unix Version 7 had S_IFREG.  We don't need to check for
96948         <sys/types.h> since we don't use any symbols that it defines.
96949
96950 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96951
96952         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96953         $@-t, so that each temporary file name is unique and valid in the first
96954         8 characters, for operation under DOS.
96955
96956 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96957
96958         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96959
96960 2002-06-15  Jim Meyering  <meyering@lucent.com>
96961
96962         Work even with DJGPP 2.03, which lacks support for symlinks.
96963         From Richard Dawe.
96964         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96965         is defined.
96966         * lib/lchown.c (S_ISLNK): Likewise.
96967
96968 2002-06-15  Jim Meyering  <meyering@lucent.com>
96969
96970         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96971         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96972         have been included before this file.
96973
96974 2002-06-14  Jim Meyering  <meyering@lucent.com>
96975
96976         * lib/file-type.h: Use the version from diffutils-2.8.2.
96977         * lib/file-type.c: Likewise.
96978
96979 2002-06-07  Jim Meyering  <meyering@lucent.com>
96980
96981         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96982         They're needed at least for NetBSD 1.5.2.
96983         ($statxfs_includes): Include those same headers.
96984         ($statxfs_includes): Include sys/vfs.h if available.
96985         ($statxfs_includes): Likewise for sys/statvfs.h.
96986         Check for the following members in both structs statfs and statvfs:
96987         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96988
96989 2002-06-01  Jim Meyering  <meyering@lucent.com>
96990
96991         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96992         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96993
96994 2002-05-28  Jim Meyering  <meyering@lucent.com>
96995
96996         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96997         Reported by Volker Borchert.
96998
96999 2002-05-27  Jim Meyering  <meyering@lucent.com>
97000
97001         Fix a problem seen only on nonconforming systems whereby ls.c's
97002         use of localtime, and then of gettimeofday would cause trouble:
97003         the localtime call used to initialize rpl_gettimeofday's save
97004         mechanism would clobber ls's current local time information so
97005         that in any long listing the first file would always be listed
97006         with date 1970-01-01.  Analysis by Volker Borchert.
97007
97008         * lib/gettimeofday.c (localtime): Undefine.
97009         (rpl_localtime): New function.
97010
97011 2002-05-27  Jim Meyering  <meyering@lucent.com>
97012
97013         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
97014         localtime.
97015
97016         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
97017         use the replacement function; it wouldn't resolve at link time.
97018         Reported by Volker Borchert.
97019
97020 2002-05-22  Jim Meyering  <meyering@lucent.com>
97021
97022         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
97023         file-type.h.
97024         * lib/file-type.h: New file.
97025         * lib/file-type.c (file_type): New file/function.  Extracted from
97026         diffutils.
97027
97028 2002-04-30  Jim Meyering  <meyering@lucent.com>
97029
97030         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
97031
97032 2002-04-29  Paul Eggert  <eggert@twinsun.com>
97033
97034         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
97035
97036 2002-04-29  Paul Eggert  <eggert@twinsun.com>
97037
97038         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
97039         Do not check for alloca.h (no longer used) or stdbool.h (was never
97040         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
97041
97042 2002-04-29  Paul Eggert  <eggert@twinsun.com>
97043
97044         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
97045
97046 2002-04-29  Jim Meyering  <meyering@lucent.com>
97047
97048         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
97049         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
97050         Use AC_FUNC_STRNLEN here instead.
97051
97052         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
97053         With autoconf-2.53a, it's part of AC_PROG_CC.
97054
97055 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97056
97057         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
97058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
97059
97060 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97061
97062         * lib/sig2str.h, lib/sig2str.c: New files.
97063         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
97064
97065 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97066
97067         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
97068         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
97069         of 127, since 64 is the largest conceivable number for ancient
97070         nonstandard hosts.
97071         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
97072
97073 2002-04-28  Jim Meyering  <meyering@lucent.com>
97074
97075         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
97076
97077 2002-04-24  Jim Meyering  <meyering@lucent.com>
97078
97079         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
97080         (jm_PREREQ): Use it.
97081
97082         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
97083         mach/mach.h fcntl.h.
97084         Check for this function: setlocale.
97085
97086 2002-04-24  Jim Meyering  <meyering@lucent.com>
97087
97088         * lib/gettext.h: New file, from Gettext.
97089         * lib/Makefile.am (INCLUDES): Remove -I../intl.
97090         (libfetish_a_SOURCES): Add gettext.h.
97091
97092 2002-04-16  Jim Meyering  <meyering@lucent.com>
97093
97094         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
97095         ut_pid, ut_id, ut_exit.
97096
97097 2002-04-16  Jim Meyering  <meyering@lucent.com>
97098
97099         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
97100         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
97101         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
97102
97103 2002-04-12  Jim Meyering  <meyering@lucent.com>
97104
97105         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
97106         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
97107         existence of the getmntinfo function.  Needed for Darwin 5.3.
97108
97109         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
97110         This is necessary at least on Darwin 5.3.
97111
97112         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
97113         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
97114         strnlen.o in the library, and that makes some versions of ranlib
97115         object.
97116
97117 2002-04-12  Jim Meyering  <meyering@lucent.com>
97118
97119         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
97120
97121 2002-04-09  Jim Meyering  <meyering@lucent.com>
97122
97123         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
97124         to be more precise.  Rather than saying we're checking whether the
97125         function `works', say what we're testing.
97126         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
97127         Reported by Bruno Haible.
97128
97129 2002-03-10  Jim Meyering  <meyering@lucent.com>
97130
97131         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
97132         Suggestion from Santiago Vila.
97133
97134 2002-03-08  Jim Meyering  <meyering@lucent.com>
97135
97136         * lib/rename.c: Mention that this wrapper is needed also on
97137         mips-dec-ultrix4.4 systems.
97138
97139 2002-03-02  Jim Meyering  <meyering@lucent.com>
97140
97141         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
97142         not HAVE_CLOCK_SETTIME.
97143
97144 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97145
97146         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97147         Check for clock_settime.
97148
97149 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97150
97151         * lib/nanosleep.h: Rename to....
97152         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97153
97154         * lib/gettime.c: New file.
97155         * lib/settime.c: New file.
97156         * lib/stime.c: Remove.
97157
97158         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97159         timespec.h.  Remove nanosleep.h.
97160
97161 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97162
97163         * m4/acl.m4: New file.
97164         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97165         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97166
97167 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97168
97169         * lib/acl.c, lib/acl.h: New files.
97170         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97171
97172 2002-02-24  Jim Meyering  <meyering@lucent.com>
97173
97174         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97175         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97176         cause trouble.  Reported by Nelson Beebe.
97177
97178 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97179
97180         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97181         compilers that don't know that xalloc_die never returns.
97182
97183 2002-02-20  Jim Meyering  <meyering@lucent.com>
97184
97185         * lib/getdate.c: Regenerate using bison-1.33.
97186
97187 2002-02-17  Jim Meyering  <meyering@lucent.com>
97188
97189         * config/config.guess (main): Don't use `head -1'; it's no longer
97190         portable. Use `sed 1q' instead.
97191
97192 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97193
97194         * m4/codeset.m4: Upgrade to gettext-0.11.
97195         * m4/gettext.m4: Upgrade to gettext-0.11.
97196         * m4/glibc21.m4: Upgrade to gettext-0.11.
97197         * m4/iconv.m4: Upgrade to gettext-0.11.
97198         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97199         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97200         * m4/lib-ld.m4: New file, from gettext-0.11.
97201         * m4/lib-link.m4: New file, from gettext-0.11.
97202         * m4/lib-prefix.m4: New file, from gettext-0.11.
97203         * m4/progtest.m4: Upgrade to gettext-0.11.
97204
97205 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97206
97207         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97208         (jm_PREREQ): Use it.
97209
97210 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97211
97212         * lib/posixver.c, lib/posixver.h: New files.
97213         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97214
97215 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97216             Bruno Haible  <bruno@clisp.org>
97217
97218         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97219         (fwrite_success_callback): New declaration.
97220         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97221         print_unicode_char. Call failure callback instead of error.
97222         (fwrite_success_callback): New function.
97223         (exit_failure_callback): New function.
97224         (fallback_failure_callback): New function.
97225         (print_unicode_char): Call unicode_to_mb.
97226
97227 2002-01-26  Jim Meyering  <meyering@lucent.com>
97228
97229         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97230         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97231
97232 2002-01-26  Jim Meyering  <meyering@lucent.com>
97233
97234         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97235
97236 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97237
97238         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97239
97240 2002-01-22  Jim Meyering  <meyering@lucent.com>
97241
97242         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97243         Otherwise, some versions of automake would omit the rule that makes
97244         Makefile from Makefile.in.
97245
97246 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97247
97248         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97249         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97250         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97251         (memcoll): Set errno to zero if there is no error.
97252
97253         * lib/quotearg.c (quotearg_buffer_restyled):
97254         Fix bug with quoting buffers containing NUL when backslashing escapes.
97255         This bug was exposed by the other changes in this patch.
97256         (quotearg_n_options): New arg ARGSIZE.
97257         All callers changed.
97258         (quoting_options_from_style): New function.
97259         (quotearg_n_style): Use it.
97260         (quotearg_n_style_mem): New function.
97261
97262         * lib/quotearg.h (quotearg_n_style_mem): New function.
97263
97264 2002-01-19  Jim Meyering  <meyering@lucent.com>
97265
97266         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97267         Remove useless quotes: DF_PROG="df".
97268         * m4/strnlen.m4: New file.
97269
97270 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97271
97272         * lib/backupfile.c (ISDIGIT): Comment fix.
97273         * lib/getdate.y (ISDIGIT): Likewise.
97274         * lib/posixtm.c (ISDIGIT, year): Likewise.
97275         * lib/strverscmp.c (ISDIGIT): Likewise.
97276         * lib/userspec.c (ISDIGIT): Likewise.
97277
97278 2002-01-16  Jim Meyering  <meyering@lucent.com>
97279
97280         * lib/getdate.y: Add three semicolons, each just before a closing
97281         brace. Bison (as of version 1.31) no longer papers over that mistake.
97282
97283 2002-01-05  Jim Meyering  <meyering@lucent.com>
97284
97285         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97286
97287 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97288
97289         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97290         not silently exit merely because the output buffer happens to
97291         have nothing pending.
97292
97293 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97294
97295         See the big note in ../ChangeLog.
97296         * lib/human.c (suffixes): Prefer K to k for 1024.
97297         (generate_suffix_backwards): New function.
97298         (human_readable_inexact): Use it.
97299         * lib/xstrtol.c (__xstrtol): If there is no number but there
97300         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97301         Accept 'K' as well as 'k'.
97302
97303 2001-12-15  Jim Meyering  <meyering@lucent.com>
97304
97305         * lib/regex.h (__restrict_arr): Update from libc.
97306
97307         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97308         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97309         (STREQ): Define.
97310
97311 2001-12-14  Jim Meyering  <meyering@lucent.com>
97312
97313         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97314         Suggestion from Bruno Haible.
97315
97316 2001-12-10  Jim Meyering  <meyering@lucent.com>
97317
97318         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97319         xrealloc, Instead, include "xalloc.h".
97320         (initbuffer): Don't cast xmalloc return value to char*.
97321         (readline): Reword comment.
97322         Don't cast xrealloc return value to char*
97323         Return NULL, not 0.
97324
97325 2001-12-09  Jim Meyering  <meyering@lucent.com>
97326
97327         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97328         about `signed and unsigned type in conditional expression'.
97329         * lib/posixtm.c (posix_time_parse): Likewise.
97330
97331         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97332
97333         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97334         to avoid a pedantic warning.
97335
97336         * lib/getstr.c: Don't include assert.h.
97337         (getstr): Remove warning-evoking assertions.
97338         Return -1 if offset parameter is out of bounds.
97339         Change the type of a local from int to size_t.
97340
97341         * lib/strftime.c (my_strftime_localtime_r): Include this function
97342         definition in the `#if ! HAVE_TM_GMTOFF' block.
97343
97344         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97345         Include xalloc.h instead.
97346
97347 2001-12-02  Jim Meyering  <meyering@lucent.com>
97348
97349         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97350         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97351         included.
97352
97353         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97354         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97355
97356 2001-11-30  Akim Demaille  <akim@epita.fr>
97357
97358         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97359         before being defined.
97360
97361 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97362
97363         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97364         First arg is int, not unsigned.
97365         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97366         (SIZE_MAX, UINT_MAX): New macros.
97367         (quotearg_n_options): Abort if N is negative.
97368         Avoid overflow check on hosts where size_t is 64 bits and int
97369         is 32 bits, as overflow is impossible there.
97370         Fix off-by-one typo that caused unnecessary reallocation.
97371
97372 2001-11-27  Jim Meyering  <meyering@lucent.com>
97373
97374         * lib/tempname.c: Merge with version from libc.
97375         * lib/regex.c: Likewise.
97376
97377         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97378         systems for which STDC_HEADERS is 0, it was not included, resulting in
97379         a warning about an integer-to-pointer conversion problem with getenv.
97380         Reported by Volker Borchert.
97381
97382 2001-11-26  Jim Meyering  <meyering@lucent.com>
97383
97384         * lib/gtod.h: Remove file.
97385         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97386         * lib/gettimeofday.c: Don't include gtod.h.
97387         (GTOD_init): Remove function.
97388         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97389         Suggestion from Volker Borchert.
97390
97391 2001-11-23  Jim Meyering  <meyering@lucent.com>
97392
97393         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97394         it.
97395         * lib/hash.c (struct hash_table): Define it here instead.
97396
97397 2001-11-22  Jim Meyering  <meyering@lucent.com>
97398
97399         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97400
97401 2001-11-20  Jim Meyering  <meyering@lucent.com>
97402
97403         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97404         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97405
97406 2001-11-19  Jim Meyering  <meyering@lucent.com>
97407
97408         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97409         directory.  Use "conftestXXXXXX" as the template.
97410         Suggestion from Paul Eggert.
97411
97412         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97413         immediately, so the test doesn't mistakenly hit the max-open-files
97414         limit.
97415
97416 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97417
97418         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97419         (TEMPORARIES): New macro.
97420         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97421         removes an artificial limitation (e.g. HP-UX 10.20, where
97422         TMP_MAX is 17576).
97423
97424 2001-11-18  Jim Meyering  <meyering@lucent.com>
97425
97426         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97427
97428 2001-11-18  Jim Meyering  <meyering@lucent.com>
97429
97430         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97431         on SunOS 4.
97432
97433         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97434         files will be created before anything else.
97435
97436 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97437
97438         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97439         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97440
97441 2001-11-17  Jim Meyering  <meyering@lucent.com>
97442
97443         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97444         Prompted by a report from Bob Proulx.
97445
97446         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97447         Instead, require UTILS_FUNC_MKSTEMP.
97448
97449 2001-11-17  Jim Meyering  <meyering@lucent.com>
97450
97451         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97452         Now, that's done as part of AC_FUNC_STRTOD.
97453
97454 2001-11-17  Jim Meyering  <meyering@lucent.com>
97455
97456         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97457         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97458         rather than group writable.  Patch by Juan F. Codagnone.
97459
97460         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97461         xrealloc, Instead, include "xalloc.h".
97462
97463         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97464         Remove explicit declarations of xmalloc, xrealloc,
97465         and xstrdup.  Instead, include "xalloc.h".
97466
97467         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97468         unlocked-io.h.
97469         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97470         Likewise.
97471         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97472
97473         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97474         Reported by Padraig Brady.
97475
97476         * lib/mkstemp.c: #undef mkstemp.
97477         Include config.h.
97478         (rpl_mkstemp): Rename from mkstemp.
97479         Protoize.
97480
97481 2001-11-16  Jim Meyering  <meyering@lucent.com>
97482
97483         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97484         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97485         determine the amount of total physical memory, use pstat_getstatic.
97486         HPUX-11 doesn't define _SC_PHYS_PAGES.
97487         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97488         If sysconf couldn't be used to determine the amount of available
97489         physical memory, use both pstat_getstatic and pstat_getdynamic.
97490         Based on a patch from Bob Proulx.
97491
97492 2001-11-10  Jim Meyering  <meyering@lucent.com>
97493
97494         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97495         (jm_PREREQ): Use it.
97496
97497 2001-11-09  Jim Meyering  <meyering@lucent.com>
97498
97499         * m4/jm-macros.m4: Require autoconf-2.52f.
97500         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97501         Use these AC_-prefixed names, not the AM_-prefixed ones.
97502
97503         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97504
97505 2001-11-05  Jim Meyering  <meyering@lucent.com>
97506
97507         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97508
97509 2001-11-04  Jim Meyering  <meyering@lucent.com>
97510
97511         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97512         $DEFS.
97513
97514 2001-11-03  Jim Meyering  <meyering@lucent.com>
97515
97516         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97517         of AC_DEFUN.
97518
97519         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97520         know the name of the variable in the macro definition.
97521
97522 2001-11-03  Jim Meyering  <meyering@lucent.com>
97523
97524         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97525         in argmatch_to_argument call.
97526
97527         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97528         argument.
97529
97530         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97531         e.g., a fault due to an attempt to free a NULL pointer.
97532
97533 2001-11-01  Jim Meyering  <meyering@lucent.com>
97534
97535         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97536         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97537
97538 2001-11-01  Jim Meyering  <meyering@lucent.com>
97539
97540         * lib/dirfd.c, lib/dirfd.h: New files.
97541         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97542
97543         * lib/hash.c (hash_print) [TESTING]: Clean up.
97544
97545 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97546
97547         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97548         to avoid a warning if -Wall.
97549
97550 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97551
97552         * README: New file
97553         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97554         (per RMS's instructions, this is now the canonical source)
97555         * lgpl/, gpl/: New directories.
97556
97557 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97558
97559         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97560
97561 2001-10-21  Jim Meyering  <meyering@lucent.com>
97562
97563         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97564         this code would end up calling gettext even in packages built
97565         with --disable-nls.
97566         * lib/getopt.c (_): Likewise.
97567         * lib/regex.c (_): Likewise.
97568
97569 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97570
97571         * m4/error.m4 (jm_PREREQ_ERROR):
97572         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97573         AC_FUNC_STRERROR_R does that.
97574         Check for strerror declaration.
97575
97576         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97577         are supposed to have them these days.
97578         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97579         Merge changes from latest Autoconf CVS.
97580         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97581         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97582         POSIX decided to standardize on the int flavor of strerror_r.
97583
97584 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97585
97586         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97587         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97588         Use strerror_r that is only a macro, even if it is not a function.
97589         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97590         (private_strerror): Use prototypes, not old-style function definition.
97591         (print_errno_message): New function.
97592         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97593         char*-flavored one.
97594         (error_tail, error, error_at_line): Use it.
97595
97596 2001-10-11  Jim Meyering  <meyering@lucent.com>
97597
97598         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97599         and quote_n (1, ... to avoid clobbering a buffer.
97600
97601 2001-10-05  Jim Meyering  <meyering@lucent.com>
97602
97603         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97604         hash-pjw.h.
97605         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97606         * lib/hash-pjw.h: New file.
97607
97608 2001-09-30  Jim Meyering  <meyering@lucent.com>
97609
97610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97611         `struct fsstat' has the `f_fstypename' member.
97612         Use that to define FS_TYPE, which is now used to make
97613         the getfsstat link test tighter.
97614
97615 2001-09-30  Jim Meyering  <meyering@lucent.com>
97616
97617         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97618         Include <sys/ucred.h>, for Apple Darwin.
97619         Include sys/mount.h and sys/fs_types.h only if available.
97620         (FS_TYPE): Define.
97621         (read_filesystem_list): Use FS_TYPE.
97622
97623 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97624
97625         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97626         a boolean context.
97627
97628 2001-09-29  Jim Meyering  <meyering@lucent.com>
97629
97630         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97631         [one-argument getmntent function]): Include stdio.h before mntent.h.
97632         SunOS 4.1.x needs it for the declaration of `FILE'.
97633         Patch by Volker Borchert.
97634
97635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97636         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97637         sys/fs_types.h, and make the link-test for getfsstat guard #include
97638         directives with appropriate #if HAVE_*_H tests so that we can
97639         detect getfsstat on Apple Darwin1.3.7 systems.
97640         Reported by Nelson Beebe.
97641         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97642
97643 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97644
97645         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97646         #defines strtoimax.  Also treat the other strto* functions
97647         like strtoimax.
97648
97649         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97650         Check for strtoul and strtoumax,
97651         as those declarations are made even in the signed case.
97652         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97653         Likewise, for strtol and strtoimax.
97654
97655 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97656
97657         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97658         #defines strtoimax.  Also treat the other strto* functions
97659         like strtoimax.
97660
97661         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97662         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97663         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97664
97665 2001-09-26  Jim Meyering  <meyering@lucent.com>
97666
97667         Most macros in unlocked-io.h had the wrong number of arguments.
97668         * lib/gen-uio: New script.
97669         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97670         * lib/unlocked-io.hin: Remove file.
97671         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97672         rather than trying to embed it here.
97673         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97674         Reported by Padraig Brady.
97675
97676 2001-09-25  Volker Borchert  <bt@teknon.de>
97677
97678         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97679         `result'.
97680
97681 2001-09-24  Jim Meyering  <meyering@lucent.com>
97682
97683         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97684
97685 2001-09-23  Jim Meyering  <meyering@lucent.com>
97686
97687         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97688         instead of the mere test for existence of mntent.h.  The latter
97689         would get a false-positive on AIX 3.4 systems.
97690         In the outer getmntent if-block, don't die if neither of the getmntent
97691         tests succeeds.  Instead, just fall through and continue with the
97692         remaining tests.
97693
97694 2001-09-23  Jim Meyering  <meyering@lucent.com>
97695
97696         * lib/mountlist.c: Remove useless parentheses in #if directives.
97697         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97698         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97699
97700 2001-09-22  Jim Meyering  <meyering@lucent.com>
97701
97702         * m4/gettext.m4: New file.  From gettext.
97703         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97704         * m4/progtest.m4: Likewise
97705         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97706         * m4/glibc21.m4: Likewise.
97707
97708         * m4/libintl.m4: Remove.  No longer used.
97709
97710 2001-09-22  Jim Meyering  <meyering@lucent.com>
97711
97712         * lib/localcharset.c: Update from latest gettext.
97713         * lib/config.charset: Likewise.
97714
97715 2001-09-20  Jim Meyering  <meyering@lucent.com>
97716
97717         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97718         strtoimax.
97719         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97720         strtoumax.
97721
97722 2001-09-20  Jim Meyering  <meyering@lucent.com>
97723
97724         * lib/xstrtol.c (strtoimax): Guard declaration with
97725         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97726         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97727         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97728         (strtoumax): Likewise, for completeness (it wasn't necessary).
97729
97730 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97731
97732         * lib/strtoimax.c (HAVE_LONG_LONG):
97733         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97734         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97735         to work around bug in IBM C compiler.
97736
97737 2001-09-17  Jim Meyering  <meyering@lucent.com>
97738
97739         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97740         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97741         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97742         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97743         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97744         whenever the right hand side need not be expanded by the shell.
97745
97746 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97747
97748         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97749         library.  It's not correct, as some older glibcs are buggy.
97750         fnmatch wasn't fixed until glibc 2.2.
97751
97752         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97753         special shell magic here.
97754
97755 2001-09-16  Jim Meyering  <meyering@lucent.com>
97756
97757         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97758         * m4/jm-macros.m4: Require it.
97759
97760 2001-09-16  Jim Meyering  <meyering@lucent.com>
97761
97762         * lib/mkdir.c: New file.
97763
97764 2001-09-15  Jim Meyering  <meyering@lucent.com>
97765
97766         * m4/jm-macros.m4: Check for help2man.
97767
97768 2001-09-11  Jim Meyering  <meyering@lucent.com>
97769
97770         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97771         The body, by Paul Eggert, was moved here from configure.in.
97772         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97773
97774 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97775
97776         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97777         (jm_PREREQ): Use it.
97778
97779 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97780
97781         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97782         Use ssize_t, not int, to store result of readlink.
97783         Check for ssize_t overflow as well as size_t overflow,
97784         as POSIX says the result of readlink is implementation-defined
97785         when ssize_t overflows.
97786         Remove unnecessary cast to char*.
97787         Use free+malloc instead of realloc, as the storage doesn't need
97788         to be preserved and it's clearer and can be more efficient that way.
97789         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97790         * lib/xreadlink.h (xreadlink): Update prototype.
97791
97792 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97793
97794         * lib/xgetcwd.c: Revert some of the previous change; intead,
97795         fix the HAVE_GETCWD_NULL code to behave more like the
97796         !HAVE_GETCWD_NULL code used to.
97797
97798         Include "xalloc.h".
97799         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97800         invoke xalloc_die.
97801
97802 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97803
97804         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97805         sys/param.h, as pathmax.h includes them.
97806
97807 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97808
97809         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97810         (jm_PREREQ_XGETCWD): New macro.
97811
97812         * m4/getcwd.m4: New file.
97813
97814 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97815
97816         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97817         like the HAVE_GETCWD_NULL code.
97818         Include pathmax.h if not HAVE_GETCWD.
97819         Do not include xalloc.h.
97820         (INITIAL_BUFFER_SIZE): New symbol.
97821         Do not use xmalloc / xrealloc, since the caller is responsible for
97822         handling errors.  Preserve errno around `free' during failure.
97823         Do not overrun buffer when using getwd.
97824
97825 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97826
97827         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97828         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97829         getcwd (NULL, 0).
97830
97831 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97832
97833         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97834         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97835         spotted by Jim Meyering.
97836
97837 2001-09-03  Jim Meyering  <meyering@lucent.com>
97838
97839         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97840         failure.
97841
97842 2001-09-02  Jim Meyering  <meyering@lucent.com>
97843
97844         * lib/error.c: Update from GNU libc.
97845
97846 2001-09-01  Jim Meyering  <meyering@lucent.com>
97847
97848         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97849         Used by df.
97850
97851 2001-09-01  Jim Meyering  <meyering@lucent.com>
97852
97853         * lib/xreadlink.c: New file.
97854         * lib/xreadlink.h: New file.
97855         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97856         xreadlink.h.
97857
97858         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97859         doesn't conflict with sparc Solaris 7's definition in
97860         /usr/include/sys/int_types.h.
97861
97862         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97863         files.
97864         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97865         and strncasecmp as r-values.  Unixware didn't have declarations.
97866
97867 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97868
97869         * lib/xstrtol.h: Add copyright notice.
97870         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97871         LONGINT_INVALID_SUFFIX_CHAR.
97872
97873 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97874
97875         * lib/xstrtol.c (strtoimax): New decl.
97876
97877 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97878
97879         * lib/xgetcwd.c: Don't include pathmax.h.
97880         Include stdlib.h and unistd.h if available.
97881         Include xalloc.h.
97882         (xmalloc, xstrdup, free): Remove decls.
97883         (xgetcwd): Don't assume sizes fit in unsigned.
97884         Check for overflow when computing sizes.
97885         Simplify reallocation code.
97886
97887 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97888
97889         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97890         a directory's st_size can have an arbitrary value, so the old
97891         usage could waste an arbitrary amount of memory.  All uses
97892         changed.
97893         * lib/savedir.h: Update prototype.
97894
97895 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97896
97897         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97898
97899         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97900         old strtoimax.c.
97901
97902         Also, make the following further changes to make this file's
97903         configuration more similar to that of strtol.c:
97904         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97905         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97906         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97907         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97908         changed to signed values.
97909
97910         And make the following changes as well:
97911         Fix copyright notice, as 1999 was missing.
97912         (verify): New macro.
97913         (strtoimax): Check sizes at compile-time, not run-time.
97914         Prefer strtol to strtoll if both work.
97915         (main): Remove; it was not that useful and was a pain to maintain.
97916
97917         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97918
97919 2001-08-31  Jim Meyering  <meyering@lucent.com>
97920
97921         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97922         Use an initial, malloc'd, buffer of length 128 rather than
97923         a statically allocated one of length 1024.
97924
97925 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97926
97927         Simplify code, partly by assuming autoconf 2.52 semantics.
97928
97929         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97930
97931         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97932         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97933         All uses removed.
97934         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97935         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97936         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97937         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97938         jm_AC_HEADER_INTTYPES_H.
97939         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97940
97941         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97942
97943         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97944         Quote first arg of AC_DEFUN.
97945         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97946         since they are needed to parse the include file even if we need
97947         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97948         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97949         but with opposite signedness.
97950
97951 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97952
97953         Merge 'exclude' changes from tar 1.13.22.
97954         This fixes one or two unlikely storage allocation overflow bugs,
97955         but doesn't change user-visible behavior otherwise.
97956
97957 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97958
97959         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97960         (jm_PREREQ_EXCLUDE): New macro.
97961
97962 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97963
97964         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97965         tm to be declared.
97966
97967 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97968
97969         * lib/hash.c: Remove '2001' from copyright notice.
97970
97971 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97972
97973         * lib/full-write.h: New file.
97974         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97975         * lib/full-write.c: Correct credits, as cccp.c no longer
97976         exists and anyway it was so heavily changed from the old cccp
97977         code as to be unrecognizable.  Include full-write.h.
97978         (full_write): Return size_t, with short writes meaning failure.
97979         All callers changed.  This fixes a bug with large buffers
97980         on 64-bit hosts.
97981         * lib/utime.c: Include full-write.h.
97982
97983 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97984
97985         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97986         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97987         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97988         Include if available.
97989         (<xalloc.h>): Include
97990         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97991         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97992         collide with FNM macros.
97993         (struct patopts): New struct.
97994         (struct exclude): Use it, as exclude patterns now come with options.
97995         (new_exclude): Support above changes.
97996         (new_exclude, add_exclude_file):
97997         Initial size must now be a power of two to simplify overflow checking.
97998         (free_exclude, fnmatch_no_wildcards): New function.
97999         (excluded_filename): No longer requires options arg, as the options
98000         are determined by add_exclude.  Now returns bool, not int.
98001         (excluded_filename, add_exclude):
98002         Add support for the fancy new exclusion options.
98003         (add_exclude, add_exclude_file): Now takes int options arg.
98004         Check for arithmetic overflow when computing sizes.
98005         (add_exclude_file): xrealloc might modify errno, so don't
98006         realloc until after errno might be used.
98007
98008         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
98009         New macros.
98010         (free_exclude): New decl.
98011         (add_exclude, add_exclude_file): Now takes int options arg.
98012         (excluded_filename): No longer requires options arg, as the options
98013         are determined by add_exclude.  Now returns bool, not int.
98014
98015 2001-08-30  Paul Eggert  <eggert@twinsun.com>
98016
98017         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
98018
98019 2001-08-27  Jim Meyering  <meyering@lucent.com>
98020
98021         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
98022
98023         * lib/version-etc.c (N_): Remove definition.
98024         Revert most of last change.
98025         Instead, simply don't mark the `Copyright...' string for translation.
98026         Based on advice from Paul Eggert.
98027
98028         * lib/strtoxmax.c: Tweak comment.
98029
98030 2001-08-26  Jim Meyering  <meyering@lucent.com>
98031
98032         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
98033
98034         * m4/xstrtoimax.m4: New file.
98035         * m4/xstrtoumax.m4: Add comments explaining why we
98036         AC_REPLACE_FUNCS(strtol).
98037
98038 2001-08-26  Jim Meyering  <meyering@lucent.com>
98039
98040         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
98041         of copyright with `%s' so translators don't get an untranslated
98042         message in 2002.
98043         (COPYRIGHT_YEAR): Define.
98044         (version_etc): Use fprintf rather than fputs.
98045         Suggestion from Ulrich Drepper.
98046
98047         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
98048
98049         * lib/strtoll.c: New file, from GNU libc.
98050         * lib/xstrtoimax.c: New file.
98051
98052         * lib/xstrtol.h: Add xstrtoimax.
98053         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
98054         * lib/strtoimax.c: New file.  Likewise, but first define
98055         STRTOUXMAX_SIGNED.
98056
98057         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
98058         ...
98059         * lib/strtoxmax.c: ... then renamed to this.
98060
98061 2001-08-18  Paul Eggert  <eggert@twinsun.com>
98062
98063         * m4/inttypes.m4: Add AC_PREREQ(2.13).
98064         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
98065         (jm_AC_TYPE_INTMAX_T): New macro.
98066         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
98067
98068         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
98069
98070         * m4/longlong.m4: Renamed from ulonglong.m4.
98071         * m4/inttypes.m4: Renamed from inttypes_h.m4.
98072         * m4/uintmax_t.m4: Removed.
98073
98074 2001-08-13  Paul Eggert  <eggert@twinsun.com>
98075
98076         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
98077         Port to Solaris 8, where 'sed' requires a space after the 'r'
98078         command, and where sh dislikes "$/".  Clean up the spacing a bit.
98079         Redirect output to $tmp just once.
98080
98081 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
98082
98083         * lib/addext.c (<errno.h>): Include.
98084         (errno): Declare if not defined.
98085         (addext): Work correctly when pathconf returns -1 and leaves
98086         errno alone because there is no limit.  Also, work even if
98087         pathconf returns a value greater than SIZE_MAX.
98088
98089 2001-08-12  Jim Meyering  <meyering@lucent.com>
98090
98091         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
98092         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
98093         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
98094         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
98095         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
98096         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
98097         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
98098         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
98099         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
98100         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
98101         utime.m4, utimes.m4, xstrtoumax.m4:
98102         Quote the first argument in each use of AC_DEFUN.
98103
98104 2001-08-12  Jim Meyering  <meyering@lucent.com>
98105
98106         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
98107         Simply `return getcwd (NULL, 0);'.
98108         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
98109         Use 1300 as initial value for length, not PATH_MAX.
98110
98111         * lib/pathmax.h: Clean up cpp syntax.
98112
98113 2001-08-12  Jim Meyering  <meyering@lucent.com>
98114
98115         * lib/gettimeofday.c: New file.
98116         * lib/gtod.h: New file.
98117         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
98118
98119 2001-08-05  Jim Meyering  <meyering@lucent.com>
98120
98121         * m4/jm-macros.m4: Require autoconf-2.52.
98122
98123 2001-08-04  Jim Meyering  <meyering@lucent.com>
98124
98125         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
98126         stmt, to get in sync with glibc.
98127
98128 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98129
98130         The following changes are from gettext 0.10.39 as maintained by
98131         Bruno Haible.
98132
98133         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
98134         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
98135         with inverted sense.  All uses changed.
98136
98137         * lib/mbswidth.c: Don't include <limits.h>.
98138         Include <stdlib.h> and <string.h> unconditionally.
98139         (iswcntrl, mbsinit, ISCNTRL): New macros.
98140         (mbsnwidth): Use K&R style function declarations.
98141         Don't bother checking for MB_LEN_MAX == 1, since the compiler
98142         can optimize it when MB_CUR_MAX == 1.
98143         The width of control characters is zero, not 1.
98144
98145 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98146
98147         The following changes are from gettext 0.10.39 as maintained by
98148         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98149
98150         * m4/codeset.m4: Upgrade to serial AM1.
98151         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98152         all uses changed.  Quote first arg of AC_DEFUN.
98153         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98154
98155         * m4/iconv.m4: Upgrade to serial AM2.
98156         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98157         Add --with-libconv-prefix.
98158         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98159         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98160         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98161         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98162         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98163
98164         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98165         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98166         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98167         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98168         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98169         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98170         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98171         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98172         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98173
98174         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98175         string.h any more.
98176
98177         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98178         not the default value.
98179
98180         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98181         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98182         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98183         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98184         Also check for iswcntrl, used for wcwidth fallback.
98185         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98186         to Autoconf 2.13.
98187
98188 2001-08-03  Jim Meyering  <meyering@lucent.com>
98189
98190         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98191         as it was in the original.  Reported by Paul Eggert.
98192
98193 2001-07-16  Jim Meyering  <meyering@lucent.com>
98194
98195         * m4/gettimeofday.m4: New file.
98196         Prompted by a report from Bernhard Baehr.
98197
98198 2001-07-15  Jim Meyering  <meyering@lucent.com>
98199
98200         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98201         stuff. Now it's in ../Makefile.cfg.
98202
98203 2001-07-15  Jim Meyering  <meyering@lucent.com>
98204
98205         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98206         (BUILT_SOURCES): Add unlocked-io.h.
98207         (io_functions): Define.
98208         (unlocked-io.h): New rule.
98209         (DISTCLEANFILES): Add unlocked-io.h.
98210         (all-local): Depend on unlocked-io.h, to ensure it is created.
98211
98212         * lib/unlocked-io.hin: New file
98213
98214         * lib/regex.c: Update from glibc.
98215
98216 2001-07-05  Jim Meyering  <meyering@lucent.com>
98217
98218         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98219         recommendation.
98220         (libfetish_a_SOURCES): Put all .h files here instead.
98221         Remove a thus-exposed (better checks in automake) duplicate and
98222         two unnecessary .h files.
98223
98224 2001-07-04  Jim Meyering  <meyering@lucent.com>
98225
98226         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98227         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98228         distcheck failure.
98229
98230 2001-07-02  Jim Meyering  <meyering@lucent.com>
98231
98232         The following changes were prompted by suggestions from Bruno Haible.
98233
98234         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98235         is now generated.
98236         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98237         definition of EXTRA_DIST.
98238         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98239         ensure that the generated file is created/updated whenever the list
98240         of $(unlocked_functions) is changed.
98241         (jm-glibc-io.m4): New rule.
98242         (unlocked-io.h): New rule -- currently unused.
98243
98244 2001-06-24  Jim Meyering  <meyering@lucent.com>
98245
98246         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98247         unmatched right bracket, rather than kludging it with an extra,
98248         falsely-matching quote in a comment.  Patch by Akim Demaille.
98249
98250 2001-06-11  Jim Meyering  <meyering@lucent.com>
98251
98252         * lib/regex.c: Update from GNU libc.
98253
98254 2001-05-27  Jim Meyering  <meyering@lucent.com>
98255
98256         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98257         Check for ut_type in struct utmp.
98258
98259 2001-05-27  Jim Meyering  <meyering@lucent.com>
98260
98261         * lib/readutmp.h (UT_TYPE): Define.
98262
98263 2001-05-24  Jim Meyering  <meyering@lucent.com>
98264
98265         * lib/argmatch.c: Include "quote.h".
98266         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98267         quote function.  Reported by Göran Uddeborg.
98268
98269 2001-05-22  Jim Meyering  <meyering@lucent.com>
98270
98271         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98272         now that we use the package-supplied version unconditionally.
98273         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98274
98275 2001-05-21  Jim Meyering  <meyering@lucent.com>
98276
98277         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98278         shell syntax errors.
98279
98280 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98281
98282         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98283
98284 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98285
98286         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98287         Don't bother to check library strftime, since
98288         we'll be using our own my_strftime function anyway.
98289         Define my_strftime instead of strftime.
98290
98291 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98292
98293         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98294         which is not yet declared.
98295
98296 2001-05-15  Jim Meyering  <meyering@lucent.com>
98297
98298         * m4/regex.m4: Use proper quoting so brackets appear in the test
98299         program.
98300         Reported by, and with help from, Bruno Haible.
98301
98302 2001-05-13  Jim Meyering  <meyering@lucent.com>
98303
98304         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98305         undefined.
98306
98307 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98308
98309         dirname code cleanup.  base_name now behaves more compatibly
98310         with POSIX basename when given file names that have trailing
98311         slashes, and similarly for dir_name.  Add new primitives
98312         base_len and dir_len.  Put the directory-name-related decls
98313         into dirname.h.
98314
98315         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98316         * lib/backupfile.c (base_name): Likewise.
98317         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98318         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98319         * lib/makepath.c (strip_trailing_slashes): Likewise.
98320         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98321         ISSLASH): Likewise.
98322         * lib/rename.c (strip_trailing_slashes): Likewise.
98323         * lib/same.c (base_name): Likewise.
98324         * lib/stripslash.c (ISSLASH): Likewise.
98325
98326         * lib/addext.c: Include <dirname.h> after size_t is defined.
98327         * lib/backupfile.c: Likewise.
98328
98329         * lib/addext.c (addext): Use base_len to trim redundant
98330         trailing slashes instead of doing it ourselves.
98331         But do not trim the last slash if it is not redundant.
98332
98333         * lib/backupfile.c (find_backup_file_name,
98334         max_backup_version): Use base_len instead of rolling it ourselves.
98335         Handle the case of "" and (on DOS) "C:" correctly.
98336
98337         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98338         needed. Include <string.h>, <dirname.h>.
98339         (base_name): Allow file names ending in slashes, other than names
98340         that are all slashes.  In this case, return the basename followed
98341         by the slashes.  This is more general, and can be used in places
98342         where the original base_name purposely had an assertion failure.
98343         (base_len): New function.
98344
98345         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98346         Do not include <assert.h>; no longer needed.
98347         Include xalloc.h.
98348         (memrchr): Remove decl.
98349         (dir_name_r): Remove.
98350         (dir_len): Renamed from dirlen.  All callers changed.
98351         Rewrite in terms of base_name, for simplicity and consistency.
98352         (dir_name): Never return NULL.  All callers changed.
98353         Do not include <stdlib.h> in test program; no longer needed.
98354         return 0; is fine for test program.
98355
98356         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98357         New macros.
98358         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98359
98360         * lib/path-concat.c (path_concat): Use base_len to compute
98361         base length, not strlen; this means we cannot rely on memcpy
98362         to null-terminate.
98363
98364         * lib/same.c (STREQ): Remove.
98365         (same_name): Handle the case where the basename ends in trailing '/'.
98366
98367         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98368         a slash was stripped.  Do not strip the last slash after a
98369         file system prefix.
98370
98371 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98372
98373         * lib/Makefile.am (libfetish_a_SOURCES):
98374         Add strftime.c, since we now compile it on all hosts.
98375
98376         * lib/strftime.c (my_strftime):
98377         Define to nstrftime if emacs, but only if my_strftime is not defined.
98378         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98379         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98380         Add one more extra argument: a nanoseconds value.
98381         All uses changed.
98382         (ns): New macro.
98383         (my_strftime function): Add %N format.
98384         (emacs_strftimeu): Renamed from emacs_strftime,
98385         with extra ut argument.
98386
98387 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98388
98389         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98390
98391 2001-04-21  Jim Meyering  <meyering@lucent.com>
98392
98393         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98394         doesn't interfere.
98395
98396 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98397
98398         * m4/ftruncate.m4: Check for chsize.
98399         Link with ftruncate.o unconditionally if ftruncate is missing.
98400         This was required when cross-compiling to i586-mingw32msvc.
98401
98402 2001-04-08  Jim Meyering  <meyering@lucent.com>
98403
98404         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98405         recomputed; that's necessary when the offset spans a DST transition.
98406         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98407
98408 2001-04-02  Jim Meyering  <meyering@lucent.com>
98409
98410         * lib/regex.h, regex.c: Update from GNU libc.
98411
98412 2001-03-24  Jim Meyering  <meyering@lucent.com>
98413
98414         * m4/jm-macros.m4: Require autoconf-2.49d.
98415
98416 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98417
98418         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98419
98420 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98421
98422         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98423
98424 2001-03-17  Jim Meyering  <meyering@lucent.com>
98425
98426         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98427         now that the version in autoconf is equivalent.
98428         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98429
98430         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98431         Suggestion from Akim Demaille.
98432
98433         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98434         (jm_PREREQ_TEMPNAME): New function.
98435
98436 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98437
98438         * lib/tempname.c (uint64_t): Define to uintmax_t if
98439         not defined, and if UINT64_MAX is not defined.
98440         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98441         Reported by John David Anglin.
98442
98443 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98444
98445         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98446         resolve alias if codeset is empty.
98447         * lib/config.charset (BeOS): Use wildcard syntax.
98448
98449 2001-03-13  Jim Meyering  <meyering@lucent.com>
98450
98451         * lib/path-concat.c (path_concat)
98452         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98453         concatenating e.g., `C:' and `foo'.
98454         From Bruno Haible.
98455
98456 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98457
98458         * lib/localcharset.c (locale_charset): Don't use
98459         setlocale(LC_CTYPE,NULL). Don't return NULL.
98460         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98461
98462 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98463
98464         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98465         support for DOS/DJGPP.
98466
98467 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98468
98469         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98470         lacks mkstemp.  Compile our own tempname.c if we compile our own
98471         mkstemp.c, as mkstemp relies on tempname.
98472
98473 2001-03-01  Jim Meyering  <meyering@lucent.com>
98474
98475         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98476         AH_VERBATIM really does output its argument verbatim.
98477
98478 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98479
98480         * lib/Makefile.am (libfetish_a_SOURCES):
98481         Add dup-safer.c, fopen-safer.c.
98482         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98483
98484         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98485         * lib/unistd-safer.h: New files.
98486
98487 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98488
98489         The mkstemp replacement is taken from glibc 2.2.2, with some
98490         portability fixes for use outside glibc, as follows:
98491
98492         * lib/tempname.c (struct_stat64): New macro.
98493         (direxists, __gen_tempname): Use it.
98494         This avoids a portability problem with Solaris 8.
98495
98496         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98497         (<stddef.h>, <stdint.h>, <string.h>):
98498         Include only if STDC_HEADERS || _LIBC.
98499         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98500         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98501         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98502         (__set_errno): Define this macro if <errno.h> doesn't.
98503         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98504         Define these macros if <stdio.h> doesn't.
98505         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98506         Define these macros if <sys/stat.h>
98507         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98508         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98509         __xstat64): Define if not _LIBC.
98510         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98511         (__gen_tempname): Invoke gettimeofday only if
98512         HAVE_GETTIMEOFDAY || _LIBC;
98513         otherwise, fall back on plain "time".
98514         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98515
98516         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98517
98518         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98519
98520 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98521
98522         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98523
98524 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98525
98526         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98527         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98528         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98529         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98530
98531 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98532
98533         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98534         Remove workaround macros for hosts that have mbrtowc but not
98535         mbstate_t, as we now insist on proper declarations for both
98536         before using mbrtowc.
98537
98538 2001-02-17  Jim Meyering  <meyering@lucent.com>
98539
98540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98541         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98542         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98543         UnixWare 7.1.1.
98544
98545         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98546         rather than AC_CACHE_VAL.
98547
98548 2001-02-17  Jim Meyering  <meyering@lucent.com>
98549
98550         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98551         around included file name.
98552
98553         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98554
98555         * lib/strftime.c: Update from GNU libc (the only changes were to
98556         comments).
98557
98558 2001-02-17  Jim Meyering  <meyering@lucent.com>
98559
98560         * lib/regex.c: Update from libc.
98561
98562 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98563
98564         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98565         clash.
98566
98567 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98568
98569         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98570         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98571         Reported by Mark Hounschell via Paul Eggert.
98572
98573 2001-02-07  Jim Meyering  <meyering@lucent.com>
98574
98575         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98576
98577 2001-02-05  Jim Meyering  <meyering@lucent.com>
98578
98579         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98580         it includes the patch required for `large file' support with at least
98581         HP-UX's 10.20 /bin/cc.
98582
98583 2001-02-03  Jim Meyering  <meyering@lucent.com>
98584
98585         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98586         AS_IF, now that it works once again (mysteriously).
98587         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98588
98589 2001-01-30  Jim Meyering  <meyering@lucent.com>
98590
98591         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98592         * m4/chown.m4: Rename conftestchown to conftest.chown.
98593         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98594         s/conftestdir2/conftest.d2/.
98595         * m4/utimes.m4: s/conftestdata/conftest.data/
98596         Inspired by Pavel Roskin's change in autoconf.
98597
98598 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98599
98600         * lib/config.charset: Update for FreeBSD 4.2.
98601
98602 2001-01-27  Jim Meyering  <meyering@lucent.com>
98603
98604         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98605         a use of AS_IF.
98606         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98607
98608 2001-01-26  Jim Meyering  <meyering@lucent.com>
98609
98610         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98611         quotearg.c includes it.
98612
98613 2001-01-26  Jim Meyering  <meyering@lucent.com>
98614
98615         * lib/quotearg.c: Include stddef.h.
98616         * lib/quote.c: Include stddef.h.
98617         Reported by Axel Kittenberger.
98618
98619         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98620         line in double quotes so that it evokes a better diagnostic.
98621         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98622         Reported by Axel Kittenberger.
98623
98624 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98625
98626         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98627         as if it was a `charset'.
98628
98629 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98630
98631         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98632         has const.
98633
98634 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98635
98636         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98637         to avoid a warning.  Add back 'const' to inptr.
98638
98639 2001-01-20  Jim Meyering  <meyering@lucent.com>
98640
98641         Be sure that headers are checked before used in code compiled
98642         for the type checks.
98643         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98644         In place of that, invoke jm_CHECK_ALL_TYPES.
98645         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98646         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98647         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98648         The check for ssize_t was mistakenly run before the test for unistd.h.
98649
98650         The configure-time check for stdbool.h was missing.
98651         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98652         (jm_PREREQ_HASH): New function.
98653
98654 2001-01-17  Jim Meyering  <meyering@lucent.com>
98655
98656         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98657         for autoconf-2.49c.
98658         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98659
98660 2001-01-16  Jim Meyering  <meyering@lucent.com>
98661
98662         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98663         From Bruno Haible.
98664
98665 2001-01-14  Jim Meyering  <meyering@lucent.com>
98666
98667         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98668         foo and bar.  Create conftestdir/ in the script, not in the C code.
98669         Remove directories in the script, not in the C code.
98670         Remove conftestdir{,2} before trying to create the directory.
98671         Make the entire configure script fail if the mkdir fails.
98672
98673 2001-01-14  Jim Meyering  <meyering@lucent.com>
98674
98675         * lib/rename.c: New file.  From Volker Borchert.
98676         Include stdlib.h, string.h or strings.h, and xalloc.h.
98677         Use strip_trailing_slashes rather than open-coding it.
98678
98679 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98680
98681         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98682
98683 2001-01-03  Jim Meyering  <meyering@lucent.com>
98684
98685         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98686         of local `inptr' to avoid warning with some system declarations of
98687         iconv.
98688
98689 2001-01-02  Volker Borchert  <bt@teknon.de>
98690
98691         * m4/rename.m4: New file.
98692         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98693
98694 2001-01-01  Jim Meyering  <meyering@lucent.com>
98695
98696         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98697         even on systems with utmpx.h.  It's necessary for the declaration of
98698         utmp's ut_user member.  Reported by Andreas Jaeger.
98699
98700         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98701         available. They are required for the declarations of getgrgid and
98702         getpwuid resp.
98703         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98704         Reported by Andreas Jaeger.
98705
98706 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98707
98708         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98709         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98710         so `make install' also works in VPATH builds.
98711
98712 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98713
98714         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98715         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98716         can be used in subdirectories.
98717
98718 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98719
98720         * lib/modechange.c: Do not assume that mode_t uses the
98721         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98722         the other-execute bit of FOO even if S_IXOTH != 1.
98723
98724         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98725         WOTH, XOTH, ALLM): New macros.
98726         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98727          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98728         Use them.
98729         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98730         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98731         (mode_compile):
98732         No need to use uintmax_t; unsigned long is long enough.
98733         Don't bother to get suffix since we don't use it.
98734
98735 2000-12-26  Jim Meyering  <meyering@lucent.com>
98736
98737         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98738         better with autoheader.
98739
98740 2000-12-24  Jim Meyering  <meyering@lucent.com>
98741
98742         * lib/hash.c (is_prime): Return explicit boolean values.
98743         (hash_get_first): Return NULL to appease Irix5.6's 89.
98744         Reported by Nelson Beebe.
98745
98746 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98747
98748         * lib/localcharset.c (locale_charset): Add support for Win32.
98749
98750 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98751
98752         * lib/physmem.h, lib/physmem.c: New files.
98753
98754         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98755         (noinst_HEADERS): Add physmem.h.
98756
98757         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98758         't' for compatibility with Solaris 8 sort.
98759
98760 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98761
98762         * lib/config.charset: Add support for BeOS.
98763
98764 2000-12-17  Jim Meyering  <meyering@lucent.com>
98765
98766         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98767         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98768
98769 2000-12-16  Jim Meyering  <meyering@lucent.com>
98770
98771         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98772         N and M) would have treated it like `chown N:N FILE'.
98773
98774         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98775
98776 2000-12-16  Jim Meyering  <meyering@lucent.com>
98777
98778         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98779         SHELLS_FILE to a file name that's useful on djgpp systems.
98780         Include stdlib.h.
98781         (ADDITIONAL_DEFAULT_SHELLS): Define.
98782         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98783         Based mostly on a patch from Prashant TR.
98784
98785 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98786
98787         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98788         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98789         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98790
98791 2000-12-08  Andreas Schwab  <schwab@suse.de>
98792
98793         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98794         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98795
98796 2000-12-07  Jim Meyering  <meyering@lucent.com>
98797
98798         * lib/stripslash.c (ISSLASH): Define.
98799         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98800         `/'.
98801         From Prashant TR.
98802
98803         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98804         (dir_name_r): Declare this function as static.
98805         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98806         manifest itself on a name containing a mix of slashes and
98807         backslashes.
98808         Make this function work with names starting with a DOS-style
98809         drive letter and colon prefix.
98810         (dir_name): Append `.' if necessary.
98811         Based mostly on patches from Prashant TR and Eli Zaretskii.
98812
98813         * lib/dirname.h (dir_name_r): Remove prototype.
98814
98815 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98816
98817         * m4/off_t-format.m4: Remove this file.
98818         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98819
98820 2000-12-06  Jim Meyering  <meyering@lucent.com>
98821
98822         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98823         replacement strtoull, we may well need the replacement strtoul, too.
98824         Check for declarations of strtoul and strtoull.
98825         Check for strtol.  Mainly as a cue to cause automake to include
98826         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98827         Check for limits.h -- strtol.c needs it.
98828
98829 2000-12-05  Jim Meyering  <meyering@lucent.com>
98830
98831         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98832
98833 2000-12-04  Jim Meyering  <meyering@lucent.com>
98834
98835         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98836         Also include memory.h, stdlib.h, unistd.h if appropriate.
98837         Reported by Andreas Jaeger (conflicting declaration of malloc).
98838
98839 2000-12-02  Jim Meyering  <meyering@lucent.com>
98840
98841         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98842         * m4/jm-macros.m4 (jm_MACROS): require it.
98843
98844 2000-12-02  Jim Meyering  <meyering@lucent.com>
98845
98846         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98847
98848 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98849
98850         * lib/memrchr.c: Include <config.h> before any system include file.
98851
98852 2000-11-30  Jim Meyering  <meyering@lucent.com>
98853
98854         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98855
98856 2000-11-30  Jim Meyering  <meyering@lucent.com>
98857
98858         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98859
98860 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98861
98862         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98863
98864 2000-11-26  Jim Meyering  <meyering@lucent.com>
98865
98866         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98867
98868 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98869
98870         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98871         size of (size_t) -1; it's not portable.
98872
98873 2000-11-17  Jim Meyering  <meyering@lucent.com>
98874
98875         * lib/strstr.c: Update from GNU libc.
98876
98877 2000-11-17  Akim Demaille  <akim@epita.fr>
98878
98879         * lib/obstack.h: Formatting changes.
98880         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98881         prevent type checking.
98882         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98883         cast the value to (void *): assigning a `foo *' to a `void *'
98884         variable is valid.
98885         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98886
98887 2000-11-16  Jim Meyering  <meyering@lucent.com>
98888
98889         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98890
98891 2000-11-11  Jim Meyering  <meyering@lucent.com>
98892
98893         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98894
98895 2000-11-10  Jim Meyering  <meyering@lucent.com>
98896
98897         * lib/obstack.h: Update from GNU libc.
98898         * lib/obstack.c: Likewise.
98899
98900 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98901
98902         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98903
98904 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98905
98906         * lib/getusershell.c (setusershell): Use rewind rather than
98907         fseek/fseeko, to avoid configuration hassles with fseeko.
98908         Don't bother opening SHELLS_FILE if shellstream is NULL;
98909         it's not necessary.
98910
98911 2000-11-05  Jim Meyering  <meyering@lucent.com>
98912
98913         * lib/makepath.h (make_dir): Declare.
98914         * lib/makepath.c (make_dir): Remove `static' attribute.
98915         Tweak a comment.
98916
98917 2000-11-04  Jim Meyering  <meyering@lucent.com>
98918
98919         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98920
98921 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98922
98923         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98924         last one in a bucket, advance to the next bucket.
98925
98926 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98927
98928         * lib/fnmatch.c: Do not comment out all the code if we are using
98929         the GNU C library, because in some cases we are replacing buggy
98930         code in the GNU C library itself.
98931
98932 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98933
98934         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98935         (regex_compile): Catch bogus \(\1\).
98936
98937 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98938
98939         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98940         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98941         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98942
98943 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98944
98945         * lib/error.h, getline.h, modechange.h:
98946         Remove "2000" from Copyright line, as the file hasn't been
98947         changed this year other than in the copyright notice.
98948
98949         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98950         was changed this year.
98951
98952 2000-10-29  Jim Meyering  <meyering@lucent.com>
98953
98954         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98955         renaming.
98956         * m4/ls-mntd-fs.m4: Likewise
98957
98958 2000-10-29  Jim Meyering  <meyering@lucent.com>
98959
98960         * lib/xstat.in: Fix grammar in comment.
98961
98962 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98963
98964         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98965         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98966         doesn't define __restrict_arr.
98967
98968 2000-10-28  Jim Meyering  <meyering@lucent.com>
98969
98970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98971         (jm_PREREQ_MEMCHR): New function.
98972
98973 2000-10-28  Jim Meyering  <meyering@lucent.com>
98974
98975         * lib/memchr.c: Update from libc.
98976         Adjust for portability:
98977         [HAVE_STDLIB_H]: Include stdlib.h.
98978         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98979         Undef __memchr, too.
98980         [!weak_alias]: Define __memchr to memchr.
98981
98982         * lib/regex.c: Update from libc.
98983         * lib/regex.h: Likewise.
98984         * lib/getopt1.c: Likewise.
98985         * lib/memcmp.c: Likewise.
98986
98987         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98988         Avoid using fseek, when possible -- it's broken by design.
98989         Patch by Ulrich Drepper.
98990
98991 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98992
98993         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98994         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98995         Giving in to popular pressure to shut up the compiler with casts.
98996
98997 2000-10-26  Jim Meyering  <meyering@lucent.com>
98998
98999         * lib/strftime.c: Update from libc.
99000
99001 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
99002
99003         * regex.c: More `unsigned char' -> `re_char' changes.
99004         Also change several `int' into `re_wchar_t'.
99005         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
99006         (PUSH_FAILURE_POINTER): Don't cast any more.
99007         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
99008         We want GCC to complain, since this piece of code makes
99009         re_match non-reentrant, which *should* be fixed.
99010         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
99011         (EXTEND_BUFFER): Use RETALLOC.
99012         (SET_LIST_BIT): Don't cast.
99013         (re_wchar_t): New type.
99014         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
99015         that those two functions will always properly return.
99016         (IMMEDIATE_QUIT_CHECK): Cast to void.
99017         (analyse_first): Use recursion rather than an explicit stack.
99018         (re_compile_fastmap): Can't fail anymore.
99019         (re_search_2): Don't check re_compile_fastmap for failure.
99020         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
99021         Now also sets the new value (passed in a new argument).
99022         (re_match_2_internal): Use it.
99023         Also, use a new var `reg' of type size_t when looping through regs
99024         rather than reuse the inappropriate `mcnt'.
99025
99026 2000-10-25  Jim Meyering  <meyering@lucent.com>
99027
99028         * lib/obstack.c: Update from libc.
99029
99030 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
99031
99032         * regex.c (regex_compile): Change the way of handling a range from
99033         a char less than 256 to a char not less than 256.
99034
99035 2000-10-24  Andrew Innes  <andrewi@gnu.org>
99036
99037         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
99038         NT-Emacs only.
99039         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
99040         so that re_search functions only quit when callers expect them to.
99041
99042 2000-10-23  Jim Meyering  <meyering@lucent.com>
99043
99044         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
99045         wrong.  That set_locale call must not have any side effects.
99046         From Paul Eggert.
99047
99048 2000-10-22  Jim Meyering  <meyering@lucent.com>
99049
99050         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
99051         [CYCLIC]: Remove now-unused definition.
99052
99053         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
99054         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
99055         Suggestion from Ulrich Drepper.
99056
99057 2000-10-21  Jim Meyering  <meyering@lucent.com>
99058
99059         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
99060         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
99061         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
99062
99063 2000-10-21  Jim Meyering  <meyering@lucent.com>
99064
99065         * lib/dirname.c (memrchr): Declare if necessary.
99066         (dir_name): Remove the restriction that there be no
99067         trailing slashes.  Now, this code skips past them, effectively
99068         ignoring them.
99069         [TEST_DIRNAME] (main): New unit tests.
99070
99071         * lib/memrchr.c: New file from GNU libc.
99072         Undef __memrchr, too.
99073         [!weak_alias]: Define __memrchr to memrchr.
99074         Guard weak_alias use with `#ifdef weak_alias'.
99075
99076 2000-10-21  Jim Meyering  <meyering@lucent.com>
99077
99078         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
99079         (dir_name): Use dir_name_r.
99080         * lib/dirname.h (dir_name_r): Declare it.
99081
99082 2000-10-17  Jim Meyering  <meyering@lucent.com>
99083
99084         * lib/quote.h (PARAMS): Define and use.
99085         Reported by Akim Demaille.
99086
99087         * lib/getopt.c: Update from libc.
99088
99089 2000-10-16  Jim Meyering  <meyering@lucent.com>
99090
99091         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
99092         setlocale.
99093         From Jan Fedak.
99094
99095 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
99096
99097         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
99098
99099 2000-09-25  Jim Meyering  <meyering@lucent.com>
99100
99101         * lib/md5.h (rol): Define (from GnuPG).
99102
99103         * lib/sha.c: Give credit (GnuPG) where due.
99104         (M): Use rol rather than open-coding it.
99105         Add a FIXME comment.
99106
99107 2000-09-21  Jim Meyering  <meyering@lucent.com>
99108
99109         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
99110         Reported by Michael Stone.
99111
99112 2000-09-20  Jim Meyering  <meyering@lucent.com>
99113
99114         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
99115         (noinst_HEADERS): Add sha.h.
99116         Based on code from Scott G. Miller and from GnuPG.
99117
99118 2000-09-18  Jim Meyering  <meyering@lucent.com>
99119
99120         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
99121         LIBS. Otherwise, everyone ends up linking with -lelf for some
99122         configurations.
99123         Reported by Mike Stone.
99124
99125 2000-09-15  Jim Meyering  <meyering@lucent.com>
99126
99127         * lib/regex.c: Update from libc.
99128
99129 2000-09-10  Jim Meyering  <meyering@lucent.com>
99130
99131         * lib/getopt.c (_getopt_internal): Update from glibc.
99132
99133 2000-09-09  Jim Meyering  <meyering@lucent.com>
99134
99135         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
99136         think it should be used as a general replacement for isascii.
99137         * lib/fnmatch.c: Likewise.
99138         * lib/mbswidth.c: Likewise
99139         * lib/regex.c: Likewise.
99140
99141         Don't use atoi.
99142         * lib/userspec.c: Include sys/param.h and limits.h.
99143         Include xstrtol.h.
99144         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99145         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99146         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99147         UID, GID.  Check range.
99148
99149 2000-09-06  Jim Meyering  <meyering@lucent.com>
99150
99151         * lib/getopt.c (_getopt_internal): Update from glibc.
99152
99153 2000-08-30  Jim Meyering  <meyering@lucent.com>
99154
99155         * lib/strftime.c: Merge in changes from GNU libc.
99156
99157 2000-08-26  Jim Meyering  <meyering@lucent.com>
99158
99159         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99160         * m4/fpending.m4: New file.
99161
99162 2000-08-26  Jim Meyering  <meyering@lucent.com>
99163
99164         * lib/closeout.c: Include "__fpending.h".
99165         (close_stdout_status): Return right away if there's nothing to flush.
99166
99167         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99168         * lib/__fpending.c: New file.
99169         * lib/__fpending.h: New file.
99170
99171 2000-08-20  Jim Meyering  <meyering@lucent.com>
99172
99173         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99174         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99175         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99176
99177 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99178
99179         Improve fileutils installation on systems where running
99180         programs (like install) can't be unlinked.
99181         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99182         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99183
99184 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99185
99186         Standardize on "memory exhausted" instead of "Memory exhausted"
99187         or "virtual memory exhausted".
99188         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99189         "virtual memory exhausted".
99190         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99191         our own message.
99192         * lib/userspec.c (parse_user_spec): Likewise.
99193         * lib/bumpalloc.h: comment fix
99194         * lib/same.c, userspec.c: Include xalloc.h.
99195
99196         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99197         not char *const and pointing to a constant array.
99198         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99199         (xrealloc): Comment fix.
99200
99201         * lib/userspec.c (parse_user_spec):
99202         Don't translate a message until just before returning,
99203         to avoid unnecessary translation.
99204
99205 2000-08-07  Jim Meyering  <meyering@lucent.com>
99206
99207         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99208         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99209         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99210         getgroups.c, gethostname.c, getopt.h, group-member.c,
99211         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99212         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99213         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99214         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99215         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99216         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99217         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99218         yesno.c: Back out Copyright date changes for each file with no change
99219         this year.  This eases coordination with other programs using the same
99220         source code modules.  From Paul Eggert.
99221
99222 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99223
99224         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99225         not char, for compatibility with glibc 2.1.3 strftime.c.
99226
99227 2000-08-03  Greg McGary  <greg@mcgary.org>
99228
99229         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99230         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99231         (EXTEND_BUFFER): Use them.
99232
99233 2000-08-01  Jim Meyering  <meyering@lucent.com>
99234
99235         * lib/dirname.c (ISSLASH): Define.
99236         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99237         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99238         both `\' and `/' may be use as path separators.
99239         Based on a patch from Prashant TR.
99240
99241 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99242
99243         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99244         slot vector a constant, since it might get modified.
99245
99246 2000-07-31  Jim Meyering  <meyering@lucent.com>
99247
99248         * lib/xmalloc.c: Use `virtual memory exhausted', not
99249         `Memory exhausted'.
99250         * lib/obstack.c (print_and_abort): Likewise.
99251
99252 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99253
99254         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99255         buffer, so that the caller can always quote one small
99256         component of a "memory exhausted" message in slot 0.
99257         From a suggestion by Jim Meyering.
99258
99259 2000-07-30  Jim Meyering  <meyering@lucent.com>
99260
99261         * lib/makepath.c (make_path): Quote the other instance, too.
99262
99263         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99264         (STATIC_BUF_SIZE): Define.
99265         (quotearg_n_options): Use only statically allocated storage when
99266         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99267         than STATIC_BUF_SIZE.
99268
99269 2000-07-29  Jim Meyering  <meyering@lucent.com>
99270
99271         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99272         * lib/dirname.c (dir_name): Likewise.
99273
99274         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99275         `/'.
99276
99277         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99278         (dir_name): Assert that there are no trailing slashes.
99279
99280 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99281
99282         * lib/mbswidth.h (mbswidth): Add a flags argument.
99283         (mbswidth): New declaration.
99284         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99285         * lib/mbswidth.c (mbswidth): Add a flags argument.
99286         (mbsnwidth): New function.
99287
99288 2000-07-24  Jim Meyering  <meyering@lucent.com>
99289
99290         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99291
99292 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99293
99294         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99295
99296 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99297
99298         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99299         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99300         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99301         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99302         invoke multibyte primitives.
99303
99304 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99305
99306         * lib/quotearg.c:
99307         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99308         so that mbstate_t is always defined.
99309
99310         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99311         be 1 in at least one GCC installation, and this configuration
99312         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99313         performance on hosts that have mbrtowc but have only unibyte
99314         locales, but I assume these hosts are rare.
99315
99316 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99317
99318         * lib/mbswidth.c (_XOPEN_SOURCE):
99319         Don't define; this causes problems on Solaris 7.
99320         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99321
99322 2000-07-23  Jim Meyering  <meyering@lucent.com>
99323
99324         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99325         too: getgrgid, getpwuid, getuid.
99326
99327 2000-07-23  Jim Meyering  <meyering@lucent.com>
99328
99329         * lib/basename.c (base_name): Add an assertion.
99330
99331 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99332
99333         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99334         shadow its mbsinit function.
99335
99336 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99337
99338         * lib/mbswidth.h: New file.
99339         * lib/mbswidth.c: New file.
99340         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99341         (noinst_HEADERS): Add mbswidth.h.
99342
99343 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99344
99345         * lib/config.charset: Add support for FreeBSD. Improve support for
99346         HP-UX and IRIX 6.
99347
99348 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99349
99350         * m4/mbswidth.m4: New file.
99351         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99352
99353 2000-07-15  Jim Meyering  <meyering@lucent.com>
99354
99355         * lib/makepath.c: Include quote.h.
99356         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99357         corresponding argument in a `quote (...)' call.
99358         Give better diagnostics.
99359
99360         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99361         (noinst_HEADERS): Add quote.h.
99362
99363         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99364         from tar's src/misc.c.
99365         * lib/quote.h: New file.  Prototypes for same.
99366
99367 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99368
99369         From a suggestion by Bruno Haible.
99370         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99371         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99372         to decide whether to define the BeOS workaround macro;
99373         this adjusts to the change to AC_MBSTATE_T.
99374
99375 2000-07-14  Jim Meyering  <meyering@lucent.com>
99376
99377         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99378         jm_AC_TYPE_UINTMAX_T.
99379
99380 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99381
99382         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99383
99384         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99385         quotearg_buffer_restyled): Add support for
99386         clocale_quoting_style.  Undo previous change to
99387         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99388         and "{RIGHT QUOTATION MARK}" msgids.
99389
99390 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99391
99392         From a suggestion by Bruno Haible.
99393         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99394         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99395         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99396         and mbstate_t, to a single-part test that simply defines mbstate_t.
99397         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99398         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99399
99400 2000-07-10  Jim Meyering  <meyering@lucent.com>
99401
99402         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99403
99404         * m4/gnu-source.m4: Output to confdefs.h directly.
99405         Suggestion from Akim Demaille.
99406
99407 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99408
99409         The old behavior of quoting `like this' doesn't look good with
99410         newer, ISO-style fonts.  See:
99411         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99412
99413         Instead, quote "like this" by default.  Let the translator
99414         tailor the locale-specific quoting behavior by providing
99415         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99416
99417         * lib/quotearg.c (N_): New macro.
99418         (gettext_default): New function.
99419         (quotearg_buffer_restyled): Use
99420         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99421         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99422
99423 2000-07-09  Jim Meyering  <meyering@lucent.com>
99424
99425         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99426         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99427
99428         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99429         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99430
99431 2000-07-09  Jim Meyering  <meyering@lucent.com>
99432
99433         * lib/Most files: Update copyright dates to include 2000.
99434
99435 2000-07-08  Jim Meyering  <meyering@lucent.com>
99436
99437         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99438         if not defined.
99439         (xgethostname): Remove now-unnecessary #ifdef.
99440         Move declaration of `err' into loop where it's used.
99441
99442 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99443         and Bruno Haible  <haible@clisp.cons.org>
99444
99445         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99446         only if the test for an object-type mbstate_t fails.  This
99447         prevents us from mistakenly reporting that mbstate_t is a
99448         system object type after we "#define mbstate_t int" to work
99449         around its lack.
99450
99451 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99452         and Bruno Haible  <haible@clisp.cons.org>
99453
99454         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99455
99456 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99457
99458         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99459         to strerror_r.
99460         Include <ctype.h> for use of isalpha.
99461
99462 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99463
99464         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99465         by allocating a larger buffer. Test the gethostname return value for
99466         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99467         returns an error and ENAMETOOLONG isn't defined.
99468
99469 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99470
99471         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99472         dimension.
99473
99474 2000-07-04  Jim Meyering  <meyering@lucent.com>
99475
99476         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99477         of the deprecated AC_CHECKING.
99478
99479 2000-07-04  Jim Meyering  <meyering@lucent.com>
99480
99481         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99482         Reported by Bruno Haible.
99483
99484 2000-07-04  Jim Meyering  <meyering@lucent.com>
99485
99486         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99487         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99488         lacks mbrtowc.
99489
99490 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99491
99492         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99493         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99494
99495 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99496         and Bruno Haible  <haible@clisp.cons.org>
99497
99498         * lib/quotearg.c (mbrtowc):
99499         Assign to *pwc, and return 1 only if result is nonzero.
99500         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99501
99502 2000-07-03  Jim Meyering  <meyering@lucent.com>
99503
99504         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99505
99506 2000-07-03  Jim Meyering  <meyering@lucent.com>
99507
99508         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99509         This is necessary to get a definition of e.g., UTMP_FILE on
99510         HP-UX 10.20.
99511         From Bob Proulx.
99512
99513 2000-07-02  Jim Meyering  <meyering@lucent.com>
99514
99515         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99516
99517         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99518         AC_LIBOBJ(function_name).
99519         * m4/chown.m4: Likewise.
99520         * m4/fnmatch.m4: Likewise.
99521         * m4/ftruncate.m4: Likewise.
99522         * m4/getgroups.m4: Likewise.
99523         * m4/getline.m4: Likewise.
99524         * m4/group-member.m4: Likewise.
99525         * m4/jm-macros.m4: Likewise.
99526         * m4/lstat.m4: Likewise.
99527         * m4/malloc.m4: Likewise.
99528         * m4/memcmp.m4: Likewise.
99529         * m4/nanosleep.m4: Likewise.
99530         * m4/putenv.m4: Likewise.
99531         * m4/realloc.m4: Likewise.
99532         * m4/regex.m4: Likewise.
99533         * m4/stat.m4: Likewise.
99534         * m4/strftime.m4: Likewise.
99535
99536 2000-07-02  Jim Meyering  <meyering@lucent.com>
99537
99538         * lib/quotearg.c (mbstate_t): Don't define here.
99539
99540 2000-07-02  Jim Meyering  <meyering@lucent.com>
99541
99542         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99543
99544 2000-07-01  Jim Meyering  <meyering@lucent.com>
99545
99546         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99547
99548 2000-07-01  Jim Meyering  <meyering@lucent.com>
99549
99550         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99551         problem.
99552
99553 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99554
99555         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99556         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99557
99558 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99559
99560         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99561         per change in ../m4/ls-mntd-fs.m4.
99562         (read_filesystem_list): Ignore symbolic links.
99563
99564 2000-06-29  Jim Meyering  <meyering@lucent.com>
99565
99566         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99567         for declaration of strcmp.
99568
99569         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99570
99571         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99572         Avoid warning by casting result to `char *' to remove `const'.
99573
99574 2000-06-28  Jim Meyering  <meyering@lucent.com>
99575
99576         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99577         included by quotearg.c, for which we perform this test.  From
99578         Bruno Haible.
99579
99580 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99581
99582         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99583         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99584         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99585
99586 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99587
99588         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99589
99590 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99591
99592         savedir now sets errno on failure and invokes xmalloc to get memory.
99593         Fix a couple of other minor bugs while we're at it.
99594
99595         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99596         (NAMLEN): Remove macro.
99597         (malloc, realloc): Remove decls.
99598         (stpcpy): Likewise.
99599         ("xalloc.h"): Include.
99600         (NAME_SIZE_DEFAULT): New macro.
99601         (savedir): Use xmalloc / xrealloc to allocate memory.
99602         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99603         Skip "" directory entries.
99604         Use strlen to calculate directory entry length, since the old method
99605         is rarely used these days and isn't worth supporting.
99606         Don't use a pointer after freeing it.
99607         Check for integer overflow when calculating allocation size.
99608         Use memcpy to copy entries, instead of stpcpy.
99609         Set errno properly when returning NULL.
99610         Check for readdir error.
99611
99612 2000-06-26  Jim Meyering  <meyering@lucent.com>
99613
99614         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99615
99616 2000-06-25  Jim Meyering  <meyering@lucent.com>
99617
99618         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99619         Linux header bug when _XOPEN_SOURCE is defined to 500.
99620
99621 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99622
99623         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99624         deficiency.
99625
99626 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99627
99628         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99629         Include xalloc.h.
99630         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99631
99632 2000-06-24  Jim Meyering  <meyering@lucent.com>
99633
99634         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99635         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99636         for which strerror does return char*, but which lacks a conveniently
99637         accessible declaration of the function.  If the compile-test says
99638         strerror_r doesn't work, then resort to a `run'-test that works on
99639         BeOS and segfaults on DEC Unix.
99640
99641 2000-06-24  Jim Meyering  <meyering@lucent.com>
99642
99643         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99644
99645 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99646
99647         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99648         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99649
99650 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99651
99652         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99653         (mbrtowc, mbstate_t): Define substitutes if
99654         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99655         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99656         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99657
99658 2000-06-23  Jim Meyering  <meyering@lucent.com>
99659
99660         * m4/afs.m4: Add missing AC_MSG_RESULT.
99661         Reported by Bruno Haible.
99662
99663         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99664         Suggestion from Bruno Haible.
99665
99666 2000-06-23  Jim Meyering  <meyering@lucent.com>
99667
99668         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99669
99670 2000-06-21  Jim Meyering  <meyering@lucent.com>
99671
99672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99673
99674 2000-06-21  Jim Meyering  <meyering@lucent.com>
99675
99676         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99677         (noinst_HEADERS): Add getstr.h.
99678
99679         * lib/getline.c (getstr): Move into a separate file.
99680         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99681         the following changes: new parameter, delim2; both delim[12]
99682         parameters have type `int', not `char'.  The latter would lose
99683         with 8-bit delimiters.
99684         * lib/getstr.h: New file.
99685
99686 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99687
99688         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99689         than 1024, return a memory chunk of least possible size, instead
99690         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99691         Use free/xmalloc instead of xrealloc to avoid copying for very long
99692         paths.
99693
99694 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99695
99696         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99697         the empty string.
99698
99699 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99700
99701         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99702         address, not strdup.  Include <stdlib.h> and don't declare free().
99703
99704 2000-06-19  Jim Meyering  <meyering@lucent.com>
99705
99706         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99707
99708 2000-06-18  Jim Meyering  <meyering@lucent.com>
99709
99710         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99711
99712         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99713         `checking whether...' message to be consistent with that of the
99714         lstat test.
99715
99716 2000-06-18  Jim Meyering  <meyering@lucent.com>
99717
99718         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99719         Besides, these days every porting target provides a mkdir function.
99720
99721         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99722         needed. (this snippet comes from src/system.h).
99723
99724 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99725
99726         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99727
99728 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99729
99730         * lib/human.c (adjust_value): New function.
99731         (human_readable_inexact): Apply rounding style even when
99732         printing approximate values.
99733
99734 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99735
99736         * lib/human.c (human_readable_inexact): Allow an input block
99737         size that is not a multiple of the output block size, and vice versa.
99738         Reported by Piergiorgio Sartor.
99739
99740 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99741
99742         * lib/getdate.y (get_date): Apply relative times after time
99743         zone indicator, not before.  Reported by Todd A. Jacobs.
99744
99745 2000-06-13  Jim Meyering  <meyering@lucent.com>
99746
99747         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99748
99749         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99750
99751 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99752
99753         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99754
99755 2000-06-12  Jim Meyering  <meyering@lucent.com>
99756
99757         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99758         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99759         optional argument.
99760         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99761         the optional argument, `lib'.
99762
99763 2000-06-08  Jim Meyering  <meyering@lucent.com>
99764
99765         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99766
99767 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99768
99769         Rewrite largefile configuration so that we don't need to run
99770         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99771         AC_CANONICAL_HOST in configure.in -- jmm]
99772
99773         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99774         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99775         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99776         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99777         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99778         All uses changed.
99779         Instead of inspecting the output of getconf, try to compile the
99780         test program without and with the macro definition.
99781         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99782         for getconf.  Instead, check for the needed flags by compiling
99783         test programs.
99784
99785 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99786
99787         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99788
99789 2000-06-04  Jim Meyering  <meyering@lucent.com>
99790
99791         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99792         SunOS 4.1.4 for which gid_t is an unsigned type.
99793
99794 2000-06-03  Jim Meyering  <meyering@lucent.com>
99795
99796         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99797         now that autoconf requires that.
99798
99799         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99800         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99801         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99802
99803 2000-06-03  Jim Meyering  <meyering@lucent.com>
99804
99805         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99806
99807 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99808
99809         * m4/glibc21.m4: New file.
99810         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99811
99812 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99813
99814         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99815         newer, don't install charset.alias.
99816         * lib/config.charset: Change the Linux/glibc rules so they become empty
99817         on glibc-2.1 or newer.
99818
99819 2000-06-02  Jim Meyering  <meyering@lucent.com>
99820
99821         * lib/mountlist.c: Back out last change.  Instead, do this...
99822         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99823         me_dummy member using the same `ignore'-testing code.
99824         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99825         fs_type strings.
99826         From Mark D. Roth.
99827
99828 2000-05-29  Jim Meyering  <meyering@lucent.com>
99829
99830         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99831         mounts with the `ignore' attribute.  Based on a patch from
99832         Mark D. Roth.
99833
99834 2000-05-28  Jim Meyering  <meyering@lucent.com>
99835
99836         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99837         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99838         * m4/stat.m4: Likewise.
99839         * m4/lstat.m4: Likewise.
99840         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99841
99842         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99843         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99844
99845 2000-05-26  Jim Meyering  <meyering@lucent.com>
99846
99847         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99848
99849 2000-05-24  Jim Meyering  <meyering@lucent.com>
99850
99851         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99852         autoconf requires that.
99853         * m4/lib-check.m4: Likewise.
99854         * m4/jm-macros.m4: Likewise.
99855         * m4/strftime.m4: Likewise.
99856
99857         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99858         AC_CHECK_DECLS, now that autoconf requires that.
99859
99860 2000-05-22  Jim Meyering  <meyering@lucent.com>
99861
99862         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99863         * m4/lstat.m4: Likewise.
99864
99865 2000-05-22  Jim Meyering  <meyering@lucent.com>
99866
99867         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99868
99869 2000-05-20  Jim Meyering  <meyering@lucent.com>
99870
99871         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99872         (jm_PREREQ): Use it.
99873
99874 2000-05-18  Jim Meyering  <meyering@lucent.com>
99875
99876         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99877         back, too, since it may have been modified by allocate_entry.
99878         (hash_delete): Rewrite to use neither the assignment operator
99879         nor the comma operator in an if-expression.
99880
99881 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99882
99883         * lib/closeout.c:
99884         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99885         Remove; no longer needed.
99886         "quotearg.h": Add include.
99887         (file_name): Do not bother to explicitly initialize to NULL; it's less
99888         efficient on some hosts.
99889         (close_stdout_status): Remove test as to whether stdout was already
99890         closed; it breaks for the case "echo x | sort >&-".
99891         Quote file name colons.
99892         Do not assume that _("write error") lacks format strings.
99893
99894 2000-05-15  Jim Meyering  <meyering@lucent.com>
99895
99896         * lib/version-etc.c (version_etc_copyright): Update the copyright
99897         string used in all --version output.
99898
99899 2000-05-14  Jim Meyering  <meyering@lucent.com>
99900
99901         * lib/closeout.c (close_stdout_set_file_name): New function.
99902         (close_stdout_status): Use new file-scoped global.
99903         Return right away if fstat says the stdout file descriptor is invalid.
99904         * lib/closeout.h (close_stdout_set_file_name): Declare.
99905
99906 2000-05-10  Jim Meyering  <meyering@lucent.com>
99907
99908         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99909         (close_stdout_set_status): New function.
99910         * lib/closeout.h (close_stdout_set_status): Declare.
99911
99912 2000-05-09  Jim Meyering  <meyering@lucent.com>
99913
99914         * m4/gettext.m4: Rename this...
99915         * m4/libintl.m4: ...to this.
99916
99917 2000-05-08  Jim Meyering  <meyering@lucent.com>
99918
99919         * lib/long-options.c: Don't include closeout.h.
99920         (parse_long_options): Don't call close_stdout for --version.
99921
99922 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99923
99924         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99925         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99926         2.1.3 bug.  This avoids a clash when files like regex.c define
99927         _GNU_SOURCE.
99928
99929 2000-05-06  Jim Meyering  <meyering@lucent.com>
99930
99931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99932         (AC_REPLACE_FUNCS): Add strnlen.
99933
99934         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99935         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99936
99937         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99938         AC_SEARCH_LIBS call for nanosleep.
99939         (LIB_NANOSLEEP): Set and AC_SUBST.
99940
99941 2000-05-06  Jim Meyering  <meyering@lucent.com>
99942
99943         * lib/strnlen.c: Undefine __strnlen and strnlen.
99944         [!weak_alias]: Define __strnlen to strnlen.
99945
99946         * lib/atexit.c: New file, from libiberty.
99947
99948 2000-05-06  Jim Meyering  <meyering@lucent.com>
99949
99950         * lib/closeout.c (close_stdout_status): Also check for errors on the
99951         stderr stream.
99952
99953 2000-05-05  Jim Meyering  <meyering@lucent.com>
99954
99955         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99956         AC_SEARCH_LIBS call for clock_gettime.
99957         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99958
99959         * m4/search-libs.m4: Update from autoconf.
99960
99961         su doesn't work on Solaris 2.6.
99962         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99963         <shadow.h>.  Reported by Dragos Harabor.
99964
99965 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99966
99967         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99968         memcpy instead of xmalloc, xrealloc, path_concat.
99969         (locale_charset): Treat empty environment variables as absent.
99970         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99971
99972 2000-05-04  Jim Meyering  <meyering@lucent.com>
99973
99974         * lib/getopt.c: Update from glibc.
99975         * lib/obstack.c: Likewise.
99976         * lib/obstack.h: Likewise.
99977         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99978         file
99979
99980         * lib/regex.h: Likewise.
99981         * lib/strndup.c: Likewise.
99982         * lib/strnlen.c: New file, from glibc.
99983
99984 2000-05-03  Jim Meyering  <meyering@lucent.com>
99985
99986         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99987
99988 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99989
99990         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99991         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99992         compile-time test, rather than inspecting host and OS, to
99993         decide whether to define _LARGEFILE_SOURCE.
99994
99995 2000-05-01  Jim Meyering  <meyering@lucent.com>
99996
99997         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99998
99999         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
100000         Based on a patch from Bruno Haible.
100001
100002 2000-05-01  Jim Meyering  <meyering@lucent.com>
100003
100004         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
100005
100006 2000-04-29  Jim Meyering  <meyering@lucent.com>
100007
100008         * lib/path-concat.c: Declare strdup only if it's not defined.
100009         * lib/canon-host.c: Likewise.
100010
100011 2000-04-28  Jim Meyering  <meyering@lucent.com>
100012
100013         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
100014         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
100015         is included first, then limits.h is included by locale.h by libintl.h.
100016         From John David Anglin.
100017
100018 2000-04-25  Jim Meyering  <meyering@lucent.com>
100019
100020         * lib/makepath.c (S_IRWXUGO): Define.
100021         (make_path): Always perform explicit chmod if MODE specifies any
100022         of the `special' permission bits.  Prompted by a bug report against
100023         install from Mate Wierdl and Joost van Baal.
100024
100025 2000-04-18  Jim Meyering  <meyering@lucent.com>
100026
100027         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
100028         (jm_PREREQ): Use it.
100029
100030 2000-04-18  Jim Meyering  <meyering@lucent.com>
100031
100032         * lib/README: New file.
100033
100034         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
100035         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
100036
100037 2000-04-17  Jim Meyering  <meyering@lucent.com>
100038
100039         Get it right :-)
100040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
100041         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
100042         Suggestion from Akim Demaille.
100043
100044 2000-04-17  Jim Meyering  <meyering@lucent.com>
100045
100046         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
100047         the definition of it to rpl_strftime also defined-away the system's
100048         declaration.
100049
100050 2000-04-15  Jim Meyering  <meyering@lucent.com>
100051
100052         Use `C' to denote so-called `contiguous' files, the same way
100053         that tar does.
100054         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
100055         (ftypelet): Use S_ISCTG.
100056         From Michael Deutschmann.
100057
100058 2000-04-14  Jim Meyering  <meyering@lucent.com>
100059
100060         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
100061         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
100062         clobbered.
100063
100064 2000-04-14  Jim Meyering  <meyering@lucent.com>
100065
100066         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
100067
100068 2000-04-13  Jim Meyering  <meyering@lucent.com>
100069
100070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
100071         AH_VERBATIM to insert required #ifndef into config.h.in.
100072         Suggestion from Akim Demaille.
100073
100074 2000-04-12  Jim Meyering  <meyering@lucent.com>
100075
100076         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
100077         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
100078         Christian Krackowizer.
100079
100080         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
100081         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
100082         (AC_SYS_LARGEFILE): Require.
100083         (AM_C_PROTOTYPES): Require.
100084
100085 2000-04-08  Jim Meyering  <meyering@lucent.com>
100086
100087         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
100088         names don't conflict.  Reported by Eli Zaretskii.
100089
100090 2000-04-07  Jim Meyering  <meyering@lucent.com>
100091
100092         * lib/putenv.c: Move inclusion of errno.h so it follows that of
100093         sys/types.h, to work around system header problems on AIX 3.2.5.
100094         From Bruno Haible.
100095
100096 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
100097
100098         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
100099         bug.  Deal with the different error behavior of Irix iconv.
100100
100101 2000-04-05  Paul Eggert  <eggert@twinsun.com>
100102
100103         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
100104         IRIX if the installer said otherwise.
100105
100106 2000-04-05  Jim Meyering  <meyering@lucent.com>
100107
100108         Portability tweaks required for ultrix4.3.
100109         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
100110         (jm_CHECK_DECLS): Add getutent to the list of functions.
100111         (_jm_DECL_HEADERS): Add utmpx.h.
100112         From John David Anglin.
100113
100114         * m4/strftime.m4: Back out the 2000-04-02 change.
100115         Instead of that change, simply undefine putenv in the test program.
100116
100117 2000-04-05  Jim Meyering  <meyering@lucent.com>
100118
100119         Portability tweaks required for ultrix4.3.
100120         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
100121         getutent.
100122         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
100123         * lib/canon-host.c: Declare strdup.
100124         * lib/path-concat.c: Likewise.
100125         From John David Anglin.
100126
100127 2000-04-04  Jim Meyering  <meyering@lucent.com>
100128
100129         Be more DOS 8.3-friendly.
100130         * lib/ref-add.sin: Renamed from ref-add.sed.in.
100131         * lib/ref-del.sin: Renamed from ref-del.sed.in.
100132         * lib/Makefile.am: Reflect renaming.
100133         Reported by Eli Zaretskii.
100134
100135         Use a temporary file name that won't clash with `charset.alias'
100136         in the DOS 8.3 name space.
100137         * lib/Makefile.am (charset_tmp): Define.
100138         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
100139         (uninstall-local): Likewise.
100140         Reported by Eli Zaretskii.
100141
100142 2000-04-03  Jim Meyering  <meyering@lucent.com>
100143
100144         * m4/gettext.m4: Fix typo in comment.
100145
100146         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100147         textutils/configure.in).  Suggestion from Paul Eggert.
100148         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100149
100150 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100151
100152         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100153         variable in the shell rather than using putenv, which isn't
100154         portable.  This avoids the configure-time inter-test dependency
100155         on the potentially-renamed putenv function.
100156
100157 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100158
100159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100160         before checking struct stat.st_blksize, so that
100161         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100162
100163 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100164
100165         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100166         since strftime.c uses HAVE_STRFTIME to decide whether to use
100167         the underlying strftime.
100168
100169 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100170
100171         * lib/time/strftime.c (my_strftime): Make sure we call the system
100172         strftime, not ourselves, when invoking the underlying strftime.
100173
100174 2000-03-24  Jim Meyering  <meyering@lucent.com>
100175
100176         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100177         (charset_alias): Define.
100178         (install-exec-local): Factor out common code.
100179         (uninstall-local): Split lines longer than 80.
100180         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100181         (SUFFIXES): Define.
100182         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100183         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100184
100185 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100186
100187         * lib/config.charset: Output a line containing "Packages using this
100188         file".
100189         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100190         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100191         ref-del.sed): New rules.
100192
100193 2000-03-17  Jim Meyering  <meyering@lucent.com>
100194
100195         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100196         Otherwise, include <strings.h>
100197
100198 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100199
100200         * lib/unicodeio.c (utf8_wctomb): New function.
100201         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100202         format instead of in UCS-4 with platform dependent endianness.
100203
100204 2000-03-10  Jim Meyering  <meyering@lucent.com>
100205
100206         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100207         From Marco Franzen.
100208
100209 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100210
100211         * lib/savedir.c (savedir): Work even if directory size is
100212         negative; this can happen with some screwy NFS configurations.
100213
100214 2000-03-06  Jim Meyering  <meyering@lucent.com>
100215
100216         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100217         if it's NULL (because we ran out of memory).  From Bruno Haible.
100218
100219 2000-03-05  Jim Meyering  <meyering@lucent.com>
100220
100221         * lib/localcharset.c ("path-concat.h"): Include.
100222         (get_charset_aliases): Use path_concat instead of ANSI string
100223         concatenation.
100224
100225         * lib/unicodeio.h (PARAMS): Define.
100226         Use it to guard prototype.
100227
100228 2000-03-04  Jim Meyering  <meyering@lucent.com>
100229
100230         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100231         for lib/localcharset.c.
100232
100233 2000-03-04  Jim Meyering  <meyering@lucent.com>
100234
100235         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100236         installing into it.
100237         (uninstall-local): Uncomment this rule so `make distcheck' works
100238         once again.
100239
100240         * lib/unicodeio.c (<errno.h>): Include it.
100241         (errno): Declare if not defined.
100242
100243         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100244
100245         * lib/config.charset: New version, incorporating remarks from a linux
100246         i18n mailing list.  From Bruno Haible.
100247
100248 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100249
100250         * m4/codeset.m4: New file.
100251         * m4/iconv.m4: New file.
100252         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100253
100254 2000-03-03  Jim Meyering  <meyering@lucent.com>
100255
100256         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100257
100258 2000-03-02  Jim Meyering  <meyering@lucent.com>
100259
100260         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100261         the messages come out on separate lines.
100262
100263         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100264         rather than jm_CHECK_DECLARATIONS.
100265         * m4/decl.m4: Remove now-unused file.
100266
100267         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100268         geteuid.
100269
100270 2000-03-02  Jim Meyering  <meyering@lucent.com>
100271
100272         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100273
100274 2000-03-01  Jim Meyering  <meyering@lucent.com>
100275
100276         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100277         * lib/unicodeio.c: Likewise.
100278
100279 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100280
100281         * lib/config.charset: New file.
100282         * lib/localcharset.c: New file.
100283         * lib/unicodeio.h, lib/unicodeio.c: New files.
100284         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100285         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100286         (noinst_HEADERS): Add unicodeio.h.
100287         (all-local, install-exec-local, charset.alias): New targets.
100288
100289 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100290
100291         * lib/quotearg.c (ALERT_CHAR): New macro.
100292         (quotearg_buffer_restyled): Use it.
100293
100294 2000-02-27  Jim Meyering  <meyering@lucent.com>
100295
100296         * m4/check-decl.m4: Add getenv to the list.
100297
100298 2000-02-27  Jim Meyering  <meyering@lucent.com>
100299
100300         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100301         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100302
100303         * lib/backupfile.c: Guard inclusion of stdlib.h with
100304         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100305         Declare malloc if needed.
100306
100307         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100308         `#ifndef HAVE_DECL..'
100309         now that autoconf always defines the HAVE_DECL_ symbols.
100310         * lib/human.c: Likewise.
100311         * lib/same.c: Likewise.
100312         * lib/strtoumax.c: Likewise.
100313
100314         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100315         declaration check was not run.
100316         * lib/hash.c: Likewise.
100317         * lib/human.c: Likewise.
100318         * lib/same.c: Likewise.
100319         * lib/strtoumax.c: Likewise.
100320
100321         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100322         `.', then first look up the entire `.'-containing string as a login
100323         name.
100324
100325 2000-02-23  Jim Meyering  <meyering@lucent.com>
100326
100327         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100328         in place of my hack.
100329
100330 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100331
100332         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100333         (textint): New typedef.
100334         (parser_control): Member year changed from int to textint.
100335         All uses changed.
100336         (YYSTYPE): Removed; replaced by %union with int and textint members.
100337         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100338         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100339         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100340         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100341         (date, number, to_year): Use width of number in digits, not its value,
100342         to determine whether it's a 2-digit year, or a 2-digit time.
100343         (yylex): Store number of digits of numeric tokens.
100344         Reported by John Kendall.
100345
100346         (parser_control): Changed from struct parser_control to typedef (for
100347         consistency).  All uses changed.
100348
100349         (tID): Removed; not used.
100350         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100351
100352 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100353
100354         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100355         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100356
100357 2000-02-12  Jim Meyering  <meyering@lucent.com>
100358
100359         * lib/userspec.c (ISDIGIT): Define it.
100360         (isdigit): Remove definition.
100361         (is_number): Use ISDIGIT, not isdigit.
100362         <libintl.h>: Include.
100363         (_ and N_): Define.
100364         (parse_user_spec): Mark translatable strings.
100365
100366 2000-02-10  Jim Meyering  <meyering@lucent.com>
100367
100368         With these changes, nanosleep.[ch] are finally enough like the other
100369         lib/* replacement files to compile on a few more losing systems.
100370
100371         * lib/nanosleep.h: Don't include config.h.
100372         Remove prototype from declaration of nanosleep.
100373         (PARAMS): Remove now-unneeded definition.
100374         * lib/nanosleep.c: #undef nanosleep.
100375         (rpl_nanosleep): Rename from nanosleep.
100376
100377 2000-02-10  Jim Meyering  <meyering@lucent.com>
100378
100379         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100380         gnu_nanosleep to rpl_nanosleep.
100381
100382 2000-02-09  Jim Meyering  <meyering@lucent.com>
100383
100384         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100385         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100386
100387 2000-02-08  Akim Demaille  <akim@epita.fr>
100388
100389         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100390         `[' and `]' and remove uses of `changequote'.
100391         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100392         (AC_SYS_LARGEFILE): Likewise.
100393         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100394         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100395         of changequote.
100396         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100397         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100398         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100399         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100400
100401 2000-02-05  Jim Meyering  <meyering@lucent.com>
100402
100403         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100404         Remove explicit use of AC_HEADER_TIME.  It is required by
100405         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100406         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100407         in autoconf whereby the expansion of the latter ended up preceding
100408         the expansion of its prerequisite, AC_HEADER_TIME.
100409         Reported by Volker Borchert.
100410
100411 2000-02-03  Jim Meyering  <meyering@lucent.com>
100412
100413         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100414
100415 2000-02-03  Jim Meyering  <meyering@lucent.com>
100416
100417         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100418         rather than with `#if HAVE_UTMPNAME'.
100419
100420 2000-02-02  Jim Meyering  <meyering@lucent.com>
100421
100422         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100423         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100424         Reported by Eli Zaretskii.
100425
100426 2000-02-01  Jim Meyering  <meyering@lucent.com>
100427
100428         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100429
100430 2000-01-31  Jim Meyering  <meyering@lucent.com>
100431
100432         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100433         functions.  Add the time.h and sys/time.h headers along with the
100434         AC_REQUIRE'ment of AC_HEADER_TIME.
100435
100436 2000-01-31  Jim Meyering  <meyering@lucent.com>
100437
100438         * lib/nanosleep.h (nanosleep): Guard declaration with
100439         `#if ! HAVE_DECL_NANOSLEEP'.
100440         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100441         the declaration in that vendor's sys/timers.h.
100442         Reported by Christian Krackowizer.
100443
100444         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100445         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100446         (ISPRINT): Likewise.
100447         Reported by Tom Tromey.
100448
100449 2000-01-30  Jim Meyering  <meyering@lucent.com>
100450
100451         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100452
100453         * m4/prereq.m4 (utmp_includes): Define.
100454         Check for ut_user and ut_name members in both struct utmpx
100455         and struct utmp.
100456
100457 2000-01-30  Jim Meyering  <meyering@lucent.com>
100458
100459         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100460         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100461         header files where only utmpx.ut_user is declared.
100462
100463         * lib/readutmp.h (UT_USER): Define.
100464
100465 2000-01-29  Jim Meyering  <meyering@lucent.com>
100466
100467         * m4/lib-check.m4: New file containing library-related checks from
100468         fileutils and sh-utils (textutils had none).
100469
100470 2000-01-28  Jim Meyering  <meyering@lucent.com>
100471
100472         * m4/perl.m4: Change format of warning message to look more like that
100473         from the missing script.  Suggestion from François Pinard.
100474
100475 2000-01-25  Jim Meyering  <meyering@lucent.com>
100476
100477         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100478         well as time.h in the compile check.
100479         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100480         Fix typo in cross-compiling case: s/yes/no/.
100481
100482 2000-01-23  Jim Meyering  <meyering@lucent.com>
100483
100484         * m4/jm-macros.m4: Move df-related tests here from
100485         fileutils/configure.in
100486
100487         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100488         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100489
100490         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100491         s/space/ac_fsusage_space/.
100492         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100493
100494         * m4/ftruncate.m4: New file (derived from part of
100495         fileutils/configure.in).
100496         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100497         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100498
100499         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100500         AC_SUBST these here, rather than just in sh-util/configure.in, so
100501         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100502         all the same.
100503         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100504         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100505         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100506         (AC_SUBST(POW_LIBM)): Likewise.
100507         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100508
100509 2000-01-23  Jim Meyering  <meyering@lucent.com>
100510
100511         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100512         obstack.c.
100513
100514 2000-01-22  Jim Meyering  <meyering@lucent.com>
100515
100516         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100517
100518         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100519
100520         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100521         configure.in
100522         (AC_CHECK_HEADERS): Likewise for sh-utils.
100523         (AC_CHECK_HEADERS): Likewise for textutils.
100524         Merge the three lists of headers.
100525
100526         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100527         from fileutils' configure.in.
100528
100529         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100530         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100531         check-decl.m4.
100532
100533         * m4/check-decl.m4: Use #if rather than #ifdef.
100534         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100535         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100536         (_jm_DECL_HEADERS): Define new function.
100537         (jm_CHECK_DECLARATIONS): Require it.
100538
100539 2000-01-22  Jim Meyering  <meyering@lucent.com>
100540
100541         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100542         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100543         Required for some AIX systems.  Reported by Christian Krackowizer.
100544         [TESTING] (main): New function.
100545
100546         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100547         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100548         letters.
100549
100550         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100551         iswprint.
100552
100553         * lib/strverscmp.c (ISDIGIT): Define.
100554         (strverscmp): Use ISDIGIT, not isdigit.
100555
100556 2000-01-19  Jim Meyering  <meyering@lucent.com>
100557
100558         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100559         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100560         defines `struct timespec' in <sys/time.h>
100561
100562         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100563         Thanks to Akim for explaining.
100564
100565 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100566
100567         * lib/nanosleep.c (nanosleep):
100568         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100569         POSIX.1 doesn't require SA_INTERRUPT and some systems
100570         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100571         it's been part of POSIX.1 since day 1 (in 1988).
100572
100573 2000-01-17  Jim Meyering  <meyering@lucent.com>
100574
100575         * lib/interlock: Remove unused file.  Reported by François Pinard.
100576
100577 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100578
100579         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100580         alert, backslash, formfeed, and vertical tab unnecessarily in
100581         shell quoting style.
100582
100583 2000-01-16  Jim Meyering  <meyering@lucent.com>
100584
100585         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100586         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100587         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100588         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100589
100590 2000-01-16  Jim Meyering  <meyering@lucent.com>
100591
100592         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100593         because the latter didn't work.
100594
100595 2000-01-15  Jim Meyering  <meyering@lucent.com>
100596
100597         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100598         (AC_REPLACE_FUNCS): Add memcpy and memset.
100599         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100600         Add strpbrk.
100601         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100602
100603 2000-01-12  Jim Meyering  <meyering@lucent.com>
100604
100605         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100606         (jm_PREREQ): Use it.
100607         (jm_PREREQ_READUTMP): New macro.
100608         (jm_PREREQ): Use it.
100609
100610 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100611
100612         Quote multibyte characters correctly.
100613         * m4/c-bs-a.m4: New file.
100614         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100615         (jm_PREREQ): Use it.
100616
100617 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100618
100619         * m4/uintmax_t.m4: Port to autoconf 2.13.
100620
100621 2000-01-08  Jim Meyering  <meyering@ascend.com>
100622
100623         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100624         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100625
100626 2000-01-04  Jim Meyering  <meyering@ascend.com>
100627
100628         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100629         jm_STRUCT_DIRENT_D_TYPE.
100630         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100631         jm_STRUCT_DIRENT_D_INO.
100632         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100633         jm_STRUCT_UTIMBUF.
100634         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100635         renamings.
100636         * m4/utime.m4: Likewise.
100637
100638         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100639         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100640
100641 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100642
100643         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100644         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100645
100646 2000-01-02  Jim Meyering  <meyering@ascend.com>
100647
100648         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100649         remember if this is necessary.
100650
100651 1999-12-26  Jim Meyering  <meyering@ascend.com>
100652
100653         * m4/jm-macros.m4: Use it here.
100654         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100655
100656 1999-12-23  Jim Meyering  <meyering@ascend.com>
100657
100658         * m4/jm-macros.m4: Check for clock_gettime (moved from
100659         fileutils/configure.in)
100660         Check for gettimeofday.
100661
100662 1999-12-20  Jim Meyering  <meyering@ascend.com>
100663
100664         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100665         autoconf-2.14a-1999-12-20.
100666
100667 1999-12-19  Jim Meyering  <meyering@ascend.com>
100668
100669         * m4/lstat-slash.m4: New file.
100670         * m4/jm-macros.m4: Use the new macro:
100671         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100672
100673 1999-12-07  Jim Meyering  <meyering@ascend.com>
100674
100675         * m4/perl.m4: Require that File::Compare be available, too.
100676         Too many systems seem to lack it.
100677
100678         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100679         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100680
100681 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100682
100683         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100684         problem with the QNX 4.25 shell, which doesn't propagate exit
100685         status of failed commands inside shell assignments.
100686
100687 1999-11-17  Jim Meyering  <meyering@ascend.com>
100688
100689         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100690
100691 1999-11-07  Jim Meyering  <meyering@ascend.com>
100692
100693         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100694
100695 1999-11-06  Jim Meyering  <meyering@ascend.com>
100696
100697         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100698         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100699
100700 1999-11-05  Jim Meyering  <meyering@ascend.com>
100701
100702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100703         configure.in of textutils, fileutils, and sh-utils into this one
100704         (shared between those packages) file.
100705         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100706         AC_STRUCT_ST_BLKSIZE.
100707
100708 1999-11-03  Jim Meyering  <meyering@ascend.com>
100709
100710         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100711         of AC_CHECK_TYPE checks includes unistd.h.
100712         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100713         Suggestion from Akim Demaille.
100714
100715 1999-10-30  Jim Meyering  <meyering@ascend.com>
100716
100717         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100718         m4-quoted string.
100719         * m4/ls-mntd-fs.m4: Likewise.
100720         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100721         * m4/jm-winsz1.m4: Likewise.
100722
100723         * m4/const.m4: Remove file, since the fix made it into the experimental
100724         version of autoconf.
100725         * m4/mktime.m4: Likewise.
100726
100727         * m4/check-type.m4: Remove file, now that the latest version of
100728         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100729
100730         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100731         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100732         AC_CHECK_TYPE.
100733
100734 1999-10-04  Jim Meyering  <meyering@ascend.com>
100735
100736         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100737
100738 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100739
100740         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100741         2.95.1 bug with HP-UX 10.20.
100742
100743 1999-09-17  Jim Meyering  <meyering@ascend.com>
100744
100745         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100746         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100747         due to missing strdup (against sh-utils-2.0).
100748
100749 1999-08-29  Jim Meyering  <meyering@ascend.com>
100750
100751         * m4/jm-macros.m4: Require jm_BISON.
100752         * m4/bison.m4: New file.
100753
100754 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100755
100756         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100757         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100758
100759 1999-08-05  Jim Meyering  <meyering@ascend.com>
100760
100761         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100762         to avoid conflicts with `conftest' on 8+3 filesystems.
100763         Suggestion from Eli Zaretskii.
100764
100765 1999-08-04  Jim Meyering  <meyering@ascend.com>
100766
100767         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100768         fileutils and sh-utils (textutils's getline test was inadequate).
100769         (AM_FUNC_GETLINE): Run this test.
100770         (AC_CHECK_FUNCS): Check for getdelim.
100771         Reported by Bob Proulx.
100772
100773 1999-08-02  Jim Meyering  <meyering@ascend.com>
100774
100775         * m4/jm-macros.m4: Add a comment.
100776
100777 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100778
100779         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100780         <inttypes.h> defines strtoumax as a macro (and not as a
100781         function).
100782
100783 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100784
100785         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100786         that we can shift, multiply and divide unsigned long long
100787         values; Ultrix cc can't do it.
100788
100789 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100790
100791         * m4/mktime.m4: New file, which is a preview of what should appear
100792         in the next public autoconf release.
100793
100794 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100795
100796         * m4/lfs.m4: Remove this file.
100797         * m4/largefile.m4: New file.  It contains the old contents of
100798         lfs.m4, except that all names with prefix AC_LFS have been
100799         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100800         compatible with future autoconf versions.  Also, some minor m4
100801         quoting problems have been fixed.
100802
100803 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100804
100805         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100806         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100807         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100808         and simplify the shell code.
100809
100810 1999-08-01  Jim Meyering  <meyering@ascend.com>
100811
100812         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100813         m4.
100814
100815 1999-07-20  Jim Meyering  <meyering@ascend.com>
100816
100817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100818
100819 1999-07-15  Jim Meyering  <meyering@ascend.com>
100820
100821         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100822
100823 1999-05-22  Jim Meyering  <meyering@ascend.com>
100824
100825         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100826
100827 1999-05-20  Jim Meyering  <meyering@ascend.com>
100828
100829         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100830         Add a colon after each `then' in case $4 is empty.
100831
100832 1999-05-16  Jim Meyering  <meyering@ascend.com>
100833
100834         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100835
100836 1999-05-10  Jim Meyering  <meyering@ascend.com>
100837
100838         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100839
100840         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100841         AC_FUNC_MKTIME.
100842
100843 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100844
100845         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100846
100847 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100848
100849         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100850         not CPPFLAGS, so that linking works correctly in IRIX.
100851
100852 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100853
100854         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100855
100856 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100857
100858         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100859         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100860         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100861         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100862         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100863
100864         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100865
100866 1999-04-20  Jim Meyering  <meyering@ascend.com>
100867
100868         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100869         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100870         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100871
100872 1999-04-18  Jim Meyering  <meyering@ascend.com>
100873
100874         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100875         * m4/jm-macros.m4: Use it.
100876
100877 1999-04-06  Jim Meyering  <meyering@ascend.com>
100878
100879         * m4/strftime.m4: Remove test for %f.
100880
100881 1999-03-29  Jim Meyering  <meyering@ascend.com>
100882
100883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100884         superset of the AC_TYPE_* checks in the textutils, fileutils,
100885         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100886         AC_TYPE_PID_T.
100887
100888 1999-03-28  Jim Meyering  <meyering@ascend.com>
100889
100890         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100891         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100892         replaced e.g., in the *.sh files of the sh-utils.
100893
100894 1999-03-20  Jim Meyering  <meyering@ascend.com>
100895
100896         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100897         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100898         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100899
100900 1999-03-19  Jim Meyering  <meyering@ascend.com>
100901
100902         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100903
100904 1999-03-12  Jim Meyering  <meyering@ascend.com>
100905
100906         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100907
100908 1999-03-07  Jim Meyering  <meyering@ascend.com>
100909
100910         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100911         declared.
100912
100913 1999-02-17  Jim Meyering  <meyering@ascend.com>
100914
100915         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100916         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100917
100918 1999-02-07  Jim Meyering  <meyering@ascend.com>
100919
100920         * m4/group-member.m4: New file -- extracted from sh-utils'
100921         configure.in.
100922
100923         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100924         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100925
100926 1999-02-06  Jim Meyering  <meyering@ascend.com>
100927
100928         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100929         * m4/fnmatch.m4: Likewise.
100930         * m4/getgroups.m4: Likewise.
100931         * m4/lstat.m4: Likewise.
100932         * m4/malloc.m4: Likewise.
100933         * m4/putenv.m4: Likewise.
100934         * m4/realloc.m4: Likewise.
100935         * m4/regex.m4: Likewise.
100936         * m4/stat.m4: Likewise.
100937         * m4/strftime.m4: Likewise.
100938         Suggestion from Alain Magloire.
100939
100940         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100941         * m4/fnmatch.m4: Likewise.
100942         * m4/getgroups.m4: Likewise.
100943         * m4/getline.m4: Likewise.
100944         * m4/lstat.m4: Likewise.
100945         * m4/malloc.m4: Likewise.
100946         * m4/memcmp.m4: Likewise.
100947         * m4/putenv.m4: Likewise.
100948         * m4/realloc.m4: Likewise.
100949         * m4/regex.m4: Likewise.
100950         * m4/stat.m4: Likewise.
100951         * m4/strftime.m4: Likewise.
100952         Suggestion from Alain Magloire.
100953
100954         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100955         an argument.
100956
100957         * m4/regex.m4: Add a run-time Test for proper operation of
100958         re_compile_pattern.
100959
100960 1999-01-31  Jim Meyering  <meyering@ascend.com>
100961
100962         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100963
100964 1999-01-30  Jim Meyering  <meyering@ascend.com>
100965
100966         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100967
100968         * m4/jm-mktime.m4: Make this a wrapper around the official
100969         AM_FUNC_MKTIME rather than my private copy, now that the official one
100970         is up to date.
100971         * m4/mktime.m4: Remove file.
100972
100973         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100974         * m4/uptime.m4: Likewise.
100975         * m4/uintmax_t.m4: Likewise.
100976
100977 1999-01-28  Jim Meyering  <meyering@ascend.com>
100978
100979         * m4/jm-macros.m4: Use jm_AFS.
100980         * m4/afs.m4: New file (from fileutils' configure.in).
100981
100982         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100983         * m4/chown.m4: Likewise.
100984         * m4/d-ino.m4: Likewise.
100985         * m4/d-type.m4: Likewise.
100986         * m4/fnmatch.m4: Likewise.
100987         * m4/getgroups.m4: Likewise.
100988         * m4/gettext.m4: Likewise.
100989         * m4/jm-mktime.m4: Likewise.
100990         * m4/jm-winsz2.m4: Likewise.
100991         * m4/lcmessage.m4: Likewise.
100992         * m4/ls-mntd-fs.m4: Likewise.
100993         * m4/malloc.m4: Likewise.
100994         * m4/memcmp.m4: Likewise.
100995         * m4/putenv.m4: Likewise.
100996         * m4/realloc.m4: Likewise.
100997         * m4/st_mtim.m4: Likewise.
100998         * m4/strftime.m4: Likewise.
100999
101000 1999-01-16  Jim Meyering  <meyering@ascend.com>
101001
101002         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
101003         (ARGMATCH_DIE_DECL): Define.
101004
101005 1999-01-12  Jim Meyering  <meyering@ascend.com>
101006
101007         * m4/Makefile.am.in: Rewrite to avoid using fmt.
101008         Reported by Lars Hecking.
101009
101010 1999-01-10  Jim Meyering  <meyering@ascend.com>
101011
101012         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
101013         gross kludge.
101014         * m4/inttypes_h.m4: Likewise.
101015         * m4/lstat.m4: Likewise.
101016         * m4/malloc.m4: Likewise.
101017         * m4/readdir.m4: Likewise.
101018         * m4/realloc.m4: Likewise.
101019         * m4/st_dm_mode.m4: Likewise.
101020         * m4/stat.m4: Likewise.
101021         * m4/utimbuf.m4: Likewise.
101022         * m4/utimes.m4: Likewise.
101023
101024         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
101025         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
101026         comments in config.h.in are meaningful.
101027
101028         * m4/jm-macros.m4: Require autoconf-2.13 here.
101029
101030         * m4/regex.m4: By default, don't use the included regex.c on systems
101031         with glibc 2.  Suggestion from Uli Drepper.
101032
101033 1999-01-02  Jim Meyering  <meyering@ascend.com>
101034
101035         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
101036
101037 1998-12-18  Jim Meyering  <meyering@ascend.com>
101038
101039         * m4/Makefile.am.in (Makefile.am): Simplify rule.
101040         Based on a suggestion from Lars Hecking.
101041
101042 1998-11-16  Paul Eggert  <eggert@twinsun.com>
101043
101044         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
101045
101046 1998-11-16  Jim Meyering  <meyering@ascend.com>
101047
101048         * m4/lfs.m4: Double-quote the `uname...` expression.
101049
101050 1998-11-14  Jim Meyering  <meyering@ascend.com>
101051
101052         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
101053         * m4/stat.m4: Likewise.
101054
101055 1998-11-03  Jim Meyering  <meyering@ascend.com>
101056
101057         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
101058         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
101059
101060 1998-10-18  Jim Meyering  <meyering@ascend.com>
101061
101062         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
101063
101064 1998-10-17  Jim Meyering  <meyering@ascend.com>
101065
101066         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
101067         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
101068         calls for those previously hard-coded headers.  Instead, take a new
101069         parameter.
101070         (jm_CHECK_DECLARATIONS): Reflect interface change.
101071         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
101072         (jm_CHECK_DECL_LOCALTIME_R): New macro.
101073
101074         * m4/mktime.m4: Test for spring-forward gap before long-running test.
101075
101076 1998-10-14  Jim Meyering  <meyering@ascend.com>
101077
101078         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
101079         instead of "TZ=America/Vancouver".  From Paul Eggert.
101080
101081 1998-10-11  Jim Meyering  <meyering@ascend.com>
101082
101083         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
101084         This adds a test for a recently added compatibility fix for mktime.c.
101085         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
101086
101087 1998-09-27  Jim Meyering  <meyering@ascend.com>
101088
101089         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
101090
101091         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
101092         ../configure.in, including a change from Gordon Matzigkeit to allow
101093         cross-compiling for the Hurd.
101094
101095         * m4/glibc.m4: New file/macro to test for the GNU C Library
101096         versions 1 and 2.  From Gordon Matzigkeit.
101097         Indent.
101098
101099 1998-09-21  Jim Meyering  <meyering@ascend.com>
101100
101101         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
101102
101103 1998-08-18  Paul Eggert  <eggert@twinsun.com>
101104
101105         Port nanosecond-resolution times to UnixWare 2.1.2 and
101106         pedantic Solaris 2.6.
101107
101108         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
101109         AC_STRUCT_ST_MTIM.
101110         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
101111         Generate name of ns member, instead of just 1 or undef.
101112         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
101113
101114 1998-08-15  Jim Meyering  <meyering@ascend.com>
101115
101116         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
101117         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
101118         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
101119         instead of jm_TYPE_SSIZE_T.
101120
101121 1998-08-12  Jim Meyering  <meyering@ascend.com>
101122
101123         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
101124
101125 1998-08-02  Jim Meyering  <meyering@ascend.com>
101126
101127         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
101128         in acconfig.h manually.
101129
101130 1998-07-31  Paul Eggert  <eggert@twinsun.com>
101131
101132         * m4/st_mtim.m4: New file.
101133
101134 1998-07-28  Jim Meyering  <meyering@ascend.com>
101135
101136         * m4/utimes.m4: Undef stat.
101137
101138 1998-07-25  Jim Meyering  <meyering@ascend.com>
101139
101140         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
101141         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
101142
101143 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
101144
101145         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101146         uid and gid actually remain unchanged.
101147
101148 1998-07-07  Jim Meyering  <meyering@ascend.com>
101149
101150         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101151
101152 1998-07-04  Jim Meyering  <meyering@ascend.com>
101153
101154         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101155         to prove that this macro can be used in packages without regex.c.
101156
101157 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101158
101159         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101160         is to be used.
101161
101162 1998-07-03  Jim Meyering  <meyering@ascend.com>
101163
101164         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101165
101166         * m4/gettext.m4: New file -- from gettext-0.10.35.
101167         * m4/lcmessage.m4: Likewise.
101168         * m4/progtest.m4: Likewise.
101169
101170         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101171         * m4/jm-macros.m4: Require the new macro.
101172
101173 1998-06-29  Jim Meyering  <meyering@ascend.com>
101174
101175         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101176         for the definition of NGROUPS (used in a system header included
101177         by sys/mount.h).
101178
101179 1998-06-28  Jim Meyering  <meyering@ascend.com>
101180
101181         * m4/ls-mntd-fs.m4: New file.
101182         * m4/fstypename.m4: New file.
101183
101184         * m4/jm-macros.m4: Require the new macro.
101185         * m4/jm-glibc-io.m4: New file.
101186
101187 1998-05-19  Jim Meyering  <meyering@ascend.com>
101188
101189         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101190         * m4/lchown.m4: New file.
101191
101192         * m4/Makefile.am.in: New file.
101193         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101194
101195 1998-05-14  Jim Meyering  <meyering@ascend.com>
101196
101197         * m4/Makefile.am (EXTRA_DIST): Add them.
101198         * m4/jm-macros.m4: New file.
101199         * m4/utimbuf.m4: New file.
101200
101201 1998-05-12  Jim Meyering  <meyering@ascend.com>
101202
101203         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101204
101205 1998-05-11  Jim Meyering  <meyering@ascend.com>
101206
101207         * m4/isc-posix.m4: New file.
101208
101209 1998-05-10  Jim Meyering  <meyering@ascend.com>
101210
101211         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101212
101213 1998-05-09  Jim Meyering  <meyering@ascend.com>
101214
101215         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101216         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101217         with automake.
101218
101219         * m4/ssize_t.m4: New file.
101220         * m4/mktime.m4: Remove file -- the new automake has this now.
101221
101222 1998-04-26  Jim Meyering  <meyering@ascend.com>
101223
101224         * m4/assert.m4: New file.
101225         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101226
101227 1998-04-05  Jim Meyering  <meyering@ascend.com>
101228
101229         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101230         (jm_PREREQ): Use it here.
101231
101232 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101233
101234         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101235         in acconfig.h.
101236
101237 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101238
101239         * m4/prereq.m4: New file.
101240         * m4/error.m4: New file.
101241         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101242
101243 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101244
101245         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101246         cache-check for the same variable -- that defeated the purpose of
101247         the test; the test program was never run.  This was a problem only
101248         on systems with losing getline functions -- HP-UX 10.20 is one.
101249         Reported by Bjorn Helgaas.
101250
101251 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101252
101253         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101254
101255 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101256
101257         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101258
101259         * m4/const.m4: New file.  Use an initializer in this declaration
101260         typedef int charset[2]; const charset x;
101261         Reported by Bob Glickstein.
101262
101263 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101264
101265         * m4/chown.m4: Fix reversed types on -1 args to chown.
101266         From Kaveh Ghazi.
101267
101268 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101269
101270         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101271         Add lseek and memchr.
101272
101273         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101274         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101275         have a 20-character limit on names.
101276
101277 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101278
101279         * m4/inttypes_h.m4: New file.
101280         * m4/uintmax_t.m4: New file.
101281         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101282
101283
101284         -----
101285
101286         Local Variables:
101287         coding: utf-8
101288         End:
101289
101290         Copyright (C) 1997-2014 Free Software Foundation, Inc.
101291
101292         Copying and distribution of this file, with or without
101293         modification, are permitted provided the copyright notice
101294         and this notice are preserved.